From 86c3347785b2059dfd5c48d5229f33556126d8cb Mon Sep 17 00:00:00 2001 From: Oli Lenehan Date: Sat, 30 Sep 2023 02:55:51 +1000 Subject: [PATCH] fix: macos build and libesedb 20230824 --- .github/workflows/ci.yml | 1 + .gitignore | 1 + README.md | 4 - libesedb-sys/.gitignore | 1 + libesedb-sys/README.md | 16 +- libesedb-sys/build.rs | 155 +- libesedb-sys/examples/catalog.rs | 19 +- libesedb-sys/libesedb-20210424/ABOUT-NLS | 1282 - libesedb-sys/libesedb-20210424/AUTHORS | 4 - libesedb-sys/libesedb-20210424/dpkg/changelog | 5 - libesedb-sys/libesedb-20210424/dpkg/compat | 1 - .../dpkg/libesedb-python.install | 1 - .../libfdata/libfdata_tree.c | 1256 - .../libfdata/libfdata_tree.h | 246 - .../libfdata/libfdata_tree_node.c | 3461 -- .../libfdata/libfdata_tree_node.h | 359 - .../libuna/libuna_codepage_koi8_r.c | 69 - .../libuna/libuna_codepage_koi8_u.c | 69 - .../libuna/libuna_codepage_windows_1250.c | 97 - .../libuna/libuna_codepage_windows_1251.c | 79 - .../libuna/libuna_codepage_windows_1252.c | 45 - .../libuna/libuna_codepage_windows_1253.c | 77 - .../libuna/libuna_codepage_windows_1254.c | 64 - .../libuna/libuna_codepage_windows_1255.c | 78 - .../libuna/libuna_codepage_windows_1256.c | 83 - .../libuna/libuna_codepage_windows_1257.c | 88 - .../libuna/libuna_codepage_windows_1258.c | 69 - .../libuna/libuna_codepage_windows_874.c | 70 - .../libesedb-20210424/m4/intlmacosx.m4 | 51 - libesedb-sys/libesedb-20210424/m4/lib-ld.m4 | 110 - .../libesedb-20210424/m4/lib-prefix.m4 | 224 - .../libesedb-20210424/ossfuzz/Makefile.am | 45 - libesedb-sys/libesedb-20230824/ABOUT-NLS | 1 + libesedb-sys/libesedb-20230824/AUTHORS | 4 + .../COPYING | 0 .../COPYING.LESSER | 0 .../ChangeLog | 2 +- .../INSTALL | 6 +- .../Makefile.am | 1 - .../Makefile.in | 59 +- .../NEWS | 0 .../README | 0 .../acinclude.m4 | 0 .../aclocal.m4 | 142 +- .../common/Makefile.am | 0 .../common/Makefile.in | 53 +- .../common/byte_stream.h | 2 +- .../common/common.h | 2 +- .../common/config.h | 46 +- .../common/config.h.in | 28 +- .../common/config_borlandc.h | 2 +- .../common/config_msc.h | 2 +- .../common/config_winapi.h | 7 +- .../common/file_stream.h | 2 +- .../common/memory.h | 2 +- .../common/narrow_string.h | 2 +- .../common/system_string.h | 2 +- .../common/types.h | 17 +- .../common/types.h.in | 17 +- .../common/wide_string.h | 2 +- .../compile | 2 +- .../config.guess | 550 +- .../config.rpath | 120 +- .../config.sub | 696 +- .../configure | 49346 +++++++++------- .../configure.ac | 9 +- .../depcomp | 2 +- libesedb-sys/libesedb-20230824/dpkg/changelog | 5 + .../dpkg/changelog.in | 0 libesedb-sys/libesedb-20230824/dpkg/compat | 1 + .../dpkg/control | 19 +- .../dpkg/copyright | 2 +- .../dpkg/libesedb-dev.install | 0 .../dpkg/libesedb-python3.install | 0 .../dpkg/libesedb-tools.install | 0 .../dpkg/libesedb.install | 0 .../dpkg/rules | 9 +- .../dpkg/source/format | 0 .../esedbtools/Makefile.am | 0 .../esedbtools/Makefile.in | 53 +- .../esedbtools/database_types.c | 2 +- .../esedbtools/database_types.h | 2 +- .../esedbtools/esedbexport.c | 2 +- .../esedbtools/esedbinfo.c | 2 +- .../esedbtools/esedbtools_getopt.c | 2 +- .../esedbtools/esedbtools_getopt.h | 2 +- .../esedbtools/esedbtools_i18n.h | 2 +- .../esedbtools/esedbtools_libbfio.h | 2 +- .../esedbtools/esedbtools_libcdata.h | 2 +- .../esedbtools/esedbtools_libcerror.h | 2 +- .../esedbtools/esedbtools_libcfile.h | 2 +- .../esedbtools/esedbtools_libclocale.h | 2 +- .../esedbtools/esedbtools_libcnotify.h | 2 +- .../esedbtools/esedbtools_libcpath.h | 2 +- .../esedbtools/esedbtools_libesedb.h | 2 +- .../esedbtools/esedbtools_libfdatetime.h | 2 +- .../esedbtools/esedbtools_libfguid.h | 2 +- .../esedbtools/esedbtools_libfmapi.h | 2 +- .../esedbtools/esedbtools_libfvalue.h | 2 +- .../esedbtools/esedbtools_libfwnt.h | 2 +- .../esedbtools/esedbtools_libuna.h | 2 +- .../esedbtools/esedbtools_output.c | 4 +- .../esedbtools/esedbtools_output.h | 2 +- .../esedbtools/esedbtools_signal.c | 2 +- .../esedbtools/esedbtools_signal.h | 2 +- .../esedbtools/esedbtools_system_string.c | 2 +- .../esedbtools/esedbtools_system_string.h | 2 +- .../esedbtools/esedbtools_unused.h | 2 +- .../esedbtools/exchange.c | 0 .../esedbtools/exchange.h | 0 .../esedbtools/export.c | 0 .../esedbtools/export.h | 0 .../esedbtools/export_handle.c | 2 +- .../esedbtools/export_handle.h | 2 +- .../esedbtools/info_handle.c | 2 +- .../esedbtools/info_handle.h | 2 +- .../esedbtools/log_handle.c | 2 +- .../esedbtools/log_handle.h | 2 +- .../esedbtools/srumdb.c | 2 +- .../esedbtools/srumdb.h | 2 +- .../esedbtools/webcache.c | 2 +- .../esedbtools/webcache.h | 2 +- .../esedbtools/windows_search.c | 2 +- .../esedbtools/windows_search.h | 2 +- .../esedbtools/windows_search_compression.c | 2 +- .../esedbtools/windows_search_compression.h | 2 +- .../esedbtools/windows_security.c | 2 +- .../esedbtools/windows_security.h | 2 +- .../include/Makefile.am | 0 .../include/Makefile.in | 53 +- .../include/libesedb.h | 2 +- .../include/libesedb.h.in | 2 +- .../include/libesedb/codepage.h | 2 +- .../include/libesedb/definitions.h | 6 +- .../include/libesedb/definitions.h.in | 2 +- .../include/libesedb/error.h | 2 +- .../include/libesedb/extern.h | 2 +- .../include/libesedb/features.h | 2 +- .../include/libesedb/features.h.in | 2 +- .../include/libesedb/types.h | 2 +- .../include/libesedb/types.h.in | 2 +- .../install-sh | 148 +- .../libbfio/Makefile.am | 0 .../libbfio/Makefile.in | 53 +- .../libbfio/libbfio_codepage.h | 2 +- .../libbfio/libbfio_definitions.h | 6 +- .../libbfio/libbfio_error.c | 2 +- .../libbfio/libbfio_error.h | 2 +- .../libbfio/libbfio_extern.h | 2 +- .../libbfio/libbfio_file.c | 2 +- .../libbfio/libbfio_file.h | 2 +- .../libbfio/libbfio_file_io_handle.c | 38 +- .../libbfio/libbfio_file_io_handle.h | 2 +- .../libbfio/libbfio_file_pool.c | 2 +- .../libbfio/libbfio_file_pool.h | 2 +- .../libbfio/libbfio_file_range.c | 2 +- .../libbfio/libbfio_file_range.h | 2 +- .../libbfio/libbfio_file_range_io_handle.c | 2 +- .../libbfio/libbfio_file_range_io_handle.h | 2 +- .../libbfio/libbfio_handle.c | 30 +- .../libbfio/libbfio_handle.h | 2 +- .../libbfio/libbfio_libcdata.h | 2 +- .../libbfio/libbfio_libcerror.h | 2 +- .../libbfio/libbfio_libcfile.h | 2 +- .../libbfio/libbfio_libclocale.h | 2 +- .../libbfio/libbfio_libcpath.h | 2 +- .../libbfio/libbfio_libcthreads.h | 2 +- .../libbfio/libbfio_libuna.h | 2 +- .../libbfio/libbfio_memory_range.c | 2 +- .../libbfio/libbfio_memory_range.h | 2 +- .../libbfio/libbfio_memory_range_io_handle.c | 2 +- .../libbfio/libbfio_memory_range_io_handle.h | 2 +- .../libbfio/libbfio_pool.c | 141 +- .../libbfio/libbfio_pool.h | 2 +- .../libbfio/libbfio_support.c | 2 +- .../libbfio/libbfio_support.h | 2 +- .../libbfio/libbfio_system_string.c | 2 +- .../libbfio/libbfio_system_string.h | 2 +- .../libbfio/libbfio_types.h | 2 +- .../libbfio/libbfio_unused.h | 2 +- .../libcdata/Makefile.am | 0 .../libcdata/Makefile.in | 53 +- .../libcdata/libcdata_array.c | 10 +- .../libcdata/libcdata_array.h | 2 +- .../libcdata/libcdata_btree.c | 2 +- .../libcdata/libcdata_btree.h | 2 +- .../libcdata/libcdata_btree_node.c | 2 +- .../libcdata/libcdata_btree_node.h | 2 +- .../libcdata/libcdata_btree_values_list.c | 2 +- .../libcdata/libcdata_btree_values_list.h | 2 +- .../libcdata/libcdata_definitions.h | 6 +- .../libcdata/libcdata_error.c | 2 +- .../libcdata/libcdata_error.h | 2 +- .../libcdata/libcdata_extern.h | 6 +- .../libcdata/libcdata_libcerror.h | 2 +- .../libcdata/libcdata_libcthreads.h | 2 +- .../libcdata/libcdata_list.c | 195 +- .../libcdata/libcdata_list.h | 26 +- .../libcdata/libcdata_list_element.c | 2 +- .../libcdata/libcdata_list_element.h | 2 +- .../libcdata/libcdata_range_list.c | 172 +- .../libcdata/libcdata_range_list.h | 9 +- .../libcdata/libcdata_range_list_value.c | 2 +- .../libcdata/libcdata_range_list_value.h | 2 +- .../libcdata/libcdata_support.c | 2 +- .../libcdata/libcdata_support.h | 2 +- .../libcdata/libcdata_tree_node.c | 2 +- .../libcdata/libcdata_tree_node.h | 2 +- .../libcdata/libcdata_types.h | 2 +- .../libcdata/libcdata_unused.h | 2 +- .../libcerror/Makefile.am | 0 .../libcerror/Makefile.in | 53 +- .../libcerror/libcerror_definitions.h | 6 +- .../libcerror/libcerror_error.c | 2 +- .../libcerror/libcerror_error.h | 2 +- .../libcerror/libcerror_extern.h | 4 +- .../libcerror/libcerror_support.c | 2 +- .../libcerror/libcerror_support.h | 2 +- .../libcerror/libcerror_system.c | 2 +- .../libcerror/libcerror_system.h | 2 +- .../libcerror/libcerror_types.h | 2 +- .../libcerror/libcerror_unused.h | 2 +- .../libcfile/Makefile.am | 0 .../libcfile/Makefile.in | 53 +- .../libcfile/libcfile_definitions.h | 6 +- .../libcfile/libcfile_error.c | 2 +- .../libcfile/libcfile_error.h | 2 +- .../libcfile/libcfile_extern.h | 2 +- .../libcfile/libcfile_file.c | 2 +- .../libcfile/libcfile_file.h | 2 +- .../libcfile/libcfile_libcerror.h | 2 +- .../libcfile/libcfile_libclocale.h | 2 +- .../libcfile/libcfile_libcnotify.h | 2 +- .../libcfile/libcfile_libuna.h | 2 +- .../libcfile/libcfile_notify.c | 2 +- .../libcfile/libcfile_notify.h | 2 +- .../libcfile/libcfile_support.c | 2 +- .../libcfile/libcfile_support.h | 2 +- .../libcfile/libcfile_system_string.c | 2 +- .../libcfile/libcfile_system_string.h | 2 +- .../libcfile/libcfile_types.h | 2 +- .../libcfile/libcfile_unused.h | 2 +- .../libcfile/libcfile_winapi.c | 2 +- .../libcfile/libcfile_winapi.h | 2 +- .../libclocale/Makefile.am | 0 .../libclocale/Makefile.in | 53 +- .../libclocale/libclocale_codepage.c | 2 +- .../libclocale/libclocale_codepage.h | 2 +- .../libclocale/libclocale_definitions.h | 6 +- .../libclocale/libclocale_extern.h | 6 +- .../libclocale/libclocale_libcerror.h | 2 +- .../libclocale/libclocale_locale.c | 2 +- .../libclocale/libclocale_locale.h | 2 +- .../libclocale/libclocale_support.c | 4 +- .../libclocale/libclocale_support.h | 2 +- .../libclocale/libclocale_unused.h | 2 +- .../libclocale/libclocale_wide_string.c | 2 +- .../libclocale/libclocale_wide_string.h | 2 +- .../libcnotify/Makefile.am | 0 .../libcnotify/Makefile.in | 53 +- .../libcnotify/libcnotify_definitions.h | 6 +- .../libcnotify/libcnotify_extern.h | 6 +- .../libcnotify/libcnotify_libcerror.h | 2 +- .../libcnotify/libcnotify_print.c | 2 +- .../libcnotify/libcnotify_print.h | 2 +- .../libcnotify/libcnotify_stream.c | 2 +- .../libcnotify/libcnotify_stream.h | 2 +- .../libcnotify/libcnotify_support.c | 2 +- .../libcnotify/libcnotify_support.h | 2 +- .../libcnotify/libcnotify_unused.h | 2 +- .../libcnotify/libcnotify_verbose.c | 2 +- .../libcnotify/libcnotify_verbose.h | 2 +- .../libcpath/Makefile.am | 0 .../libcpath/Makefile.in | 53 +- .../libcpath/libcpath_definitions.h | 6 +- .../libcpath/libcpath_error.c | 2 +- .../libcpath/libcpath_error.h | 2 +- .../libcpath/libcpath_extern.h | 6 +- .../libcpath/libcpath_libcerror.h | 2 +- .../libcpath/libcpath_libclocale.h | 2 +- .../libcpath/libcpath_libcsplit.h | 6 +- .../libcpath/libcpath_libuna.h | 2 +- .../libcpath/libcpath_path.c | 2 +- .../libcpath/libcpath_path.h | 2 +- .../libcpath/libcpath_support.c | 2 +- .../libcpath/libcpath_support.h | 2 +- .../libcpath/libcpath_system_string.c | 2 +- .../libcpath/libcpath_system_string.h | 2 +- .../libcpath/libcpath_unused.h | 2 +- .../libcsplit/Makefile.am | 0 .../libcsplit/Makefile.in | 53 +- .../libcsplit/libcsplit_definitions.h | 6 +- .../libcsplit/libcsplit_error.c | 2 +- .../libcsplit/libcsplit_error.h | 2 +- .../libcsplit/libcsplit_extern.h | 6 +- .../libcsplit/libcsplit_libcerror.h | 2 +- .../libcsplit/libcsplit_narrow_split_string.c | 2 +- .../libcsplit/libcsplit_narrow_split_string.h | 2 +- .../libcsplit/libcsplit_narrow_string.c | 2 +- .../libcsplit/libcsplit_narrow_string.h | 2 +- .../libcsplit/libcsplit_support.c | 2 +- .../libcsplit/libcsplit_support.h | 2 +- .../libcsplit/libcsplit_types.h | 2 +- .../libcsplit/libcsplit_unused.h | 2 +- .../libcsplit/libcsplit_wide_split_string.c | 2 +- .../libcsplit/libcsplit_wide_split_string.h | 2 +- .../libcsplit/libcsplit_wide_string.c | 2 +- .../libcsplit/libcsplit_wide_string.h | 2 +- .../libcthreads/Makefile.am | 0 .../libcthreads/Makefile.in | 53 +- .../libcthreads/libcthreads_condition.c | 11 +- .../libcthreads/libcthreads_condition.h | 4 +- .../libcthreads/libcthreads_definitions.h | 6 +- .../libcthreads/libcthreads_error.c | 2 +- .../libcthreads/libcthreads_error.h | 2 +- .../libcthreads/libcthreads_extern.h | 6 +- .../libcthreads/libcthreads_libcerror.h | 2 +- .../libcthreads/libcthreads_lock.c | 2 +- .../libcthreads/libcthreads_lock.h | 2 +- .../libcthreads/libcthreads_mutex.c | 4 +- .../libcthreads/libcthreads_mutex.h | 2 +- .../libcthreads/libcthreads_queue.c | 2 +- .../libcthreads/libcthreads_queue.h | 2 +- .../libcthreads/libcthreads_read_write_lock.c | 4 +- .../libcthreads/libcthreads_read_write_lock.h | 4 +- .../libcthreads_repeating_thread.c | 4 +- .../libcthreads_repeating_thread.h | 2 +- .../libcthreads/libcthreads_support.c | 2 +- .../libcthreads/libcthreads_support.h | 2 +- .../libcthreads/libcthreads_thread.c | 4 +- .../libcthreads/libcthreads_thread.h | 2 +- .../libcthreads_thread_attributes.c | 2 +- .../libcthreads_thread_attributes.h | 2 +- .../libcthreads/libcthreads_thread_pool.c | 4 +- .../libcthreads/libcthreads_thread_pool.h | 4 +- .../libcthreads/libcthreads_types.h | 2 +- .../libcthreads/libcthreads_unused.h | 2 +- .../libesedb.pc.in | 0 .../libesedb.spec | 41 +- .../libesedb.spec.in | 37 +- .../libesedb/Makefile.am | 3 + .../libesedb/Makefile.in | 72 +- .../libesedb/esedb_file_header.h | 2 +- .../libesedb/esedb_page.h | 2 +- .../libesedb/esedb_page_values.h | 2 +- .../libesedb/libesedb.c | 2 +- .../libesedb/libesedb.rc | 6 +- .../libesedb/libesedb.rc.in | 2 +- .../libesedb/libesedb_block_descriptor.c | 131 + .../libesedb/libesedb_block_descriptor.h | 56 + .../libesedb/libesedb_block_tree.c | 474 + .../libesedb/libesedb_block_tree.h | 83 + .../libesedb/libesedb_block_tree_node.c | 613 + .../libesedb/libesedb_block_tree_node.h | 109 + .../libesedb/libesedb_catalog.c | 101 +- .../libesedb/libesedb_catalog.h | 7 +- .../libesedb/libesedb_catalog_definition.c | 8 +- .../libesedb/libesedb_catalog_definition.h | 2 +- .../libesedb/libesedb_checksum.c | 2 +- .../libesedb/libesedb_checksum.h | 2 +- .../libesedb/libesedb_codepage.c | 2 +- .../libesedb/libesedb_codepage.h | 2 +- .../libesedb/libesedb_column.c | 2 +- .../libesedb/libesedb_column.h | 2 +- .../libesedb/libesedb_column_type.c | 2 +- .../libesedb/libesedb_column_type.h | 2 +- .../libesedb/libesedb_compression.c | 2 +- .../libesedb/libesedb_compression.h | 2 +- .../libesedb/libesedb_data_definition.c | 123 +- .../libesedb/libesedb_data_definition.h | 2 +- .../libesedb/libesedb_data_segment.c | 2 +- .../libesedb/libesedb_data_segment.h | 2 +- .../libesedb/libesedb_database.c | 80 +- .../libesedb/libesedb_database.h | 7 +- .../libesedb/libesedb_debug.c | 2 +- .../libesedb/libesedb_debug.h | 2 +- .../libesedb/libesedb_definitions.h | 11 +- .../libesedb/libesedb_definitions.h.in | 7 +- .../libesedb/libesedb_error.c | 2 +- .../libesedb/libesedb_error.h | 2 +- .../libesedb/libesedb_extern.h | 2 +- .../libesedb/libesedb_file.c | 2 +- .../libesedb/libesedb_file.h | 2 +- .../libesedb/libesedb_file_header.c | 78 +- .../libesedb/libesedb_file_header.h | 6 +- .../libesedb/libesedb_i18n.c | 9 +- .../libesedb/libesedb_i18n.h | 4 +- .../libesedb/libesedb_index.c | 2 +- .../libesedb/libesedb_index.h | 2 +- .../libesedb/libesedb_io_handle.c | 3 +- .../libesedb/libesedb_io_handle.h | 6 +- .../libesedb/libesedb_lcid.c | 2 +- .../libesedb/libesedb_lcid.h | 2 +- .../libesedb/libesedb_leaf_page_descriptor.c | 2 +- .../libesedb/libesedb_leaf_page_descriptor.h | 2 +- .../libesedb/libesedb_libbfio.h | 2 +- .../libesedb/libesedb_libcdata.h | 2 +- .../libesedb/libesedb_libcerror.h | 2 +- .../libesedb/libesedb_libclocale.h | 2 +- .../libesedb/libesedb_libcnotify.h | 2 +- .../libesedb/libesedb_libfcache.h | 2 +- .../libesedb/libesedb_libfdata.h | 4 +- .../libesedb/libesedb_libfvalue.h | 2 +- .../libesedb/libesedb_libfwnt.h | 2 +- .../libesedb/libesedb_libuna.h | 2 +- .../libesedb/libesedb_long_value.c | 2 +- .../libesedb/libesedb_long_value.h | 2 +- .../libesedb/libesedb_multi_value.c | 2 +- .../libesedb/libesedb_multi_value.h | 2 +- .../libesedb/libesedb_notify.c | 2 +- .../libesedb/libesedb_notify.h | 2 +- .../libesedb/libesedb_page.c | 2 +- .../libesedb/libesedb_page.h | 2 +- .../libesedb/libesedb_page_header.c | 2 +- .../libesedb/libesedb_page_header.h | 2 +- .../libesedb/libesedb_page_tree.c | 160 +- .../libesedb/libesedb_page_tree.h | 14 +- .../libesedb/libesedb_page_tree_key.c | 2 +- .../libesedb/libesedb_page_tree_key.h | 2 +- .../libesedb/libesedb_page_tree_value.c | 2 +- .../libesedb/libesedb_page_tree_value.h | 2 +- .../libesedb/libesedb_page_value.c | 2 +- .../libesedb/libesedb_page_value.h | 2 +- .../libesedb/libesedb_record.c | 7 +- .../libesedb/libesedb_record.h | 2 +- .../libesedb/libesedb_record_value.c | 2 +- .../libesedb/libesedb_record_value.h | 3 +- .../libesedb/libesedb_root_page_header.c | 2 +- .../libesedb/libesedb_root_page_header.h | 2 +- .../libesedb/libesedb_space_tree.c | 2 +- .../libesedb/libesedb_space_tree.h | 2 +- .../libesedb/libesedb_space_tree_value.c | 2 +- .../libesedb/libesedb_space_tree_value.h | 2 +- .../libesedb/libesedb_support.c | 2 +- .../libesedb/libesedb_support.h | 2 +- .../libesedb/libesedb_table.c | 2 +- .../libesedb/libesedb_table.h | 2 +- .../libesedb/libesedb_table_definition.c | 2 +- .../libesedb/libesedb_table_definition.h | 2 +- .../libesedb/libesedb_types.h | 2 +- .../libesedb/libesedb_unused.h | 2 +- .../libesedb/libesedb_value_data_handle.c | 2 +- .../libesedb/libesedb_value_data_handle.h | 2 +- .../libfcache/Makefile.am | 0 .../libfcache/Makefile.in | 53 +- .../libfcache/libfcache_cache.c | 2 +- .../libfcache/libfcache_cache.h | 2 +- .../libfcache/libfcache_cache_value.c | 2 +- .../libfcache/libfcache_cache_value.h | 2 +- .../libfcache/libfcache_date_time.c | 11 +- .../libfcache/libfcache_date_time.h | 2 +- .../libfcache/libfcache_definitions.h | 10 +- .../libfcache/libfcache_error.c | 2 +- .../libfcache/libfcache_error.h | 2 +- .../libfcache/libfcache_extern.h | 6 +- .../libfcache/libfcache_libcdata.h | 2 +- .../libfcache/libfcache_libcerror.h | 2 +- .../libfcache/libfcache_support.c | 2 +- .../libfcache/libfcache_support.h | 2 +- .../libfcache/libfcache_types.h | 2 +- .../libfcache/libfcache_unused.h | 2 +- .../libfdata/Makefile.am | 2 - .../libfdata/Makefile.in | 70 +- .../libfdata/libfdata_area.c | 2 +- .../libfdata/libfdata_area.h | 2 +- .../libfdata/libfdata_cache.c | 2 +- .../libfdata/libfdata_cache.h | 2 +- .../libfdata/libfdata_definitions.h | 6 +- .../libfdata/libfdata_error.c | 2 +- .../libfdata/libfdata_error.h | 2 +- .../libfdata/libfdata_extern.h | 4 +- .../libfdata/libfdata_libcdata.h | 2 +- .../libfdata/libfdata_libcerror.h | 2 +- .../libfdata/libfdata_libcnotify.h | 2 +- .../libfdata/libfdata_libfcache.h | 2 +- .../libfdata/libfdata_list.c | 13 +- .../libfdata/libfdata_list.h | 2 +- .../libfdata/libfdata_list_element.c | 2 +- .../libfdata/libfdata_list_element.h | 3 +- .../libfdata/libfdata_mapped_range.c | 2 +- .../libfdata/libfdata_mapped_range.h | 2 +- .../libfdata/libfdata_notify.c | 2 +- .../libfdata/libfdata_notify.h | 2 +- .../libfdata/libfdata_range.c | 2 +- .../libfdata/libfdata_range.h | 2 +- .../libfdata/libfdata_range_list.c | 2 +- .../libfdata/libfdata_range_list.h | 2 +- .../libfdata/libfdata_segments_array.c | 2 +- .../libfdata/libfdata_segments_array.h | 2 +- .../libfdata/libfdata_stream.c | 104 +- .../libfdata/libfdata_stream.h | 2 +- .../libfdata/libfdata_support.c | 2 +- .../libfdata/libfdata_support.h | 2 +- .../libfdata/libfdata_types.h | 6 +- .../libfdata/libfdata_unused.h | 2 +- .../libfdata/libfdata_vector.c | 2 +- .../libfdata/libfdata_vector.h | 2 +- .../libfdatetime/Makefile.am | 0 .../libfdatetime/Makefile.in | 53 +- .../libfdatetime_date_time_values.c | 8 +- .../libfdatetime_date_time_values.h | 8 +- .../libfdatetime/libfdatetime_definitions.h | 12 +- .../libfdatetime/libfdatetime_error.c | 8 +- .../libfdatetime/libfdatetime_error.h | 8 +- .../libfdatetime/libfdatetime_extern.h | 12 +- .../libfdatetime/libfdatetime_fat_date_time.c | 8 +- .../libfdatetime/libfdatetime_fat_date_time.h | 8 +- .../libfdatetime/libfdatetime_filetime.c | 8 +- .../libfdatetime/libfdatetime_filetime.h | 8 +- .../libfdatetime/libfdatetime_floatingtime.c | 8 +- .../libfdatetime/libfdatetime_floatingtime.h | 8 +- .../libfdatetime/libfdatetime_hfs_time.c | 8 +- .../libfdatetime/libfdatetime_hfs_time.h | 8 +- .../libfdatetime/libfdatetime_libcerror.h | 8 +- .../libfdatetime/libfdatetime_nsf_timedate.c | 8 +- .../libfdatetime/libfdatetime_nsf_timedate.h | 8 +- .../libfdatetime/libfdatetime_posix_time.c | 8 +- .../libfdatetime/libfdatetime_posix_time.h | 8 +- .../libfdatetime/libfdatetime_support.c | 8 +- .../libfdatetime/libfdatetime_support.h | 8 +- .../libfdatetime/libfdatetime_systemtime.c | 8 +- .../libfdatetime/libfdatetime_systemtime.h | 8 +- .../libfdatetime/libfdatetime_types.h | 8 +- .../libfdatetime/libfdatetime_unused.h | 16 +- .../libfguid/Makefile.am | 2 +- .../libfguid/Makefile.in | 55 +- .../libfguid/libfguid_definitions.h | 12 +- .../libfguid/libfguid_error.c | 8 +- .../libfguid/libfguid_error.h | 8 +- .../libfguid/libfguid_extern.h | 19 +- .../libfguid/libfguid_identifier.c | 8 +- .../libfguid/libfguid_identifier.h | 8 +- .../libfguid/libfguid_libcerror.h | 8 +- .../libfguid/libfguid_support.c | 8 +- .../libfguid/libfguid_support.h | 8 +- .../libfguid/libfguid_types.h | 8 +- .../libfguid/libfguid_unused.h | 16 +- .../libfmapi/Makefile.am | 2 +- .../libfmapi/Makefile.in | 55 +- .../libfmapi/libfmapi_checksum.c | 56 +- .../libfmapi/libfmapi_checksum.h | 17 +- .../libfmapi/libfmapi_class_identifier.c | 8 +- .../libfmapi/libfmapi_class_identifier.h | 8 +- .../libfmapi/libfmapi_codepage.c | 10 +- .../libfmapi/libfmapi_codepage.h | 8 +- .../libfmapi/libfmapi_debug.c | 12 +- .../libfmapi/libfmapi_debug.h | 8 +- .../libfmapi/libfmapi_definitions.h | 12 +- .../libfmapi/libfmapi_entry_identifier.c | 63 +- .../libfmapi/libfmapi_entry_identifier.h | 20 +- .../libfmapi/libfmapi_error.c | 8 +- .../libfmapi/libfmapi_error.h | 8 +- .../libfmapi/libfmapi_extern.h | 21 +- .../libfmapi/libfmapi_libcerror.h | 8 +- .../libfmapi/libfmapi_libcnotify.h | 8 +- .../libfmapi/libfmapi_libfdatetime.h | 8 +- .../libfmapi/libfmapi_libfguid.h | 8 +- .../libfmapi/libfmapi_libfwnt.h | 11 +- .../libfmapi/libfmapi_libuna.h | 8 +- .../libfmapi/libfmapi_lzfu.c | 291 +- .../libfmapi/libfmapi_lzfu.h | 26 +- .../libfmapi_one_off_entry_identifier.c | 314 +- .../libfmapi_one_off_entry_identifier.h | 22 +- .../libfmapi/libfmapi_property_type.c | 8 +- .../libfmapi/libfmapi_property_type.h | 8 +- .../libfmapi_service_provider_identifier.c | 8 +- .../libfmapi_service_provider_identifier.h | 8 +- .../libfmapi/libfmapi_support.c | 8 +- .../libfmapi/libfmapi_support.h | 8 +- .../libfmapi/libfmapi_types.h | 8 +- .../libfmapi/libfmapi_unused.h | 16 +- .../libfmapi/libfmapi_value_type.c | 8 +- .../libfmapi/libfmapi_value_type.h | 8 +- .../libfmapi_x400_object_identifier.h | 8 +- .../libfvalue/Makefile.am | 0 .../libfvalue/Makefile.in | 53 +- .../libfvalue/libfvalue_binary_data.c | 2 +- .../libfvalue/libfvalue_binary_data.h | 2 +- .../libfvalue/libfvalue_codepage.h | 2 +- .../libfvalue/libfvalue_data_handle.c | 2 +- .../libfvalue/libfvalue_data_handle.h | 2 +- .../libfvalue/libfvalue_definitions.h | 6 +- .../libfvalue/libfvalue_error.c | 2 +- .../libfvalue/libfvalue_error.h | 2 +- .../libfvalue/libfvalue_extern.h | 4 +- .../libfvalue/libfvalue_filetime.c | 2 +- .../libfvalue/libfvalue_filetime.h | 2 +- .../libfvalue/libfvalue_floating_point.c | 2 +- .../libfvalue/libfvalue_floating_point.h | 2 +- .../libfvalue/libfvalue_integer.c | 2 +- .../libfvalue/libfvalue_integer.h | 2 +- .../libfvalue/libfvalue_libcdata.h | 2 +- .../libfvalue/libfvalue_libcerror.h | 2 +- .../libfvalue/libfvalue_libcnotify.h | 2 +- .../libfvalue/libfvalue_libfdatetime.h | 2 +- .../libfvalue/libfvalue_libfguid.h | 2 +- .../libfvalue/libfvalue_libfwnt.h | 2 +- .../libfvalue/libfvalue_libuna.h | 2 +- .../libfvalue/libfvalue_split_utf16_string.c | 2 +- .../libfvalue/libfvalue_split_utf16_string.h | 2 +- .../libfvalue/libfvalue_split_utf8_string.c | 2 +- .../libfvalue/libfvalue_split_utf8_string.h | 2 +- .../libfvalue/libfvalue_string.c | 2 +- .../libfvalue/libfvalue_string.h | 2 +- .../libfvalue/libfvalue_support.c | 2 +- .../libfvalue/libfvalue_support.h | 2 +- .../libfvalue/libfvalue_table.c | 2 +- .../libfvalue/libfvalue_table.h | 2 +- .../libfvalue/libfvalue_types.h | 2 +- .../libfvalue/libfvalue_unused.h | 2 +- .../libfvalue/libfvalue_utf16_string.c | 2 +- .../libfvalue/libfvalue_utf16_string.h | 2 +- .../libfvalue/libfvalue_utf8_string.c | 2 +- .../libfvalue/libfvalue_utf8_string.h | 2 +- .../libfvalue/libfvalue_value.c | 2 +- .../libfvalue/libfvalue_value.h | 2 +- .../libfvalue/libfvalue_value_entry.c | 2 +- .../libfvalue/libfvalue_value_entry.h | 2 +- .../libfvalue/libfvalue_value_type.c | 2 +- .../libfvalue/libfvalue_value_type.h | 2 +- .../libfwnt/Makefile.am | 1 + .../libfwnt/Makefile.in | 69 +- .../libfwnt/libfwnt_access_control_entry.c | 2 +- .../libfwnt/libfwnt_access_control_entry.h | 2 +- .../libfwnt/libfwnt_access_control_list.c | 2 +- .../libfwnt/libfwnt_access_control_list.h | 2 +- .../libfwnt/libfwnt_bit_stream.c | 2 +- .../libfwnt/libfwnt_bit_stream.h | 2 +- .../libfwnt/libfwnt_debug.c | 2 +- .../libfwnt/libfwnt_debug.h | 2 +- .../libfwnt/libfwnt_definitions.h | 6 +- .../libfwnt/libfwnt_error.c | 2 +- .../libfwnt/libfwnt_error.h | 2 +- .../libfwnt/libfwnt_extern.h | 6 +- .../libfwnt/libfwnt_huffman_tree.c | 2 +- .../libfwnt/libfwnt_huffman_tree.h | 2 +- .../libfwnt/libfwnt_libcdata.h | 2 +- .../libfwnt/libfwnt_libcerror.h | 2 +- .../libfwnt/libfwnt_libcnotify.h | 8 +- .../libfwnt/libfwnt_locale_identifier.c | 2 +- .../libfwnt/libfwnt_locale_identifier.h | 2 +- .../libfwnt/libfwnt_lznt1.c | 93 +- .../libfwnt/libfwnt_lznt1.h | 10 +- .../libfwnt/libfwnt_lzx.c | 2 +- .../libfwnt/libfwnt_lzx.h | 2 +- .../libfwnt/libfwnt_lzxpress.c | 8 +- .../libfwnt/libfwnt_lzxpress.h | 2 +- .../libfwnt/libfwnt_notify.c | 120 + .../libfwnt/libfwnt_notify.h | 63 + .../libfwnt/libfwnt_security_descriptor.c | 85 +- .../libfwnt/libfwnt_security_descriptor.h | 10 +- .../libfwnt/libfwnt_security_identifier.c | 2 +- .../libfwnt/libfwnt_security_identifier.h | 2 +- .../libfwnt/libfwnt_support.c | 2 +- .../libfwnt/libfwnt_support.h | 2 +- .../libfwnt/libfwnt_types.h | 2 +- .../libfwnt/libfwnt_unused.h | 2 +- .../libmapidb/Makefile.am | 0 .../libmapidb/Makefile.in | 53 +- .../libmapidb/libmapidb_database.c | 0 .../libmapidb/libmapidb_database.h | 0 .../libmapidb/libmapidb_definitions.h | 0 .../libmapidb/libmapidb_error.c | 0 .../libmapidb/libmapidb_error.h | 0 .../libmapidb/libmapidb_extern.h | 0 .../libmapidb/libmapidb_folder.c | 0 .../libmapidb/libmapidb_folder.h | 0 .../libmapidb/libmapidb_libcerror.h | 0 .../libmapidb/libmapidb_libcnotify.h | 0 .../libmapidb/libmapidb_support.c | 0 .../libmapidb/libmapidb_support.h | 0 .../libmapidb/libmapidb_types.h | 0 .../libmapidb/libmapidb_unused.h | 0 .../libuna/Makefile.am | 18 + .../libuna/Makefile.in | 165 +- .../libuna/libuna_base16_stream.c | 2 +- .../libuna/libuna_base16_stream.h | 2 +- .../libuna/libuna_base32_stream.c | 2 +- .../libuna/libuna_base32_stream.h | 2 +- .../libuna/libuna_base64_stream.c | 2 +- .../libuna/libuna_base64_stream.h | 2 +- .../libuna/libuna_byte_stream.c | 2 +- .../libuna/libuna_byte_stream.h | 2 +- .../libuna/libuna_codepage_iso_8859_10.c | 2 +- .../libuna/libuna_codepage_iso_8859_10.h | 2 +- .../libuna/libuna_codepage_iso_8859_13.c | 2 +- .../libuna/libuna_codepage_iso_8859_13.h | 2 +- .../libuna/libuna_codepage_iso_8859_14.c | 2 +- .../libuna/libuna_codepage_iso_8859_14.h | 2 +- .../libuna/libuna_codepage_iso_8859_15.c | 2 +- .../libuna/libuna_codepage_iso_8859_15.h | 2 +- .../libuna/libuna_codepage_iso_8859_16.c | 2 +- .../libuna/libuna_codepage_iso_8859_16.h | 2 +- .../libuna/libuna_codepage_iso_8859_2.c | 2 +- .../libuna/libuna_codepage_iso_8859_2.h | 2 +- .../libuna/libuna_codepage_iso_8859_3.c | 2 +- .../libuna/libuna_codepage_iso_8859_3.h | 2 +- .../libuna/libuna_codepage_iso_8859_4.c | 2 +- .../libuna/libuna_codepage_iso_8859_4.h | 2 +- .../libuna/libuna_codepage_iso_8859_5.c | 2 +- .../libuna/libuna_codepage_iso_8859_5.h | 2 +- .../libuna/libuna_codepage_iso_8859_6.c | 2 +- .../libuna/libuna_codepage_iso_8859_6.h | 2 +- .../libuna/libuna_codepage_iso_8859_7.c | 2 +- .../libuna/libuna_codepage_iso_8859_7.h | 2 +- .../libuna/libuna_codepage_iso_8859_8.c | 2 +- .../libuna/libuna_codepage_iso_8859_8.h | 2 +- .../libuna/libuna_codepage_iso_8859_9.c | 2 +- .../libuna/libuna_codepage_iso_8859_9.h | 2 +- .../libuna/libuna_codepage_koi8_r.c | 392 + .../libuna/libuna_codepage_koi8_r.h | 26 +- .../libuna/libuna_codepage_koi8_u.c | 424 + .../libuna/libuna_codepage_koi8_u.h | 26 +- .../libuna/libuna_codepage_mac_arabic.c | 352 + .../libuna/libuna_codepage_mac_arabic.h | 54 + .../libuna/libuna_codepage_mac_celtic.c | 395 + .../libuna/libuna_codepage_mac_celtic.h | 54 + .../libuna_codepage_mac_centraleurroman.c | 319 + .../libuna_codepage_mac_centraleurroman.h | 54 + .../libuna/libuna_codepage_mac_croatian.c | 378 + .../libuna/libuna_codepage_mac_croatian.h | 54 + .../libuna/libuna_codepage_mac_cyrillic.c | 325 + .../libuna/libuna_codepage_mac_cyrillic.h | 54 + .../libuna/libuna_codepage_mac_dingbats.c | 347 + .../libuna/libuna_codepage_mac_dingbats.h | 54 + .../libuna/libuna_codepage_mac_farsi.c | 372 + .../libuna/libuna_codepage_mac_farsi.h | 54 + .../libuna/libuna_codepage_mac_gaelic.c | 437 + .../libuna/libuna_codepage_mac_gaelic.h | 54 + .../libuna/libuna_codepage_mac_greek.c | 305 + .../libuna/libuna_codepage_mac_greek.h | 54 + .../libuna/libuna_codepage_mac_icelandic.c | 381 + .../libuna/libuna_codepage_mac_icelandic.h | 54 + .../libuna/libuna_codepage_mac_inuit.c | 380 + .../libuna/libuna_codepage_mac_inuit.h | 54 + .../libuna/libuna_codepage_mac_roman.c | 387 + .../libuna/libuna_codepage_mac_roman.h | 54 + .../libuna/libuna_codepage_mac_romanian.c | 396 + .../libuna/libuna_codepage_mac_romanian.h | 54 + .../libuna/libuna_codepage_mac_russian.c | 317 + .../libuna/libuna_codepage_mac_russian.h | 54 + .../libuna/libuna_codepage_mac_symbol.c | 537 + .../libuna/libuna_codepage_mac_symbol.h | 59 + .../libuna/libuna_codepage_mac_thai.c | 330 + .../libuna/libuna_codepage_mac_thai.h | 59 + .../libuna/libuna_codepage_mac_turkish.c | 397 + .../libuna/libuna_codepage_mac_turkish.h | 54 + .../libuna/libuna_codepage_mac_ukrainian.c | 321 + .../libuna/libuna_codepage_mac_ukrainian.h | 54 + .../libuna/libuna_codepage_windows_1250.c | 313 + .../libuna/libuna_codepage_windows_1250.h | 35 +- .../libuna/libuna_codepage_windows_1251.c | 301 + .../libuna/libuna_codepage_windows_1251.h | 29 +- .../libuna/libuna_codepage_windows_1252.c | 287 + .../libuna/libuna_codepage_windows_1252.h | 23 +- .../libuna/libuna_codepage_windows_1253.c | 291 + .../libuna/libuna_codepage_windows_1253.h | 29 +- .../libuna/libuna_codepage_windows_1254.c | 348 + .../libuna/libuna_codepage_windows_1254.h | 32 +- .../libuna/libuna_codepage_windows_1255.c | 328 + .../libuna/libuna_codepage_windows_1255.h | 32 +- .../libuna/libuna_codepage_windows_1256.c | 372 + .../libuna/libuna_codepage_windows_1256.h | 32 +- .../libuna/libuna_codepage_windows_1257.c | 303 + .../libuna/libuna_codepage_windows_1257.h | 26 +- .../libuna/libuna_codepage_windows_1258.c | 349 + .../libuna/libuna_codepage_windows_1258.h | 26 +- .../libuna/libuna_codepage_windows_874.c | 274 + .../libuna/libuna_codepage_windows_874.h | 26 +- .../libuna/libuna_codepage_windows_932.c | 257 +- .../libuna/libuna_codepage_windows_932.h | 6 +- .../libuna/libuna_codepage_windows_936.c | 435 +- .../libuna/libuna_codepage_windows_936.h | 6 +- .../libuna/libuna_codepage_windows_949.c | 389 +- .../libuna/libuna_codepage_windows_949.h | 6 +- .../libuna/libuna_codepage_windows_950.c | 436 +- .../libuna/libuna_codepage_windows_950.h | 6 +- .../libuna/libuna_definitions.h | 68 +- .../libuna/libuna_error.c | 2 +- .../libuna/libuna_error.h | 2 +- .../libuna/libuna_extern.h | 2 +- .../libuna/libuna_libcerror.h | 2 +- .../libuna/libuna_scsu.c | 2 +- .../libuna/libuna_scsu.h | 2 +- .../libuna/libuna_support.c | 2 +- .../libuna/libuna_support.h | 2 +- .../libuna/libuna_types.h | 2 +- .../libuna/libuna_unicode_character.c | 4600 +- .../libuna/libuna_unicode_character.h | 68 +- .../libuna/libuna_unused.h | 2 +- .../libuna/libuna_url_stream.c | 2 +- .../libuna/libuna_url_stream.h | 2 +- .../libuna/libuna_utf16_stream.c | 23 +- .../libuna/libuna_utf16_stream.h | 2 +- .../libuna/libuna_utf16_string.c | 210 +- .../libuna/libuna_utf16_string.h | 2 +- .../libuna/libuna_utf32_stream.c | 23 +- .../libuna/libuna_utf32_stream.h | 2 +- .../libuna/libuna_utf32_string.c | 210 +- .../libuna/libuna_utf32_string.h | 2 +- .../libuna/libuna_utf7_stream.c | 2 +- .../libuna/libuna_utf7_stream.h | 2 +- .../libuna/libuna_utf8_stream.c | 2 +- .../libuna/libuna_utf8_stream.h | 2 +- .../libuna/libuna_utf8_string.c | 170 +- .../libuna/libuna_utf8_string.h | 2 +- .../ltmain.sh | 869 +- .../m4/common.m4 | 0 .../m4/gettext.m4 | 155 +- .../libesedb-20230824/m4/host-cpu-c-abi.m4 | 675 + .../m4/iconv.m4 | 176 +- .../libesedb-20230824/m4/intlmacosx.m4 | 65 + libesedb-sys/libesedb-20230824/m4/lib-ld.m4 | 168 + .../m4/lib-link.m4 | 206 +- .../libesedb-20230824/m4/lib-prefix.m4 | 320 + .../m4/libbfio.m4 | 0 .../m4/libcdata.m4 | 21 +- .../m4/libcerror.m4 | 0 .../m4/libcfile.m4 | 0 .../m4/libclocale.m4 | 0 .../m4/libcnotify.m4 | 0 .../m4/libcpath.m4 | 0 .../m4/libcsplit.m4 | 0 .../m4/libcthreads.m4 | 0 .../m4/libfcache.m4 | 4 +- .../m4/libfdata.m4 | 5 +- .../m4/libfdatetime.m4 | 0 .../m4/libfguid.m4 | 0 .../m4/libfmapi.m4 | 16 +- .../m4/libfvalue.m4 | 0 .../m4/libfwnt.m4 | 0 .../m4/libmapidb.m4 | 0 .../m4/libtool.m4 | 235 +- .../m4/libuna.m4 | 296 +- .../m4/ltoptions.m4 | 4 +- .../m4/ltsugar.m4 | 2 +- .../m4/ltversion.m4 | 13 +- .../m4/lt~obsolete.m4 | 4 +- .../m4/nls.m4 | 14 +- .../m4/po.m4 | 93 +- .../m4/progtest.m4 | 29 +- .../m4/pthread.m4 | 0 .../m4/python.m4 | 16 +- .../m4/tests.m4 | 0 .../m4/types.m4 | 0 .../manuals/Makefile.am | 0 .../manuals/Makefile.in | 51 +- .../manuals/esedbinfo.1 | 0 .../manuals/libesedb.3 | 2 +- .../missing | 2 +- .../msvscpp/Makefile.am | 3 + .../msvscpp/Makefile.in | 54 +- .../esedb_test_block_descriptor.vcproj | 222 + .../esedb_test_block_tree.vcproj | 222 + .../esedb_test_block_tree_node.vcproj | 222 + .../esedb_test_catalog.vcproj | 0 .../esedb_test_catalog_definition.vcproj | 0 .../esedb_test_checksum.vcproj | 0 .../esedb_test_column.vcproj | 0 .../esedb_test_column_type.vcproj | 0 .../esedb_test_compression.vcproj | 0 .../esedb_test_data_definition.vcproj | 0 .../esedb_test_data_segment.vcproj | 0 .../esedb_test_database.vcproj | 0 .../esedb_test_error/esedb_test_error.vcproj | 0 .../esedb_test_file/esedb_test_file.vcproj | 0 .../esedb_test_file_header.vcproj | 0 .../esedb_test_index/esedb_test_index.vcproj | 0 .../esedb_test_io_handle.vcproj | 0 .../esedb_test_leaf_page_descriptor.vcproj | 0 .../esedb_test_long_value.vcproj | 0 .../esedb_test_multi_value.vcproj | 0 .../esedb_test_notify.vcproj | 0 .../esedb_test_page/esedb_test_page.vcproj | 0 .../esedb_test_page_header.vcproj | 0 .../esedb_test_page_tree.vcproj | 0 .../esedb_test_page_tree_key.vcproj | 0 .../esedb_test_page_tree_value.vcproj | 0 .../esedb_test_page_value.vcproj | 0 .../esedb_test_record.vcproj | 0 .../esedb_test_root_page_header.vcproj | 0 .../esedb_test_space_tree.vcproj | 0 .../esedb_test_space_tree_value.vcproj | 0 .../esedb_test_support.vcproj | 0 .../esedb_test_table/esedb_test_table.vcproj | 0 .../esedb_test_table_definition.vcproj | 0 .../esedb_test_tools_info_handle.vcproj | 0 .../esedb_test_tools_output.vcproj | 0 .../esedb_test_tools_signal.vcproj | 0 ...st_tools_windows_search_compression.vcproj | 0 .../msvscpp/esedbexport/esedbexport.vcproj | 0 .../msvscpp/esedbinfo/esedbinfo.vcproj | 0 .../msvscpp/libbfio/libbfio.vcproj | 0 .../msvscpp/libcdata/libcdata.vcproj | 0 .../msvscpp/libcerror/libcerror.vcproj | 0 .../msvscpp/libcfile/libcfile.vcproj | 0 .../msvscpp/libclocale/libclocale.vcproj | 0 .../msvscpp/libcnotify/libcnotify.vcproj | 0 .../msvscpp/libcpath/libcpath.vcproj | 0 .../msvscpp/libcsplit/libcsplit.vcproj | 0 .../msvscpp/libcthreads/libcthreads.vcproj | 0 .../msvscpp/libesedb.sln | 30 + .../msvscpp/libesedb/libesedb.vcproj | 24 + .../msvscpp/libfcache/libfcache.vcproj | 0 .../msvscpp/libfdata/libfdata.vcproj | 16 - .../msvscpp/libfdatetime/libfdatetime.vcproj | 0 .../msvscpp/libfguid/libfguid.vcproj | 0 .../msvscpp/libfmapi/libfmapi.vcproj | 0 .../msvscpp/libfvalue/libfvalue.vcproj | 0 .../msvscpp/libfwnt/libfwnt.vcproj | 8 + .../msvscpp/libmapidb/libmapidb.vcproj | 0 .../msvscpp/libuna/libuna.vcproj | 144 + .../msvscpp/pyesedb/pyesedb.vcproj | 0 .../libesedb-20230824/ossfuzz/Makefile.am | 108 + .../ossfuzz/Makefile.in | 179 +- .../ossfuzz/column_fuzzer.cc | 146 + .../ossfuzz/file_fuzzer.cc | 2 +- .../ossfuzz/ossfuzz_libbfio.h | 2 +- .../ossfuzz/ossfuzz_libesedb.h | 2 +- .../ossfuzz/record_fuzzer.cc | 144 + .../libesedb-20230824/ossfuzz/table_fuzzer.cc | 121 + .../po/ChangeLog | 0 .../po/Makefile.in.in | 186 +- .../po/Makevars | 0 .../po/Makevars.in | 0 .../po/POTFILES.in | 0 .../po/Rules-quot | 19 +- .../po/boldquot.sed | 0 .../po/en@boldquot.header | 2 +- .../po/en@quot.header | 2 +- .../po/insert-header.sin | 5 + .../po/quot.sed | 0 .../po/remove-potcdate.sin | 8 +- .../pyesedb-python2/Makefile.am | 0 .../pyesedb-python2/Makefile.in | 58 +- .../pyesedb-python3/Makefile.am | 0 .../pyesedb-python3/Makefile.in | 58 +- .../pyesedb/Makefile.am | 0 .../pyesedb/Makefile.in | 53 +- .../pyesedb/pyesedb.c | 16 +- .../pyesedb/pyesedb.h | 2 +- .../pyesedb/pyesedb_column.c | 5 +- .../pyesedb/pyesedb_column.h | 2 +- .../pyesedb/pyesedb_column_types.c | 2 +- .../pyesedb/pyesedb_column_types.h | 2 +- .../pyesedb/pyesedb_columns.c | 2 +- .../pyesedb/pyesedb_columns.h | 2 +- .../pyesedb/pyesedb_datetime.c | 6 +- .../pyesedb/pyesedb_datetime.h | 4 +- .../pyesedb/pyesedb_error.c | 2 +- .../pyesedb/pyesedb_error.h | 2 +- .../pyesedb/pyesedb_file.c | 22 +- .../pyesedb/pyesedb_file.h | 2 +- .../pyesedb/pyesedb_file_object_io_handle.c | 4 +- .../pyesedb/pyesedb_file_object_io_handle.h | 2 +- .../pyesedb/pyesedb_file_types.c | 2 +- .../pyesedb/pyesedb_file_types.h | 2 +- .../pyesedb/pyesedb_index.c | 5 +- .../pyesedb/pyesedb_index.h | 2 +- .../pyesedb/pyesedb_indexes.c | 2 +- .../pyesedb/pyesedb_indexes.h | 2 +- .../pyesedb/pyesedb_integer.c | 2 +- .../pyesedb/pyesedb_integer.h | 2 +- .../pyesedb/pyesedb_libbfio.h | 2 +- .../pyesedb/pyesedb_libcerror.h | 2 +- .../pyesedb/pyesedb_libclocale.h | 2 +- .../pyesedb/pyesedb_libesedb.h | 2 +- .../pyesedb/pyesedb_long_value.c | 9 +- .../pyesedb/pyesedb_long_value.h | 2 +- .../pyesedb/pyesedb_multi_value.c | 9 +- .../pyesedb/pyesedb_multi_value.h | 2 +- .../pyesedb/pyesedb_python.h | 2 +- .../pyesedb/pyesedb_record.c | 155 +- .../pyesedb/pyesedb_record.h | 7 +- .../pyesedb/pyesedb_records.c | 2 +- .../pyesedb/pyesedb_records.h | 2 +- .../pyesedb/pyesedb_table.c | 12 +- .../pyesedb/pyesedb_table.h | 2 +- .../pyesedb/pyesedb_tables.c | 2 +- .../pyesedb/pyesedb_tables.h | 2 +- .../pyesedb/pyesedb_unused.h | 2 +- .../pyesedb/pyesedb_value_flags.c | 2 +- .../pyesedb/pyesedb_value_flags.h | 2 +- .../setup.py | 78 +- .../test-driver | 19 +- .../tests/Makefile.am | 39 + .../tests/Makefile.in | 152 +- .../tests/esedb_test_block_descriptor.c | 311 + .../tests/esedb_test_block_tree.c | 752 + .../tests/esedb_test_block_tree_node.c | 331 + .../tests/esedb_test_catalog.c | 7 +- .../tests/esedb_test_catalog_definition.c | 2 +- .../tests/esedb_test_checksum.c | 2 +- .../tests/esedb_test_column.c | 2 +- .../tests/esedb_test_column_type.c | 2 +- .../tests/esedb_test_compression.c | 2 +- .../tests/esedb_test_data_definition.c | 2 +- .../tests/esedb_test_data_segment.c | 3 +- .../tests/esedb_test_database.c | 5 +- .../tests/esedb_test_error.c | 2 +- .../tests/esedb_test_file.c | 2 +- .../tests/esedb_test_file_header.c | 2 +- .../tests/esedb_test_functions.c | 2 +- .../tests/esedb_test_functions.h | 2 +- .../tests/esedb_test_getopt.c | 2 +- .../tests/esedb_test_getopt.h | 2 +- .../tests/esedb_test_index.c | 2 +- .../tests/esedb_test_io_handle.c | 2 +- .../tests/esedb_test_leaf_page_descriptor.c | 2 +- .../tests/esedb_test_libbfio.h | 2 +- .../tests/esedb_test_libcdata.h | 2 +- .../tests/esedb_test_libcerror.h | 2 +- .../tests/esedb_test_libclocale.h | 2 +- .../tests/esedb_test_libcnotify.h | 2 +- .../tests/esedb_test_libesedb.h | 2 +- .../tests/esedb_test_libfcache.h | 2 +- .../tests/esedb_test_libfdata.h | 4 +- .../tests/esedb_test_libuna.h | 2 +- .../tests/esedb_test_long_value.c | 2 +- .../tests/esedb_test_macros.h | 2 +- .../tests/esedb_test_memory.c | 2 +- .../tests/esedb_test_memory.h | 4 +- .../tests/esedb_test_multi_value.c | 2 +- .../tests/esedb_test_notify.c | 2 +- .../tests/esedb_test_page.c | 2 +- .../tests/esedb_test_page_header.c | 2 +- .../tests/esedb_test_page_tree.c | 5 +- .../tests/esedb_test_page_tree_key.c | 2 +- .../tests/esedb_test_page_tree_value.c | 2 +- .../tests/esedb_test_page_value.c | 2 +- .../tests/esedb_test_record.c | 2 +- .../tests/esedb_test_root_page_header.c | 2 +- .../tests/esedb_test_space_tree.c | 2 +- .../tests/esedb_test_space_tree_value.c | 2 +- .../tests/esedb_test_support.c | 2 +- .../tests/esedb_test_table.c | 2 +- .../tests/esedb_test_table_definition.c | 2 +- .../tests/esedb_test_tools_info_handle.c | 2 +- .../tests/esedb_test_tools_output.c | 2 +- .../tests/esedb_test_tools_signal.c | 2 +- ...db_test_tools_windows_search_compression.c | 2 +- .../tests/esedb_test_unused.h | 2 +- .../tests/pyesedb_test_file.py | 2 +- .../tests/pyesedb_test_support.py | 2 +- .../tests/test_esedbexport.sh | 4 +- .../tests/test_esedbinfo.sh | 4 +- .../tests/test_library.sh | 6 +- .../tests/test_manpage.sh | 4 +- .../tests/test_python_module.sh | 4 +- .../tests/test_runner.sh | 28 +- .../tests/test_tools.sh | 4 +- libesedb-sys/src/bindings.rs | 984 +- libesedb-sys/src/lib.rs | 17 +- 1053 files changed, 55848 insertions(+), 38256 deletions(-) delete mode 100644 libesedb-sys/libesedb-20210424/ABOUT-NLS delete mode 100644 libesedb-sys/libesedb-20210424/AUTHORS delete mode 100644 libesedb-sys/libesedb-20210424/dpkg/changelog delete mode 100644 libesedb-sys/libesedb-20210424/dpkg/compat delete mode 100644 libesedb-sys/libesedb-20210424/dpkg/libesedb-python.install delete mode 100644 libesedb-sys/libesedb-20210424/libfdata/libfdata_tree.c delete mode 100644 libesedb-sys/libesedb-20210424/libfdata/libfdata_tree.h delete mode 100644 libesedb-sys/libesedb-20210424/libfdata/libfdata_tree_node.c delete mode 100644 libesedb-sys/libesedb-20210424/libfdata/libfdata_tree_node.h delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_r.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_u.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1250.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1251.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1252.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1253.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1254.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1255.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1256.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1257.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1258.c delete mode 100644 libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_874.c delete mode 100644 libesedb-sys/libesedb-20210424/m4/intlmacosx.m4 delete mode 100644 libesedb-sys/libesedb-20210424/m4/lib-ld.m4 delete mode 100644 libesedb-sys/libesedb-20210424/m4/lib-prefix.m4 delete mode 100644 libesedb-sys/libesedb-20210424/ossfuzz/Makefile.am create mode 100644 libesedb-sys/libesedb-20230824/ABOUT-NLS create mode 100644 libesedb-sys/libesedb-20230824/AUTHORS rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/COPYING (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/COPYING.LESSER (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/ChangeLog (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/INSTALL (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/Makefile.am (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/Makefile.in (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/NEWS (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/README (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/acinclude.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/aclocal.m4 (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/Makefile.in (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/byte_stream.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/common.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/config.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/config.h.in (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/config_borlandc.h (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/config_msc.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/config_winapi.h (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/file_stream.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/memory.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/narrow_string.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/system_string.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/types.h (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/types.h.in (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/common/wide_string.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/compile (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/config.guess (72%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/config.rpath (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/config.sub (75%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/configure (59%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/configure.ac (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/depcomp (99%) create mode 100644 libesedb-sys/libesedb-20230824/dpkg/changelog rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/changelog.in (100%) create mode 100644 libesedb-sys/libesedb-20230824/dpkg/compat rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/control (76%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/copyright (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/libesedb-dev.install (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/libesedb-python3.install (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/libesedb-tools.install (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/libesedb.install (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/rules (73%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/dpkg/source/format (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/Makefile.in (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/database_types.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/database_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbexport.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbinfo.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_getopt.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_getopt.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_i18n.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libbfio.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libcdata.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libcfile.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libclocale.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libcnotify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libcpath.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libesedb.h (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libfdatetime.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libfguid.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libfmapi.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libfvalue.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libfwnt.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_libuna.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_output.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_output.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_signal.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_signal.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_system_string.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_system_string.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/esedbtools_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/exchange.c (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/exchange.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/export.c (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/export.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/export_handle.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/export_handle.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/info_handle.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/info_handle.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/log_handle.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/log_handle.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/srumdb.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/srumdb.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/webcache.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/webcache.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/windows_search.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/windows_search.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/windows_search_compression.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/windows_search_compression.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/windows_security.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/esedbtools/windows_security.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb.h.in (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/codepage.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/definitions.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/definitions.h.in (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/error.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/extern.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/features.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/features.h.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/types.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/include/libesedb/types.h.in (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/install-sh (80%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_codepage.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_definitions.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_extern.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file_io_handle.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file_io_handle.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file_pool.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file_pool.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file_range.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file_range.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file_range_io_handle.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_file_range_io_handle.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_handle.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_handle.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_libcdata.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_libcfile.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_libclocale.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_libcpath.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_libcthreads.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_libuna.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_memory_range.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_memory_range.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_memory_range_io_handle.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_memory_range_io_handle.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_pool.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_pool.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_support.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_support.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_system_string.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_system_string.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_types.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libbfio/libbfio_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_array.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_array.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_btree.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_btree.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_btree_node.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_btree_node.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_btree_values_list.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_btree_values_list.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_definitions.h (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_extern.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_libcthreads.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_list.c (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_list.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_list_element.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_list_element.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_range_list.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_range_list.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_range_list_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_range_list_value.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_tree_node.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_tree_node.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcdata/libcdata_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_definitions.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_error.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_error.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_extern.h (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_system.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_system.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_types.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcerror/libcerror_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_definitions.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_extern.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_file.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_file.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_libclocale.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_libcnotify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_libuna.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_notify.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_notify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_support.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_support.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_system_string.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_system_string.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_types.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_winapi.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcfile/libcfile_winapi.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_codepage.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_codepage.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_definitions.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_extern.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_locale.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_locale.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_support.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_support.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_wide_string.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libclocale/libclocale_wide_string.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_definitions.h (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_extern.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_print.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_print.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_stream.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_stream.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_verbose.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcnotify/libcnotify_verbose.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_definitions.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_extern.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_libclocale.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_libcsplit.h (89%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_libuna.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_path.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_path.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_support.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_support.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_system_string.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_system_string.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcpath/libcpath_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_definitions.h (89%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_extern.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_narrow_split_string.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_narrow_split_string.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_narrow_string.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_narrow_string.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_wide_split_string.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_wide_split_string.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_wide_string.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcsplit/libcsplit_wide_string.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_condition.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_condition.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_definitions.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_extern.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_lock.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_lock.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_mutex.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_mutex.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_queue.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_queue.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_read_write_lock.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_read_write_lock.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_repeating_thread.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_repeating_thread.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_thread.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_thread.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_thread_attributes.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_thread_attributes.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_thread_pool.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_thread_pool.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_types.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libcthreads/libcthreads_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb.pc.in (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb.spec (68%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb.spec.in (78%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/Makefile.am (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/Makefile.in (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/esedb_file_header.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/esedb_page.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/esedb_page_values.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb.rc (85%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb.rc.in (94%) create mode 100644 libesedb-sys/libesedb-20230824/libesedb/libesedb_block_descriptor.c create mode 100644 libesedb-sys/libesedb-20230824/libesedb/libesedb_block_descriptor.h create mode 100644 libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree.c create mode 100644 libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree.h create mode 100644 libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree_node.c create mode 100644 libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree_node.h rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_catalog.c (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_catalog.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_catalog_definition.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_catalog_definition.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_checksum.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_checksum.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_codepage.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_codepage.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_column.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_column.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_column_type.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_column_type.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_compression.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_compression.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_data_definition.c (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_data_definition.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_data_segment.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_data_segment.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_database.c (86%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_database.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_debug.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_debug.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_definitions.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_definitions.h.in (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_extern.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_file.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_file.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_file_header.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_file_header.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_i18n.c (85%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_i18n.h (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_index.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_index.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_io_handle.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_io_handle.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_lcid.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_lcid.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_leaf_page_descriptor.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_leaf_page_descriptor.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libbfio.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libcdata.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libclocale.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libcnotify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libfcache.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libfdata.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libfvalue.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libfwnt.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_libuna.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_long_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_long_value.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_multi_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_multi_value.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_notify.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_notify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_header.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_header.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_tree.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_tree.h (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_tree_key.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_tree_key.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_tree_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_tree_value.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_value.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_page_value.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_record.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_record.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_record_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_record_value.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_root_page_header.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_root_page_header.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_space_tree.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_space_tree.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_space_tree_value.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_space_tree_value.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_support.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_support.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_table.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_table.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_table_definition.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_table_definition.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_value_data_handle.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libesedb/libesedb_value_data_handle.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_cache.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_cache.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_cache_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_cache_value.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_date_time.c (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_date_time.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_definitions.h (84%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_extern.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_libcdata.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfcache/libfcache_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/Makefile.am (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/Makefile.in (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_area.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_area.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_cache.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_cache.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_definitions.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_extern.h (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_libcdata.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_libcnotify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_libfcache.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_list.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_list.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_list_element.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_list_element.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_mapped_range.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_mapped_range.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_notify.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_notify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_range.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_range.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_range_list.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_range_list.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_segments_array.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_segments_array.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_stream.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_stream.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_types.h (88%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_vector.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdata/libfdata_vector.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_date_time_values.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_date_time_values.h (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_definitions.h (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_error.c (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_error.h (85%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_extern.h (73%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_fat_date_time.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_fat_date_time.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_filetime.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_filetime.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_floatingtime.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_floatingtime.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_hfs_time.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_hfs_time.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_libcerror.h (81%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_nsf_timedate.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_nsf_timedate.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_posix_time.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_posix_time.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_support.c (76%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_support.h (77%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_systemtime.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_systemtime.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_types.h (89%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfdatetime/libfdatetime_unused.h (67%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/Makefile.am (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_definitions.h (84%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_error.c (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_error.h (85%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_extern.h (69%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_identifier.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_identifier.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_libcerror.h (81%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_support.c (76%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_support.h (77%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_types.h (82%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfguid/libfguid_unused.h (67%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/Makefile.am (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_checksum.c (73%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_checksum.h (72%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_class_identifier.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_class_identifier.h (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_codepage.c (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_codepage.h (82%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_debug.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_debug.h (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_definitions.h (83%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_entry_identifier.c (89%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_entry_identifier.h (76%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_error.c (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_error.h (85%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_extern.h (66%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_libcerror.h (81%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_libcnotify.h (80%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_libfdatetime.h (84%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_libfguid.h (80%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_libfwnt.h (78%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_libuna.h (84%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_lzfu.c (65%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_lzfu.h (73%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_one_off_entry_identifier.c (86%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_one_off_entry_identifier.h (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_property_type.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_property_type.h (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_service_provider_identifier.c (90%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_service_provider_identifier.h (82%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_support.c (76%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_support.h (78%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_types.h (83%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_unused.h (67%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_value_type.c (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_value_type.h (82%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfmapi/libfmapi_x400_object_identifier.h (85%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/Makefile.in (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_binary_data.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_binary_data.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_codepage.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_data_handle.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_data_handle.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_definitions.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_extern.h (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_filetime.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_filetime.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_floating_point.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_floating_point.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_integer.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_integer.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_libcdata.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_libcnotify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_libfdatetime.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_libfguid.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_libfwnt.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_libuna.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_split_utf16_string.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_split_utf16_string.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_split_utf8_string.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_split_utf8_string.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_string.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_string.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_table.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_table.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_utf16_string.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_utf16_string.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_utf8_string.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_utf8_string.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_value.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_value_entry.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_value_entry.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_value_type.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfvalue/libfvalue_value_type.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/Makefile.am (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/Makefile.in (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_access_control_entry.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_access_control_entry.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_access_control_list.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_access_control_list.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_bit_stream.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_bit_stream.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_debug.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_debug.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_definitions.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_extern.h (87%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_huffman_tree.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_huffman_tree.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_libcdata.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_libcnotify.h (86%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_locale_identifier.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_locale_identifier.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_lznt1.c (88%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_lznt1.h (84%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_lzx.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_lzx.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_lzxpress.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_lzxpress.h (97%) create mode 100644 libesedb-sys/libesedb-20230824/libfwnt/libfwnt_notify.c create mode 100644 libesedb-sys/libesedb-20230824/libfwnt/libfwnt_notify.h rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_security_descriptor.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_security_descriptor.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_security_identifier.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_security_identifier.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libfwnt/libfwnt_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/Makefile.in (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_database.c (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_database.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_definitions.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_error.c (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_error.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_extern.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_folder.c (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_folder.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_libcerror.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_libcnotify.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_support.c (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_support.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_types.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libmapidb/libmapidb_unused.h (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/Makefile.am (72%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/Makefile.in (83%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_base16_stream.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_base16_stream.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_base32_stream.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_base32_stream.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_base64_stream.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_base64_stream.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_byte_stream.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_byte_stream.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_10.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_10.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_13.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_13.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_14.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_14.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_15.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_15.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_16.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_16.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_2.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_2.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_3.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_3.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_4.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_4.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_5.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_5.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_6.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_6.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_7.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_7.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_8.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_8.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_9.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_iso_8859_9.h (95%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_r.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_koi8_r.h (64%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_u.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_koi8_u.h (64%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_arabic.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_arabic.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_celtic.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_celtic.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_centraleurroman.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_centraleurroman.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_croatian.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_croatian.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_cyrillic.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_cyrillic.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_dingbats.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_dingbats.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_farsi.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_farsi.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_gaelic.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_gaelic.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_greek.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_greek.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_icelandic.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_icelandic.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_inuit.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_inuit.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_roman.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_roman.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_romanian.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_romanian.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_russian.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_russian.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_symbol.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_symbol.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_thai.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_thai.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_turkish.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_turkish.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_ukrainian.c create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_ukrainian.h create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1250.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1250.h (58%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1251.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1251.h (64%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1252.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1252.h (64%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1253.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1253.h (64%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1254.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1254.h (61%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1255.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1255.h (61%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1256.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1256.h (61%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1257.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1257.h (64%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1258.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_1258.h (64%) create mode 100644 libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_874.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_874.h (63%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_932.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_932.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_936.c (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_936.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_949.c (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_949.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_950.c (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_codepage_windows_950.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_definitions.h (81%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_error.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_extern.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_scsu.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_scsu.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_support.c (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_support.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_types.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_unicode_character.c (68%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_unicode_character.h (73%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_url_stream.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_url_stream.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf16_stream.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf16_stream.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf16_string.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf16_string.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf32_stream.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf32_stream.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf32_string.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf32_string.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf7_stream.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf7_stream.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf8_stream.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf8_stream.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf8_string.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/libuna/libuna_utf8_string.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/ltmain.sh (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/common.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/gettext.m4 (77%) create mode 100644 libesedb-sys/libesedb-20230824/m4/host-cpu-c-abi.m4 rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/iconv.m4 (55%) create mode 100644 libesedb-sys/libesedb-20230824/m4/intlmacosx.m4 create mode 100644 libesedb-sys/libesedb-20230824/m4/lib-ld.m4 rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/lib-link.m4 (80%) create mode 100644 libesedb-sys/libesedb-20230824/m4/lib-prefix.m4 rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libbfio.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libcdata.m4 (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libcerror.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libcfile.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libclocale.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libcnotify.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libcpath.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libcsplit.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libcthreads.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libfcache.m4 (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libfdata.m4 (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libfdatetime.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libfguid.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libfmapi.m4 (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libfvalue.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libfwnt.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libmapidb.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libtool.m4 (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/libuna.m4 (75%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/ltoptions.m4 (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/ltsugar.m4 (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/ltversion.m4 (66%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/lt~obsolete.m4 (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/nls.m4 (66%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/po.m4 (85%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/progtest.m4 (75%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/pthread.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/python.m4 (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/tests.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/m4/types.m4 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/manuals/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/manuals/Makefile.in (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/manuals/esedbinfo.1 (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/manuals/libesedb.3 (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/missing (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/Makefile.am (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/Makefile.in (93%) create mode 100644 libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_descriptor/esedb_test_block_descriptor.vcproj create mode 100644 libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_tree/esedb_test_block_tree.vcproj create mode 100644 libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_tree_node/esedb_test_block_tree_node.vcproj rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_catalog/esedb_test_catalog.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_catalog_definition/esedb_test_catalog_definition.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_checksum/esedb_test_checksum.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_column/esedb_test_column.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_column_type/esedb_test_column_type.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_compression/esedb_test_compression.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_data_definition/esedb_test_data_definition.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_data_segment/esedb_test_data_segment.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_database/esedb_test_database.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_error/esedb_test_error.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_file/esedb_test_file.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_file_header/esedb_test_file_header.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_index/esedb_test_index.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_io_handle/esedb_test_io_handle.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_leaf_page_descriptor/esedb_test_leaf_page_descriptor.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_long_value/esedb_test_long_value.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_multi_value/esedb_test_multi_value.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_notify/esedb_test_notify.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_page/esedb_test_page.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_page_header/esedb_test_page_header.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_page_tree/esedb_test_page_tree.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_page_tree_key/esedb_test_page_tree_key.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_page_tree_value/esedb_test_page_tree_value.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_page_value/esedb_test_page_value.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_record/esedb_test_record.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_root_page_header/esedb_test_root_page_header.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_space_tree/esedb_test_space_tree.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_space_tree_value/esedb_test_space_tree_value.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_support/esedb_test_support.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_table/esedb_test_table.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_table_definition/esedb_test_table_definition.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_tools_info_handle/esedb_test_tools_info_handle.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_tools_output/esedb_test_tools_output.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_tools_signal/esedb_test_tools_signal.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedb_test_tools_windows_search_compression/esedb_test_tools_windows_search_compression.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedbexport/esedbexport.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/esedbinfo/esedbinfo.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libbfio/libbfio.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libcdata/libcdata.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libcerror/libcerror.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libcfile/libcfile.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libclocale/libclocale.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libcnotify/libcnotify.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libcpath/libcpath.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libcsplit/libcsplit.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libcthreads/libcthreads.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libesedb.sln (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libesedb/libesedb.vcproj (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libfcache/libfcache.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libfdata/libfdata.vcproj (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libfdatetime/libfdatetime.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libfguid/libfguid.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libfmapi/libfmapi.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libfvalue/libfvalue.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libfwnt/libfwnt.vcproj (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libmapidb/libmapidb.vcproj (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/libuna/libuna.vcproj (78%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/msvscpp/pyesedb/pyesedb.vcproj (100%) create mode 100644 libesedb-sys/libesedb-20230824/ossfuzz/Makefile.am rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/ossfuzz/Makefile.in (81%) create mode 100644 libesedb-sys/libesedb-20230824/ossfuzz/column_fuzzer.cc rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/ossfuzz/file_fuzzer.cc (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/ossfuzz/ossfuzz_libbfio.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/ossfuzz/ossfuzz_libesedb.h (93%) create mode 100644 libesedb-sys/libesedb-20230824/ossfuzz/record_fuzzer.cc create mode 100644 libesedb-sys/libesedb-20230824/ossfuzz/table_fuzzer.cc rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/ChangeLog (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/Makefile.in.in (67%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/Makevars (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/Makevars.in (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/POTFILES.in (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/Rules-quot (58%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/boldquot.sed (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/en@boldquot.header (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/en@quot.header (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/insert-header.sin (74%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/quot.sed (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/po/remove-potcdate.sin (50%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb-python2/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb-python2/Makefile.in (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb-python3/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb-python3/Makefile.in (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/Makefile.am (100%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/Makefile.in (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_column.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_column.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_column_types.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_column_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_columns.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_columns.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_datetime.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_datetime.h (94%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_error.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_error.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_file.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_file.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_file_object_io_handle.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_file_object_io_handle.h (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_file_types.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_file_types.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_index.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_index.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_indexes.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_indexes.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_integer.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_integer.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_libbfio.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_libclocale.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_libesedb.h (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_long_value.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_long_value.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_multi_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_multi_value.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_python.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_record.c (91%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_record.h (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_records.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_records.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_table.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_table.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_tables.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_tables.h (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_value_flags.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/pyesedb/pyesedb_value_flags.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/setup.py (80%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/test-driver (88%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/Makefile.am (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/Makefile.in (94%) create mode 100644 libesedb-sys/libesedb-20230824/tests/esedb_test_block_descriptor.c create mode 100644 libesedb-sys/libesedb-20230824/tests/esedb_test_block_tree.c create mode 100644 libesedb-sys/libesedb-20230824/tests/esedb_test_block_tree_node.c rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_catalog.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_catalog_definition.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_checksum.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_column.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_column_type.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_compression.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_data_definition.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_data_segment.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_database.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_error.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_file.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_file_header.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_functions.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_functions.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_getopt.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_getopt.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_index.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_io_handle.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_leaf_page_descriptor.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libbfio.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libcdata.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libcerror.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libclocale.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libcnotify.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libesedb.h (93%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libfcache.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libfdata.h (92%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_libuna.h (96%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_long_value.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_macros.h (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_memory.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_memory.h (89%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_multi_value.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_notify.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_page.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_page_header.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_page_tree.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_page_tree_key.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_page_tree_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_page_value.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_record.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_root_page_header.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_space_tree.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_space_tree_value.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_support.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_table.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_table_definition.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_tools_info_handle.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_tools_output.c (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_tools_signal.c (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_tools_windows_search_compression.c (99%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/esedb_test_unused.h (95%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/pyesedb_test_file.py (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/pyesedb_test_support.py (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/test_esedbexport.sh (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/test_esedbinfo.sh (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/test_library.sh (89%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/test_manpage.sh (97%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/test_python_module.sh (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/test_runner.sh (98%) rename libesedb-sys/{libesedb-20210424 => libesedb-20230824}/tests/test_tools.sh (98%) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7136440..0ec7b55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: include: - os: ubuntu-latest - os: windows-latest + - os: macos-latest steps: - name: Clone Repository uses: actions/checkout@v3 diff --git a/.gitignore b/.gitignore index 8fbfb8c..1a671bd 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.vscode/ target/ Cargo.lock tests/CacheStorage.edb diff --git a/README.md b/README.md index f76e13e..3ac023f 100644 --- a/README.md +++ b/README.md @@ -27,10 +27,6 @@ fn main() { A `tests/CacheStorage.edb` can be obtained from from `AppData\Local\Packages\Microsoft.Windows.CloudExperienceHost_cw5n1h2txyewy\AppData\CacheStorage` -## Project TODO - -* [ ] Document build.rs (modifying for leaf pages, etc) - ## License and Acknowledgement This project is made available under the [LGPL-3.0-or-later](./COPYING.LESSER). diff --git a/libesedb-sys/.gitignore b/libesedb-sys/.gitignore index 2c96eb1..91df2fb 100644 --- a/libesedb-sys/.gitignore +++ b/libesedb-sys/.gitignore @@ -1,2 +1,3 @@ +.vscode/ target/ Cargo.lock diff --git a/libesedb-sys/README.md b/libesedb-sys/README.md index 2b11e05..b88a73f 100644 --- a/libesedb-sys/README.md +++ b/libesedb-sys/README.md @@ -17,7 +17,7 @@ Rust `-sys` bindings to [`libyal/libesedb`](https://github.com/libyal/libesedb). ## Rebuilding Bindings ``` -bindgen libesedb-20210424/include/libesedb.h -o src/bindings.rs -- -Ilibesedb-20210424/include -fparse-all-comments +bindgen libesedb-20230824/include/libesedb.h -o src/bindings.rs -- -Ilibesedb-20230824/include -fparse-all-comments ``` ## Configuring Max Leaf-Pages @@ -37,6 +37,20 @@ In your Cargo.toml: LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES = "32 * 1024" ``` +## Updating Bundled libesedb + +* Download/Clone head of the `main` branch + * `git clone --branch main --depth 1 https://github.com/libyal/libesedb` + * +* Follow Build Instructions + * Run the following + * `./synclibs.sh` + * `./autogen.sh` + * `./configure` + * `make dist` + * Output should include a `.tar.gz` containing the source distribution version + * Note: I used Cygwin on Windows, you will need the packages mentioned here: + ## Authors ``` diff --git a/libesedb-sys/build.rs b/libesedb-sys/build.rs index d36a5e6..3772453 100644 --- a/libesedb-sys/build.rs +++ b/libesedb-sys/build.rs @@ -1,69 +1,71 @@ +/* + * Rust build script for bindings to libesedb + * + * Copyright (C) 2022-2023, Oliver Lenehan ~sunsetkookaburra + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + use cc::Build; use std::env; -use std::fs::File; +use std::fs::{copy, create_dir_all, File}; use std::io::{BufRead, BufReader, Write}; use std::path::PathBuf; +use std::process::Command; use walkdir::WalkDir; +const VERSION: &str = "20230824"; + fn main() { println!("cargo:rerun-if-changed=build.rs"); println!("cargo:rerun-if-env-changed=LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES"); + // docs.rs will attempt to compile, to allow for build scripts that generate + // bindings on the fly. // We manually generate bindings, so there is no need to recompile the - // vendored C source on docs.rs + // vendored C source for docs.rs if env::var("DOCS_RS").is_ok() { - println!("cargo:warning=docs.rs build, skipping C source build because of manual bindings."); + println!( + "cargo:warning=docs.rs build, skipping C source build because of manual bindings." + ); return; } + // There are a couple different approaches to building '*-sys' crates. + // This site provides a great overview and initial starting point: + // https://kornel.ski/rust-sys-crate + // The build script here takes a weird combo hybrid approach that + // hopefully works well all-round. + // On Windows: + // * Compile with `cc` crate + // On Unices: + // * Run configure script + // * Compile with `cc` crate let mut c = Build::new(); - let mut page_tree_orig = - BufReader::new(File::open("libesedb-20210424/libesedb/libesedb_page_tree.c").unwrap()) - .lines(); - let page_tree = PathBuf::from(env::var("OUT_DIR").unwrap()).join("libesedb_page_tree.c"); - let mut page_tree_new = File::create(&page_tree).unwrap(); - - let max_leaf_pages = env::var("LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES") - .unwrap_or(String::from("32 * 1024")); - println!("cargo:warning=LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES set to ({max_leaf_pages})"); - - while let Some(line) = page_tree_orig.next() { - let line = line.unwrap(); - writeln!(page_tree_new, "{line}").unwrap(); - if line.starts_with("#include \"esedb_page_values.h\"") { - writeln!(page_tree_new).unwrap(); - writeln!(page_tree_new, "#undef LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES").unwrap(); - writeln!(page_tree_new, "#define LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES ({max_leaf_pages})").unwrap(); - } - } - drop(page_tree_new); - - c.include("libesedb-20210424/include"); - c.include("libesedb-20210424/common"); - c.include("libesedb-20210424/libbfio"); - c.include("libesedb-20210424/libcdata"); - c.include("libesedb-20210424/libcerror"); - c.include("libesedb-20210424/libcfile"); - c.include("libesedb-20210424/libclocale"); - c.include("libesedb-20210424/libcnotify"); - c.include("libesedb-20210424/libcpath"); - c.include("libesedb-20210424/libcsplit"); - c.include("libesedb-20210424/libcthreads"); - c.include("libesedb-20210424/libesedb"); - c.include("libesedb-20210424/libfcache"); - c.include("libesedb-20210424/libfdata"); - c.include("libesedb-20210424/libfdatetime"); - c.include("libesedb-20210424/libfguid"); - c.include("libesedb-20210424/libfmapi"); - c.include("libesedb-20210424/libfvalue"); - c.include("libesedb-20210424/libfwnt"); - c.include("libesedb-20210424/libmapidb"); - c.include("libesedb-20210424/libuna"); + // Copy source to OUT_DIR, so we can make changes without affecting the + // bundled source tree (allow for reproducibility). + let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap()); + let src_dir = out_dir.join(format!("libesedb-{VERSION}")); - for ent in WalkDir::new("libesedb-20210424") { + for ent in WalkDir::new(format!("libesedb-{VERSION}")) { let ent = ent.unwrap(); - if ent.file_type().is_file() { + if ent.file_type().is_dir() { + // println!("{:?}", out_dir.join(ent.path())); + create_dir_all(out_dir.join(ent.path())).unwrap(); + } else if ent.file_type().is_file() { + copy(ent.path(), out_dir.join(ent.path())).unwrap(); let name = ent.file_name().to_str().unwrap(); if name.ends_with(".c") { let parent_name = ent @@ -75,7 +77,21 @@ fn main() { .to_str() .unwrap(); if name == "libesedb_page_tree.c" { - c.file(&page_tree); + let max_leaf_pages = env::var("LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES") + .unwrap_or(String::from("32 * 1024")); + println!("cargo:warning=LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES set to ({max_leaf_pages})"); + let mut page_tree = File::create(out_dir.join(ent.path())).unwrap(); + for line in BufReader::new(File::open(ent.path()).unwrap()).lines() { + let line = line.unwrap(); + writeln!(page_tree, "{line}").unwrap(); + if line.starts_with("#include \"esedb_page_values.h\"") { + writeln!(page_tree).unwrap(); + writeln!(page_tree, "#undef LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES") + .unwrap(); + writeln!(page_tree, "#define LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES ({max_leaf_pages})").unwrap(); + } + } + c.file(ent.path()); } else if parent_name.starts_with("lib") { c.file(ent.path()); } @@ -83,10 +99,29 @@ fn main() { } } - if cfg!(target_family = "unix") { - c.define("HAVE_CONFIG_H", None); - c.define("LOCALEDIR", "\"/usr/share/locale\""); - } else if cfg!(target_family = "windows") { + c.include(src_dir.join("include")); + c.include(src_dir.join("common")); + c.include(src_dir.join("libbfio")); + c.include(src_dir.join("libcdata")); + c.include(src_dir.join("libcerror")); + c.include(src_dir.join("libcfile")); + c.include(src_dir.join("libclocale")); + c.include(src_dir.join("libcnotify")); + c.include(src_dir.join("libcpath")); + c.include(src_dir.join("libcsplit")); + c.include(src_dir.join("libcthreads")); + c.include(src_dir.join("libesedb")); + c.include(src_dir.join("libfcache")); + c.include(src_dir.join("libfdata")); + c.include(src_dir.join("libfdatetime")); + c.include(src_dir.join("libfguid")); + c.include(src_dir.join("libfmapi")); + c.include(src_dir.join("libfvalue")); + c.include(src_dir.join("libfwnt")); + c.include(src_dir.join("libmapidb")); + c.include(src_dir.join("libuna")); + + if env::var("CARGO_CFG_TARGET_FAMILY").unwrap() == "windows" { c.define("HAVE_LOCAL_LIBBFIO", "1"); c.define("HAVE_LOCAL_LIBCDATA", "1"); c.define("HAVE_LOCAL_LIBCERROR", "1"); @@ -105,6 +140,22 @@ fn main() { c.define("HAVE_LOCAL_LIBFWNT", "1"); c.define("HAVE_LOCAL_LIBMAPIDB", "1"); c.define("HAVE_LOCAL_LIBUNA", "1"); + } else if env::var("CARGO_CFG_TARGET_FAMILY").unwrap() == "unix" { + c.define("HAVE_CONFIG_H", None); + c.define("LOCALEDIR", "\"/usr/share/locale\""); + + Command::new("chmod") + .arg("+x") + .arg(src_dir.join("configure")) + .status() + .unwrap(); + // Run configure on Unices (they have shell) + Command::new(src_dir.join("configure")) + .current_dir(src_dir) + .env("CC", c.get_compiler().cc_env()) + .env("CFLAGS", c.get_compiler().cflags_env()) + .status() + .unwrap(); } c.compile("esedb"); diff --git a/libesedb-sys/examples/catalog.rs b/libesedb-sys/examples/catalog.rs index 5115a9a..a5ad2c9 100644 --- a/libesedb-sys/examples/catalog.rs +++ b/libesedb-sys/examples/catalog.rs @@ -24,7 +24,8 @@ fn main() { exit(1); } - let filename = CString::new(env::args().nth(1).unwrap_or("Windows.edb".to_string())).unwrap(); + let filename = + CString::new(env::args().nth(1).unwrap_or("Windows.edb".to_string())).unwrap(); if libesedb_file_open(file, filename.as_ptr() as _, LIBESEDB_OPEN_READ, &mut error) != 1 { eprintln!("Unable to open file."); @@ -59,12 +60,24 @@ fn main() { println!("The table name (including null byte) takes up {table_name_size} bytes."); let mut table_name = vec![0; table_name_size.try_into().unwrap()]; - if libesedb_table_get_utf8_name(table, table_name.as_mut_ptr(), table_name.len().try_into().unwrap(), &mut error) != 1 { + if libesedb_table_get_utf8_name( + table, + table_name.as_mut_ptr(), + table_name.len().try_into().unwrap(), + &mut error, + ) != 1 + { eprintln!("Unable to get table name."); libesedb_error_free(&mut error); } - println!("Table Name: {}", CString::from_vec_with_nul(table_name).unwrap().to_str().unwrap()); + println!( + "Table Name: {}", + CString::from_vec_with_nul(table_name) + .unwrap() + .to_str() + .unwrap() + ); if libesedb_file_close(file, &mut error) != 0 { eprintln!("Unable to close file."); diff --git a/libesedb-sys/libesedb-20210424/ABOUT-NLS b/libesedb-sys/libesedb-20210424/ABOUT-NLS deleted file mode 100644 index b1de1b6..0000000 --- a/libesedb-sys/libesedb-20210424/ABOUT-NLS +++ /dev/null @@ -1,1282 +0,0 @@ -1 Notes on the Free Translation Project -*************************************** - -Free software is going international! The Free Translation Project is -a way to get maintainers of free software, translators, and users all -together, so that free software will gradually become able to speak many -languages. A few packages already provide translations for their -messages. - - If you found this `ABOUT-NLS' file inside a distribution, you may -assume that the distributed package does use GNU `gettext' internally, -itself available at your nearest GNU archive site. But you do _not_ -need to install GNU `gettext' prior to configuring, installing or using -this package with messages translated. - - Installers will find here some useful hints. These notes also -explain how users should proceed for getting the programs to use the -available translations. They tell how people wanting to contribute and -work on translations can contact the appropriate team. - -1.1 INSTALL Matters -=================== - -Some packages are "localizable" when properly installed; the programs -they contain can be made to speak your own native language. Most such -packages use GNU `gettext'. Other packages have their own ways to -internationalization, predating GNU `gettext'. - - By default, this package will be installed to allow translation of -messages. It will automatically detect whether the system already -provides the GNU `gettext' functions. Installers may use special -options at configuration time for changing the default behaviour. The -command: - - ./configure --disable-nls - -will _totally_ disable translation of messages. - - When you already have GNU `gettext' installed on your system and run -configure without an option for your new package, `configure' will -probably detect the previously built and installed `libintl' library -and will decide to use it. If not, you may have to to use the -`--with-libintl-prefix' option to tell `configure' where to look for it. - - Internationalized packages usually have many `po/LL.po' files, where -LL gives an ISO 639 two-letter code identifying the language. Unless -translations have been forbidden at `configure' time by using the -`--disable-nls' switch, all available translations are installed -together with the package. However, the environment variable `LINGUAS' -may be set, prior to configuration, to limit the installed set. -`LINGUAS' should then contain a space separated list of two-letter -codes, stating which languages are allowed. - -1.2 Using This Package -====================== - -As a user, if your language has been installed for this package, you -only have to set the `LANG' environment variable to the appropriate -`LL_CC' combination. If you happen to have the `LC_ALL' or some other -`LC_xxx' environment variables set, you should unset them before -setting `LANG', otherwise the setting of `LANG' will not have the -desired effect. Here `LL' is an ISO 639 two-letter language code, and -`CC' is an ISO 3166 two-letter country code. For example, let's -suppose that you speak German and live in Germany. At the shell -prompt, merely execute `setenv LANG de_DE' (in `csh'), -`export LANG; LANG=de_DE' (in `sh') or `export LANG=de_DE' (in `bash'). -This can be done from your `.login' or `.profile' file, once and for -all. - - You might think that the country code specification is redundant. -But in fact, some languages have dialects in different countries. For -example, `de_AT' is used for Austria, and `pt_BR' for Brazil. The -country code serves to distinguish the dialects. - - The locale naming convention of `LL_CC', with `LL' denoting the -language and `CC' denoting the country, is the one use on systems based -on GNU libc. On other systems, some variations of this scheme are -used, such as `LL' or `LL_CC.ENCODING'. You can get the list of -locales supported by your system for your language by running the -command `locale -a | grep '^LL''. - - Not all programs have translations for all languages. By default, an -English message is shown in place of a nonexistent translation. If you -understand other languages, you can set up a priority list of languages. -This is done through a different environment variable, called -`LANGUAGE'. GNU `gettext' gives preference to `LANGUAGE' over `LANG' -for the purpose of message handling, but you still need to have `LANG' -set to the primary language; this is required by other parts of the -system libraries. For example, some Swedish users who would rather -read translations in German than English for when Swedish is not -available, set `LANGUAGE' to `sv:de' while leaving `LANG' to `sv_SE'. - - Special advice for Norwegian users: The language code for Norwegian -bokma*l changed from `no' to `nb' recently (in 2003). During the -transition period, while some message catalogs for this language are -installed under `nb' and some older ones under `no', it's recommended -for Norwegian users to set `LANGUAGE' to `nb:no' so that both newer and -older translations are used. - - In the `LANGUAGE' environment variable, but not in the `LANG' -environment variable, `LL_CC' combinations can be abbreviated as `LL' -to denote the language's main dialect. For example, `de' is equivalent -to `de_DE' (German as spoken in Germany), and `pt' to `pt_PT' -(Portuguese as spoken in Portugal) in this context. - -1.3 Translating Teams -===================== - -For the Free Translation Project to be a success, we need interested -people who like their own language and write it well, and who are also -able to synergize with other translators speaking the same language. -Each translation team has its own mailing list. The up-to-date list of -teams can be found at the Free Translation Project's homepage, -`http://translationproject.org/', in the "Teams" area. - - If you'd like to volunteer to _work_ at translating messages, you -should become a member of the translating team for your own language. -The subscribing address is _not_ the same as the list itself, it has -`-request' appended. For example, speakers of Swedish can send a -message to `sv-request@li.org', having this message body: - - subscribe - - Keep in mind that team members are expected to participate -_actively_ in translations, or at solving translational difficulties, -rather than merely lurking around. If your team does not exist yet and -you want to start one, or if you are unsure about what to do or how to -get started, please write to `coordinator@translationproject.org' to -reach the coordinator for all translator teams. - - The English team is special. It works at improving and uniformizing -the terminology in use. Proven linguistic skills are praised more than -programming skills, here. - -1.4 Available Packages -====================== - -Languages are not equally supported in all packages. The following -matrix shows the current state of internationalization, as of June -2010. The matrix shows, in regard of each package, for which languages -PO files have been submitted to translation coordination, with a -translation percentage of at least 50%. - - Ready PO files af am an ar as ast az be be@latin bg bn_IN bs ca - +--------------------------------------------------+ - a2ps | [] [] | - aegis | | - ant-phone | | - anubis | | - aspell | [] [] | - bash | | - bfd | | - bibshelf | [] | - binutils | | - bison | | - bison-runtime | [] | - bluez-pin | [] [] | - bombono-dvd | | - buzztard | | - cflow | | - clisp | | - coreutils | [] [] | - cpio | | - cppi | | - cpplib | [] | - cryptsetup | | - dfarc | | - dialog | [] [] | - dico | | - diffutils | [] | - dink | | - doodle | | - e2fsprogs | [] | - enscript | [] | - exif | | - fetchmail | [] | - findutils | [] | - flex | [] | - freedink | | - gas | | - gawk | [] [] | - gcal | [] | - gcc | | - gettext-examples | [] [] [] [] | - gettext-runtime | [] [] | - gettext-tools | [] [] | - gip | [] | - gjay | | - gliv | [] | - glunarclock | [] [] | - gnubiff | | - gnucash | [] | - gnuedu | | - gnulib | | - gnunet | | - gnunet-gtk | | - gnutls | | - gold | | - gpe-aerial | | - gpe-beam | | - gpe-bluetooth | | - gpe-calendar | | - gpe-clock | [] | - gpe-conf | | - gpe-contacts | | - gpe-edit | | - gpe-filemanager | | - gpe-go | | - gpe-login | | - gpe-ownerinfo | [] | - gpe-package | | - gpe-sketchbook | | - gpe-su | [] | - gpe-taskmanager | [] | - gpe-timesheet | [] | - gpe-today | [] | - gpe-todo | | - gphoto2 | | - gprof | [] | - gpsdrive | | - gramadoir | | - grep | | - grub | [] [] | - gsasl | | - gss | | - gst-plugins-bad | [] | - gst-plugins-base | [] | - gst-plugins-good | [] | - gst-plugins-ugly | [] | - gstreamer | [] [] [] | - gtick | | - gtkam | [] | - gtkorphan | [] | - gtkspell | [] [] [] | - gutenprint | | - hello | [] | - help2man | | - hylafax | | - idutils | | - indent | [] [] | - iso_15924 | | - iso_3166 | [] [] [] [] [] [] [] | - iso_3166_2 | | - iso_4217 | | - iso_639 | [] [] [] [] | - iso_639_3 | | - jwhois | | - kbd | | - keytouch | [] | - keytouch-editor | | - keytouch-keyboa... | [] | - klavaro | [] | - latrine | | - ld | [] | - leafpad | [] [] | - libc | [] [] | - libexif | () | - libextractor | | - libgnutls | | - libgpewidget | | - libgpg-error | | - libgphoto2 | | - libgphoto2_port | | - libgsasl | | - libiconv | [] | - libidn | | - lifelines | | - liferea | [] [] | - lilypond | | - linkdr | [] | - lordsawar | | - lprng | | - lynx | [] | - m4 | | - mailfromd | | - mailutils | | - make | | - man-db | | - man-db-manpages | | - minicom | | - mkisofs | | - myserver | | - nano | [] [] | - opcodes | | - parted | | - pies | | - popt | | - psmisc | | - pspp | [] | - pwdutils | | - radius | [] | - recode | [] [] | - rosegarden | | - rpm | | - rush | | - sarg | | - screem | | - scrollkeeper | [] [] [] | - sed | [] [] | - sharutils | [] [] | - shishi | | - skencil | | - solfege | | - solfege-manual | | - soundtracker | | - sp | | - sysstat | | - tar | [] | - texinfo | | - tin | | - unicode-han-tra... | | - unicode-transla... | | - util-linux-ng | [] | - vice | | - vmm | | - vorbis-tools | | - wastesedge | | - wdiff | | - wget | [] [] | - wyslij-po | | - xchat | [] [] [] [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] | - +--------------------------------------------------+ - af am an ar as ast az be be@latin bg bn_IN bs ca - 6 0 1 2 3 19 1 10 3 28 3 1 38 - - crh cs da de el en en_GB en_ZA eo es et eu fa - +-------------------------------------------------+ - a2ps | [] [] [] [] [] [] [] | - aegis | [] [] [] | - ant-phone | [] () | - anubis | [] [] | - aspell | [] [] [] [] [] | - bash | [] [] [] | - bfd | [] | - bibshelf | [] [] [] | - binutils | [] | - bison | [] [] | - bison-runtime | [] [] [] [] | - bluez-pin | [] [] [] [] [] [] | - bombono-dvd | [] | - buzztard | [] [] [] | - cflow | [] [] | - clisp | [] [] [] [] | - coreutils | [] [] [] [] | - cpio | | - cppi | | - cpplib | [] [] [] | - cryptsetup | [] | - dfarc | [] [] [] | - dialog | [] [] [] [] [] | - dico | | - diffutils | [] [] [] [] [] [] | - dink | [] [] [] | - doodle | [] | - e2fsprogs | [] [] [] | - enscript | [] [] [] | - exif | () [] [] | - fetchmail | [] [] () [] [] [] | - findutils | [] [] [] | - flex | [] [] | - freedink | [] [] [] | - gas | [] | - gawk | [] [] [] | - gcal | [] | - gcc | [] [] | - gettext-examples | [] [] [] [] | - gettext-runtime | [] [] [] [] | - gettext-tools | [] [] [] | - gip | [] [] [] [] | - gjay | [] | - gliv | [] [] [] | - glunarclock | [] [] | - gnubiff | () | - gnucash | [] () () () () | - gnuedu | [] [] | - gnulib | [] [] | - gnunet | | - gnunet-gtk | [] | - gnutls | [] [] | - gold | [] | - gpe-aerial | [] [] [] [] | - gpe-beam | [] [] [] [] | - gpe-bluetooth | [] [] | - gpe-calendar | [] | - gpe-clock | [] [] [] [] | - gpe-conf | [] [] [] | - gpe-contacts | [] [] [] | - gpe-edit | [] [] | - gpe-filemanager | [] [] [] | - gpe-go | [] [] [] [] | - gpe-login | [] [] | - gpe-ownerinfo | [] [] [] [] | - gpe-package | [] [] [] | - gpe-sketchbook | [] [] [] [] | - gpe-su | [] [] [] [] | - gpe-taskmanager | [] [] [] [] | - gpe-timesheet | [] [] [] [] | - gpe-today | [] [] [] [] | - gpe-todo | [] [] [] | - gphoto2 | [] [] () [] [] [] | - gprof | [] [] [] | - gpsdrive | [] [] [] | - gramadoir | [] [] [] | - grep | [] | - grub | [] [] | - gsasl | [] | - gss | | - gst-plugins-bad | [] [] [] [] [] | - gst-plugins-base | [] [] [] [] [] | - gst-plugins-good | [] [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] [] [] | - gstreamer | [] [] [] [] [] | - gtick | [] () [] | - gtkam | [] [] () [] [] | - gtkorphan | [] [] [] [] | - gtkspell | [] [] [] [] [] [] [] | - gutenprint | [] [] [] | - hello | [] [] [] [] | - help2man | [] | - hylafax | [] [] | - idutils | [] [] | - indent | [] [] [] [] [] [] [] | - iso_15924 | [] () [] [] | - iso_3166 | [] [] [] [] () [] [] [] () | - iso_3166_2 | () | - iso_4217 | [] [] [] () [] [] | - iso_639 | [] [] [] [] () [] [] | - iso_639_3 | [] | - jwhois | [] | - kbd | [] [] [] [] [] | - keytouch | [] [] | - keytouch-editor | [] [] | - keytouch-keyboa... | [] | - klavaro | [] [] [] [] | - latrine | [] () | - ld | [] [] | - leafpad | [] [] [] [] [] [] | - libc | [] [] [] [] | - libexif | [] [] () | - libextractor | | - libgnutls | [] | - libgpewidget | [] [] | - libgpg-error | [] [] | - libgphoto2 | [] () | - libgphoto2_port | [] () [] | - libgsasl | | - libiconv | [] [] [] [] [] | - libidn | [] [] [] | - lifelines | [] () | - liferea | [] [] [] [] [] | - lilypond | [] [] [] | - linkdr | [] [] [] | - lordsawar | [] | - lprng | | - lynx | [] [] [] [] | - m4 | [] [] [] [] | - mailfromd | | - mailutils | [] | - make | [] [] [] | - man-db | | - man-db-manpages | | - minicom | [] [] [] [] | - mkisofs | | - myserver | | - nano | [] [] [] | - opcodes | [] [] | - parted | [] [] | - pies | | - popt | [] [] [] [] [] | - psmisc | [] [] [] | - pspp | [] | - pwdutils | [] | - radius | [] | - recode | [] [] [] [] [] [] | - rosegarden | () () () | - rpm | [] [] [] | - rush | | - sarg | | - screem | | - scrollkeeper | [] [] [] [] [] | - sed | [] [] [] [] [] [] | - sharutils | [] [] [] [] | - shishi | | - skencil | [] () [] | - solfege | [] [] [] | - solfege-manual | [] [] | - soundtracker | [] [] [] | - sp | [] | - sysstat | [] [] [] | - tar | [] [] [] [] | - texinfo | [] [] [] | - tin | [] [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux-ng | [] [] [] [] | - vice | () () | - vmm | [] | - vorbis-tools | [] [] | - wastesedge | [] | - wdiff | [] [] | - wget | [] [] [] | - wyslij-po | | - xchat | [] [] [] [] [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] [] [] [] | - +-------------------------------------------------+ - crh cs da de el en en_GB en_ZA eo es et eu fa - 5 64 105 117 18 1 8 0 28 89 18 19 0 - - fi fr ga gl gu he hi hr hu hy id is it ja ka kn - +----------------------------------------------------+ - a2ps | [] [] [] [] | - aegis | [] [] | - ant-phone | [] [] | - anubis | [] [] [] [] | - aspell | [] [] [] [] | - bash | [] [] [] [] | - bfd | [] [] [] | - bibshelf | [] [] [] [] [] | - binutils | [] [] [] | - bison | [] [] [] [] | - bison-runtime | [] [] [] [] [] [] | - bluez-pin | [] [] [] [] [] [] [] [] | - bombono-dvd | [] | - buzztard | [] | - cflow | [] [] [] | - clisp | [] | - coreutils | [] [] [] [] [] | - cpio | [] [] [] [] | - cppi | [] [] | - cpplib | [] [] [] | - cryptsetup | [] [] [] | - dfarc | [] [] [] | - dialog | [] [] [] [] [] [] [] | - dico | | - diffutils | [] [] [] [] [] [] [] [] [] | - dink | [] | - doodle | [] [] | - e2fsprogs | [] [] | - enscript | [] [] [] [] | - exif | [] [] [] [] [] [] | - fetchmail | [] [] [] [] | - findutils | [] [] [] [] [] [] | - flex | [] [] [] | - freedink | [] [] [] | - gas | [] [] | - gawk | [] [] [] [] () [] | - gcal | [] | - gcc | [] | - gettext-examples | [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] | - gettext-tools | [] [] [] [] | - gip | [] [] [] [] [] [] | - gjay | [] | - gliv | [] () | - glunarclock | [] [] [] [] | - gnubiff | () [] () | - gnucash | () () () () () [] | - gnuedu | [] [] | - gnulib | [] [] [] [] [] [] | - gnunet | | - gnunet-gtk | [] | - gnutls | [] [] | - gold | [] [] | - gpe-aerial | [] [] [] | - gpe-beam | [] [] [] [] | - gpe-bluetooth | [] [] [] [] | - gpe-calendar | [] [] | - gpe-clock | [] [] [] [] [] | - gpe-conf | [] [] [] [] | - gpe-contacts | [] [] [] [] | - gpe-edit | [] [] [] | - gpe-filemanager | [] [] [] [] | - gpe-go | [] [] [] [] [] | - gpe-login | [] [] [] | - gpe-ownerinfo | [] [] [] [] [] | - gpe-package | [] [] [] | - gpe-sketchbook | [] [] [] [] | - gpe-su | [] [] [] [] [] [] | - gpe-taskmanager | [] [] [] [] [] | - gpe-timesheet | [] [] [] [] [] | - gpe-today | [] [] [] [] [] [] [] | - gpe-todo | [] [] [] | - gphoto2 | [] [] [] [] [] [] | - gprof | [] [] [] [] | - gpsdrive | [] [] [] | - gramadoir | [] [] [] | - grep | [] [] | - grub | [] [] [] [] | - gsasl | [] [] [] [] [] | - gss | [] [] [] [] [] | - gst-plugins-bad | [] [] [] [] [] [] | - gst-plugins-base | [] [] [] [] [] [] | - gst-plugins-good | [] [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] [] [] | - gstreamer | [] [] [] [] [] | - gtick | [] [] [] [] [] | - gtkam | [] [] [] [] [] | - gtkorphan | [] [] [] | - gtkspell | [] [] [] [] [] [] [] [] [] | - gutenprint | [] [] [] [] | - hello | [] [] [] | - help2man | [] [] | - hylafax | [] | - idutils | [] [] [] [] [] [] | - indent | [] [] [] [] [] [] [] [] | - iso_15924 | [] () [] [] | - iso_3166 | [] () [] [] [] [] [] [] [] [] [] [] | - iso_3166_2 | () [] [] [] | - iso_4217 | [] () [] [] [] [] | - iso_639 | [] () [] [] [] [] [] [] [] | - iso_639_3 | () [] [] | - jwhois | [] [] [] [] [] | - kbd | [] [] | - keytouch | [] [] [] [] [] [] | - keytouch-editor | [] [] [] [] [] | - keytouch-keyboa... | [] [] [] [] [] | - klavaro | [] [] | - latrine | [] [] [] | - ld | [] [] [] [] | - leafpad | [] [] [] [] [] [] [] () | - libc | [] [] [] [] [] | - libexif | [] | - libextractor | | - libgnutls | [] [] | - libgpewidget | [] [] [] [] | - libgpg-error | [] [] | - libgphoto2 | [] [] [] | - libgphoto2_port | [] [] [] | - libgsasl | [] [] [] [] [] | - libiconv | [] [] [] [] [] [] | - libidn | [] [] [] [] | - lifelines | () | - liferea | [] [] [] [] | - lilypond | [] [] | - linkdr | [] [] [] [] [] | - lordsawar | | - lprng | [] | - lynx | [] [] [] [] [] | - m4 | [] [] [] [] [] [] | - mailfromd | | - mailutils | [] [] | - make | [] [] [] [] [] [] [] [] [] | - man-db | [] [] | - man-db-manpages | [] | - minicom | [] [] [] [] [] | - mkisofs | [] [] [] [] | - myserver | | - nano | [] [] [] [] [] [] | - opcodes | [] [] [] [] | - parted | [] [] [] [] | - pies | | - popt | [] [] [] [] [] [] [] [] [] | - psmisc | [] [] [] | - pspp | | - pwdutils | [] [] | - radius | [] [] | - recode | [] [] [] [] [] [] [] [] | - rosegarden | () () () () () | - rpm | [] [] | - rush | | - sarg | [] | - screem | [] [] | - scrollkeeper | [] [] [] [] | - sed | [] [] [] [] [] [] [] [] | - sharutils | [] [] [] [] [] [] [] | - shishi | [] | - skencil | [] | - solfege | [] [] [] [] | - solfege-manual | [] [] | - soundtracker | [] [] | - sp | [] () | - sysstat | [] [] [] [] [] | - tar | [] [] [] [] [] [] [] | - texinfo | [] [] [] [] | - tin | [] | - unicode-han-tra... | | - unicode-transla... | [] [] | - util-linux-ng | [] [] [] [] [] [] | - vice | () () () | - vmm | [] | - vorbis-tools | [] | - wastesedge | () () | - wdiff | [] | - wget | [] [] [] [] [] [] [] [] | - wyslij-po | [] [] [] | - xchat | [] [] [] [] [] [] [] [] [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] [] [] | - +----------------------------------------------------+ - fi fr ga gl gu he hi hr hu hy id is it ja ka kn - 105 121 53 20 4 8 3 5 53 2 120 5 84 67 0 4 - - ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne - +-----------------------------------------------+ - a2ps | [] | - aegis | | - ant-phone | | - anubis | [] [] | - aspell | [] | - bash | | - bfd | | - bibshelf | [] [] | - binutils | | - bison | [] | - bison-runtime | [] [] [] [] [] | - bluez-pin | [] [] [] [] [] | - bombono-dvd | | - buzztard | | - cflow | | - clisp | | - coreutils | [] | - cpio | | - cppi | | - cpplib | | - cryptsetup | | - dfarc | [] | - dialog | [] [] [] [] [] | - dico | | - diffutils | [] [] | - dink | | - doodle | | - e2fsprogs | | - enscript | | - exif | [] | - fetchmail | | - findutils | | - flex | | - freedink | [] | - gas | | - gawk | | - gcal | | - gcc | | - gettext-examples | [] [] [] [] | - gettext-runtime | [] | - gettext-tools | [] | - gip | [] [] | - gjay | | - gliv | | - glunarclock | [] | - gnubiff | | - gnucash | () () () () | - gnuedu | | - gnulib | | - gnunet | | - gnunet-gtk | | - gnutls | [] | - gold | | - gpe-aerial | [] | - gpe-beam | [] | - gpe-bluetooth | [] [] | - gpe-calendar | [] | - gpe-clock | [] [] [] [] [] | - gpe-conf | [] [] | - gpe-contacts | [] [] | - gpe-edit | [] | - gpe-filemanager | [] [] | - gpe-go | [] [] [] | - gpe-login | [] | - gpe-ownerinfo | [] [] | - gpe-package | [] [] | - gpe-sketchbook | [] [] | - gpe-su | [] [] [] [] [] [] | - gpe-taskmanager | [] [] [] [] [] [] | - gpe-timesheet | [] [] | - gpe-today | [] [] [] [] | - gpe-todo | [] [] | - gphoto2 | | - gprof | [] | - gpsdrive | | - gramadoir | | - grep | | - grub | | - gsasl | | - gss | | - gst-plugins-bad | [] [] [] [] | - gst-plugins-base | [] [] | - gst-plugins-good | [] [] | - gst-plugins-ugly | [] [] [] [] [] | - gstreamer | | - gtick | | - gtkam | [] | - gtkorphan | [] [] | - gtkspell | [] [] [] [] [] [] [] | - gutenprint | | - hello | [] [] [] | - help2man | | - hylafax | | - idutils | | - indent | | - iso_15924 | [] [] | - iso_3166 | [] [] () [] [] [] [] [] | - iso_3166_2 | | - iso_4217 | [] [] | - iso_639 | [] [] | - iso_639_3 | [] | - jwhois | [] | - kbd | | - keytouch | [] | - keytouch-editor | [] | - keytouch-keyboa... | [] | - klavaro | [] | - latrine | [] | - ld | | - leafpad | [] [] [] | - libc | [] | - libexif | | - libextractor | | - libgnutls | [] | - libgpewidget | [] [] | - libgpg-error | | - libgphoto2 | | - libgphoto2_port | | - libgsasl | | - libiconv | | - libidn | | - lifelines | | - liferea | | - lilypond | | - linkdr | | - lordsawar | | - lprng | | - lynx | | - m4 | | - mailfromd | | - mailutils | | - make | [] | - man-db | | - man-db-manpages | | - minicom | [] | - mkisofs | | - myserver | | - nano | [] [] | - opcodes | | - parted | | - pies | | - popt | [] [] [] | - psmisc | | - pspp | | - pwdutils | | - radius | | - recode | | - rosegarden | | - rpm | | - rush | | - sarg | | - screem | | - scrollkeeper | [] [] | - sed | | - sharutils | | - shishi | | - skencil | | - solfege | [] | - solfege-manual | | - soundtracker | | - sp | | - sysstat | [] | - tar | [] | - texinfo | [] | - tin | | - unicode-han-tra... | | - unicode-transla... | | - util-linux-ng | | - vice | | - vmm | | - vorbis-tools | | - wastesedge | | - wdiff | | - wget | [] | - wyslij-po | | - xchat | [] [] [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] | - +-----------------------------------------------+ - ko ku ky lg lt lv mk ml mn mr ms mt nb nds ne - 20 5 10 1 13 48 4 2 2 4 24 10 20 3 1 - - nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr - +---------------------------------------------------+ - a2ps | [] [] [] [] [] [] [] [] | - aegis | [] [] [] | - ant-phone | [] [] | - anubis | [] [] [] | - aspell | [] [] [] [] [] | - bash | [] [] | - bfd | [] | - bibshelf | [] [] | - binutils | [] [] | - bison | [] [] [] | - bison-runtime | [] [] [] [] [] [] [] | - bluez-pin | [] [] [] [] [] [] [] [] | - bombono-dvd | [] () | - buzztard | [] [] | - cflow | [] | - clisp | [] [] | - coreutils | [] [] [] [] [] [] | - cpio | [] [] [] | - cppi | [] | - cpplib | [] | - cryptsetup | [] | - dfarc | [] | - dialog | [] [] [] [] | - dico | [] | - diffutils | [] [] [] [] [] [] | - dink | () | - doodle | [] [] | - e2fsprogs | [] [] | - enscript | [] [] [] [] [] | - exif | [] [] [] () [] | - fetchmail | [] [] [] [] | - findutils | [] [] [] [] [] | - flex | [] [] [] [] [] | - freedink | [] [] | - gas | | - gawk | [] [] [] [] | - gcal | | - gcc | [] | - gettext-examples | [] [] [] [] [] [] [] [] | - gettext-runtime | [] [] [] [] [] [] [] [] [] | - gettext-tools | [] [] [] [] [] [] | - gip | [] [] [] [] [] | - gjay | | - gliv | [] [] [] [] [] [] | - glunarclock | [] [] [] [] [] | - gnubiff | [] () | - gnucash | [] () () () | - gnuedu | [] | - gnulib | [] [] [] [] | - gnunet | | - gnunet-gtk | | - gnutls | [] [] | - gold | | - gpe-aerial | [] [] [] [] [] [] [] | - gpe-beam | [] [] [] [] [] [] [] | - gpe-bluetooth | [] [] | - gpe-calendar | [] [] [] [] | - gpe-clock | [] [] [] [] [] [] [] [] | - gpe-conf | [] [] [] [] [] [] [] | - gpe-contacts | [] [] [] [] [] | - gpe-edit | [] [] [] | - gpe-filemanager | [] [] [] | - gpe-go | [] [] [] [] [] [] [] [] | - gpe-login | [] [] | - gpe-ownerinfo | [] [] [] [] [] [] [] [] | - gpe-package | [] [] | - gpe-sketchbook | [] [] [] [] [] [] [] | - gpe-su | [] [] [] [] [] [] [] [] | - gpe-taskmanager | [] [] [] [] [] [] [] [] | - gpe-timesheet | [] [] [] [] [] [] [] [] | - gpe-today | [] [] [] [] [] [] [] [] | - gpe-todo | [] [] [] [] [] | - gphoto2 | [] [] [] [] [] [] [] [] | - gprof | [] [] [] | - gpsdrive | [] [] | - gramadoir | [] [] | - grep | [] [] [] [] | - grub | [] [] [] | - gsasl | [] [] [] [] | - gss | [] [] [] | - gst-plugins-bad | [] [] [] [] [] [] | - gst-plugins-base | [] [] [] [] [] | - gst-plugins-good | [] [] [] [] [] | - gst-plugins-ugly | [] [] [] [] [] [] | - gstreamer | [] [] [] [] [] | - gtick | [] [] [] | - gtkam | [] [] [] [] [] [] | - gtkorphan | [] | - gtkspell | [] [] [] [] [] [] [] [] [] [] | - gutenprint | [] [] | - hello | [] [] [] [] | - help2man | [] [] | - hylafax | [] | - idutils | [] [] [] [] [] | - indent | [] [] [] [] [] [] [] | - iso_15924 | [] [] [] [] | - iso_3166 | [] [] [] [] [] () [] [] [] [] [] [] [] [] | - iso_3166_2 | [] [] [] | - iso_4217 | [] [] [] [] [] [] [] [] | - iso_639 | [] [] [] [] [] [] [] [] [] | - iso_639_3 | [] [] | - jwhois | [] [] [] [] | - kbd | [] [] [] | - keytouch | [] [] [] | - keytouch-editor | [] [] [] | - keytouch-keyboa... | [] [] [] | - klavaro | [] [] | - latrine | [] [] | - ld | | - leafpad | [] [] [] [] [] [] [] [] [] | - libc | [] [] [] [] | - libexif | [] [] () [] | - libextractor | | - libgnutls | [] [] | - libgpewidget | [] [] [] | - libgpg-error | [] [] | - libgphoto2 | [] [] | - libgphoto2_port | [] [] [] [] [] | - libgsasl | [] [] [] [] [] | - libiconv | [] [] [] [] [] | - libidn | [] [] | - lifelines | [] [] | - liferea | [] [] [] [] [] () () [] | - lilypond | [] | - linkdr | [] [] [] | - lordsawar | | - lprng | [] | - lynx | [] [] [] | - m4 | [] [] [] [] [] | - mailfromd | [] | - mailutils | [] | - make | [] [] [] [] | - man-db | [] [] [] | - man-db-manpages | [] [] [] | - minicom | [] [] [] [] | - mkisofs | [] [] [] | - myserver | | - nano | [] [] [] [] | - opcodes | [] [] | - parted | [] [] [] [] | - pies | [] | - popt | [] [] [] [] | - psmisc | [] [] [] | - pspp | [] [] | - pwdutils | [] | - radius | [] [] [] | - recode | [] [] [] [] [] [] [] [] | - rosegarden | () () | - rpm | [] [] [] | - rush | [] [] | - sarg | | - screem | | - scrollkeeper | [] [] [] [] [] [] [] [] | - sed | [] [] [] [] [] [] [] [] [] | - sharutils | [] [] [] [] | - shishi | [] | - skencil | [] [] | - solfege | [] [] [] [] | - solfege-manual | [] [] [] | - soundtracker | [] | - sp | | - sysstat | [] [] [] [] | - tar | [] [] [] [] | - texinfo | [] [] [] [] | - tin | [] | - unicode-han-tra... | | - unicode-transla... | | - util-linux-ng | [] [] [] [] [] | - vice | [] | - vmm | [] | - vorbis-tools | [] [] | - wastesedge | [] | - wdiff | [] [] | - wget | [] [] [] [] [] [] [] | - wyslij-po | [] [] [] | - xchat | [] [] [] [] [] [] [] [] [] | - xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] [] [] [] [] | - xkeyboard-config | [] [] [] | - +---------------------------------------------------+ - nl nn or pa pl ps pt pt_BR ro ru rw sk sl sq sr - 135 10 4 7 105 1 29 62 47 91 3 54 46 9 37 - - sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW - +---------------------------------------------------+ - a2ps | [] [] [] [] [] | 27 - aegis | [] | 9 - ant-phone | [] [] [] [] | 9 - anubis | [] [] [] [] | 15 - aspell | [] [] [] | 20 - bash | [] [] [] | 12 - bfd | [] | 6 - bibshelf | [] [] [] | 16 - binutils | [] [] | 8 - bison | [] [] | 12 - bison-runtime | [] [] [] [] [] [] | 29 - bluez-pin | [] [] [] [] [] [] [] [] | 37 - bombono-dvd | [] | 4 - buzztard | [] | 7 - cflow | [] [] [] | 9 - clisp | | 10 - coreutils | [] [] [] [] | 22 - cpio | [] [] [] [] [] [] | 13 - cppi | [] [] | 5 - cpplib | [] [] [] [] [] [] | 14 - cryptsetup | [] [] | 7 - dfarc | [] | 9 - dialog | [] [] [] [] [] [] [] | 30 - dico | [] | 2 - diffutils | [] [] [] [] [] [] | 30 - dink | | 4 - doodle | [] [] | 7 - e2fsprogs | [] [] [] | 11 - enscript | [] [] [] [] | 17 - exif | [] [] [] | 16 - fetchmail | [] [] [] | 17 - findutils | [] [] [] [] [] | 20 - flex | [] [] [] [] | 15 - freedink | [] | 10 - gas | [] | 4 - gawk | [] [] [] [] | 18 - gcal | [] [] | 5 - gcc | [] [] [] | 7 - gettext-examples | [] [] [] [] [] [] [] | 34 - gettext-runtime | [] [] [] [] [] [] [] | 29 - gettext-tools | [] [] [] [] [] [] | 22 - gip | [] [] [] [] | 22 - gjay | [] | 3 - gliv | [] [] [] | 14 - glunarclock | [] [] [] [] [] | 19 - gnubiff | [] [] | 4 - gnucash | () [] () [] () | 10 - gnuedu | [] [] | 7 - gnulib | [] [] [] [] | 16 - gnunet | [] | 1 - gnunet-gtk | [] [] [] | 5 - gnutls | [] [] [] | 10 - gold | [] | 4 - gpe-aerial | [] [] [] | 18 - gpe-beam | [] [] [] | 19 - gpe-bluetooth | [] [] [] | 13 - gpe-calendar | [] [] [] [] | 12 - gpe-clock | [] [] [] [] [] | 28 - gpe-conf | [] [] [] [] | 20 - gpe-contacts | [] [] [] | 17 - gpe-edit | [] [] [] | 12 - gpe-filemanager | [] [] [] [] | 16 - gpe-go | [] [] [] [] [] | 25 - gpe-login | [] [] [] | 11 - gpe-ownerinfo | [] [] [] [] [] | 25 - gpe-package | [] [] [] | 13 - gpe-sketchbook | [] [] [] | 20 - gpe-su | [] [] [] [] [] | 30 - gpe-taskmanager | [] [] [] [] [] | 29 - gpe-timesheet | [] [] [] [] [] | 25 - gpe-today | [] [] [] [] [] [] | 30 - gpe-todo | [] [] [] [] | 17 - gphoto2 | [] [] [] [] [] | 24 - gprof | [] [] [] | 15 - gpsdrive | [] [] [] | 11 - gramadoir | [] [] [] | 11 - grep | [] [] [] | 10 - grub | [] [] [] | 14 - gsasl | [] [] [] [] | 14 - gss | [] [] [] | 11 - gst-plugins-bad | [] [] [] [] | 26 - gst-plugins-base | [] [] [] [] [] | 24 - gst-plugins-good | [] [] [] [] | 24 - gst-plugins-ugly | [] [] [] [] [] | 29 - gstreamer | [] [] [] [] | 22 - gtick | [] [] [] | 13 - gtkam | [] [] [] | 20 - gtkorphan | [] [] [] | 14 - gtkspell | [] [] [] [] [] [] [] [] [] | 45 - gutenprint | [] | 10 - hello | [] [] [] [] [] [] | 21 - help2man | [] [] | 7 - hylafax | [] | 5 - idutils | [] [] [] [] | 17 - indent | [] [] [] [] [] [] | 30 - iso_15924 | () [] () [] [] | 16 - iso_3166 | [] [] () [] [] () [] [] [] () | 53 - iso_3166_2 | () [] () [] | 9 - iso_4217 | [] () [] [] () [] [] | 26 - iso_639 | [] [] [] () [] () [] [] [] [] | 38 - iso_639_3 | [] () | 8 - jwhois | [] [] [] [] [] | 16 - kbd | [] [] [] [] [] | 15 - keytouch | [] [] [] | 16 - keytouch-editor | [] [] [] | 14 - keytouch-keyboa... | [] [] [] | 14 - klavaro | [] | 11 - latrine | [] [] [] | 10 - ld | [] [] [] [] | 11 - leafpad | [] [] [] [] [] [] | 33 - libc | [] [] [] [] [] | 21 - libexif | [] () | 7 - libextractor | [] | 1 - libgnutls | [] [] [] | 9 - libgpewidget | [] [] [] | 14 - libgpg-error | [] [] [] | 9 - libgphoto2 | [] [] | 8 - libgphoto2_port | [] [] [] [] | 14 - libgsasl | [] [] [] | 13 - libiconv | [] [] [] [] | 21 - libidn | () [] [] | 11 - lifelines | [] | 4 - liferea | [] [] [] | 21 - lilypond | [] | 7 - linkdr | [] [] [] [] [] | 17 - lordsawar | | 1 - lprng | [] | 3 - lynx | [] [] [] [] | 17 - m4 | [] [] [] [] | 19 - mailfromd | [] [] | 3 - mailutils | [] | 5 - make | [] [] [] [] | 21 - man-db | [] [] [] | 8 - man-db-manpages | | 4 - minicom | [] [] | 16 - mkisofs | [] [] | 9 - myserver | | 0 - nano | [] [] [] [] | 21 - opcodes | [] [] [] | 11 - parted | [] [] [] [] [] | 15 - pies | [] [] | 3 - popt | [] [] [] [] [] [] | 27 - psmisc | [] [] | 11 - pspp | | 4 - pwdutils | [] [] | 6 - radius | [] [] | 9 - recode | [] [] [] [] | 28 - rosegarden | () | 0 - rpm | [] [] [] | 11 - rush | [] [] | 4 - sarg | | 1 - screem | [] | 3 - scrollkeeper | [] [] [] [] [] | 27 - sed | [] [] [] [] [] | 30 - sharutils | [] [] [] [] [] | 22 - shishi | [] | 3 - skencil | [] [] | 7 - solfege | [] [] [] [] | 16 - solfege-manual | [] | 8 - soundtracker | [] [] [] | 9 - sp | [] | 3 - sysstat | [] [] | 15 - tar | [] [] [] [] [] [] | 23 - texinfo | [] [] [] [] [] | 17 - tin | | 4 - unicode-han-tra... | | 0 - unicode-transla... | | 2 - util-linux-ng | [] [] [] [] | 20 - vice | () () | 1 - vmm | [] | 4 - vorbis-tools | [] | 6 - wastesedge | | 2 - wdiff | [] [] | 7 - wget | [] [] [] [] [] | 26 - wyslij-po | [] [] | 8 - xchat | [] [] [] [] [] [] | 36 - xdg-user-dirs | [] [] [] [] [] [] [] [] [] [] | 63 - xkeyboard-config | [] [] [] | 22 - +---------------------------------------------------+ - 85 teams sv sw ta te tg th tr uk vi wa zh_CN zh_HK zh_TW - 178 domains 119 1 3 3 0 10 65 51 155 17 98 7 41 2618 - - Some counters in the preceding matrix are higher than the number of -visible blocks let us expect. This is because a few extra PO files are -used for implementing regional variants of languages, or language -dialects. - - For a PO file in the matrix above to be effective, the package to -which it applies should also have been internationalized and -distributed as such by its maintainer. There might be an observable -lag between the mere existence a PO file and its wide availability in a -distribution. - - If June 2010 seems to be old, you may fetch a more recent copy of -this `ABOUT-NLS' file on most GNU archive sites. The most up-to-date -matrix with full percentage details can be found at -`http://translationproject.org/extra/matrix.html'. - -1.5 Using `gettext' in new packages -=================================== - -If you are writing a freely available program and want to -internationalize it you are welcome to use GNU `gettext' in your -package. Of course you have to respect the GNU Library General Public -License which covers the use of the GNU `gettext' library. This means -in particular that even non-free programs can use `libintl' as a shared -library, whereas only free software can use `libintl' as a static -library or use modified versions of `libintl'. - - Once the sources are changed appropriately and the setup can handle -the use of `gettext' the only thing missing are the translations. The -Free Translation Project is also available for packages which are not -developed inside the GNU project. Therefore the information given above -applies also for every other Free Software Project. Contact -`coordinator@translationproject.org' to make the `.pot' files available -to the translation teams. - diff --git a/libesedb-sys/libesedb-20210424/AUTHORS b/libesedb-sys/libesedb-20210424/AUTHORS deleted file mode 100644 index 050d050..0000000 --- a/libesedb-sys/libesedb-20210424/AUTHORS +++ /dev/null @@ -1,4 +0,0 @@ -Acknowledgements: libesedb - -Copyright (C) 2009-2021, Joachim Metz - diff --git a/libesedb-sys/libesedb-20210424/dpkg/changelog b/libesedb-sys/libesedb-20210424/dpkg/changelog deleted file mode 100644 index e99c2d8..0000000 --- a/libesedb-sys/libesedb-20210424/dpkg/changelog +++ /dev/null @@ -1,5 +0,0 @@ -libesedb (20210424-1) unstable; urgency=low - - * Auto-generated - - -- Joachim Metz Sat, 24 Apr 2021 13:59:37 +0200 diff --git a/libesedb-sys/libesedb-20210424/dpkg/compat b/libesedb-sys/libesedb-20210424/dpkg/compat deleted file mode 100644 index ec63514..0000000 --- a/libesedb-sys/libesedb-20210424/dpkg/compat +++ /dev/null @@ -1 +0,0 @@ -9 diff --git a/libesedb-sys/libesedb-20210424/dpkg/libesedb-python.install b/libesedb-sys/libesedb-20210424/dpkg/libesedb-python.install deleted file mode 100644 index dbdb301..0000000 --- a/libesedb-sys/libesedb-20210424/dpkg/libesedb-python.install +++ /dev/null @@ -1 +0,0 @@ -/usr/lib/python2* diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree.c b/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree.c deleted file mode 100644 index 3e7291c..0000000 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree.c +++ /dev/null @@ -1,1256 +0,0 @@ -/* - * The tree functions - * - * Copyright (C) 2010-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include -#include - -#include "libfdata_definitions.h" -#include "libfdata_libcerror.h" -#include "libfdata_libcnotify.h" -#include "libfdata_libfcache.h" -#include "libfdata_tree.h" -#include "libfdata_tree_node.h" -#include "libfdata_types.h" - -/* Creates a tree - * Make sure the value tree is referencing, is set to NULL - * - * If the flag LIBFDATA_DATA_HANDLE_FLAG_MANAGED is set the tree - * takes over management of the data handle and the data handle is freed when - * no longer needed - * - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_initialize( - libfdata_tree_t **tree, - intptr_t *data_handle, - int (*free_data_handle)( - intptr_t **data_handle, - libcerror_error_t **error ), - int (*clone_data_handle)( - intptr_t **destination_data_handle, - intptr_t *source_data_handle, - libcerror_error_t **error ), - int (*read_node)( - intptr_t *data_handle, - intptr_t *file_io_handle, - libfdata_tree_node_t *node, - libfdata_cache_t *cache, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - uint8_t read_flags, - libcerror_error_t **error ), - int (*read_sub_nodes)( - intptr_t *data_handle, - intptr_t *file_io_handle, - libfdata_tree_node_t *node, - libfdata_cache_t *cache, - int sub_nodes_file_index, - off64_t sub_nodes_offset, - size64_t sub_nodes_size, - uint32_t sub_nodes_flags, - uint8_t read_flags, - libcerror_error_t **error ), - uint8_t flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_initialize"; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - if( *tree != NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, - "%s: invalid tree value already set.", - function ); - - return( -1 ); - } - if( read_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid read node function.", - function ); - - return( -1 ); - } - if( read_sub_nodes == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid read sub nodes function.", - function ); - - return( -1 ); - } - internal_tree = memory_allocate_structure( - libfdata_internal_tree_t ); - - if( internal_tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_MEMORY, - LIBCERROR_MEMORY_ERROR_INSUFFICIENT, - "%s: unable to create tree.", - function ); - - goto on_error; - } - if( memory_set( - internal_tree, - 0, - sizeof( libfdata_internal_tree_t ) ) == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_MEMORY, - LIBCERROR_MEMORY_ERROR_SET_FAILED, - "%s: unable to clear tree.", - function ); - - goto on_error; - } - internal_tree->flags |= flags; - internal_tree->data_handle = data_handle; - internal_tree->free_data_handle = free_data_handle; - internal_tree->clone_data_handle = clone_data_handle; - internal_tree->read_node = read_node; - internal_tree->read_sub_nodes = read_sub_nodes; - - *tree = (libfdata_tree_t *) internal_tree; - - return( 1 ); - -on_error: - if( internal_tree != NULL ) - { - memory_free( - internal_tree ); - } - return( -1 ); -} - -/* Frees a tree - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_free( - libfdata_tree_t **tree, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_free"; - int result = 1; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - if( *tree != NULL ) - { - internal_tree = (libfdata_internal_tree_t *) *tree; - *tree = NULL; - - if( internal_tree->root_node != NULL ) - { - if( libfdata_tree_node_free( - &( internal_tree->root_node ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free root node.", - function ); - - result = -1; - } - } - if( ( internal_tree->flags & LIBFDATA_DATA_HANDLE_FLAG_MANAGED ) != 0 ) - { - if( internal_tree->data_handle != NULL ) - { - if( internal_tree->free_data_handle == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid list - missing free data handle function.", - function ); - - result = -1; - } - else if( internal_tree->free_data_handle( - &( internal_tree->data_handle ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free data handle.", - function ); - - result = -1; - } - } - } - memory_free( - internal_tree ); - } - return( result ); -} - -/* Clones (duplicates) the tree - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_clone( - libfdata_tree_t **destination_tree, - libfdata_tree_t *source_tree, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_source_tree = NULL; - libfdata_tree_node_t *source_tree_root_node = NULL; - intptr_t *destination_data_handle = NULL; - static char *function = "libfdata_tree_clone"; - off64_t node_offset = 0; - size64_t node_size = 0; - uint32_t node_flags = 0; - int node_file_index = -1; - - if( destination_tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid destination tree.", - function ); - - return( -1 ); - } - if( *destination_tree != NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, - "%s: invalid destination tree value already set.", - function ); - - return( -1 ); - } - if( source_tree == NULL ) - { - *destination_tree = NULL; - - return( 1 ); - } - internal_source_tree = (libfdata_internal_tree_t *) source_tree; - - if( internal_source_tree->data_handle != NULL ) - { - if( internal_source_tree->free_data_handle == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid source tree - missing free data handle function.", - function ); - - goto on_error; - } - if( internal_source_tree->clone_data_handle == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid source tree - missing clone data handle function.", - function ); - - goto on_error; - } - if( internal_source_tree->clone_data_handle( - &destination_data_handle, - internal_source_tree->data_handle, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to clone data handle.", - function ); - - goto on_error; - } - } - if( libfdata_tree_initialize( - destination_tree, - destination_data_handle, - internal_source_tree->free_data_handle, - internal_source_tree->clone_data_handle, - internal_source_tree->read_node, - internal_source_tree->read_sub_nodes, - LIBFDATA_DATA_HANDLE_FLAG_MANAGED, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create destination tree.", - function ); - - goto on_error; - } - destination_data_handle = NULL; - - if( libfdata_tree_get_root_node( - source_tree, - &source_tree_root_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve source tree root node.", - function ); - - goto on_error; - } - if( libfdata_tree_node_get_data_range( - source_tree_root_node, - &node_file_index, - &node_offset, - &node_size, - &node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve source tree root node data range.", - function ); - - goto on_error; - } - if( libfdata_tree_set_root_node( - *destination_tree, - node_file_index, - node_offset, - node_size, - node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set destination tree root node.", - function ); - - goto on_error; - } - /* TODO or clone all the tree nodes ? */ - - return( 1 ); - -on_error: - if( *destination_tree != NULL ) - { - libfdata_tree_free( - destination_tree, - NULL ); - } - if( destination_data_handle != NULL ) - { - internal_source_tree->free_data_handle( - &destination_data_handle, - NULL ); - } - return( -1 ); -} - -/* Retrieves the node value of the node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_get_node_value( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - libfdata_tree_node_t *node, - intptr_t **node_value, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfcache_cache_value_t *cache_value = NULL; - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_get_node_value"; - size64_t node_size = 0; - off64_t cache_value_offset = (off64_t) -1; - off64_t node_offset = 0; - int64_t cache_value_timestamp = 0; - int64_t node_timestamp = 0; - uint32_t node_flags = 0; - int cache_entry_index = -1; - int cache_value_file_index = -1; - int node_file_index = -1; - int number_of_cache_entries = 0; - int result = 0; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree = (libfdata_internal_tree_t *) tree; - - if( internal_tree->read_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid tree - missing read node function.", - function ); - - return( -1 ); - } - if( libfdata_tree_node_get_data_range( - node, - &node_file_index, - &node_offset, - &node_size, - &node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve data range from tree node.", - function ); - - return( -1 ); - } - if( libfcache_cache_get_number_of_entries( - (libfcache_cache_t *) cache, - &number_of_cache_entries, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of cache entries.", - function ); - - return( -1 ); - } - if( number_of_cache_entries <= 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid number of cache entries value out of bounds.", - function ); - - return( -1 ); - } - if( ( read_flags & LIBFDATA_READ_FLAG_IGNORE_CACHE ) == 0 ) - { - if( ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - cache_entry_index = libfdata_tree_node_calculate_leaf_node_cache_entry_index( - node_offset, - number_of_cache_entries ); - } - else - { - cache_entry_index = libfdata_tree_node_calculate_branch_node_cache_entry_index( - node_offset, - number_of_cache_entries ); - } - if( libfcache_cache_get_value_by_index( - (libfcache_cache_t *) cache, - cache_entry_index, - &cache_value, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve cache entry: %d from cache.", - function, - cache_entry_index ); - - return( -1 ); - } - if( cache_value != NULL ) - { - if( libfdata_tree_node_get_timestamp( - node, - &node_timestamp, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve time stamp from tree node.", - function ); - - return( -1 ); - } - if( libfcache_cache_value_get_identifier( - cache_value, - &cache_value_file_index, - &cache_value_offset, - &cache_value_timestamp, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve cache value identifier.", - function ); - - return( -1 ); - } - } - if( ( node_file_index == cache_value_file_index ) - && ( node_offset == cache_value_offset ) - && ( node_timestamp == cache_value_timestamp ) ) - { - result = 1; - } -#if defined( HAVE_DEBUG_OUTPUT ) - if( libcnotify_verbose != 0 ) - { - if( result == 0 ) - { - libcnotify_printf( - "%s: cache: 0x%08" PRIjx " miss (entry: %d, want: %" PRIi64 ", got: %" PRIi64 ")\n", - function, - (intptr_t) cache, - cache_entry_index, - node_offset, - cache_value_offset ); - } - else - { - libcnotify_printf( - "%s: cache: 0x%08" PRIjx " hit (entry: %d)\n", - function, - (intptr_t) cache, - cache_entry_index ); - } - } -#endif - } - if( result == 0 ) - { -#if defined( HAVE_DEBUG_OUTPUT ) - if( libcnotify_verbose != 0 ) - { - libcnotify_printf( - "%s: reading node at offset: %" PRIi64 " (0x%08" PRIx64 ") of size: %" PRIu64 "\n", - function, - node_offset, - node_offset, - node_size ); - } -#endif - if( internal_tree->read_node( - internal_tree->data_handle, - file_io_handle, - node, - cache, - node_file_index, - node_offset, - node_size, - node_flags, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_IO, - LIBCERROR_IO_ERROR_READ_FAILED, - "%s: unable to read node at offset: 0x%08" PRIx64 ".", - function, - node_offset ); - - return( -1 ); - } - if( ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - cache_entry_index = libfdata_tree_node_calculate_leaf_node_cache_entry_index( - node_offset, - number_of_cache_entries ); - } - else - { - cache_entry_index = libfdata_tree_node_calculate_branch_node_cache_entry_index( - node_offset, - number_of_cache_entries ); - } - if( libfcache_cache_get_value_by_index( - (libfcache_cache_t *) cache, - cache_entry_index, - &cache_value, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve cache entry: %d from cache.", - function, - cache_entry_index ); - - return( -1 ); - } - if( cache_value != NULL ) - { - if( libfdata_tree_node_get_timestamp( - node, - &node_timestamp, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve time stamp from tree node.", - function ); - - return( -1 ); - } - if( libfcache_cache_value_get_identifier( - cache_value, - &cache_value_file_index, - &cache_value_offset, - &cache_value_timestamp, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve cache value identifier.", - function ); - - return( -1 ); - } - } - if( ( node_file_index != cache_value_file_index ) - || ( node_offset != cache_value_offset ) - || ( node_timestamp != cache_value_timestamp ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: missing cache value.", - function ); - - return( -1 ); - } - } - if( libfcache_cache_value_get_value( - cache_value, - node_value, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Sets the node value of the node - * - * If the flag LIBFDATA_TREE_NODE_VALUE_FLAG_MANAGED is set the tree - * takes over management of the value and the value is freed when - * no longer needed. - * - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_set_node_value( - libfdata_tree_t *tree, - libfdata_cache_t *cache, - libfdata_tree_node_t *node, - intptr_t *node_value, - int (*free_node_value)( - intptr_t **node_value, - libcerror_error_t **error ), - uint8_t flags, - libcerror_error_t **error ) -{ - static char *function = "libfdata_tree_set_node_value"; - size64_t node_size = 0; - off64_t node_offset = 0; - int64_t node_timestamp = 0; - uint32_t node_flags = 0; - int cache_entry_index = -1; - int node_file_index = -1; - int number_of_cache_entries = 0; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - if( libfdata_tree_node_get_data_range( - node, - &node_file_index, - &node_offset, - &node_size, - &node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve data range from tree node.", - function ); - - return( -1 ); - } - if( libfdata_tree_node_get_timestamp( - node, - &node_timestamp, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve timestamp from tree node.", - function ); - - return( -1 ); - } - if( libfcache_cache_get_number_of_entries( - (libfcache_cache_t *) cache, - &number_of_cache_entries, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of cache entries.", - function ); - - return( -1 ); - } - if( number_of_cache_entries <= 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid number of cache entries value out of bounds.", - function ); - - return( -1 ); - } - if( ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( ( (libfdata_internal_tree_node_t *) node )->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - cache_entry_index = libfdata_tree_node_calculate_leaf_node_cache_entry_index( - node_offset, - number_of_cache_entries ); - } - else - { - cache_entry_index = libfdata_tree_node_calculate_branch_node_cache_entry_index( - node_offset, - number_of_cache_entries ); - } - if( libfcache_cache_set_value_by_index( - (libfcache_cache_t *) cache, - cache_entry_index, - node_file_index, - node_offset, - node_timestamp, - node_value, - free_node_value, - flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set value in cache entry: %d.", - function, - cache_entry_index ); - - return( -1 ); - } - return( 1 ); -} - -/* Reads the sub nodes of the node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_read_sub_nodes( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - libfdata_tree_node_t *node, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_read_sub_nodes"; - off64_t sub_nodes_offset = 0; - size64_t sub_nodes_size = 0; - uint32_t sub_nodes_flags = 0; - int sub_nodes_file_index = -1; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree = (libfdata_internal_tree_t *) tree; - - if( internal_tree->read_sub_nodes == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid tree - missing read sub nodes function.", - function ); - - return( -1 ); - } - if( libfdata_tree_node_get_sub_nodes_data_range( - node, - &sub_nodes_file_index, - &sub_nodes_offset, - &sub_nodes_size, - &sub_nodes_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve sub nodes data range.", - function ); - - return( -1 ); - } - if( internal_tree->read_sub_nodes( - internal_tree->data_handle, - file_io_handle, - node, - cache, - sub_nodes_file_index, - sub_nodes_offset, - sub_nodes_size, - sub_nodes_flags, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_IO, - LIBCERROR_IO_ERROR_READ_FAILED, - "%s: unable to read sub nodes at offset: 0x%08" PRIx64 ".", - function, - sub_nodes_offset ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves the offset and size of the root node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_get_root_node( - libfdata_tree_t *tree, - libfdata_tree_node_t **root_node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_get_root_node"; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree = (libfdata_internal_tree_t *) tree; - - if( root_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid root node.", - function ); - - return( -1 ); - } - *root_node = internal_tree->root_node; - - return( 1 ); -} - -/* Sets the root node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_set_root_node( - libfdata_tree_t *tree, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_set_root_node"; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree = (libfdata_internal_tree_t *) tree; - - if( internal_tree->root_node == NULL ) - { - if( libfdata_tree_node_initialize( - &( internal_tree->root_node ), - tree, - NULL, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create root node.", - function ); - - return( -1 ); - } - } - if( libfdata_tree_node_set_data_range( - internal_tree->root_node, - node_file_index, - node_offset, - node_size, - node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set root node data range.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves the number of leaf nodes in the tree - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_get_number_of_leaf_nodes( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_leaf_nodes, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_get_number_of_leaf_nodes"; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree = (libfdata_internal_tree_t *) tree; - - if( libfdata_tree_node_get_number_of_leaf_nodes( - internal_tree->root_node, - file_io_handle, - cache, - number_of_leaf_nodes, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of leaf nodes from root node.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves a leaf nodes at a specific index - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_get_leaf_node_by_index( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int leaf_node_index, - libfdata_tree_node_t **leaf_node, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_get_leaf_node_by_index"; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree = (libfdata_internal_tree_t *) tree; - - if( libfdata_tree_node_get_leaf_node_by_index( - internal_tree->root_node, - file_io_handle, - cache, - leaf_node_index, - leaf_node, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve leaf node: %d from root node.", - function, - leaf_node_index ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves the number of deleted leaf nodes in the tree - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_get_number_of_deleted_leaf_nodes( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_deleted_leaf_nodes, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_get_number_of_deleted_leaf_nodes"; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree = (libfdata_internal_tree_t *) tree; - - if( libfdata_tree_node_get_number_of_deleted_leaf_nodes( - internal_tree->root_node, - file_io_handle, - cache, - number_of_deleted_leaf_nodes, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of deleted leaf nodes from root node.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves a deleted leaf nodes at a specific index - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_get_deleted_leaf_node_by_index( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int deleted_leaf_node_index, - libfdata_tree_node_t **deleted_leaf_node, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_t *internal_tree = NULL; - static char *function = "libfdata_tree_get_deleted_leaf_node_by_index"; - - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree = (libfdata_internal_tree_t *) tree; - - if( libfdata_tree_node_get_deleted_leaf_node_by_index( - internal_tree->root_node, - file_io_handle, - cache, - deleted_leaf_node_index, - deleted_leaf_node, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of deleted leaf node: %d from root node.", - function, - deleted_leaf_node_index ); - - return( -1 ); - } - return( 1 ); -} - diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree.h b/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree.h deleted file mode 100644 index a61e8b3..0000000 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree.h +++ /dev/null @@ -1,246 +0,0 @@ -/* - * The tree functions - * - * Copyright (C) 2010-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#if !defined( _LIBFDATA_INTERNAL_TREE_H ) -#define _LIBFDATA_INTERNAL_TREE_H - -#include -#include - -#include "libfdata_extern.h" -#include "libfdata_libcerror.h" -#include "libfdata_libfcache.h" -#include "libfdata_types.h" - -#if defined( __cplusplus ) -extern "C" { -#endif - -typedef struct libfdata_internal_tree libfdata_internal_tree_t; - -struct libfdata_internal_tree -{ - /* The root node - */ - libfdata_tree_node_t *root_node; - - /* The flags - */ - uint8_t flags; - - /* The calculate cache entry index value - */ - int (*calculate_cache_entry_index)( - int node_index, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - int number_of_cache_entries ); - - /* The data handle - */ - intptr_t *data_handle; - - /* The free data handle function - */ - int (*free_data_handle)( - intptr_t **data_handle, - libcerror_error_t **error ); - - /* The clone (duplicate) data handle function - */ - int (*clone_data_handle)( - intptr_t **destination_data_handle, - intptr_t *source_data_handle, - libcerror_error_t **error ); - - /* The read node function - */ - int (*read_node)( - intptr_t *data_handle, - intptr_t *file_io_handle, - libfdata_tree_node_t *node, - libfdata_cache_t *cache, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - uint8_t read_flags, - libcerror_error_t **error ); - - /* The read sub nodes function - */ - int (*read_sub_nodes)( - intptr_t *data_handle, - intptr_t *file_io_handle, - libfdata_tree_node_t *node, - libfdata_cache_t *cache, - int sub_nodes_file_index, - off64_t sub_nodes_offset, - size64_t sub_nodes_size, - uint32_t sub_nodes_flags, - uint8_t read_flags, - libcerror_error_t **error ); -}; - -LIBFDATA_EXTERN \ -int libfdata_tree_initialize( - libfdata_tree_t **tree, - intptr_t *data_handle, - int (*free_data_handle)( - intptr_t **data_handle, - libcerror_error_t **error ), - int (*clone_data_handle)( - intptr_t **destination_data_handle, - intptr_t *source_data_handle, - libcerror_error_t **error ), - int (*read_node)( - intptr_t *data_handle, - intptr_t *file_io_handle, - libfdata_tree_node_t *node, - libfdata_cache_t *cache, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - uint8_t read_flags, - libcerror_error_t **error ), - int (*read_sub_nodes)( - intptr_t *data_handle, - intptr_t *file_io_handle, - libfdata_tree_node_t *node, - libfdata_cache_t *cache, - int sub_nodes_file_index, - off64_t sub_nodes_offset, - size64_t sub_nodes_size, - uint32_t sub_nodes_flags, - uint8_t read_flags, - libcerror_error_t **error ), - uint8_t flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_free( - libfdata_tree_t **tree, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_clone( - libfdata_tree_t **destination_tree, - libfdata_tree_t *source_tree, - libcerror_error_t **error ); - -/* Node value functions - */ -int libfdata_tree_get_node_value( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - libfdata_tree_node_t *node, - intptr_t **node_value, - uint8_t read_flags, - libcerror_error_t **error ); - -int libfdata_tree_set_node_value( - libfdata_tree_t *tree, - libfdata_cache_t *cache, - libfdata_tree_node_t *node, - intptr_t *node_value, - int (*free_node_value)( - intptr_t **node_value, - libcerror_error_t **error ), - uint8_t flags, - libcerror_error_t **error ); - -/* Sub node functions - */ -int libfdata_tree_read_sub_nodes( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - libfdata_tree_node_t *node, - uint8_t read_flags, - libcerror_error_t **error ); - -/* Root node functions - */ -LIBFDATA_EXTERN \ -int libfdata_tree_get_root_node( - libfdata_tree_t *tree, - libfdata_tree_node_t **root_node, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_set_root_node( - libfdata_tree_t *tree, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - libcerror_error_t **error ); - -/* Leaf node functions - */ -LIBFDATA_EXTERN \ -int libfdata_tree_get_number_of_leaf_nodes( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_leaf_nodes, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_get_leaf_node_by_index( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int leaf_node_index, - libfdata_tree_node_t **leaf_node, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_get_number_of_deleted_leaf_nodes( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_deleted_leaf_nodes, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_get_deleted_leaf_node_by_index( - libfdata_tree_t *tree, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int deleted_leaf_node_index, - libfdata_tree_node_t **deleted_leaf_node, - uint8_t read_flags, - libcerror_error_t **error ); - -#if defined( __cplusplus ) -} -#endif - -#endif /* !defined( _LIBFDATA_INTERNAL_TREE_H ) */ - diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree_node.c b/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree_node.c deleted file mode 100644 index 8306998..0000000 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree_node.c +++ /dev/null @@ -1,3461 +0,0 @@ -/* - * The tree node functions - * - * Copyright (C) 2010-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include -#include - -#include "libfdata_definitions.h" -#include "libfdata_libcdata.h" -#include "libfdata_libcerror.h" -#include "libfdata_libfcache.h" -#include "libfdata_range.h" -#include "libfdata_tree_node.h" -#include "libfdata_types.h" - -/* Creates a node - * Make sure the value node is referencing, is set to NULL - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_initialize( - libfdata_tree_node_t **node, - libfdata_tree_t *tree, - libfdata_tree_node_t *parent_node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_initialize"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - if( *node != NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, - "%s: invalid node value already set.", - function ); - - return( -1 ); - } - if( tree == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid tree.", - function ); - - return( -1 ); - } - internal_tree_node = memory_allocate_structure( - libfdata_internal_tree_node_t ); - - if( internal_tree_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_MEMORY, - LIBCERROR_MEMORY_ERROR_INSUFFICIENT, - "%s: unable to create node.", - function ); - - goto on_error; - } - if( memory_set( - internal_tree_node, - 0, - sizeof( libfdata_internal_tree_node_t ) ) == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_MEMORY, - LIBCERROR_MEMORY_ERROR_SET_FAILED, - "%s: unable to clear node.", - function ); - - memory_free( - internal_tree_node ); - - return( -1 ); - } - if( libfdata_range_initialize( - &( internal_tree_node->node_data_range ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create node data range.", - function ); - - goto on_error; - } - if( libfdata_range_initialize( - &( internal_tree_node->sub_nodes_data_range ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create sub nodes data range.", - function ); - - goto on_error; - } - if( libcdata_array_initialize( - &( internal_tree_node->sub_nodes ), - 0, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create sub nodes array.", - function ); - - goto on_error; - } - if( libfcache_date_time_get_timestamp( - &( internal_tree_node->timestamp ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve cache timestamp.", - function ); - - goto on_error; - } - internal_tree_node->tree = tree; - internal_tree_node->parent_node = parent_node; - internal_tree_node->flags = LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; - - *node = (libfdata_tree_node_t *) internal_tree_node; - - return( 1 ); - -on_error: - if( internal_tree_node != NULL ) - { - if( internal_tree_node->sub_nodes != NULL ) - { - libcdata_array_free( - &( internal_tree_node->sub_nodes ), - NULL, - NULL ); - } - if( internal_tree_node->sub_nodes_data_range != NULL ) - { - libfdata_range_free( - &( internal_tree_node->sub_nodes_data_range ), - NULL ); - } - if( internal_tree_node->node_data_range != NULL ) - { - libfdata_range_free( - &( internal_tree_node->node_data_range ), - NULL ); - } - memory_free( - internal_tree_node ); - } - return( -1 ); -} - -/* Frees a node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_free( - libfdata_tree_node_t **node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_free"; - int result = 1; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - if( *node != NULL ) - { - internal_tree_node = (libfdata_internal_tree_node_t *) *node; - *node = NULL; - - if( internal_tree_node->node_data_range != NULL ) - { - if( libfdata_range_free( - &( internal_tree_node->node_data_range ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free node data range.", - function ); - - result = -1; - } - } - if( internal_tree_node->sub_nodes_data_range != NULL ) - { - if( libfdata_range_free( - &( internal_tree_node->sub_nodes_data_range ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free sub nodes data range.", - function ); - - result = -1; - } - } - if( libcdata_array_free( - &( internal_tree_node->sub_nodes ), - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free the sub nodes array.", - function ); - - result = -1; - } - memory_free( - internal_tree_node ); - } - return( result ); -} - -/* Frees a node, but not its sub nodes - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_free_single( - libfdata_tree_node_t **node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_free_single"; - int result = 1; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - if( *node != NULL ) - { - internal_tree_node = (libfdata_internal_tree_node_t *) node; - *node = NULL; - - if( libcdata_array_free( - &( internal_tree_node->sub_nodes ), - NULL, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free the sub nodes array.", - function ); - - result = -1; - } - memory_free( - internal_tree_node ); - } - return( result ); -} - -/* Sets the parent node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_parent_node( - libfdata_tree_node_t *node, - libfdata_tree_node_t *parent_node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_set_parent_node"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - internal_tree_node->parent_node = parent_node; - - return( 1 ); -} - -/* Determines if the node is a root node - * Returns 1 if a root node, 0 if not or -1 on error - */ -int libfdata_tree_node_is_root( - libfdata_tree_node_t *node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_is_root"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( internal_tree_node->parent_node == NULL ) - { - return( 1 ); - } - return( 0 ); -} - -/* Retrieves the data offset and size - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_data_range( - libfdata_tree_node_t *node, - int *node_file_index, - off64_t *node_offset, - size64_t *node_size, - uint32_t *node_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_get_data_range"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( libfdata_range_get( - internal_tree_node->node_data_range, - node_file_index, - node_offset, - node_size, - node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node data range.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Sets the data offset and size - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_data_range( - libfdata_tree_node_t *node, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_set_data_range"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) != 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is virtual.", - function ); - - return( -1 ); - } - if( libfdata_range_set( - internal_tree_node->node_data_range, - node_file_index, - node_offset, - node_size, - node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set node data range.", - function ); - - return( -1 ); - } - if( libfcache_date_time_get_timestamp( - &( internal_tree_node->timestamp ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve cache timestamp.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Determines if the sub nodes data range has been set - * Returns 1 if sub nodes have been set, 0 if not or -1 on error - */ -int libfdata_tree_node_sub_nodes_data_range_is_set( - libfdata_tree_node_t *node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_sub_nodes_data_range_is_set"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) - { - return( 1 ); - } - return( 0 ); -} - -/* Retrieves the sub nodes data range - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_sub_nodes_data_range( - libfdata_tree_node_t *node, - int *sub_nodes_file_index, - off64_t *sub_nodes_offset, - size64_t *sub_nodes_size, - uint32_t *sub_nodes_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_get_sub_nodes_data_range"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) == 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - sub nodes range has not been set.", - function ); - - return( -1 ); - } - if( libfdata_range_get( - internal_tree_node->sub_nodes_data_range, - sub_nodes_file_index, - sub_nodes_offset, - sub_nodes_size, - sub_nodes_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve sub nodes data range.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Sets the sub nodes data range - * The sub nodes data range cannot be set after the sub nodes have been read - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_sub_nodes_data_range( - libfdata_tree_node_t *node, - int sub_nodes_file_index, - off64_t sub_nodes_offset, - size64_t sub_nodes_size, - uint32_t sub_nodes_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_set_sub_nodes_data_range"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) != 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is virtual.", - function ); - - return( -1 ); - } - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is a leaf.", - function ); - - return( -1 ); - } - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) != 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - sub nodes range has already been read.", - function ); - - return( -1 ); - } - if( libfdata_range_set( - internal_tree_node->sub_nodes_data_range, - sub_nodes_file_index, - sub_nodes_offset, - sub_nodes_size, - sub_nodes_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set sub nodes data range.", - function ); - - return( -1 ); - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET; - - return( 1 ); -} - -/* Retrieves the time stamp - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_timestamp( - libfdata_tree_node_t *node, - int64_t *timestamp, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_get_timestamp"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( timestamp == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node time stamp.", - function ); - - return( -1 ); - } - *timestamp = internal_tree_node->timestamp; - - return( 1 ); -} - -/* Retrieves the first leaf node index - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_first_leaf_node_index( - libfdata_tree_node_t *node, - int *first_leaf_node_index, - int *deleted_first_leaf_node_index, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_get_first_leaf_node_index"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( first_leaf_node_index == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid first leaf node index.", - function ); - - return( -1 ); - } - if( deleted_first_leaf_node_index == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid first deleted leaf node index.", - function ); - - return( -1 ); - } - *first_leaf_node_index = internal_tree_node->first_leaf_node_index; - *deleted_first_leaf_node_index = internal_tree_node->first_deleted_leaf_node_index; - - return( 1 ); -} - -/* Sets the first leaf node index - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_first_leaf_node_index( - libfdata_tree_node_t *node, - int first_leaf_node_index, - int first_deleted_leaf_node_index, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_set_first_leaf_node_index"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( first_leaf_node_index < 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, - "%s: invalid first leaf node index value less than zero.", - function ); - - return( -1 ); - } - if( first_deleted_leaf_node_index < 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, - "%s: invalid first deleted leaf node index value less than zero.", - function ); - - return( -1 ); - } - internal_tree_node->first_leaf_node_index = first_leaf_node_index; - internal_tree_node->first_deleted_leaf_node_index = first_deleted_leaf_node_index; - - return( 1 ); -} - -/* Retrieves the node value - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_node_value( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - intptr_t **node_value, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_get_node_value"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( libfdata_tree_get_node_value( - internal_tree_node->tree, - file_io_handle, - cache, - node, - node_value, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; - - return( 1 ); -} - -/* Sets the node value - * - * If the flag LIBFDATA_TREE_NODE_VALUE_FLAG_MANAGED is set the node - * takes over management of the value and the value is freed when - * no longer needed. - * - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_node_value( - libfdata_tree_node_t *node, - libfdata_cache_t *cache, - intptr_t *node_value, - int (*free_node_value)( - intptr_t **node_value, - libcerror_error_t **error ), - uint8_t flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_set_node_value"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( libfdata_tree_set_node_value( - internal_tree_node->tree, - cache, - node, - node_value, - free_node_value, - flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set node value.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Resizes the sub nodes - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_resize_sub_nodes( - libfdata_tree_node_t *node, - int number_of_sub_nodes, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_resize_sub_nodes"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is a leaf.", - function ); - - return( -1 ); - } - if( libcdata_array_resize( - internal_tree_node->sub_nodes, - number_of_sub_nodes, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, - "%s: unable to resize sub nodes array.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves the number of sub nodes - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_number_of_sub_nodes( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_sub_nodes, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - intptr_t *node_value = NULL; - static char *function = "libfdata_tree_node_get_number_of_sub_nodes"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) == 0 ) ) - { - /* Make sure the node data is read before the sub nodes - */ - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ ) == 0 ) - { - if( libfdata_tree_get_node_value( - internal_tree_node->tree, - file_io_handle, - cache, - node, - &node_value, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; - } - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) - { - if( libfdata_tree_read_sub_nodes( - internal_tree_node->tree, - file_io_handle, - cache, - node, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_IO, - LIBCERROR_IO_ERROR_READ_FAILED, - "%s: unable to read sub nodes.", - function ); - - return( -1 ); - } - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ; - } - if( libcdata_array_get_number_of_entries( - internal_tree_node->sub_nodes, - number_of_sub_nodes, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of entries from sub nodes array.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves a specific sub node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_sub_node_by_index( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int sub_node_index, - libfdata_tree_node_t **sub_node, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - intptr_t *node_value = NULL; - static char *function = "libfdata_tree_node_get_sub_node_by_index"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is a leaf.", - function ); - - return( -1 ); - } - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) == 0 ) ) - { - /* Make sure the node data is read before the sub nodes - */ - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ ) == 0 ) - { - if( libfdata_tree_get_node_value( - internal_tree_node->tree, - file_io_handle, - cache, - node, - &node_value, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; - } - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) - { - if( libfdata_tree_read_sub_nodes( - internal_tree_node->tree, - file_io_handle, - cache, - node, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_IO, - LIBCERROR_IO_ERROR_READ_FAILED, - "%s: unable to read sub nodes.", - function ); - - return( -1 ); - } - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ; - } - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - return( -1 ); - } - return( 1 ); -} - -/* Sets the offset and size of a specific sub node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_sub_node_by_index( - libfdata_tree_node_t *node, - int sub_node_index, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - static char *function = "libfdata_tree_node_set_sub_node_by_index"; - off64_t previous_node_offset = 0; - size64_t previous_node_size = 0; - uint32_t previous_node_flags = 0; - int previous_node_file_index = -1; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is a leaf.", - function ); - - return( -1 ); - } - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - return( -1 ); - } - if( sub_node == NULL ) - { - if( libfdata_tree_node_initialize( - &sub_node, - internal_tree_node->tree, - node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create sub node.", - function ); - - return( -1 ); - } - if( libcdata_array_set_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t *) sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set sub node: %d in sub nodes array.", - function, - sub_node_index ); - - libfdata_tree_node_free( - &sub_node, - NULL ); - - return( -1 ); - } - } - else - { - if( libfdata_tree_node_get_data_range( - sub_node, - &previous_node_file_index, - &previous_node_offset, - &previous_node_size, - &previous_node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve sub node: %d data range.", - function, - sub_node_index ); - - return( -1 ); - } - } - if( libfdata_tree_node_set_data_range( - sub_node, - node_file_index, - node_offset, - node_size, - node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set sub node: %d data range.", - function, - sub_node_index ); - - return( -1 ); - } - return( 1 ); -} - -/* Appends a sub node offset and size - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_append_sub_node( - libfdata_tree_node_t *node, - int *sub_node_index, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - static char *function = "libfdata_tree_node_append_sub_node"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is a leaf.", - function ); - - return( -1 ); - } - if( libfdata_tree_node_initialize( - &sub_node, - internal_tree_node->tree, - node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create sub node.", - function ); - - goto on_error; - } - if( libfdata_tree_node_set_data_range( - sub_node, - node_file_index, - node_offset, - node_size, - node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set sub node data range.", - function ); - - goto on_error; - } - if( libcdata_array_append_entry( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t *) sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, - "%s: unable to append sub node to sub nodes array.", - function ); - - goto on_error; - } - return( 1 ); - -on_error: - if( sub_node != NULL ) - { - libfdata_tree_node_free( - &sub_node, - NULL ); - } - return( -1 ); -} - -/* Inserts a sub node offset and size - * - * Uses the node_value_compare_function to determine the order of the sub nodes - * The node_value_compare_function should return LIBFDATA_COMPARE_LESS, - * LIBFDATA_COMPARE_EQUAL, LIBFDATA_COMPARE_GREATER if successful or -1 on error - * - * Duplicate entries are allowed by default and inserted after the last duplicate entry. - * Only allowing unique entries can be enforced by setting the flag LIBFDATA_TREE_NODE_INSERT_FLAG_UNIQUE_ENTRIES - * - * Returns 1 if successful, 0 if the node already exists or -1 on error - */ -int libfdata_tree_node_insert_sub_node( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *sub_node_index, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - int (*node_value_compare_function)( - intptr_t *first_node_value, - intptr_t *second_node_value, - libcerror_error_t **error ), - uint8_t insert_flags, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfcache_cache_t *insert_cache = NULL; - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *insert_sub_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - intptr_t *insert_sub_node_value = NULL; - intptr_t *sub_node_value = NULL; - static char *function = "libfdata_tree_node_insert_sub_node"; - int number_of_sub_nodes = 0; - int result = 0; - int sub_node_iterator = 0; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( sub_node_index == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid sub node index.", - function ); - - return( -1 ); - } - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is a leaf.", - function ); - - return( -1 ); - } - if( node_value_compare_function == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node value compare function.", - function ); - - return( -1 ); - } - if( ( insert_flags & ~( LIBFDATA_TREE_NODE_INSERT_FLAG_UNIQUE_SUB_NODE_VALUES ) ) != 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported insert flags: 0x%02" PRIx8 ".", - function, - insert_flags ); - - return( -1 ); - } - if( libfdata_tree_node_initialize( - &insert_sub_node, - internal_tree_node->tree, - node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create insert sub node.", - function ); - - goto on_error; - } - if( libfdata_tree_node_set_data_range( - insert_sub_node, - node_file_index, - node_offset, - node_size, - node_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set insert sub node data range.", - function ); - - goto on_error; - } - if( libcdata_array_get_number_of_entries( - internal_tree_node->sub_nodes, - &number_of_sub_nodes, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of entries from sub nodes array.", - function ); - - goto on_error; - } - if( libfcache_cache_initialize( - &insert_cache, - 1, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create insert cache.", - function ); - - goto on_error; - } - if( libfdata_tree_get_node_value( - internal_tree_node->tree, - file_io_handle, - (libfdata_cache_t *) insert_cache, - insert_sub_node, - &insert_sub_node_value, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve insert sub node value.", - function ); - - goto on_error; - } - for( sub_node_iterator = 0; - sub_node_iterator < number_of_sub_nodes; - sub_node_iterator++ ) - { - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_iterator, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_iterator ); - - goto on_error; - } - if( libfdata_tree_get_node_value( - internal_tree_node->tree, - file_io_handle, - cache, - sub_node, - &sub_node_value, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve sub node value: %d.", - function, - sub_node_iterator ); - - goto on_error; - } - result = node_value_compare_function( - insert_sub_node_value, - sub_node_value, - error ); - - if( result == -1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to compare sub node value: %d.", - function, - sub_node_iterator ); - - goto on_error; - } - else if( result == LIBFDATA_COMPARE_EQUAL ) - { - if( ( insert_flags & LIBFDATA_TREE_NODE_INSERT_FLAG_UNIQUE_SUB_NODE_VALUES ) != 0 ) - { - if( libfcache_cache_free( - &insert_cache, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free the insert cache.", - function ); - - goto on_error; - } - if( libfdata_tree_node_free( - &insert_sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free the insert sub node.", - function ); - - goto on_error; - } - return( 0 ); - } - } - else if( result == LIBFDATA_COMPARE_LESS ) - { - break; - } - else if( result != LIBFDATA_COMPARE_GREATER ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported node value compare function return value: %d.", - function, - result ); - - goto on_error; - } - } - if( libfcache_cache_free( - &insert_cache, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free the insert cache.", - function ); - - goto on_error; - } - if( ( number_of_sub_nodes > 0 ) - && ( result == LIBCDATA_COMPARE_LESS ) ) - { - *sub_node_index = sub_node_iterator; - - if( libcdata_array_resize( - internal_tree_node->sub_nodes, - number_of_sub_nodes + 1, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, - "%s: unable to resize sub nodes array.", - function ); - - goto on_error; - } - for( sub_node_iterator = number_of_sub_nodes; - sub_node_iterator > *sub_node_index; - sub_node_iterator-- ) - { - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_iterator - 1, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve sub node: %d from sub nodes array.", - function, - sub_node_iterator - 1 ); - - goto on_error; - } - if( libcdata_array_set_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_iterator, - (intptr_t *) sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set sub node: %d in sub nodes array.", - function, - sub_node_iterator ); - - goto on_error; - } - } - if( libcdata_array_set_entry_by_index( - internal_tree_node->sub_nodes, - *sub_node_index, - (intptr_t *) insert_sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set insert sub node: %d in sub nodes array.", - function, - *sub_node_index ); - - goto on_error; - } - } - else - { - *sub_node_index = number_of_sub_nodes; - - if( libcdata_array_resize( - internal_tree_node->sub_nodes, - number_of_sub_nodes + 1, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, - "%s: unable to resize sub nodes array.", - function ); - - goto on_error; - } - if( libcdata_array_set_entry_by_index( - internal_tree_node->sub_nodes, - *sub_node_index, - (intptr_t *) insert_sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set insert sub node: %d in sub nodes array.", - function, - *sub_node_index ); - - goto on_error; - } - } - return( 1 ); - -on_error: - if( insert_cache != NULL ) - { - libfcache_cache_free( - &insert_cache, - NULL ); - } - if( insert_sub_node != NULL ) - { - libfdata_tree_node_free( - &insert_sub_node, - NULL ); - } - return( -1 ); -} - -/* Splits the sub nodes - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_split_sub_nodes( - libfdata_tree_node_t *node, - int number_of_splits, - libcerror_error_t **error ) -{ - libcdata_array_t *virtual_sub_nodes_array = NULL; - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - libfdata_tree_node_t *virtual_sub_node = NULL; - static char *function = "libfdata_tree_node_split_sub_nodes"; - int number_of_split_sub_nodes = 0; - int number_of_sub_nodes = 0; - int result = 1; - int last_sub_node_index = 0; - int split_sub_node_index = 0; - int sub_node_index = 0; - int virtual_sub_node_index = 0; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - node is a leaf.", - function ); - - return( -1 ); - } - if( number_of_splits < 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO, - "%s: invalid number of splits value less than zero.", - function ); - - return( -1 ); - } - if( number_of_splits == 0 ) - { - return( 1 ); - } - if( libcdata_array_get_number_of_entries( - internal_tree_node->sub_nodes, - &number_of_sub_nodes, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of entries from sub nodes array.", - function ); - - return( -1 ); - } - number_of_split_sub_nodes = number_of_sub_nodes / number_of_splits; - - if( number_of_split_sub_nodes < 2 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: number of sub nodes too small to split in: %d.", - function, - number_of_splits ); - - return( -1 ); - } - if( libcdata_array_initialize( - &virtual_sub_nodes_array, - number_of_splits, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create virtual sub nodes array.", - function ); - - return( -1 ); - } - for( virtual_sub_node_index = 0; - virtual_sub_node_index < number_of_splits; - virtual_sub_node_index++ ) - { - if( libfdata_tree_node_initialize( - &virtual_sub_node, - internal_tree_node->tree, - node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create virtual sub node: %d.", - function, - virtual_sub_node_index ); - - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - ( (libfdata_internal_tree_node_t *) virtual_sub_node )->flags |= LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL; - - if( libcdata_array_set_entry_by_index( - virtual_sub_nodes_array, - virtual_sub_node_index, - (intptr_t *) virtual_sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set virtual sub node: %d in virtual sub nodes array.", - function, - virtual_sub_node_index ); - - libfdata_tree_node_free( - &virtual_sub_node, - NULL ); - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - last_sub_node_index = ( number_of_split_sub_nodes * ( virtual_sub_node_index + 1 ) ) - 1; - - if( virtual_sub_node_index == ( number_of_splits - 1 ) ) - { - last_sub_node_index += number_of_sub_nodes % number_of_splits; - } - if( last_sub_node_index > number_of_sub_nodes ) - { - last_sub_node_index = number_of_sub_nodes - 1; - } - if( libcdata_array_resize( - ( (libfdata_internal_tree_node_t *) virtual_sub_node )->sub_nodes, - last_sub_node_index + 1 - sub_node_index, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_RESIZE_FAILED, - "%s: unable to resize sub nodes array of virtual sub node: %d.", - function, - virtual_sub_node_index ); - - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - split_sub_node_index = 0; - - while( sub_node_index <= last_sub_node_index ) - { - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - if( split_sub_node_index == 0 ) - { - if( sub_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: missing sub node: %d.", - function, - sub_node_index ); - - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - if( ( (libfdata_internal_tree_node_t *) sub_node )->node_data_range == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid sub node: %d - missing node data range.", - function, - sub_node_index ); - - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - /* The node data range of a virtual node cannot be set by the set_data_range function - */ - if( libfdata_tree_node_get_data_range( - sub_node, - &( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->node_data_range->file_index ), - &( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->node_data_range->offset ), - &( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->node_data_range->size ), - &( ( (libfdata_internal_tree_node_t *) virtual_sub_node )->node_data_range->flags ), - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set virtual sub node data range.", - function ); - - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - } - if( libcdata_array_set_entry_by_index( - ( (libfdata_internal_tree_node_t *) virtual_sub_node )->sub_nodes, - split_sub_node_index, - (intptr_t *) sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set entry: %d in sub nodes array of virtual sub node: %d.", - function, - split_sub_node_index, - virtual_sub_node_index ); - - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - if( libfdata_tree_node_set_parent_node( - sub_node, - virtual_sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set parent node in sub node: %d.", - function, - split_sub_node_index ); - - libcdata_array_free( - &virtual_sub_nodes_array, - (int (*)(intptr_t **, libcerror_error_t **)) &libfdata_tree_node_free_single, - NULL ); - - result = -1; - - break; - } - sub_node_index++; - split_sub_node_index++; - } - virtual_sub_node = NULL; - } - if( result != 1 ) - { - /* Set the parent values in the sub nodes back to their orginal value - */ - for( sub_node_index = 0; - sub_node_index < number_of_sub_nodes; - sub_node_index++ ) - { - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - continue; - } - if( libfdata_tree_node_set_parent_node( - sub_node, - node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set parent node in sub node: %d.", - function, - sub_node_index ); - - continue; - } - } - return( -1 ); - } - if( libcdata_array_free( - &( internal_tree_node->sub_nodes ), - NULL, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free the sub nodes array.", - function ); - - result = -1; - } - internal_tree_node->sub_nodes = virtual_sub_nodes_array; - - return( result ); -} - -/* Determines if the node is deleted - * Returns 1 if deleted, 0 if not or -1 on error - */ -int libfdata_tree_node_is_deleted( - libfdata_tree_node_t *node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_is_deleted"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_DELETED ) != 0 ) ) - { - return( 1 ); - } - return( 0 ); -} - -/* Marks a node as deleted - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_deleted( - libfdata_tree_node_t *node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_set_deleted"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - -/* TODO add deleted branch node support */ - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, - "%s: invalid node - currently only deleted leaf nodes are supported.", - function ); - - return( -1 ); - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_IS_DELETED; - - if( libfdata_tree_node_set_calculate_leaf_node_values( - node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set calculate leaf node values.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Makes a deleted node of a specific sub node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_deleted_sub_node( - libfdata_tree_node_t *node, - int sub_node_index, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - static char *function = "libfdata_tree_node_set_deleted_sub_node"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - return( -1 ); - } - if( sub_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: missing sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_set_deleted( - sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_MEMORY, - LIBCERROR_MEMORY_ERROR_SET_FAILED, - "%s: unable to set deleted in sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - return( 1 ); -} - -/* Sets the flag to calculate the leaf node values and propagates this up to its parent node - * Returns 1 if the successful or -1 on error - */ -int libfdata_tree_node_set_calculate_leaf_node_values( - libfdata_tree_node_t *node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_set_calculate_leaf_node_values"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( internal_tree_node->parent_node != NULL ) - { - if( libfdata_tree_node_set_calculate_leaf_node_values( - internal_tree_node->parent_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set calculate leaf node values in parent node.", - function ); - - return( -1 ); - } - } - internal_tree_node->flags |= LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES; - - return( 1 ); -} - -/* Reads the leaf node values - * Returns 1 if the successful or -1 on error - */ -int libfdata_tree_node_read_leaf_node_values( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - intptr_t *node_value = NULL; - static char *function = "libfdata_tree_node_read_leaf_node_values"; - int number_of_deleted_leaf_nodes = 0; - int number_of_leaf_nodes = 0; - int number_of_sub_nodes = 0; - int result = 0; - int sub_node_index = 0; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) == 0 ) ) - { - /* Make sure the node data is read before the sub nodes - */ - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ ) == 0 ) - { - if( libfdata_tree_get_node_value( - internal_tree_node->tree, - file_io_handle, - cache, - node, - &node_value, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; - } - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) - { - if( libfdata_tree_read_sub_nodes( - internal_tree_node->tree, - file_io_handle, - cache, - node, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_IO, - LIBCERROR_IO_ERROR_READ_FAILED, - "%s: unable to read sub nodes.", - function ); - - return( -1 ); - } - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ; - } - internal_tree_node->number_of_leaf_nodes = 0; - internal_tree_node->number_of_deleted_leaf_nodes = 0; - - if( libcdata_array_get_number_of_entries( - internal_tree_node->sub_nodes, - &number_of_sub_nodes, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of entries from sub nodes array.", - function ); - - return( -1 ); - } - for( sub_node_index = 0; - sub_node_index < number_of_sub_nodes; - sub_node_index++ ) - { - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_get_number_of_leaf_nodes( - sub_node, - file_io_handle, - cache, - &number_of_leaf_nodes, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of leaf nodes from sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_get_number_of_deleted_leaf_nodes( - sub_node, - file_io_handle, - cache, - &number_of_deleted_leaf_nodes, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of deleted leaf nodes from sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_set_first_leaf_node_index( - sub_node, - internal_tree_node->number_of_leaf_nodes, - internal_tree_node->number_of_deleted_leaf_nodes, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set first leaf node index in sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( ( number_of_leaf_nodes == 0 ) - && ( number_of_deleted_leaf_nodes == 0 ) ) - { - /* It is possible to have branch nodes without leaf nodes - */ - result = libfdata_tree_node_is_leaf( - sub_node, - file_io_handle, - cache, - read_flags, - error ); - - if( result == -1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to determine if sub node: %d is a leaf.", - function, - sub_node_index ); - - return( -1 ); - } - else if( result != 0 ) - { - result = libfdata_tree_node_is_deleted( - sub_node, - error ); - - if( result == -1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to determine if sub node: %d is deleted.", - function, - sub_node_index ); - - return( -1 ); - } - else if( result == 0 ) - { - internal_tree_node->number_of_leaf_nodes++; - } - else - { - internal_tree_node->number_of_deleted_leaf_nodes++; - } - } - } - else - { - internal_tree_node->number_of_leaf_nodes += number_of_leaf_nodes; - internal_tree_node->number_of_deleted_leaf_nodes += number_of_deleted_leaf_nodes; - } - } - return( 1 ); -} - -/* Determines if the node is a leaf node - * Returns 1 if a leaf node, 0 if not or -1 on error - */ -int libfdata_tree_node_is_leaf( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - intptr_t *node_value = NULL; - static char *function = "libfdata_tree_node_is_leaf"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ ) == 0 ) ) - { - /* Make sure the node data is read before the sub nodes - */ - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ ) == 0 ) - { - if( libfdata_tree_get_node_value( - internal_tree_node->tree, - file_io_handle, - cache, - node, - &node_value, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_NOTE_DATA_READ; - } - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) - { - if( libfdata_tree_read_sub_nodes( - internal_tree_node->tree, - file_io_handle, - cache, - node, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_IO, - LIBCERROR_IO_ERROR_READ_FAILED, - "%s: unable to read sub nodes.", - function ); - - return( -1 ); - } - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_SUB_NODES_READ; - } - if( ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_VIRTUAL ) == 0 ) - && ( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_IS_LEAF ) != 0 ) ) - { - return( 1 ); - } - return( 0 ); -} - -/* Makes a leaf node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_leaf( - libfdata_tree_node_t *node, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_set_leaf"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( ( internal_tree_node->flags & LIBFDATA_TREE_NODE_FLAG_SUB_NODES_DATA_RANGE_SET ) != 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: invalid node - sub nodes range was set.", - function ); - - return( -1 ); - } - internal_tree_node->flags |= LIBFDATA_TREE_NODE_FLAG_IS_LEAF; - - if( libfdata_tree_node_set_calculate_leaf_node_values( - node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set calculate leaf node values.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Makes a leaf node of a specific sub node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_set_leaf_sub_node( - libfdata_tree_node_t *node, - int sub_node_index, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - static char *function = "libfdata_tree_node_set_leaf_sub_node"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - return( -1 ); - } - if( sub_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, - "%s: missing sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_set_leaf( - sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_MEMORY, - LIBCERROR_MEMORY_ERROR_SET_FAILED, - "%s: unable to set leaf in sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves the number of leaf nodes - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_number_of_leaf_nodes( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_leaf_nodes, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_get_number_of_leaf_nodes"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( number_of_leaf_nodes == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid number of leaf nodes.", - function ); - - return( -1 ); - } - if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) - { - if( libfdata_tree_node_read_leaf_node_values( - node, - file_io_handle, - cache, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); - } - *number_of_leaf_nodes = internal_tree_node->number_of_leaf_nodes; - - return( 1 ); -} - -/* Retrieves a specific leaf node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_leaf_node_by_index( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int leaf_node_index, - libfdata_tree_node_t **leaf_node, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - static char *function = "libfdata_tree_node_get_leaf_node_by_index"; - int first_deleted_leaf_node_index = 0; - int first_leaf_node_index = 0; - int number_of_leaf_nodes = 0; - int number_of_sub_nodes = 0; - int result = 0; - int sub_node_index = 0; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( leaf_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid leaf node.", - function ); - - return( -1 ); - } - if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) - { - if( libfdata_tree_node_read_leaf_node_values( - node, - file_io_handle, - cache, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); - } - if( libcdata_array_get_number_of_entries( - internal_tree_node->sub_nodes, - &number_of_sub_nodes, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of entries from sub nodes array.", - function ); - - return( -1 ); - } - for( sub_node_index = 0; - sub_node_index < number_of_sub_nodes; - sub_node_index++ ) - { - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_get_number_of_leaf_nodes( - sub_node, - file_io_handle, - cache, - &number_of_leaf_nodes, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of leaf nodes from sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_get_first_leaf_node_index( - sub_node, - &first_leaf_node_index, - &first_deleted_leaf_node_index, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve first leaf node index from sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( number_of_leaf_nodes == 0 ) - { - /* It is possible to have branch nodes without leaf nodes - */ - result = libfdata_tree_node_is_leaf( - sub_node, - file_io_handle, - cache, - read_flags, - error ); - - if( result == -1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to determine if sub node: %d is a leaf.", - function, - sub_node_index ); - - return( -1 ); - } - else if( result != 0 ) - { - result = libfdata_tree_node_is_deleted( - sub_node, - error ); - - if( result == -1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to determine if sub node: %d is deleted.", - function, - sub_node_index ); - - return( -1 ); - } - else if( result == 0 ) - { - if( leaf_node_index == first_leaf_node_index ) - { - *leaf_node = sub_node; - - break; - } - } - } - } - else if( ( leaf_node_index >= first_leaf_node_index ) - && ( leaf_node_index < ( first_leaf_node_index + number_of_leaf_nodes ) ) ) - { - /* Note that the first_leaf_node_index is relative for a branch - */ - if( libfdata_tree_node_get_leaf_node_by_index( - sub_node, - file_io_handle, - cache, - leaf_node_index - first_leaf_node_index, - leaf_node, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve leaf node: %d from sub node: %d.", - function, - leaf_node_index - first_leaf_node_index, - sub_node_index ); - - return( -1 ); - } - break; - } - } - if( sub_node_index >= number_of_sub_nodes ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid sub node index value out of bounds.", - function ); - - return( -1 ); - } - return( 1 ); -} - -/* Retrieves the number of deleted leaf nodes - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_number_of_deleted_leaf_nodes( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_deleted_leaf_nodes, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - static char *function = "libfdata_tree_node_get_number_of_deleted_leaf_nodes"; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( number_of_deleted_leaf_nodes == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid number of deleted leaf nodes.", - function ); - - return( -1 ); - } - if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) - { - if( libfdata_tree_node_read_leaf_node_values( - node, - file_io_handle, - cache, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); - } - *number_of_deleted_leaf_nodes = internal_tree_node->number_of_deleted_leaf_nodes; - - return( 1 ); -} - -/* Retrieves a specific deleted leaf node - * Returns 1 if successful or -1 on error - */ -int libfdata_tree_node_get_deleted_leaf_node_by_index( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int deleted_leaf_node_index, - libfdata_tree_node_t **deleted_leaf_node, - uint8_t read_flags, - libcerror_error_t **error ) -{ - libfdata_internal_tree_node_t *internal_tree_node = NULL; - libfdata_tree_node_t *sub_node = NULL; - static char *function = "libfdata_tree_node_get_deleted_leaf_node_by_index"; - int first_deleted_leaf_node_index = 0; - int first_leaf_node_index = 0; - int number_of_deleted_leaf_nodes = 0; - int number_of_sub_nodes = 0; - int result = 0; - int sub_node_index = 0; - - if( node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid node.", - function ); - - return( -1 ); - } - internal_tree_node = (libfdata_internal_tree_node_t *) node; - - if( deleted_leaf_node == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid deleted leaf node.", - function ); - - return( -1 ); - } - if( ( internal_tree_node->flags & LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ) != 0 ) - { - if( libfdata_tree_node_read_leaf_node_values( - node, - file_io_handle, - cache, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve node value.", - function ); - - return( -1 ); - } - internal_tree_node->flags &= ~( LIBFDATA_FLAG_CALCULATE_MAPPED_RANGES ); - } - if( libcdata_array_get_number_of_entries( - internal_tree_node->sub_nodes, - &number_of_sub_nodes, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of entries from sub nodes array.", - function ); - - return( -1 ); - } - for( sub_node_index = 0; - sub_node_index < number_of_sub_nodes; - sub_node_index++ ) - { - if( libcdata_array_get_entry_by_index( - internal_tree_node->sub_nodes, - sub_node_index, - (intptr_t **) &sub_node, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve entry: %d from sub nodes array.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_get_number_of_deleted_leaf_nodes( - sub_node, - file_io_handle, - cache, - &number_of_deleted_leaf_nodes, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve number of leaf nodes from sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( libfdata_tree_node_get_first_leaf_node_index( - sub_node, - &first_leaf_node_index, - &first_deleted_leaf_node_index, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve first leaf node index from sub node: %d.", - function, - sub_node_index ); - - return( -1 ); - } - if( number_of_deleted_leaf_nodes == 0 ) - { - /* It is possible to have branch nodes without leaf nodes - */ - result = libfdata_tree_node_is_leaf( - sub_node, - file_io_handle, - cache, - read_flags, - error ); - - if( result == -1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to determine if sub node: %d is a leaf.", - function, - sub_node_index ); - - return( -1 ); - } - else if( result != 0 ) - { - result = libfdata_tree_node_is_deleted( - sub_node, - error ); - - if( result == -1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to determine if sub node: %d is deleted.", - function, - sub_node_index ); - - return( -1 ); - } - else if( result != 0 ) - { - if( deleted_leaf_node_index == first_deleted_leaf_node_index ) - { - *deleted_leaf_node = sub_node; - - break; - } - } - } - } - else if( ( deleted_leaf_node_index >= first_deleted_leaf_node_index ) - && ( deleted_leaf_node_index < ( first_deleted_leaf_node_index + number_of_deleted_leaf_nodes ) ) ) - { - /* Note that the first_deleted_leaf_node_index is relative for a branch - */ - if( libfdata_tree_node_get_deleted_leaf_node_by_index( - sub_node, - file_io_handle, - cache, - deleted_leaf_node_index - first_deleted_leaf_node_index, - deleted_leaf_node, - read_flags, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve deleted leaf node: %d from sub node: %d.", - function, - deleted_leaf_node_index - first_deleted_leaf_node_index, - sub_node_index ); - - return( -1 ); - } - break; - } - } - if( sub_node_index >= number_of_sub_nodes ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid sub node index value out of bounds.", - function ); - - return( -1 ); - } - return( 1 ); -} - diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree_node.h b/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree_node.h deleted file mode 100644 index 3233656..0000000 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_tree_node.h +++ /dev/null @@ -1,359 +0,0 @@ -/* - * The tree node functions - * - * Copyright (C) 2010-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#if !defined( _LIBFDATA_INTERNAL_TREE_NODE_H ) -#define _LIBFDATA_INTERNAL_TREE_NODE_H - -#include -#include - -#include "libfdata_extern.h" -#include "libfdata_libcdata.h" -#include "libfdata_libcerror.h" -#include "libfdata_libfcache.h" -#include "libfdata_range.h" -#include "libfdata_tree.h" -#include "libfdata_types.h" - -#if defined( __cplusplus ) -extern "C" { -#endif - -#define libfdata_tree_node_calculate_branch_node_cache_entry_index( node_offset, number_of_cache_entries ) \ - ( number_of_cache_entries > 4 ) ? ( node_offset % ( number_of_cache_entries / 4 ) ) : ( node_offset % number_of_cache_entries ) - -#define libfdata_tree_node_calculate_leaf_node_cache_entry_index( node_offset, number_of_cache_entries ) \ - ( number_of_cache_entries > 4 ) ? ( number_of_cache_entries / 4 ) + ( node_offset % ( ( number_of_cache_entries * 3 ) / 4 ) ) : ( node_offset % number_of_cache_entries ) - -typedef struct libfdata_internal_tree_node libfdata_internal_tree_node_t; - -struct libfdata_internal_tree_node -{ - /* The tree reference - */ - libfdata_tree_t *tree; - - /* The parent (tree) node reference - */ - libfdata_tree_node_t *parent_node; - - /* The node data range - */ - libfdata_range_t *node_data_range; - - /* The sub nodes data range - */ - libfdata_range_t *sub_nodes_data_range; - - /* The timestamp - */ - int64_t timestamp; - - /* The flags - */ - uint8_t flags; - - /* The sub nodes (array) - */ - libcdata_array_t *sub_nodes; - - /* The number of leaf nodes - */ - int number_of_leaf_nodes; - - /* The number of deleted leaf nodes - */ - int number_of_deleted_leaf_nodes; - - /* The relative first leaf node index - */ - int first_leaf_node_index; - - /* The relative first deleted leaf node index - */ - int first_deleted_leaf_node_index; -}; - -int libfdata_tree_node_initialize( - libfdata_tree_node_t **node, - libfdata_tree_t *tree, - libfdata_tree_node_t *parent_node, - libcerror_error_t **error ); - -int libfdata_tree_node_free( - libfdata_tree_node_t **node, - libcerror_error_t **error ); - -int libfdata_tree_node_free_single( - libfdata_tree_node_t **node, - libcerror_error_t **error ); - -int libfdata_tree_node_set_parent_node( - libfdata_tree_node_t *node, - libfdata_tree_node_t *parent_node, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_is_root( - libfdata_tree_node_t *node, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_get_data_range( - libfdata_tree_node_t *node, - int *node_file_index, - off64_t *node_offset, - size64_t *node_size, - uint32_t *node_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_set_data_range( - libfdata_tree_node_t *node, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_sub_nodes_data_range_is_set( - libfdata_tree_node_t *node, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_get_sub_nodes_data_range( - libfdata_tree_node_t *node, - int *sub_nodes_file_index, - off64_t *sub_nodes_offset, - size64_t *sub_nodes_size, - uint32_t *sub_nodes_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_set_sub_nodes_data_range( - libfdata_tree_node_t *node, - int sub_nodes_file_index, - off64_t sub_nodes_offset, - size64_t sub_nodes_size, - uint32_t sub_nodes_flags, - libcerror_error_t **error ); - -int libfdata_tree_node_get_timestamp( - libfdata_tree_node_t *node, - int64_t *timestamp, - libcerror_error_t **error ); - -int libfdata_tree_node_get_first_leaf_node_index( - libfdata_tree_node_t *node, - int *first_leaf_node_index, - int *deleted_first_leaf_node_index, - libcerror_error_t **error ); - -int libfdata_tree_node_set_first_leaf_node_index( - libfdata_tree_node_t *node, - int first_leaf_node_index, - int deleted_first_leaf_node_index, - libcerror_error_t **error ); - -/* Node value functions - */ -LIBFDATA_EXTERN \ -int libfdata_tree_node_get_node_value( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - intptr_t **node_value, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_set_node_value( - libfdata_tree_node_t *node, - libfdata_cache_t *cache, - intptr_t *node_value, - int (*free_node_value)( - intptr_t **node_value, - libcerror_error_t **error ), - uint8_t flags, - libcerror_error_t **error ); - -/* Sub node functions - */ -LIBFDATA_EXTERN \ -int libfdata_tree_node_resize_sub_nodes( - libfdata_tree_node_t *node, - int number_of_sub_nodes, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_get_number_of_sub_nodes( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_sub_nodes, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_get_sub_node_by_index( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int sub_node_index, - libfdata_tree_node_t **sub_node, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_set_sub_node_by_index( - libfdata_tree_node_t *node, - int sub_node_index, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_append_sub_node( - libfdata_tree_node_t *node, - int *sub_node_index, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_insert_sub_node( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *sub_node_index, - int node_file_index, - off64_t node_offset, - size64_t node_size, - uint32_t node_flags, - int (*node_value_compare_function)( - intptr_t *first_node_value, - intptr_t *second_node_value, - libcerror_error_t **error ), - uint8_t insert_flags, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_split_sub_nodes( - libfdata_tree_node_t *node, - int number_of_splits, - libcerror_error_t **error ); - -/* Deleted node functions - */ -LIBFDATA_EXTERN \ -int libfdata_tree_node_is_deleted( - libfdata_tree_node_t *node, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_set_deleted( - libfdata_tree_node_t *node, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_set_deleted_sub_node( - libfdata_tree_node_t *node, - int sub_node_index, - libcerror_error_t **error ); - -/* Leaf node functions - */ -int libfdata_tree_node_set_calculate_leaf_node_values( - libfdata_tree_node_t *node, - libcerror_error_t **error ); - -int libfdata_tree_node_read_leaf_node_values( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_is_leaf( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - uint8_t read_flags, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_set_leaf( - libfdata_tree_node_t *node, - libcerror_error_t **error ); - -LIBFDATA_EXTERN \ -int libfdata_tree_node_set_leaf_sub_node( - libfdata_tree_node_t *node, - int sub_node_index, - libcerror_error_t **error ); - -int libfdata_tree_node_get_number_of_leaf_nodes( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_leaf_nodes, - uint8_t read_flags, - libcerror_error_t **error ); - -int libfdata_tree_node_get_leaf_node_by_index( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int leaf_node_index, - libfdata_tree_node_t **leaf_node, - uint8_t read_flags, - libcerror_error_t **error ); - -int libfdata_tree_node_get_number_of_deleted_leaf_nodes( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int *number_of_deleted_leaf_nodes, - uint8_t read_flags, - libcerror_error_t **error ); - -int libfdata_tree_node_get_deleted_leaf_node_by_index( - libfdata_tree_node_t *node, - intptr_t *file_io_handle, - libfdata_cache_t *cache, - int deleted_leaf_node_index, - libfdata_tree_node_t **deleted_leaf_node, - uint8_t read_flags, - libcerror_error_t **error ); - -#if defined( __cplusplus ) -} -#endif - -#endif /* !defined( _LIBFDATA_INTERNAL_TREE_NODE_H ) */ - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_r.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_r.c deleted file mode 100644 index bef9503..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_r.c +++ /dev/null @@ -1,69 +0,0 @@ -/* - * KOI8-R codepage (Russian Cyrillic) function - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_koi8_r.h" - -/* Extended ASCII to Unicode character lookup table for KOI8-R codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_koi8_r_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524, - 0x252c, 0x2534, 0x253c, 0x2580, 0x2584, 0x2588, 0x258c, 0x2590, - 0x2591, 0x2592, 0x2593, 0x2320, 0x25a0, 0x2219, 0x221a, 0x2248, - 0x2264, 0x2265, 0x00a0, 0x2321, 0x00b0, 0x00b2, 0x00b7, 0x00f7, - 0x2550, 0x2551, 0x2552, 0x0451, 0x2553, 0x2554, 0x2555, 0x2556, - 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x255c, 0x255d, 0x255e, - 0x255f, 0x2560, 0x2561, 0x0401, 0x2562, 0x2563, 0x2564, 0x2565, - 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x00a9, - 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, - 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, - 0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, - 0x044c, 0x044b, 0x0437, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a, - 0x042e, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, - 0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, - 0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, - 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a -}; - -/* Unicode to ASCII character lookup table for KOI8-R codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x0410[ 64 ] = { - 0xe1, 0xe2, 0xf7, 0xe7, 0xe4, 0xe5, 0xf6, 0xfa, - 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, - 0xf2, 0xf3, 0xf4, 0xf5, 0xe6, 0xe8, 0xe3, 0xfe, - 0xfb, 0xfd, 0xff, 0xf9, 0xf8, 0xfc, 0xe0, 0xf1, - 0xc1, 0xc2, 0xd7, 0xc7, 0xc4, 0xc5, 0xd6, 0xda, - 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, - 0xd2, 0xd3, 0xd4, 0xd5, 0xc6, 0xc8, 0xc3, 0xde, - 0xdb, 0xdd, 0xdf, 0xd9, 0xd8, 0xdc, 0xc0, 0xd1 -}; - -const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x2550[ 32 ] = { - 0xa0, 0xa1, 0xa2, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, - 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, - 0xb1, 0xb2, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, - 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a, 0x1a, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_u.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_u.c deleted file mode 100644 index 9a5ca87..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_u.c +++ /dev/null @@ -1,69 +0,0 @@ -/* - * KOI8-U codepage (Ukrainian Cyrillic) function - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_koi8_u.h" - -/* Extended ASCII to Unicode character lookup table for KOI8-U codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_koi8_u_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524, - 0x252c, 0x2534, 0x253c, 0x2580, 0x2584, 0x2588, 0x258c, 0x2590, - 0x2591, 0x2592, 0x2593, 0x2320, 0x25a0, 0x2219, 0x221a, 0x2248, - 0x2264, 0x2265, 0x00a0, 0x2321, 0x00b0, 0x00b2, 0x00b7, 0x00f7, - 0x2550, 0x2551, 0x2552, 0x0451, 0x0454, 0x2554, 0x0456, 0x0457, - 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x0491, 0x255d, 0x255e, - 0x255f, 0x2560, 0x2561, 0x0401, 0x0404, 0x2563, 0x0406, 0x0407, - 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x0490, 0x256c, 0x00a9, - 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, - 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, - 0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, - 0x044c, 0x044b, 0x0437, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a, - 0x042e, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, - 0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, - 0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, - 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a -}; - -/* Unicode to ASCII character lookup table for KOI8-U codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x0410[ 64 ] = { - 0xe1, 0xe2, 0xf7, 0xe7, 0xe4, 0xe5, 0xf6, 0xfa, - 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, - 0xf2, 0xf3, 0xf4, 0xf5, 0xe6, 0xe8, 0xe3, 0xfe, - 0xfb, 0xfd, 0xff, 0xf9, 0xf8, 0xfc, 0xe0, 0xf1, - 0xc1, 0xc2, 0xd7, 0xc7, 0xc4, 0xc5, 0xd6, 0xda, - 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, - 0xd2, 0xd3, 0xd4, 0xd5, 0xc6, 0xc8, 0xc3, 0xde, - 0xdb, 0xdd, 0xdf, 0xd9, 0xd8, 0xdc, 0xc0, 0xd1 -}; - -const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x2550[ 32 ] = { - 0xa0, 0xa1, 0xa2, 0x1a, 0xa5, 0x1a, 0x1a, 0xa8, - 0xa9, 0xaa, 0xab, 0xac, 0x1a, 0xae, 0xaf, 0xb0, - 0xb1, 0xb2, 0x1a, 0xb5, 0x1a, 0x1a, 0xb8, 0xb9, - 0xba, 0xbb, 0xbc, 0x1a, 0xbe, 0x1a, 0x1a, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1250.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1250.c deleted file mode 100644 index 6bc9b23..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1250.c +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Windows 1250 codepage (Central European) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1250.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1250 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1250_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x20ac, 0xfffd, 0x201a, 0xfffd, 0x201e, 0x2026, 0x2020, 0x2021, - 0xfffd, 0x2030, 0x0160, 0x2039, 0x015a, 0x0164, 0x017d, 0x0179, - 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0xfffd, 0x2122, 0x0161, 0x203a, 0x015b, 0x0165, 0x017e, 0x017a, - 0x00a0, 0x02c7, 0x02d8, 0x0141, 0x00a4, 0x0104, 0x00a6, 0x00a7, - 0x00a8, 0x00a9, 0x015e, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x017b, - 0x00b0, 0x00b1, 0x02db, 0x0142, 0x00b4, 0x00b5, 0x00b6, 0x00b7, - 0x00b8, 0x0105, 0x015f, 0x00bb, 0x013d, 0x02dd, 0x013e, 0x017c, - 0x0154, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x0139, 0x0106, 0x00c7, - 0x010c, 0x00c9, 0x0118, 0x00cb, 0x011a, 0x00cd, 0x00ce, 0x010e, - 0x0110, 0x0143, 0x0147, 0x00d3, 0x00d4, 0x0150, 0x00d6, 0x00d7, - 0x0158, 0x016e, 0x00da, 0x0170, 0x00dc, 0x00dd, 0x0162, 0x00df, - 0x0155, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x013a, 0x0107, 0x00e7, - 0x010d, 0x00e9, 0x0119, 0x00eb, 0x011b, 0x00ed, 0x00ee, 0x010f, - 0x0111, 0x0144, 0x0148, 0x00f3, 0x00f4, 0x0151, 0x00f6, 0x00f7, - 0x0159, 0x016f, 0x00fa, 0x0171, 0x00fc, 0x00fd, 0x0163, 0x02d9 -}; - -/* Unicode to ASCII character lookup table for Windows 1250 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x00a0[ 128 ] = { - 0xa0, 0x1a, 0x1a, 0x1a, 0xa4, 0x1a, 0xa6, 0xa7, - 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, - 0xb0, 0xb1, 0x1a, 0x1a, 0xb4, 0xb5, 0xb6, 0xb7, - 0xb8, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0xc1, 0xc2, 0x1a, 0xc4, 0x1a, 0x1a, 0xc7, - 0x1a, 0xc9, 0x1a, 0xcb, 0x1a, 0xcd, 0xce, 0x1a, - 0x1a, 0x1a, 0x1a, 0xd3, 0xd4, 0x1a, 0xd6, 0xd7, - 0x1a, 0x1a, 0xda, 0x1a, 0xdc, 0xdd, 0x1a, 0xdf, - 0x1a, 0xe1, 0xe2, 0x1a, 0xe4, 0x1a, 0x1a, 0xe7, - 0x1a, 0xe9, 0x1a, 0xeb, 0x1a, 0xed, 0xee, 0x1a, - 0x1a, 0x1a, 0x1a, 0xf3, 0xf4, 0x1a, 0xf6, 0xf7, - 0x1a, 0x1a, 0xfa, 0x1a, 0xfc, 0xfd, 0x1a, 0x1a, - 0x1a, 0x1a, 0xc3, 0xe3, 0xa5, 0xb9, 0xc6, 0xe6, - 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0xcf, 0xef, - 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0xca, 0xea, 0xcc, 0xec, 0x1a, 0x1a, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x0138[ 72 ] = { - 0x1a, 0xc5, 0xe5, 0x1a, 0x1a, 0xbc, 0xbe, 0x1a, - 0x1a, 0xa3, 0xb3, 0xd1, 0xf1, 0x1a, 0x1a, 0xd2, - 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0xd5, 0xf5, 0x1a, 0x1a, 0xc0, 0xe0, 0x1a, 0x1a, - 0xd8, 0xf8, 0x8c, 0x9c, 0x1a, 0x1a, 0xaa, 0xba, - 0x8a, 0x9a, 0xde, 0xfe, 0x8d, 0x9d, 0x1a, 0x1a, - 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd9, 0xf9, - 0xdb, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0x8f, 0x9f, 0xaf, 0xbf, 0x8e, 0x9e, 0x1a -}; - -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x02d8[ 8 ] = { - 0xa2, 0xff, 0x1a, 0xb2, 0x1a, 0xbd, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2010[ 24 ] = { - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a -}; - -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2030[ 16 ] = { - 0x89, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0x8b, 0x9b, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1251.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1251.c deleted file mode 100644 index 67c055a..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1251.c +++ /dev/null @@ -1,79 +0,0 @@ -/* - * Windows 1251 codepage (Cyrillic) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1251.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1251 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1251_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x0402, 0x0403, 0x201a, 0x0453, 0x201e, 0x2026, 0x2020, 0x2021, - 0x20ac, 0x2030, 0x0409, 0x2039, 0x040a, 0x040c, 0x040b, 0x040f, - 0x0452, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0xfffd, 0x2122, 0x0459, 0x203a, 0x045a, 0x045c, 0x045b, 0x045f, - 0x00a0, 0x040e, 0x045e, 0x0408, 0x00a4, 0x0490, 0x00a6, 0x00a7, - 0x0401, 0x00a9, 0x0404, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x0407, - 0x00b0, 0x00b1, 0x0406, 0x0456, 0x0491, 0x00b5, 0x00b6, 0x00b7, - 0x0451, 0x2116, 0x0454, 0x00bb, 0x0458, 0x0405, 0x0455, 0x0457, - 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, - 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, - 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, - 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, - 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, - 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, - 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, - 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x044f -}; - -/* Unicode to ASCII character lookup table for Windows 1251 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x00a0[ 32 ] = { - 0xa0, 0x1a, 0x1a, 0x1a, 0xa4, 0x1a, 0xa6, 0xa7, - 0x1a, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, - 0xb0, 0xb1, 0x1a, 0x1a, 0x1a, 0xb5, 0xb6, 0xb7, - 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x0400[ 96 ] = { - 0x1a, 0xa8, 0x80, 0x81, 0xaa, 0xbd, 0xb2, 0xaf, - 0xa3, 0x8a, 0x8c, 0x8e, 0x8d, 0x1a, 0xa1, 0x8f, - 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, - 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, - 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, - 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, - 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, - 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, - 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, - 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, - 0x1a, 0xb8, 0x90, 0x83, 0xba, 0xbe, 0xb3, 0xbf, - 0xbc, 0x9a, 0x9c, 0x9e, 0x9d, 0x1a, 0xa2, 0x9f -}; - -const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x2010[ 24 ] = { - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1252.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1252.c deleted file mode 100644 index 3cf7458..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1252.c +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Windows 1252 codepage (Western European/Latin 1) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1252.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1252 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1252_byte_stream_to_unicode_base_0x80[ 32 ] = { - 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, - 0x02c6, 0x2030, 0x0160, 0x2039, 0x0152, 0xfffd, 0x017d, 0xfffd, - 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0x02dc, 0x2122, 0x0161, 0x203a, 0x0153, 0xfffd, 0x017e, 0x0178 -}; - -/* Unicode to ASCII character lookup table for Windows 1252 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1252_unicode_to_byte_stream_base_0x2010[ 24 ] = { - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1253.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1253.c deleted file mode 100644 index 9935eff..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1253.c +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Windows 1253 codepage (Greek) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1253.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1253 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1253_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, - 0xfffd, 0x2030, 0xfffd, 0x2039, 0xfffd, 0xfffd, 0xfffd, 0xfffd, - 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0xfffd, 0x2122, 0xfffd, 0x203a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, - 0x00a0, 0x0385, 0x0386, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, - 0x00a8, 0x00a9, 0xfffd, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x2015, - 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0384, 0x00b5, 0x00b6, 0x00b7, - 0x0388, 0x0389, 0x038a, 0x00bb, 0x038c, 0x00bd, 0x038e, 0x038f, - 0x0390, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, - 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, - 0x03a0, 0x03a1, 0xfffd, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, - 0x03a8, 0x03a9, 0x03aa, 0x03ab, 0x03ac, 0x03ad, 0x03ae, 0x03af, - 0x03b0, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, - 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, - 0x03c0, 0x03c1, 0x03c2, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, - 0x03c8, 0x03c9, 0x03ca, 0x03cb, 0x03cc, 0x03cd, 0x03ce, 0xfffd -}; - -/* Unicode to ASCII character lookup table for Windows 1253 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x00a0[ 32 ] = { - 0xa0, 0x1a, 0x1a, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, - 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, - 0xb0, 0xb1, 0xb2, 0xb3, 0x1a, 0xb5, 0xb6, 0xb7, - 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0xbd, 0x1a, 0x1a, -}; - -const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x0380[ 80 ] = { - 0x1a, 0x1a, 0x1a, 0x1a, 0xb4, 0xa1, 0xa2, 0x1a, - 0xb8, 0xb9, 0xba, 0x1a, 0xbc, 0x1a, 0xbe, 0xbf, - 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, - 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, - 0xd0, 0xd1, 0x1a, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, - 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, - 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, - 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, - 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, - 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0x1a, -}; - -const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x2010[ 24 ] = { - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0xaf, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1254.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1254.c deleted file mode 100644 index 1404b23..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1254.c +++ /dev/null @@ -1,64 +0,0 @@ -/* - * Windows 1254 codepage (Turkish) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1254.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1254 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0x80[ 32 ] = { - 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, - 0x02c6, 0x2030, 0x0160, 0x2039, 0x0152, 0xfffd, 0xfffd, 0xfffd, - 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0x02dc, 0x2122, 0x0161, 0x203a, 0x0153, 0xfffd, 0xfffd, 0x0178, -}; - -const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xd0[ 16 ] = { - 0x011e, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7, - 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0130, 0x015e, 0x00df, -}; - -const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xf0[ 16 ] = { - 0x011f, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7, - 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0131, 0x015f, 0x00ff, -}; - -/* Unicode to ASCII character lookup table for Windows 1254 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x00d0[ 48 ] = { - 0x1a, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, - 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, - 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, - 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, - 0x1a, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, - 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0xff, -}; - -const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x2010[ 24 ] = { - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a, -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1255.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1255.c deleted file mode 100644 index 7b402c4..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1255.c +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Windows 1255 codepage (Hebrew) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1255.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1255 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1255_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, - 0x02c6, 0x2030, 0xfffd, 0x2039, 0xfffd, 0xfffd, 0xfffd, 0xfffd, - 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0x02dc, 0x2122, 0xfffd, 0x203a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, - 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x20aa, 0x00a5, 0x00a6, 0x00a7, - 0x00a8, 0x00a9, 0x00d7, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, - 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, - 0x00b8, 0x00b9, 0x00f7, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, - 0x05b0, 0x05b1, 0x05b2, 0x05b3, 0x05b4, 0x05b5, 0x05b6, 0x05b7, - 0x05b8, 0x05b9, 0xfffd, 0x05bb, 0x05bc, 0x05bd, 0x05be, 0x05bf, - 0x05c0, 0x05c1, 0x05c2, 0x05c3, 0x05f0, 0x05f1, 0x05f2, 0x05f3, - 0x05f4, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, - 0x05d0, 0x05d1, 0x05d2, 0x05d3, 0x05d4, 0x05d5, 0x05d6, 0x05d7, - 0x05d8, 0x05d9, 0x05da, 0x05db, 0x05dc, 0x05dd, 0x05de, 0x05df, - 0x05e0, 0x05e1, 0x05e2, 0x05e3, 0x05e4, 0x05e5, 0x05e6, 0x05e7, - 0x05e8, 0x05e9, 0x05ea, 0xfffd, 0xfffd, 0x200e, 0x200f, 0xfffd -}; - -/* Unicode to ASCII character lookup table for Windows 1255 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x00a0[ 32 ] = { - 0xa0, 0xa1, 0xa2, 0xa3, 0x1a, 0xa5, 0xa6, 0xa7, - 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0xaf, - 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, - 0xb8, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf -}; - -const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05b0[ 24 ] = { - 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, - 0xc8, 0xc9, 0x1a, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, - 0xd0, 0xd1, 0xd2, 0xd3, 0x1a, 0x1a, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05d0[ 40 ] = { - 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, - 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, - 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, - 0xf8, 0xf9, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0x1a, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x2010[ 24 ] = { - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1256.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1256.c deleted file mode 100644 index f431aa2..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1256.c +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Windows 1256 codepage (Arabic) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1256.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1256 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1256_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x20ac, 0x067e, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, - 0x02c6, 0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688, - 0x06af, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0x06a9, 0x2122, 0x0691, 0x203a, 0x0153, 0x200c, 0x200d, 0x06ba, - 0x00a0, 0x060c, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, - 0x00a8, 0x00a9, 0x06be, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, - 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, - 0x00b8, 0x00b9, 0x061b, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x061f, - 0x06c1, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, - 0x0628, 0x0629, 0x062a, 0x062b, 0x062c, 0x062d, 0x062e, 0x062f, - 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x00d7, - 0x0637, 0x0638, 0x0639, 0x063a, 0x0640, 0x0641, 0x0642, 0x0643, - 0x00e0, 0x0644, 0x00e2, 0x0645, 0x0646, 0x0647, 0x0648, 0x00e7, - 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0649, 0x064a, 0x00ee, 0x00ef, - 0x064b, 0x064c, 0x064d, 0x064e, 0x00f4, 0x064f, 0x0650, 0x00f7, - 0x0651, 0x00f9, 0x0652, 0x00fb, 0x00fc, 0x200e, 0x200f, 0x06d2 -}; - -/* Unicode to ASCII character lookup table for Windows 1256 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00a0[ 32 ] = { - 0xa0, 0x1a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, - 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0xaf, - 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, - 0xb8, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a -}; - -const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00e0[ 32 ] = { - 0xe0, 0x1a, 0xe2, 0x1a, 0x1a, 0x1a, 0x1a, 0xe7, - 0xe8, 0xe9, 0xea, 0xeb, 0x1a, 0x1a, 0xee, 0xef, - 0x1a, 0x1a, 0x1a, 0x1a, 0xf4, 0x1a, 0x1a, 0xf7, - 0x1a, 0xf9, 0x1a, 0xfb, 0xfc, 0x1a, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x0618[ 64 ] = { - 0x1a, 0x1a, 0x1a, 0xba, 0x1a, 0x1a, 0x1a, 0xbf, - 0x1a, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, - 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, - 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd8, - 0xd9, 0xda, 0xdb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0xdc, 0xdd, 0xde, 0xdf, 0xe1, 0xe3, 0xe4, 0xe5, - 0xe6, 0xec, 0xed, 0xf0, 0xf1, 0xf2, 0xf3, 0xf5, - 0xf6, 0xf8, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x2008[ 32 ] = { - 0x1a, 0x1a, 0x1a, 0x1a, 0x9d, 0x9e, 0xfd, 0xfe, - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1257.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1257.c deleted file mode 100644 index 4dbc80a..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1257.c +++ /dev/null @@ -1,88 +0,0 @@ -/* - * Windows 1257 codepage (Baltic) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1257.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1257 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1257_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x20ac, 0xfffd, 0x201a, 0xfffd, 0x201e, 0x2026, 0x2020, 0x2021, - 0xfffd, 0x2030, 0xfffd, 0x2039, 0xfffd, 0x00a8, 0x02c7, 0x00b8, - 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0xfffd, 0x2122, 0xfffd, 0x203a, 0xfffd, 0x00af, 0x02db, 0xfffd, - 0x00a0, 0xfffd, 0x00a2, 0x00a3, 0x00a4, 0xfffd, 0x00a6, 0x00a7, - 0x00d8, 0x00a9, 0x0156, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00c6, - 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, - 0x00f8, 0x00b9, 0x0157, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00e6, - 0x0104, 0x012e, 0x0100, 0x0106, 0x00c4, 0x00c5, 0x0118, 0x0112, - 0x010c, 0x00c9, 0x0179, 0x0116, 0x0122, 0x0136, 0x012a, 0x013b, - 0x0160, 0x0143, 0x0145, 0x00d3, 0x014c, 0x00d5, 0x00d6, 0x00d7, - 0x0172, 0x0141, 0x015a, 0x016a, 0x00dc, 0x017b, 0x017d, 0x00df, - 0x0105, 0x012f, 0x0101, 0x0107, 0x00e4, 0x00e5, 0x0119, 0x0113, - 0x010d, 0x00e9, 0x017a, 0x0117, 0x0123, 0x0137, 0x012b, 0x013c, - 0x0161, 0x0144, 0x0146, 0x00f3, 0x014d, 0x00f5, 0x00f6, 0x00f7, - 0x0173, 0x0142, 0x015b, 0x016b, 0x00fc, 0x017c, 0x017e, 0x02d9 -}; - -/* Unicode to ASCII character lookup table for Windows 1257 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x00a0[ 224 ] = { - 0xa0, 0x1a, 0xa2, 0xa3, 0xa4, 0x1a, 0xa6, 0xa7, - 0x8d, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x9d, - 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, - 0x8f, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a, - 0x1a, 0x1a, 0x1a, 0x1a, 0xc4, 0xc5, 0xaf, 0x1a, - 0x1a, 0xc9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0x1a, 0x1a, 0xd3, 0x1a, 0xd5, 0xd6, 0xd7, - 0xa8, 0x1a, 0x1a, 0x1a, 0xdc, 0x1a, 0x1a, 0xdf, - 0x1a, 0x1a, 0x1a, 0x1a, 0xe4, 0xe5, 0xbf, 0x1a, - 0x1a, 0xe9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0x1a, 0x1a, 0xf3, 0x1a, 0xf5, 0xf6, 0xf7, - 0xb8, 0x1a, 0x1a, 0x1a, 0xfc, 0x1a, 0x1a, 0x1a, - 0xc2, 0xe2, 0x1a, 0x1a, 0xc0, 0xe0, 0xc3, 0xe3, - 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0x1a, 0x1a, - 0x1a, 0x1a, 0xc7, 0xe7, 0x1a, 0x1a, 0xcb, 0xeb, - 0xc6, 0xe6, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0x1a, 0xcc, 0xec, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0x1a, 0xce, 0xee, 0x1a, 0x1a, 0xc1, 0xe1, - 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xcd, 0xed, - 0x1a, 0x1a, 0x1a, 0xcf, 0xef, 0x1a, 0x1a, 0x1a, - 0x1a, 0xd9, 0xf9, 0xd1, 0xf1, 0xd2, 0xf2, 0x1a, - 0x1a, 0x1a, 0x1a, 0x1a, 0xd4, 0xf4, 0x1a, 0x1a, - 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xaa, 0xba, - 0x1a, 0x1a, 0xda, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, - 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0x1a, 0xdb, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0x1a, 0xd8, 0xf8, 0x1a, 0x1a, 0x1a, 0x1a, - 0x1a, 0xca, 0xea, 0xdd, 0xfd, 0xde, 0xfe, 0x1a -}; - -const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x2010[ 24 ] = { - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1258.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1258.c deleted file mode 100644 index 5721615..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1258.c +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Windows 1258 codepage (Vietnamese) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_1258.h" - -/* Extended ASCII to Unicode character lookup table for Windows 1258 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_1258_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, - 0x02c6, 0x2030, 0xfffd, 0x2039, 0x0152, 0xfffd, 0xfffd, 0xfffd, - 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0x02dc, 0x2122, 0xfffd, 0x203a, 0x0153, 0xfffd, 0xfffd, 0x0178, - 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, - 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, - 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, - 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, - 0x00c0, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x00c5, 0x00c6, 0x00c7, - 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x0300, 0x00cd, 0x00ce, 0x00cf, - 0x0110, 0x00d1, 0x0309, 0x00d3, 0x00d4, 0x01a0, 0x00d6, 0x00d7, - 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x01af, 0x0303, 0x00df, - 0x00e0, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x00e5, 0x00e6, 0x00e7, - 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0301, 0x00ed, 0x00ee, 0x00ef, - 0x0111, 0x00f1, 0x0323, 0x00f3, 0x00f4, 0x01a1, 0x00f6, 0x00f7, - 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x01b0, 0x20ab, 0x00ff -}; - -/* Unicode to ASCII character lookup table for Windows 1258 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x00c0[ 72 ] = { - 0xc0, 0xc1, 0xc2, 0x1a, 0xc4, 0xc5, 0xc6, 0xc7, - 0xc8, 0xc9, 0xca, 0xcb, 0x1a, 0xcd, 0xce, 0xcf, - 0x1a, 0xd1, 0x1a, 0xd3, 0xd4, 0x1a, 0xd6, 0xd7, - 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, - 0xe0, 0xe1, 0xe2, 0x1a, 0xe4, 0xe5, 0xe6, 0xe7, - 0xe8, 0xe9, 0xea, 0xeb, 0x1a, 0xed, 0xee, 0xef, - 0x1a, 0xf1, 0x1a, 0xf3, 0xf4, 0x1a, 0xf6, 0xf7, - 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0xff, - 0x1a, 0x1a, 0xc3, 0xe3, 0x1a, 0x1a, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x2010[ 24 ] = { - 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, - 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, - 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_874.c b/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_874.c deleted file mode 100644 index 23f9a6f..0000000 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_874.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Windows 874 codepage (Thai) functions - * - * Copyright (C) 2008-2020, Joachim Metz - * - * Refer to AUTHORS for acknowledgements. - * - * This program is free software: you can redistribute it and/or modify - * it under the terms of the GNU Lesser General Public License as published by - * the Free Software Foundation, either version 3 of the License, or - * (at your option) any later version. - * - * 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 Lesser General Public License - * along with this program. If not, see . - */ - -#include -#include - -#include "libuna_codepage_windows_874.h" - -/* Extended ASCII to Unicode character lookup table for Windows 874 codepage - * Unknown are filled with the Unicode replacement character 0xfffd - */ -const uint16_t libuna_codepage_windows_874_byte_stream_to_unicode_base_0x80[ 128 ] = { - 0x20ac, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2026, 0xfffd, 0xfffd, - 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, - 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, - 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, - 0x00a0, 0x0e01, 0x0e02, 0x0e03, 0x0e04, 0x0e05, 0x0e06, 0x0e07, - 0x0e08, 0x0e09, 0x0e0a, 0x0e0b, 0x0e0c, 0x0e0d, 0x0e0e, 0x0e0f, - 0x0e10, 0x0e11, 0x0e12, 0x0e13, 0x0e14, 0x0e15, 0x0e16, 0x0e17, - 0x0e18, 0x0e19, 0x0e1a, 0x0e1b, 0x0e1c, 0x0e1d, 0x0e1e, 0x0e1f, - 0x0e20, 0x0e21, 0x0e22, 0x0e23, 0x0e24, 0x0e25, 0x0e26, 0x0e27, - 0x0e28, 0x0e29, 0x0e2a, 0x0e2b, 0x0e2c, 0x0e2d, 0x0e2e, 0x0e2f, - 0x0e30, 0x0e31, 0x0e32, 0x0e33, 0x0e34, 0x0e35, 0x0e36, 0x0e37, - 0x0e38, 0x0e39, 0x0e3a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x0e3f, - 0x0e40, 0x0e41, 0x0e42, 0x0e43, 0x0e44, 0x0e45, 0x0e46, 0x0e47, - 0x0e48, 0x0e49, 0x0e4a, 0x0e4b, 0x0e4c, 0x0e4d, 0x0e4e, 0x0e4f, - 0x0e50, 0x0e51, 0x0e52, 0x0e53, 0x0e54, 0x0e55, 0x0e56, 0x0e57, - 0x0e58, 0x0e59, 0x0e5a, 0x0e5b, 0xfffd, 0xfffd, 0xfffd, 0xfffd -}; - -/* Unicode to ASCII character lookup table for Windows 874 codepage - * Unknown are filled with the ASCII replacement character 0x1a - */ -const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x0e00[ 96 ] = { - 0x1a, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, - 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, - 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, - 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, - 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, - 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, - 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, - 0xd8, 0xd9, 0xda, 0x1a, 0x1a, 0x1a, 0x1a, 0xdf, - 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, - 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, - 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, - 0xf8, 0xf9, 0xfa, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a -}; - -const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x2018[ 8 ] = { - 0x91, 0x92, 0x1a, 0x1a, 0x93, 0x94, 0x1a, 0x1a -}; - diff --git a/libesedb-sys/libesedb-20210424/m4/intlmacosx.m4 b/libesedb-sys/libesedb-20210424/m4/intlmacosx.m4 deleted file mode 100644 index dd91025..0000000 --- a/libesedb-sys/libesedb-20210424/m4/intlmacosx.m4 +++ /dev/null @@ -1,51 +0,0 @@ -# intlmacosx.m4 serial 3 (gettext-0.18) -dnl Copyright (C) 2004-2010 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. -dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public -dnl License but which still want to provide support for the GNU gettext -dnl functionality. -dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. -dnl They are *not* in the public domain. - -dnl Checks for special options needed on MacOS X. -dnl Defines INTL_MACOSX_LIBS. -AC_DEFUN([gt_INTL_MACOSX], -[ - dnl Check for API introduced in MacOS X 10.2. - AC_CACHE_CHECK([for CFPreferencesCopyAppValue], - [gt_cv_func_CFPreferencesCopyAppValue], - [gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - AC_TRY_LINK([#include ], - [CFPreferencesCopyAppValue(NULL, NULL)], - [gt_cv_func_CFPreferencesCopyAppValue=yes], - [gt_cv_func_CFPreferencesCopyAppValue=no]) - LIBS="$gt_save_LIBS"]) - if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then - AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], - [Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) - fi - dnl Check for API introduced in MacOS X 10.3. - AC_CACHE_CHECK([for CFLocaleCopyCurrent], [gt_cv_func_CFLocaleCopyCurrent], - [gt_save_LIBS="$LIBS" - LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" - AC_TRY_LINK([#include ], [CFLocaleCopyCurrent();], - [gt_cv_func_CFLocaleCopyCurrent=yes], - [gt_cv_func_CFLocaleCopyCurrent=no]) - LIBS="$gt_save_LIBS"]) - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then - AC_DEFINE([HAVE_CFLOCALECOPYCURRENT], [1], - [Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the CoreFoundation framework.]) - fi - INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then - INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" - fi - AC_SUBST([INTL_MACOSX_LIBS]) -]) diff --git a/libesedb-sys/libesedb-20210424/m4/lib-ld.m4 b/libesedb-sys/libesedb-20210424/m4/lib-ld.m4 deleted file mode 100644 index ebb3052..0000000 --- a/libesedb-sys/libesedb-20210424/m4/lib-ld.m4 +++ /dev/null @@ -1,110 +0,0 @@ -# lib-ld.m4 serial 4 (gettext-0.18) -dnl Copyright (C) 1996-2003, 2009-2010 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl Subroutines of libtool.m4, -dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision -dnl with libtool.m4. - -dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no. -AC_DEFUN([AC_LIB_PROG_LD_GNU], -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], -[# I'd rather use --version here, but apparently some GNU ld's only accept -v. -case `$LD -v 2>&1 conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh -fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - AC_MSG_CHECKING([for ld used by GCC]) - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [[\\/]* | [A-Za-z]:[\\/]*)] - [re_direlt='/[^/][^/]*/\.\./'] - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac -elif test "$with_gnu_ld" = yes; then - AC_MSG_CHECKING([for GNU ld]) -else - AC_MSG_CHECKING([for non-GNU ld]) -fi -AC_CACHE_VAL([acl_cv_path_LD], -[if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; - esac - fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. -fi]) -LD="$acl_cv_path_LD" -if test -n "$LD"; then - AC_MSG_RESULT([$LD]) -else - AC_MSG_RESULT([no]) -fi -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH]) -AC_LIB_PROG_LD_GNU -]) diff --git a/libesedb-sys/libesedb-20210424/m4/lib-prefix.m4 b/libesedb-sys/libesedb-20210424/m4/lib-prefix.m4 deleted file mode 100644 index 1601cea..0000000 --- a/libesedb-sys/libesedb-20210424/m4/lib-prefix.m4 +++ /dev/null @@ -1,224 +0,0 @@ -# lib-prefix.m4 serial 7 (gettext-0.18) -dnl Copyright (C) 2001-2005, 2008-2010 Free Software Foundation, Inc. -dnl This file is free software; the Free Software Foundation -dnl gives unlimited permission to copy and/or distribute it, -dnl with or without modifications, as long as this notice is preserved. - -dnl From Bruno Haible. - -dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and -dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't -dnl require excessive bracketing. -ifdef([AC_HELP_STRING], -[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])], -[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])]) - -dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed -dnl to access previously installed libraries. The basic assumption is that -dnl a user will want packages to use other packages he previously installed -dnl with the same --prefix option. -dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate -dnl libraries, but is otherwise very convenient. -AC_DEFUN([AC_LIB_PREFIX], -[ - AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) - AC_REQUIRE([AC_PROG_CC]) - AC_REQUIRE([AC_CANONICAL_HOST]) - AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) - dnl By default, look in $includedir and $libdir. - use_additional=yes - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - AC_LIB_ARG_WITH([lib-prefix], -[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib - --without-lib-prefix don't search for libraries in includedir and libdir], -[ - if test "X$withval" = "Xno"; then - use_additional=no - else - if test "X$withval" = "X"; then - AC_LIB_WITH_FINAL_PREFIX([ - eval additional_includedir=\"$includedir\" - eval additional_libdir=\"$libdir\" - ]) - else - additional_includedir="$withval/include" - additional_libdir="$withval/$acl_libdirstem" - fi - fi -]) - if test $use_additional = yes; then - dnl Potentially add $additional_includedir to $CPPFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/include, - dnl 2. if it's already present in $CPPFLAGS, - dnl 3. if it's /usr/local/include and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_includedir" != "X/usr/include"; then - haveit= - for x in $CPPFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-I$additional_includedir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_includedir" = "X/usr/local/include"; then - if test -n "$GCC"; then - case $host_os in - linux* | gnu* | k*bsd*-gnu) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_includedir"; then - dnl Really add $additional_includedir to $CPPFLAGS. - CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" - fi - fi - fi - fi - dnl Potentially add $additional_libdir to $LDFLAGS. - dnl But don't add it - dnl 1. if it's the standard /usr/lib, - dnl 2. if it's already present in $LDFLAGS, - dnl 3. if it's /usr/local/lib and we are using GCC on Linux, - dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then - haveit= - for x in $LDFLAGS; do - AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then - haveit=yes - break - fi - done - if test -z "$haveit"; then - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then - if test -n "$GCC"; then - case $host_os in - linux*) haveit=yes;; - esac - fi - fi - if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LDFLAGS. - LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" - fi - fi - fi - fi - fi -]) - -dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, -dnl acl_final_exec_prefix, containing the values to which $prefix and -dnl $exec_prefix will expand at the end of the configure script. -AC_DEFUN([AC_LIB_PREPARE_PREFIX], -[ - dnl Unfortunately, prefix and exec_prefix get only finally determined - dnl at the end of configure. - if test "X$prefix" = "XNONE"; then - acl_final_prefix="$ac_default_prefix" - else - acl_final_prefix="$prefix" - fi - if test "X$exec_prefix" = "XNONE"; then - acl_final_exec_prefix='${prefix}' - else - acl_final_exec_prefix="$exec_prefix" - fi - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the -dnl variables prefix and exec_prefix bound to the values they will have -dnl at the end of the configure script. -AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], -[ - acl_save_prefix="$prefix" - prefix="$acl_final_prefix" - acl_save_exec_prefix="$exec_prefix" - exec_prefix="$acl_final_exec_prefix" - $1 - exec_prefix="$acl_save_exec_prefix" - prefix="$acl_save_prefix" -]) - -dnl AC_LIB_PREPARE_MULTILIB creates -dnl - a variable acl_libdirstem, containing the basename of the libdir, either -dnl "lib" or "lib64" or "lib/64", -dnl - a variable acl_libdirstem2, as a secondary possible value for -dnl acl_libdirstem, either the same as acl_libdirstem or "lib/sparcv9" or -dnl "lib/amd64". -AC_DEFUN([AC_LIB_PREPARE_MULTILIB], -[ - dnl There is no formal standard regarding lib and lib64. - dnl On glibc systems, the current practice is that on a system supporting - dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under - dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. We determine - dnl the compiler's default mode by looking at the compiler's library search - dnl path. If at least one of its elements ends in /lib64 or points to a - dnl directory whose absolute pathname ends in /lib64, we assume a 64-bit ABI. - dnl Otherwise we use the default, namely "lib". - dnl On Solaris systems, the current practice is that on a system supporting - dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under - dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or - dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. - AC_REQUIRE([AC_CANONICAL_HOST]) - acl_libdirstem=lib - acl_libdirstem2= - case "$host_os" in - solaris*) - dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment - dnl . - dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." - dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the - dnl symlink is missing, so we set acl_libdirstem2 too. - AC_CACHE_CHECK([for 64-bit host], [gl_cv_solaris_64bit], - [AC_EGREP_CPP([sixtyfour bits], [ -#ifdef _LP64 -sixtyfour bits -#endif - ], [gl_cv_solaris_64bit=yes], [gl_cv_solaris_64bit=no]) - ]) - if test $gl_cv_solaris_64bit = yes; then - acl_libdirstem=lib/64 - case "$host_cpu" in - sparc*) acl_libdirstem2=lib/sparcv9 ;; - i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; - esac - fi - ;; - *) - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - */../ | */.. ) - # Better ignore directories of this form. They are misleading. - ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - ;; - esac - test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" -]) diff --git a/libesedb-sys/libesedb-20210424/ossfuzz/Makefile.am b/libesedb-sys/libesedb-20210424/ossfuzz/Makefile.am deleted file mode 100644 index 5c3138f..0000000 --- a/libesedb-sys/libesedb-20210424/ossfuzz/Makefile.am +++ /dev/null @@ -1,45 +0,0 @@ -if HAVE_LIB_FUZZING_ENGINE -AM_CPPFLAGS = \ - -I$(top_srcdir)/include \ - -I$(top_srcdir)/common \ - @LIBCERROR_CPPFLAGS@ \ - @LIBCDATA_CPPFLAGS@ \ - @LIBCLOCALE_CPPFLAGS@ \ - @LIBCNOTIFY_CPPFLAGS@ \ - @LIBUNA_CPPFLAGS@ \ - @LIBCFILE_CPPFLAGS@ \ - @LIBCPATH_CPPFLAGS@ \ - @LIBBFIO_CPPFLAGS@ - -bin_PROGRAMS = \ - file_fuzzer - -file_fuzzer_SOURCES = \ - file_fuzzer.cc \ - ossfuzz_libbfio.h \ - ossfuzz_libesedb.h - -file_fuzzer_LDADD = \ - @LIB_FUZZING_ENGINE@ \ - @LIBBFIO_LIBADD@ \ - @LIBCPATH_LIBADD@ \ - @LIBCFILE_LIBADD@ \ - @LIBUNA_LIBADD@ \ - @LIBCDATA_LIBADD@ \ - ../libesedb/libesedb.la \ - @LIBCNOTIFY_LIBADD@ \ - @LIBCLOCALE_LIBADD@ \ - @LIBCERROR_LIBADD@ \ - @LIBINTL@ -endif - -MAINTAINERCLEANFILES = \ - Makefile.in - -distclean: clean - /bin/rm -f Makefile - -splint: - @echo "Running splint on file_fuzzer ..." - -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(file_fuzzer_SOURCES) - diff --git a/libesedb-sys/libesedb-20230824/ABOUT-NLS b/libesedb-sys/libesedb-20230824/ABOUT-NLS new file mode 100644 index 0000000..0a9d56d --- /dev/null +++ b/libesedb-sys/libesedb-20230824/ABOUT-NLS @@ -0,0 +1 @@ + diff --git a/libesedb-sys/libesedb-20230824/AUTHORS b/libesedb-sys/libesedb-20230824/AUTHORS new file mode 100644 index 0000000..77760a0 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/AUTHORS @@ -0,0 +1,4 @@ +Acknowledgements: libesedb + +Copyright (C) 2009-2023, Joachim Metz + diff --git a/libesedb-sys/libesedb-20210424/COPYING b/libesedb-sys/libesedb-20230824/COPYING similarity index 100% rename from libesedb-sys/libesedb-20210424/COPYING rename to libesedb-sys/libesedb-20230824/COPYING diff --git a/libesedb-sys/libesedb-20210424/COPYING.LESSER b/libesedb-sys/libesedb-20230824/COPYING.LESSER similarity index 100% rename from libesedb-sys/libesedb-20210424/COPYING.LESSER rename to libesedb-sys/libesedb-20230824/COPYING.LESSER diff --git a/libesedb-sys/libesedb-20210424/ChangeLog b/libesedb-sys/libesedb-20230824/ChangeLog similarity index 98% rename from libesedb-sys/libesedb-20210424/ChangeLog rename to libesedb-sys/libesedb-20230824/ChangeLog index 1e734ec..8e5a6fa 100644 --- a/libesedb-sys/libesedb-20210424/ChangeLog +++ b/libesedb-sys/libesedb-20230824/ChangeLog @@ -159,7 +159,7 @@ Test suite: Notes * create a root page table instead? - no -* read catalog data type defintions and convert them into column definitions? +* read catalog data type definitions and convert them into column definitions? - no 20090913 diff --git a/libesedb-sys/libesedb-20210424/INSTALL b/libesedb-sys/libesedb-20230824/INSTALL similarity index 98% rename from libesedb-sys/libesedb-20210424/INSTALL rename to libesedb-sys/libesedb-20230824/INSTALL index 8865734..e82fd21 100644 --- a/libesedb-sys/libesedb-20210424/INSTALL +++ b/libesedb-sys/libesedb-20230824/INSTALL @@ -1,8 +1,8 @@ Installation Instructions ************************* - Copyright (C) 1994-1996, 1999-2002, 2004-2016 Free Software -Foundation, Inc. + Copyright (C) 1994-1996, 1999-2002, 2004-2017, 2020-2021 Free +Software Foundation, Inc. Copying and distribution of this file, with or without modification, are permitted in any medium without royalty provided the copyright @@ -225,7 +225,7 @@ order to use an ANSI C compiler: and if that doesn't work, install pre-built binaries of GCC for HP-UX. - HP-UX 'make' updates targets which have the same time stamps as their + HP-UX 'make' updates targets which have the same timestamps as their prerequisites, which makes it generally unusable when shipped generated files such as 'configure' are involved. Use GNU 'make' instead. diff --git a/libesedb-sys/libesedb-20210424/Makefile.am b/libesedb-sys/libesedb-20230824/Makefile.am similarity index 99% rename from libesedb-sys/libesedb-20210424/Makefile.am rename to libesedb-sys/libesedb-20230824/Makefile.am index 14603de..e9d9547 100644 --- a/libesedb-sys/libesedb-20210424/Makefile.am +++ b/libesedb-sys/libesedb-20230824/Makefile.am @@ -41,7 +41,6 @@ DPKG_FILES = \ dpkg/rules \ dpkg/libesedb.install \ dpkg/libesedb-dev.install \ - dpkg/libesedb-python.install \ dpkg/libesedb-python3.install \ dpkg/libesedb-tools.install \ dpkg/source/format diff --git a/libesedb-sys/libesedb-20210424/Makefile.in b/libesedb-sys/libesedb-20230824/Makefile.in similarity index 96% rename from libesedb-sys/libesedb-20210424/Makefile.in rename to libesedb-sys/libesedb-20230824/Makefile.in index ac33a77..48a876b 100644 --- a/libesedb-sys/libesedb-20210424/Makefile.in +++ b/libesedb-sys/libesedb-20230824/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = . ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(top_srcdir)/configure \ @@ -203,9 +204,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags -CSCOPE = cscope DIST_SUBDIRS = $(SUBDIRS) am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/libesedb.pc.in \ $(srcdir)/libesedb.spec.in $(top_srcdir)/dpkg/changelog.in \ @@ -253,6 +251,8 @@ am__relativize = \ DIST_ARCHIVES = $(distdir).tar.gz GZIP_ENV = --best DIST_TARGETS = dist-gzip +# Exists only to be overridden by the user if desired. +AM_DISTCHECK_DVI_TARGET = dvi distuninstallcheck_listfiles = find . -type f -print am__distuninstallcheck_listfiles = $(distuninstallcheck_listfiles) \ | sed 's|^\./|$(prefix)/|' | grep -v '$(infodir)/dir$$' @@ -271,6 +271,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -286,8 +288,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -405,8 +409,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -613,6 +617,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -663,7 +668,6 @@ DPKG_FILES = \ dpkg/rules \ dpkg/libesedb.install \ dpkg/libesedb-dev.install \ - dpkg/libesedb-python.install \ dpkg/libesedb-python3.install \ dpkg/libesedb-tools.install \ dpkg/source/format @@ -880,7 +884,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags -rm -f cscope.out cscope.in.out cscope.po.out cscope.files - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -1027,7 +1030,7 @@ distcheck: dist $(DISTCHECK_CONFIGURE_FLAGS) \ --srcdir=../.. --prefix="$$dc_install_base" \ && $(MAKE) $(AM_MAKEFLAGS) \ - && $(MAKE) $(AM_MAKEFLAGS) dvi \ + && $(MAKE) $(AM_MAKEFLAGS) $(AM_DISTCHECK_DVI_TARGET) \ && $(MAKE) $(AM_MAKEFLAGS) check \ && $(MAKE) $(AM_MAKEFLAGS) install \ && $(MAKE) $(AM_MAKEFLAGS) installcheck \ diff --git a/libesedb-sys/libesedb-20210424/NEWS b/libesedb-sys/libesedb-20230824/NEWS similarity index 100% rename from libesedb-sys/libesedb-20210424/NEWS rename to libesedb-sys/libesedb-20230824/NEWS diff --git a/libesedb-sys/libesedb-20210424/README b/libesedb-sys/libesedb-20230824/README similarity index 100% rename from libesedb-sys/libesedb-20210424/README rename to libesedb-sys/libesedb-20230824/README diff --git a/libesedb-sys/libesedb-20210424/acinclude.m4 b/libesedb-sys/libesedb-20230824/acinclude.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/acinclude.m4 rename to libesedb-sys/libesedb-20230824/acinclude.m4 diff --git a/libesedb-sys/libesedb-20210424/aclocal.m4 b/libesedb-sys/libesedb-20230824/aclocal.m4 similarity index 93% rename from libesedb-sys/libesedb-20210424/aclocal.m4 rename to libesedb-sys/libesedb-20230824/aclocal.m4 index d4e584e..1d4debc 100644 --- a/libesedb-sys/libesedb-20210424/aclocal.m4 +++ b/libesedb-sys/libesedb-20230824/aclocal.m4 @@ -1,6 +1,6 @@ -# generated automatically by aclocal 1.16.2 -*- Autoconf -*- +# generated automatically by aclocal 1.16.5 -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -14,14 +14,14 @@ 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.69],, -[m4_warning([this file was generated for autoconf 2.69. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.71],, +[m4_warning([this file was generated for autoconf 2.71. 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'.])]) -# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- -# serial 11 (pkg-config-0.29.1) +# pkg.m4 - Macros to locate and use pkg-config. -*- Autoconf -*- +# serial 12 (pkg-config-0.29.2) dnl Copyright © 2004 Scott James Remnant . dnl Copyright © 2012-2015 Dan Nicholson @@ -63,7 +63,7 @@ dnl dnl See the "Since" comment for each macro you use to see what version dnl of the macros you require. m4_defun([PKG_PREREQ], -[m4_define([PKG_MACROS_VERSION], [0.29.1]) +[m4_define([PKG_MACROS_VERSION], [0.29.2]) m4_if(m4_version_compare(PKG_MACROS_VERSION, [$1]), -1, [m4_fatal([pkg.m4 version $1 or higher is required but ]PKG_MACROS_VERSION[ found])]) ])dnl PKG_PREREQ @@ -108,7 +108,7 @@ dnl Check to see whether a particular set of modules exists. Similar to dnl PKG_CHECK_MODULES(), but does not set variables or print errors. dnl dnl Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG]) -dnl only at the first occurence in configure.ac, so if the first place +dnl only at the first occurrence in configure.ac, so if the first place dnl it's called might be skipped (such as if it is within an "if", you dnl have to call PKG_CHECK_EXISTS manually AC_DEFUN([PKG_CHECK_EXISTS], @@ -164,7 +164,7 @@ AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl pkg_failed=no -AC_MSG_CHECKING([for $1]) +AC_MSG_CHECKING([for $2]) _PKG_CONFIG([$1][_CFLAGS], [cflags], [$2]) _PKG_CONFIG([$1][_LIBS], [libs], [$2]) @@ -174,17 +174,17 @@ and $1[]_LIBS to avoid the need to call pkg-config. See the pkg-config man page for more details.]) if test $pkg_failed = yes; then - AC_MSG_RESULT([no]) + AC_MSG_RESULT([no]) _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then - $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` - else - $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` + $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1` + else + $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD + # Put the nasty error message in config.log where it belongs + echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD - m4_default([$4], [AC_MSG_ERROR( + m4_default([$4], [AC_MSG_ERROR( [Package requirements ($2) were not met: $$1_PKG_ERRORS @@ -195,8 +195,8 @@ installed software in a non-standard prefix. _PKG_TEXT])[]dnl ]) elif test $pkg_failed = untried; then - AC_MSG_RESULT([no]) - m4_default([$4], [AC_MSG_FAILURE( + AC_MSG_RESULT([no]) + m4_default([$4], [AC_MSG_FAILURE( [The pkg-config script could not be found or is too old. Make sure it is in your PATH or set the PKG_CONFIG environment variable to the full path to pkg-config. @@ -206,10 +206,10 @@ _PKG_TEXT To get pkg-config, see .])[]dnl ]) else - $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS - $1[]_LIBS=$pkg_cv_[]$1[]_LIBS + $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS + $1[]_LIBS=$pkg_cv_[]$1[]_LIBS AC_MSG_RESULT([yes]) - $3 + $3 fi[]dnl ])dnl PKG_CHECK_MODULES @@ -364,7 +364,7 @@ AS_IF([test "$AS_TR_SH([with_]m4_tolower([$1]))" = "yes"], [AC_DEFINE([HAVE_][$1], 1, [Enable ]m4_tolower([$1])[ support])]) ])dnl PKG_HAVE_DEFINE_WITH_MODULES -# Copyright (C) 2002-2020 Free Software Foundation, Inc. +# Copyright (C) 2002-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -379,7 +379,7 @@ AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version='1.16' dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to dnl require some minimum version. Point them to the right macro. -m4_if([$1], [1.16.2], [], +m4_if([$1], [1.16.5], [], [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl ]) @@ -395,14 +395,14 @@ m4_define([_AM_AUTOCONF_VERSION], []) # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced. # This function is AC_REQUIREd by AM_INIT_AUTOMAKE. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION], -[AM_AUTOMAKE_VERSION([1.16.2])dnl +[AM_AUTOMAKE_VERSION([1.16.5])dnl m4_ifndef([AC_AUTOCONF_VERSION], [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))]) # AM_AUX_DIR_EXPAND -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# 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, @@ -454,7 +454,7 @@ am_aux_dir=`cd "$ac_aux_dir" && pwd` # AM_CONDITIONAL -*- Autoconf -*- -# Copyright (C) 1997-2020 Free Software Foundation, Inc. +# Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -485,7 +485,7 @@ AC_CONFIG_COMMANDS_PRE( Usually this means the macro was only invoked conditionally.]]) fi])]) -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -676,7 +676,7 @@ _AM_SUBST_NOTMAKE([am__nodep])dnl # Generate code to set up dependency tracking. -*- Autoconf -*- -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -744,7 +744,7 @@ AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS], # Do all the work for Automake. -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -772,6 +772,10 @@ m4_defn([AC_PROG_CC]) # release and drop the old call support. AC_DEFUN([AM_INIT_AUTOMAKE], [AC_PREREQ([2.65])dnl +m4_ifdef([_$0_ALREADY_INIT], + [m4_fatal([$0 expanded multiple times +]m4_defn([_$0_ALREADY_INIT]))], + [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl dnl Autoconf wants to disallow AM_ names. We explicitly allow dnl the ones we care about. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl @@ -808,7 +812,7 @@ m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl [_AM_SET_OPTIONS([$1])dnl dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT. m4_if( - m4_ifdef([AC_PACKAGE_NAME], [ok]):m4_ifdef([AC_PACKAGE_VERSION], [ok]), + m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]), [ok:ok],, [m4_fatal([AC_INIT should be called with package and version arguments])])dnl AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl @@ -860,6 +864,20 @@ AC_PROVIDE_IFELSE([AC_PROG_OBJCXX], [m4_define([AC_PROG_OBJCXX], m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl ]) +# Variables for tags utilities; see am/tags.am +if test -z "$CTAGS"; then + CTAGS=ctags +fi +AC_SUBST([CTAGS]) +if test -z "$ETAGS"; then + ETAGS=etags +fi +AC_SUBST([ETAGS]) +if test -z "$CSCOPE"; then + CSCOPE=cscope +fi +AC_SUBST([CSCOPE]) + AC_REQUIRE([AM_SILENT_RULES])dnl dnl The testsuite driver may need to know about EXEEXT, so add the dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This @@ -941,7 +959,7 @@ for _am_header in $config_headers :; do done echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# 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, @@ -962,7 +980,7 @@ if test x"${install_sh+set}" != xset; then fi AC_SUBST([install_sh])]) -# Copyright (C) 2003-2020 Free Software Foundation, Inc. +# Copyright (C) 2003-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -983,7 +1001,7 @@ AC_SUBST([am__leading_dot])]) # Check to see how 'make' treats includes. -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# 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, @@ -1026,7 +1044,7 @@ AC_SUBST([am__quote])]) # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*- -# Copyright (C) 1997-2020 Free Software Foundation, Inc. +# Copyright (C) 1997-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1047,12 +1065,7 @@ AC_DEFUN([AM_MISSING_HAS_RUN], [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl AC_REQUIRE_AUX_FILE([missing])dnl 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 + MISSING="\${SHELL} '$am_aux_dir/missing'" fi # Use eval to expand $SHELL if eval "$MISSING --is-lightweight"; then @@ -1063,41 +1076,9 @@ else fi ]) -# Copyright (C) 2003-2020 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_MKDIR_P -# --------------- -# Check for 'mkdir -p'. -AC_DEFUN([AM_PROG_MKDIR_P], -[AC_PREREQ([2.60])dnl -AC_REQUIRE([AC_PROG_MKDIR_P])dnl -dnl FIXME we are no longer going to remove this! adjust warning -dnl FIXME message accordingly. -AC_DIAGNOSE([obsolete], -[$0: this macro is deprecated, and will soon be removed. -You should use the Autoconf-provided 'AC][_PROG_MKDIR_P' macro instead, -and use '$(MKDIR_P)' instead of '$(mkdir_p)'in your Makefile.am files.]) -dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P, -dnl while keeping a definition of mkdir_p for backward compatibility. -dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile. -dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of -dnl Makefile.ins that do not define MKDIR_P, so we do our own -dnl adjustment using top_builddir (which is defined more often than -dnl MKDIR_P). -AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl -case $mkdir_p in - [[\\/$]]* | ?:[[\\/]]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac -]) - # Helper functions for option handling. -*- Autoconf -*- -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# 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, @@ -1126,7 +1107,7 @@ AC_DEFUN([_AM_SET_OPTIONS], AC_DEFUN([_AM_IF_OPTION], [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])]) -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1173,7 +1154,7 @@ AC_LANG_POP([C])]) # For backward compatibility. AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# 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, @@ -1192,7 +1173,7 @@ AC_DEFUN([AM_RUN_LOG], # Check to make sure that the build environment is sane. -*- Autoconf -*- -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1273,7 +1254,7 @@ AC_CONFIG_COMMANDS_PRE( rm -f conftest.file ]) -# Copyright (C) 2009-2020 Free Software Foundation, Inc. +# Copyright (C) 2009-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1333,7 +1314,7 @@ AC_SUBST([AM_BACKSLASH])dnl _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl ]) -# Copyright (C) 2001-2020 Free Software Foundation, Inc. +# 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, @@ -1361,7 +1342,7 @@ fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" AC_SUBST([INSTALL_STRIP_PROGRAM])]) -# Copyright (C) 2006-2020 Free Software Foundation, Inc. +# Copyright (C) 2006-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1380,7 +1361,7 @@ AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)]) # Check how to create a tarball. -*- Autoconf -*- -# Copyright (C) 2004-2020 Free Software Foundation, Inc. +# Copyright (C) 2004-2021 Free Software Foundation, Inc. # # This file is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -1513,6 +1494,7 @@ AC_SUBST([am__untar]) m4_include([m4/common.m4]) m4_include([m4/gettext.m4]) +m4_include([m4/host-cpu-c-abi.m4]) m4_include([m4/iconv.m4]) m4_include([m4/intlmacosx.m4]) m4_include([m4/lib-ld.m4]) diff --git a/libesedb-sys/libesedb-20210424/common/Makefile.am b/libesedb-sys/libesedb-20230824/common/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/common/Makefile.am rename to libesedb-sys/libesedb-20230824/common/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/common/Makefile.in b/libesedb-sys/libesedb-20230824/common/Makefile.in similarity index 94% rename from libesedb-sys/libesedb-20210424/common/Makefile.in rename to libesedb-sys/libesedb-20230824/common/Makefile.in index 9a35ba9..2dbcfe5 100644 --- a/libesedb-sys/libesedb-20210424/common/Makefile.in +++ b/libesedb-sys/libesedb-20230824/common/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -90,25 +90,26 @@ host_triplet = @host@ subdir = common ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -153,8 +154,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/config.h.in \ $(srcdir)/types.h.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -172,6 +171,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -187,8 +188,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -306,8 +309,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -514,6 +517,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -649,7 +653,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/common/byte_stream.h b/libesedb-sys/libesedb-20230824/common/byte_stream.h similarity index 99% rename from libesedb-sys/libesedb-20210424/common/byte_stream.h rename to libesedb-sys/libesedb-20230824/common/byte_stream.h index 1397ffd..4619f89 100644 --- a/libesedb-sys/libesedb-20210424/common/byte_stream.h +++ b/libesedb-sys/libesedb-20230824/common/byte_stream.h @@ -1,7 +1,7 @@ /* * Byte stream functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/common/common.h b/libesedb-sys/libesedb-20230824/common/common.h similarity index 94% rename from libesedb-sys/libesedb-20210424/common/common.h rename to libesedb-sys/libesedb-20230824/common/common.h index 8a3f5f7..7ce3c5e 100644 --- a/libesedb-sys/libesedb-20210424/common/common.h +++ b/libesedb-sys/libesedb-20230824/common/common.h @@ -1,7 +1,7 @@ /* * Common include file * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/common/config.h b/libesedb-sys/libesedb-20230824/common/config.h similarity index 94% rename from libesedb-sys/libesedb-20210424/common/config.h rename to libesedb-sys/libesedb-20230824/common/config.h index 1737cfa..47d760f 100644 --- a/libesedb-sys/libesedb-20210424/common/config.h +++ b/libesedb-sys/libesedb-20230824/common/config.h @@ -6,13 +6,13 @@ #define ENABLE_NLS 1 /* Define to 1 if you have the `bindtextdomain' function. */ -#define HAVE_BINDTEXTDOMAIN 1 +/* #undef HAVE_BINDTEXTDOMAIN */ -/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the - CoreFoundation framework. */ -/* #undef HAVE_CFLOCALECOPYCURRENT */ +/* Define to 1 if you have the Mac OS X function + CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ +/* #undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES */ -/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in +/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ /* #undef HAVE_CFPREFERENCESCOPYAPPVALUE */ @@ -26,7 +26,7 @@ #define HAVE_CLOSE 1 /* Define to 1 if you have the header file. */ -/* #undef HAVE_CYGWIN_FS_H */ +#define HAVE_CYGWIN_FS_H 1 /* Define if the GNU dcgettext() function is already present or preinstalled. */ @@ -47,7 +47,7 @@ #define HAVE_DLFCN_H 1 /* Define to 1 to enable the DllMain function. */ -/* #undef HAVE_DLLMAIN */ +#define HAVE_DLLMAIN 1 /* Define to 1 if you have the header file. */ #define HAVE_ERRNO_H 1 @@ -83,7 +83,7 @@ #define HAVE_FSEEKO 1 /* Define to 1 if you have the `fseeko64' function. */ -#define HAVE_FSEEKO64 1 +/* #undef HAVE_FSEEKO64 */ /* Define to 1 if you have the `fstat' function. */ #define HAVE_FSTAT 1 @@ -242,7 +242,7 @@ #define HAVE_LIMITS_H 1 /* Define to 1 if you have the header file. */ -#define HAVE_LINUX_FS_H 1 +/* #undef HAVE_LINUX_FS_H */ /* Define to 1 if you have the `localeconv' function. */ #define HAVE_LOCALECONV 1 @@ -319,9 +319,6 @@ /* Define to 1 if you have the `memcpy' function. */ #define HAVE_MEMCPY 1 -/* Define to 1 if you have the header file. */ -#define HAVE_MEMORY_H 1 - /* Define to 1 if you have the `memrchr' function. */ #define HAVE_MEMRCHR 1 @@ -412,7 +409,7 @@ /* Define to 1 if you have the `strerror' function. */ /* #undef HAVE_STRERROR */ -/* Define to 1 if you have the `strerror_r' function. */ +/* Define if you have `strerror_r'. */ #define HAVE_STRERROR_R 1 /* Define to 1 if you have the header file. */ @@ -463,6 +460,9 @@ /* Define to 1 if you have the header file. */ /* #undef HAVE_SYS_SYSLIMITS_H */ +/* Define to 1 if you have the header file. */ +#define HAVE_SYS_TIME_H 1 + /* Define to 1 if you have the header file. */ #define HAVE_SYS_TYPES_H 1 @@ -563,7 +563,7 @@ #define PACKAGE_NAME "libesedb" /* Define to the full name and version of this package. */ -#define PACKAGE_STRING "libesedb 20210424" +#define PACKAGE_STRING "libesedb 20230824" /* Define to the one symbol short name of this package. */ #define PACKAGE_TARNAME "libesedb" @@ -572,7 +572,7 @@ #define PACKAGE_URL "" /* Define to the version of this package. */ -#define PACKAGE_VERSION "20210424" +#define PACKAGE_VERSION "20230824" /* The size of `int', as computed by sizeof. */ #define SIZEOF_INT 4 @@ -587,27 +587,21 @@ #define SIZEOF_SIZE_T 8 /* The size of `wchar_t', as computed by sizeof. */ -#define SIZEOF_WCHAR_T 4 +#define SIZEOF_WCHAR_T 2 -/* 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. */ #define STDC_HEADERS 1 /* Define to 1 if strerror_r returns char *. */ /* #undef STRERROR_R_CHAR_P */ -/* Define to 1 if you can safely include both and . */ -#define TIME_WITH_SYS_TIME 1 - /* Define to 1 if your declares `struct tm'. */ /* #undef TM_IN_SYS_TIME */ /* Version number of package */ -#define VERSION "20210424" - -/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif +#define VERSION "20230824" /* Number of bits in a file offset, on hosts where this is settable. */ /* #undef _FILE_OFFSET_BITS */ diff --git a/libesedb-sys/libesedb-20210424/common/config.h.in b/libesedb-sys/libesedb-20230824/common/config.h.in similarity index 96% rename from libesedb-sys/libesedb-20210424/common/config.h.in rename to libesedb-sys/libesedb-20230824/common/config.h.in index a16594f..a8726c7 100644 --- a/libesedb-sys/libesedb-20210424/common/config.h.in +++ b/libesedb-sys/libesedb-20230824/common/config.h.in @@ -7,11 +7,11 @@ /* Define to 1 if you have the `bindtextdomain' function. */ #undef HAVE_BINDTEXTDOMAIN -/* Define to 1 if you have the MacOS X function CFLocaleCopyCurrent in the - CoreFoundation framework. */ -#undef HAVE_CFLOCALECOPYCURRENT +/* Define to 1 if you have the Mac OS X function + CFLocaleCopyPreferredLanguages in the CoreFoundation framework. */ +#undef HAVE_CFLOCALECOPYPREFERREDLANGUAGES -/* Define to 1 if you have the MacOS X function CFPreferencesCopyAppValue in +/* Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework. */ #undef HAVE_CFPREFERENCESCOPYAPPVALUE @@ -318,9 +318,6 @@ /* Define to 1 if you have the `memcpy' function. */ #undef HAVE_MEMCPY -/* Define to 1 if you have the header file. */ -#undef HAVE_MEMORY_H - /* Define to 1 if you have the `memrchr' function. */ #undef HAVE_MEMRCHR @@ -411,7 +408,7 @@ /* Define to 1 if you have the `strerror' function. */ #undef HAVE_STRERROR -/* Define to 1 if you have the `strerror_r' function. */ +/* Define if you have `strerror_r'. */ #undef HAVE_STRERROR_R /* Define to 1 if you have the header file. */ @@ -462,6 +459,9 @@ /* Define to 1 if you have the header file. */ #undef HAVE_SYS_SYSLIMITS_H +/* Define to 1 if you have the header file. */ +#undef HAVE_SYS_TIME_H + /* Define to 1 if you have the header file. */ #undef HAVE_SYS_TYPES_H @@ -588,26 +588,20 @@ /* The size of `wchar_t', as computed by sizeof. */ #undef SIZEOF_WCHAR_T -/* 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 /* Define to 1 if strerror_r returns char *. */ #undef STRERROR_R_CHAR_P -/* Define to 1 if you can safely include both and . */ -#undef TIME_WITH_SYS_TIME - /* Define to 1 if your declares `struct tm'. */ #undef TM_IN_SYS_TIME /* Version number of package */ #undef VERSION -/* Enable large inode numbers on Mac OS X 10.5. */ -#ifndef _DARWIN_USE_64_BIT_INODE -# define _DARWIN_USE_64_BIT_INODE 1 -#endif - /* Number of bits in a file offset, on hosts where this is settable. */ #undef _FILE_OFFSET_BITS diff --git a/libesedb-sys/libesedb-20210424/common/config_borlandc.h b/libesedb-sys/libesedb-20230824/common/config_borlandc.h similarity index 93% rename from libesedb-sys/libesedb-20210424/common/config_borlandc.h rename to libesedb-sys/libesedb-20230824/common/config_borlandc.h index f30b9f1..ef90ea6 100644 --- a/libesedb-sys/libesedb-20210424/common/config_borlandc.h +++ b/libesedb-sys/libesedb-20230824/common/config_borlandc.h @@ -1,7 +1,7 @@ /* * Configuration for the Borland/CodeGear C++ Builder compiler * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/common/config_msc.h b/libesedb-sys/libesedb-20230824/common/config_msc.h similarity index 94% rename from libesedb-sys/libesedb-20210424/common/config_msc.h rename to libesedb-sys/libesedb-20230824/common/config_msc.h index 0849289..689d6a3 100644 --- a/libesedb-sys/libesedb-20210424/common/config_msc.h +++ b/libesedb-sys/libesedb-20230824/common/config_msc.h @@ -1,7 +1,7 @@ /* * Configuration for the Microsoft Visual Studio C++ compiler * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/common/config_winapi.h b/libesedb-sys/libesedb-20230824/common/config_winapi.h similarity index 91% rename from libesedb-sys/libesedb-20210424/common/config_winapi.h rename to libesedb-sys/libesedb-20230824/common/config_winapi.h index 6334804..4c88a9e 100644 --- a/libesedb-sys/libesedb-20210424/common/config_winapi.h +++ b/libesedb-sys/libesedb-20230824/common/config_winapi.h @@ -1,7 +1,7 @@ /* * Configuration file for WINAPI * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -45,7 +45,10 @@ #endif /* Define the size of size_t for WINAPI + * Do not define when pyconfig.h has been included via python.h */ +#if !defined( HAVE_PYCONFIG_H ) + #if !defined( SIZEOF_SIZE_T ) #if __WORDSIZE == 64 #define SIZEOF_SIZE_T 8 @@ -54,6 +57,8 @@ #endif #endif +#endif /* !defined( HAVE_PYCONFIG_H ) */ + /* Define the size of the wide character for WINAPI */ #if !defined( SIZEOF_WCHAR_T ) diff --git a/libesedb-sys/libesedb-20210424/common/file_stream.h b/libesedb-sys/libesedb-20230824/common/file_stream.h similarity index 98% rename from libesedb-sys/libesedb-20210424/common/file_stream.h rename to libesedb-sys/libesedb-20230824/common/file_stream.h index 2673e9f..04ebd91 100644 --- a/libesedb-sys/libesedb-20210424/common/file_stream.h +++ b/libesedb-sys/libesedb-20230824/common/file_stream.h @@ -1,7 +1,7 @@ /* * FILE stream functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/common/memory.h b/libesedb-sys/libesedb-20230824/common/memory.h similarity index 98% rename from libesedb-sys/libesedb-20210424/common/memory.h rename to libesedb-sys/libesedb-20230824/common/memory.h index 85a532c..19ac211 100644 --- a/libesedb-sys/libesedb-20210424/common/memory.h +++ b/libesedb-sys/libesedb-20230824/common/memory.h @@ -1,7 +1,7 @@ /* * Memory functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/common/narrow_string.h b/libesedb-sys/libesedb-20230824/common/narrow_string.h similarity index 98% rename from libesedb-sys/libesedb-20210424/common/narrow_string.h rename to libesedb-sys/libesedb-20230824/common/narrow_string.h index b7dec5b..c4af8ed 100644 --- a/libesedb-sys/libesedb-20210424/common/narrow_string.h +++ b/libesedb-sys/libesedb-20230824/common/narrow_string.h @@ -1,7 +1,7 @@ /* * Narrow character string functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/common/system_string.h b/libesedb-sys/libesedb-20230824/common/system_string.h similarity index 98% rename from libesedb-sys/libesedb-20210424/common/system_string.h rename to libesedb-sys/libesedb-20230824/common/system_string.h index a38a3bc..29674b8 100644 --- a/libesedb-sys/libesedb-20210424/common/system_string.h +++ b/libesedb-sys/libesedb-20230824/common/system_string.h @@ -1,7 +1,7 @@ /* * System character string functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/common/types.h b/libesedb-sys/libesedb-20230824/common/types.h similarity index 93% rename from libesedb-sys/libesedb-20210424/common/types.h rename to libesedb-sys/libesedb-20230824/common/types.h index 936c83f..49edc66 100644 --- a/libesedb-sys/libesedb-20210424/common/types.h +++ b/libesedb-sys/libesedb-20230824/common/types.h @@ -1,7 +1,7 @@ /* * Type and type-support definitions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -60,7 +60,10 @@ typedef int system_integer_t; #endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */ /* Fallback for systems without PRI definitions + * Do not define when pyconfig.h has been included via python.h */ +#if !defined( HAVE_PYCONFIG_H ) + #if !defined( PRId8 ) #define PRId8 "d" #endif @@ -216,6 +219,8 @@ typedef int system_integer_t; #endif #endif /* !defined( PRIx64 ) */ +#endif /* !defined( HAVE_PYCONFIG_H ) */ + /* Fallback for systems without printf %jd definition */ #if defined( HAVE_PRINTF_JD ) @@ -305,6 +310,16 @@ typedef int system_integer_t; #define UINT32_MAX (0xffffffffUL) #endif +/* The minimum signed 64-bit integer is -9223372036854775808 (0x8000000000000000) + */ +#if !defined( INT64_MIN ) +#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) +#define INT64_MIN (0x8000000000000000UL) +#else +#define INT64_MIN (0x8000000000000000ULL) +#endif +#endif /* !defined( INT64_MIN ) */ + /* The maximum signed 64-bit integer is 9223372036854775807 (0x7fffffffffffffff) */ #if !defined( INT64_MAX ) diff --git a/libesedb-sys/libesedb-20210424/common/types.h.in b/libesedb-sys/libesedb-20230824/common/types.h.in similarity index 93% rename from libesedb-sys/libesedb-20210424/common/types.h.in rename to libesedb-sys/libesedb-20230824/common/types.h.in index 0681522..3f669bf 100644 --- a/libesedb-sys/libesedb-20210424/common/types.h.in +++ b/libesedb-sys/libesedb-20230824/common/types.h.in @@ -1,7 +1,7 @@ /* * Type and type-support definitions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -60,7 +60,10 @@ typedef int system_integer_t; #endif /* defined( WINAPI ) && ( defined( _UNICODE ) || defined( UNICODE ) ) */ /* Fallback for systems without PRI definitions + * Do not define when pyconfig.h has been included via python.h */ +#if !defined( HAVE_PYCONFIG_H ) + #if !defined( PRId8 ) #define PRId8 "d" #endif @@ -216,6 +219,8 @@ typedef int system_integer_t; #endif #endif /* !defined( PRIx64 ) */ +#endif /* !defined( HAVE_PYCONFIG_H ) */ + /* Fallback for systems without printf %jd definition */ #if defined( HAVE_PRINTF_JD ) @@ -305,6 +310,16 @@ typedef int system_integer_t; #define UINT32_MAX (0xffffffffUL) #endif +/* The minimum signed 64-bit integer is -9223372036854775808 (0x8000000000000000) + */ +#if !defined( INT64_MIN ) +#if defined( __BORLANDC__ ) && ( __BORLANDC__ < 0x0560 ) +#define INT64_MIN (0x8000000000000000UL) +#else +#define INT64_MIN (0x8000000000000000ULL) +#endif +#endif /* !defined( INT64_MIN ) */ + /* The maximum signed 64-bit integer is 9223372036854775807 (0x7fffffffffffffff) */ #if !defined( INT64_MAX ) diff --git a/libesedb-sys/libesedb-20210424/common/wide_string.h b/libesedb-sys/libesedb-20230824/common/wide_string.h similarity index 98% rename from libesedb-sys/libesedb-20210424/common/wide_string.h rename to libesedb-sys/libesedb-20230824/common/wide_string.h index f0e10fe..1a60fda 100644 --- a/libesedb-sys/libesedb-20210424/common/wide_string.h +++ b/libesedb-sys/libesedb-20230824/common/wide_string.h @@ -1,7 +1,7 @@ /* * Wide character string functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/compile b/libesedb-sys/libesedb-20230824/compile similarity index 99% rename from libesedb-sys/libesedb-20210424/compile rename to libesedb-sys/libesedb-20230824/compile index 23fcba0..df363c8 100644 --- a/libesedb-sys/libesedb-20210424/compile +++ b/libesedb-sys/libesedb-20230824/compile @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # Written by Tom Tromey . # # This program is free software; you can redistribute it and/or modify diff --git a/libesedb-sys/libesedb-20210424/config.guess b/libesedb-sys/libesedb-20230824/config.guess similarity index 72% rename from libesedb-sys/libesedb-20210424/config.guess rename to libesedb-sys/libesedb-20230824/config.guess index b33c9e8..1972fda 100644 --- a/libesedb-sys/libesedb-20210424/config.guess +++ b/libesedb-sys/libesedb-20230824/config.guess @@ -1,8 +1,8 @@ #! /bin/sh # Attempt to guess a canonical system name. -# Copyright 1992-2018 Free Software Foundation, Inc. +# Copyright 1992-2021 Free Software Foundation, Inc. -timestamp='2018-08-29' +timestamp='2021-01-25' # 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 @@ -27,12 +27,12 @@ timestamp='2018-08-29' # 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/gitweb/?p=config.git;a=blob_plain;f=config.guess +# https://git.savannah.gnu.org/cgit/config.git/plain/config.guess # # Please send patches to . -me=`echo "$0" | sed -e 's,.*/,,'` +me=$(echo "$0" | sed -e 's,.*/,,') usage="\ Usage: $0 [OPTION] @@ -50,7 +50,7 @@ version="\ GNU config.guess ($timestamp) Originally written by Per Bothner. -Copyright 1992-2018 Free Software Foundation, Inc. +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." @@ -96,13 +96,14 @@ fi tmp= # shellcheck disable=SC2172 -trap 'test -z "$tmp" || rm -fr "$tmp"' 1 2 13 15 -trap 'exitcode=$?; test -z "$tmp" || rm -fr "$tmp"; exit $exitcode' 0 +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 - { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { 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 ; } @@ -130,16 +131,14 @@ 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 +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/*) - # If the system lacks a compiler, then just pick glibc. - # We could probably try harder. - LIBC=gnu + LIBC=unknown set_cc_for_build cat <<-EOF > "$dummy.c" @@ -148,17 +147,29 @@ Linux|GNU|GNU/*) LIBC=uclibc #elif defined(__dietlibc__) LIBC=dietlibc - #else + #elif defined(__GLIBC__) LIBC=gnu + #else + #include + /* First heuristic to detect musl libc. */ + #ifdef __DEFINED_va_list + LIBC=musl + #endif #endif EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g'`" + eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^LIBC' | sed 's, ,,g')" - # If ldd exists, use it to detect musl libc. - if command -v ldd >/dev/null && \ - ldd --version 2>&1 | grep -q ^musl - then - LIBC=musl + # 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 @@ -177,20 +188,20 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # # Note: NetBSD doesn't particularly care about the vendor # portion of the name. We always set it to "unknown". - sysctl="sysctl -n hw.machine_arch" - UNAME_MACHINE_ARCH=`(uname -p 2>/dev/null || \ - "/sbin/$sysctl" 2>/dev/null || \ - "/usr/sbin/$sysctl" 2>/dev/null || \ - echo 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'` + 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 ;; @@ -221,7 +232,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in case "$UNAME_MACHINE_ARCH" in earm*) expr='s/^earmv[0-9]/-eabi/;s/eb$//' - abi=`echo "$UNAME_MACHINE_ARCH" | sed -e "$expr"` + abi=$(echo "$UNAME_MACHINE_ARCH" | sed -e "$expr") ;; esac # The OS release @@ -234,7 +245,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in release='-gnu' ;; *) - release=`echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2` + release=$(echo "$UNAME_RELEASE" | sed -e 's/[-_].*//' | cut -d. -f1,2) ;; esac # Since CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM: @@ -243,15 +254,15 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in echo "$machine-${os}${release}${abi-}" exit ;; *:Bitrig:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/Bitrig.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/Bitrig.//') echo "$UNAME_MACHINE_ARCH"-unknown-bitrig"$UNAME_RELEASE" exit ;; *:OpenBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/OpenBSD.//') echo "$UNAME_MACHINE_ARCH"-unknown-openbsd"$UNAME_RELEASE" exit ;; *:LibertyBSD:*:*) - UNAME_MACHINE_ARCH=`arch | sed 's/^.*BSD\.//'` + UNAME_MACHINE_ARCH=$(arch | sed 's/^.*BSD\.//') echo "$UNAME_MACHINE_ARCH"-unknown-libertybsd"$UNAME_RELEASE" exit ;; *:MidnightBSD:*:*) @@ -263,6 +274,9 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:SolidBSD:*:*) echo "$UNAME_MACHINE"-unknown-solidbsd"$UNAME_RELEASE" exit ;; + *:OS108:*:*) + echo "$UNAME_MACHINE"-unknown-os108_"$UNAME_RELEASE" + exit ;; macppc:MirBSD:*:*) echo powerpc-unknown-mirbsd"$UNAME_RELEASE" exit ;; @@ -272,26 +286,29 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in *:Sortix:*:*) echo "$UNAME_MACHINE"-unknown-sortix exit ;; + *:Twizzler:*:*) + echo "$UNAME_MACHINE"-unknown-twizzler + exit ;; *:Redox:*:*) echo "$UNAME_MACHINE"-unknown-redox exit ;; mips:OSF1:*.*) - echo mips-dec-osf1 - exit ;; + echo mips-dec-osf1 + exit ;; alpha:OSF1:*:*) case $UNAME_RELEASE in *4.0) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $3}'` + UNAME_RELEASE=$(/usr/sbin/sizer -v | awk '{print $3}') ;; *5.*) - UNAME_RELEASE=`/usr/sbin/sizer -v | awk '{print $4}'` + 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` + 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 ;; @@ -329,7 +346,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in # 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. - echo "$UNAME_MACHINE"-dec-osf"`echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz`" + echo "$UNAME_MACHINE"-dec-osf"$(echo "$UNAME_RELEASE" | sed -e 's/^[PVTX]//' | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz)" # Reset EXIT trap before exiting to avoid spurious non-zero exit code. exitcode=$? trap '' 0 @@ -363,7 +380,7 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in exit ;; Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*) # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE. - if test "`(/bin/universe) 2>/dev/null`" = att ; then + if test "$( (/bin/universe) 2>/dev/null)" = att ; then echo pyramid-pyramid-sysv3 else echo pyramid-pyramid-bsd @@ -376,54 +393,59 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in echo sparc-icl-nx6 exit ;; DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*) - case `/usr/bin/uname -p` in + case $(/usr/bin/uname -p) in sparc) echo sparc-icl-nx7; exit ;; esac ;; s390x:SunOS:*:*) - echo "$UNAME_MACHINE"-ibm-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" + echo "$UNAME_MACHINE"-ibm-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')" exit ;; sun4H:SunOS:5.*:*) - echo sparc-hal-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo sparc-hal-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) - echo sparc-sun-solaris2"`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" + echo sparc-sun-solaris2"$(echo "$UNAME_RELEASE" | sed -e 's/[^.]*//')" exit ;; i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) echo i386-pc-auroraux"$UNAME_RELEASE" exit ;; i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) - UNAME_REL="`echo "$UNAME_RELEASE" | sed -e 's/[^.]*//'`" - case `isainfo -b` in - 32) - echo i386-pc-solaris2"$UNAME_REL" - ;; - 64) - echo x86_64-pc-solaris2"$UNAME_REL" - ;; - esac + 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 + echo "$SUN_ARCH"-pc-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; 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. - echo sparc-sun-solaris3"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo sparc-sun-solaris3"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; sun4*:SunOS:*:*) - case "`/usr/bin/arch -k`" in + case "$(/usr/bin/arch -k)" in Series*|S4*) - UNAME_RELEASE=`uname -v` + UNAME_RELEASE=$(uname -v) ;; esac # Japanese Language versions have a version number like `4.1.3-JL'. - echo sparc-sun-sunos"`echo "$UNAME_RELEASE"|sed -e 's/-/_/'`" + echo sparc-sun-sunos"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/')" exit ;; sun3*:SunOS:*:*) echo m68k-sun-sunos"$UNAME_RELEASE" exit ;; sun*:*:4.2BSD:*) - UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null` + 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 + case "$(/bin/arch)" in sun3) echo m68k-sun-sunos"$UNAME_RELEASE" ;; @@ -503,8 +525,8 @@ case "$UNAME_MACHINE:$UNAME_SYSTEM:$UNAME_RELEASE:$UNAME_VERSION" in } EOF $CC_FOR_BUILD -o "$dummy" "$dummy.c" && - dummyarg=`echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p'` && - SYSTEM_NAME=`"$dummy" "$dummyarg"` && + dummyarg=$(echo "$UNAME_RELEASE" | sed -n 's/\([0-9]*\).*/\1/p') && + SYSTEM_NAME=$("$dummy" "$dummyarg") && { echo "$SYSTEM_NAME"; exit; } echo mips-mips-riscos"$UNAME_RELEASE" exit ;; @@ -531,11 +553,11 @@ EOF exit ;; AViiON:dgux:*:*) # DG/UX returns AViiON for all architectures - UNAME_PROCESSOR=`/usr/bin/uname -p` - if [ "$UNAME_PROCESSOR" = mc88100 ] || [ "$UNAME_PROCESSOR" = mc88110 ] + UNAME_PROCESSOR=$(/usr/bin/uname -p) + if test "$UNAME_PROCESSOR" = mc88100 || test "$UNAME_PROCESSOR" = mc88110 then - if [ "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx ] || \ - [ "$TARGET_BINARY_INTERFACE"x = x ] + if test "$TARGET_BINARY_INTERFACE"x = m88kdguxelfx || \ + test "$TARGET_BINARY_INTERFACE"x = x then echo m88k-dg-dgux"$UNAME_RELEASE" else @@ -559,17 +581,17 @@ EOF echo m68k-tektronix-bsd exit ;; *:IRIX*:*:*) - echo mips-sgi-irix"`echo "$UNAME_RELEASE"|sed -e 's/-/_/g'`" + echo mips-sgi-irix"$(echo "$UNAME_RELEASE"|sed -e 's/-/_/g')" exit ;; ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX. echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id - exit ;; # Note that: echo "'`uname -s`'" gives 'AIX ' + exit ;; # Note that: echo "'$(uname -s)'" gives 'AIX ' i*86:AIX:*:*) echo i386-ibm-aix exit ;; ia64:AIX:*:*) - if [ -x /usr/bin/oslevel ] ; then - IBM_REV=`/usr/bin/oslevel` + if test -x /usr/bin/oslevel ; then + IBM_REV=$(/usr/bin/oslevel) else IBM_REV="$UNAME_VERSION.$UNAME_RELEASE" fi @@ -589,7 +611,7 @@ EOF exit(0); } EOF - if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` + if $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") then echo "$SYSTEM_NAME" else @@ -602,15 +624,15 @@ EOF fi exit ;; *:AIX:*:[4567]) - IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + 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 [ -x /usr/bin/lslpp ] ; then - IBM_REV=`/usr/bin/lslpp -Lqc bos.rte.libc | - awk -F: '{ print $3 }' | sed s/[0-9]*$/0/` + 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 @@ -638,14 +660,14 @@ EOF echo m68k-hp-bsd4.4 exit ;; 9000/[34678]??:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + 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 [ -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` + 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 @@ -657,7 +679,7 @@ EOF esac ;; esac fi - if [ "$HP_ARCH" = "" ]; then + if test "$HP_ARCH" = ""; then set_cc_for_build sed 's/^ //' << EOF > "$dummy.c" @@ -692,11 +714,11 @@ EOF exit (0); } EOF - (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=`"$dummy"` + (CCOPTS="" $CC_FOR_BUILD -o "$dummy" "$dummy.c" 2>/dev/null) && HP_ARCH=$("$dummy") test -z "$HP_ARCH" && HP_ARCH=hppa fi ;; esac - if [ "$HP_ARCH" = hppa2.0w ] + if test "$HP_ARCH" = hppa2.0w then set_cc_for_build @@ -720,7 +742,7 @@ EOF echo "$HP_ARCH"-hp-hpux"$HPUX_REV" exit ;; ia64:HP-UX:*:*) - HPUX_REV=`echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//'` + HPUX_REV=$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*.[0B]*//') echo ia64-hp-hpux"$HPUX_REV" exit ;; 3050*:HI-UX:*:*) @@ -750,7 +772,7 @@ EOF exit (0); } EOF - $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=`"$dummy"` && + $CC_FOR_BUILD -o "$dummy" "$dummy.c" && SYSTEM_NAME=$("$dummy") && { echo "$SYSTEM_NAME"; exit; } echo unknown-hitachi-hiuxwe2 exit ;; @@ -770,7 +792,7 @@ EOF echo hppa1.0-hp-osf exit ;; i*86:OSF1:*:*) - if [ -x /usr/sbin/sysversion ] ; then + if test -x /usr/sbin/sysversion ; then echo "$UNAME_MACHINE"-unknown-osf1mk else echo "$UNAME_MACHINE"-unknown-osf1 @@ -819,14 +841,14 @@ EOF echo craynv-cray-unicosmp"$UNAME_RELEASE" | sed -e 's/\.[^.]*$/.X/' exit ;; 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/ /_/'` + 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/ /_/') echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; 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/ /_/'` + FUJITSU_SYS=$(uname -p | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/\///') + FUJITSU_REL=$(echo "$UNAME_RELEASE" | tr ABCDEFGHIJKLMNOPQRSTUVWXYZ abcdefghijklmnopqrstuvwxyz | sed -e 's/ /_/') echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}" exit ;; i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*) @@ -839,25 +861,25 @@ EOF echo "$UNAME_MACHINE"-unknown-bsdi"$UNAME_RELEASE" exit ;; arm:FreeBSD:*:*) - UNAME_PROCESSOR=`uname -p` + 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 - echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabi + echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabi else - echo "${UNAME_PROCESSOR}"-unknown-freebsd"`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`"-gnueabihf + echo "${UNAME_PROCESSOR}"-unknown-freebsd"$(echo ${UNAME_RELEASE}|sed -e 's/[-(].*//')"-gnueabihf fi exit ;; *:FreeBSD:*:*) - UNAME_PROCESSOR=`/usr/bin/uname -p` + UNAME_PROCESSOR=$(/usr/bin/uname -p) case "$UNAME_PROCESSOR" in amd64) UNAME_PROCESSOR=x86_64 ;; i386) UNAME_PROCESSOR=i586 ;; esac - echo "$UNAME_PROCESSOR"-unknown-freebsd"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" + echo "$UNAME_PROCESSOR"-unknown-freebsd"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')" exit ;; i*:CYGWIN*:*) echo "$UNAME_MACHINE"-pc-cygwin @@ -890,18 +912,18 @@ EOF echo "$UNAME_MACHINE"-pc-uwin exit ;; amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) - echo x86_64-unknown-cygwin + echo x86_64-pc-cygwin exit ;; prep*:SunOS:5.*:*) - echo powerpcle-unknown-solaris2"`echo "$UNAME_RELEASE"|sed -e 's/[^.]*//'`" + echo powerpcle-unknown-solaris2"$(echo "$UNAME_RELEASE"|sed -e 's/[^.]*//')" exit ;; *:GNU:*:*) # the GNU system - echo "`echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,'`-unknown-$LIBC`echo "$UNAME_RELEASE"|sed -e 's,/.*$,,'`" + echo "$(echo "$UNAME_MACHINE"|sed -e 's,[-/].*$,,')-unknown-$LIBC$(echo "$UNAME_RELEASE"|sed -e 's,/.*$,,')" exit ;; *:GNU/*:*:*) # other systems with GNU libc and userland - echo "$UNAME_MACHINE-unknown-`echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]"``echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`-$LIBC" + echo "$UNAME_MACHINE-unknown-$(echo "$UNAME_SYSTEM" | sed 's,^[^/]*/,,' | tr "[:upper:]" "[:lower:]")$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')-$LIBC" exit ;; *:Minix:*:*) echo "$UNAME_MACHINE"-unknown-minix @@ -914,7 +936,7 @@ EOF echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; alpha:Linux:*:*) - case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in + 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 ;; @@ -973,6 +995,9 @@ EOF k1om:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; + loongarch32:Linux:*:* | loongarch64:Linux:*:* | loongarchx32:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; m32r*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; @@ -981,22 +1006,50 @@ EOF exit ;; 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 ${UNAME_MACHINE} - #undef ${UNAME_MACHINE}el + #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) - CPU=${UNAME_MACHINE}el + MIPS_ENDIAN=el #else #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) - CPU=${UNAME_MACHINE} + MIPS_ENDIAN= #else - CPU= + MIPS_ENDIAN= #endif #endif EOF - eval "`$CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU'`" - test "x$CPU" != x && { echo "$CPU-unknown-linux-$LIBC"; exit; } + eval "$($CC_FOR_BUILD -E "$dummy.c" 2>/dev/null | grep '^CPU\|^MIPS_ENDIAN\|^LIBCABI')" + test "x$CPU" != x && { echo "$CPU${MIPS_ENDIAN}-unknown-linux-$LIBCABI"; exit; } ;; mips64el:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" @@ -1015,7 +1068,7 @@ EOF exit ;; parisc:Linux:*:* | hppa:Linux:*:*) # Look for CPU level - case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in + case $(grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2) in PA7*) echo hppa1.1-unknown-linux-"$LIBC" ;; PA8*) echo hppa2.0-unknown-linux-"$LIBC" ;; *) echo hppa-unknown-linux-"$LIBC" ;; @@ -1033,7 +1086,7 @@ EOF ppcle:Linux:*:*) echo powerpcle-unknown-linux-"$LIBC" exit ;; - riscv32:Linux:*:* | riscv64:Linux:*:*) + riscv32:Linux:*:* | riscv32be:Linux:*:* | riscv64:Linux:*:* | riscv64be:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" exit ;; s390:Linux:*:* | s390x:Linux:*:*) @@ -1055,7 +1108,17 @@ EOF echo "$UNAME_MACHINE"-dec-linux-"$LIBC" exit ;; x86_64:Linux:*:*) - echo "$UNAME_MACHINE"-pc-linux-"$LIBC" + 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 + echo "$UNAME_MACHINE"-pc-linux-"$LIBCABI" exit ;; xtensa*:Linux:*:*) echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" @@ -1095,7 +1158,7 @@ EOF echo "$UNAME_MACHINE"-pc-msdosdjgpp exit ;; i*86:*:4.*:*) - UNAME_REL=`echo "$UNAME_RELEASE" | sed 's/\/MP$//'` + UNAME_REL=$(echo "$UNAME_RELEASE" | sed 's/\/MP$//') if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then echo "$UNAME_MACHINE"-univel-sysv"$UNAME_REL" else @@ -1104,19 +1167,19 @@ EOF exit ;; i*86:*:5:[678]*) # UnixWare 7.x, OpenUNIX and OpenServer 6. - case `/bin/uname -X | grep "^Machine"` in + case $(/bin/uname -X | grep "^Machine") in *486*) UNAME_MACHINE=i486 ;; *Pentium) UNAME_MACHINE=i586 ;; *Pent*|*Celeron) UNAME_MACHINE=i686 ;; esac - echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}{$UNAME_VERSION}" + echo "$UNAME_MACHINE-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}" exit ;; 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/.*= //')` + 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 @@ -1166,7 +1229,7 @@ EOF 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` + && 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 \ @@ -1177,7 +1240,7 @@ EOF 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` + && 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 \ @@ -1210,7 +1273,7 @@ EOF exit ;; *:SINIX-*:*:*) if uname -p 2>/dev/null >/dev/null ; then - UNAME_MACHINE=`(uname -p) 2>/dev/null` + UNAME_MACHINE=$( (uname -p) 2>/dev/null) echo "$UNAME_MACHINE"-sni-sysv4 else echo ns32k-sni-sysv @@ -1244,7 +1307,7 @@ EOF echo mips-sony-newsos6 exit ;; R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*) - if [ -d /usr/nec ]; then + if test -d /usr/nec; then echo mips-nec-sysv"$UNAME_RELEASE" else echo mips-unknown-sysv"$UNAME_RELEASE" @@ -1292,44 +1355,48 @@ EOF *:Rhapsody:*:*) echo "$UNAME_MACHINE"-apple-rhapsody"$UNAME_RELEASE" exit ;; + arm64:Darwin:*:*) + echo aarch64-apple-darwin"$UNAME_RELEASE" + exit ;; *:Darwin:*:*) - UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown - set_cc_for_build - if test "$UNAME_PROCESSOR" = unknown ; then - UNAME_PROCESSOR=powerpc + 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 "`echo "$UNAME_RELEASE" | sed -e 's/\..*//'`" -le 10 ; then - if [ "$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 + 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 - # Avoid executing cc on OS X 10.9, as it ships with a stub - # that puts up a graphical alert prompting to install - # developer tools. Any system running Mac OS X 10.7 or - # later (Darwin 11 and later) is required to have a 64-bit - # processor. This is not true of the ARM version of Darwin - # that Apple uses in portable devices. - UNAME_PROCESSOR=x86_64 + # uname -m returns i386 or x86_64 + UNAME_PROCESSOR=$UNAME_MACHINE fi echo "$UNAME_PROCESSOR"-apple-darwin"$UNAME_RELEASE" exit ;; *:procnto*:*:* | *:QNX:[0123456789]*:*) - UNAME_PROCESSOR=`uname -p` + UNAME_PROCESSOR=$(uname -p) if test "$UNAME_PROCESSOR" = x86; then UNAME_PROCESSOR=i386 UNAME_MACHINE=pc @@ -1397,10 +1464,10 @@ EOF echo mips-sei-seiux"$UNAME_RELEASE" exit ;; *:DragonFly:*:*) - echo "$UNAME_MACHINE"-unknown-dragonfly"`echo "$UNAME_RELEASE"|sed -e 's/[-(].*//'`" + echo "$UNAME_MACHINE"-unknown-dragonfly"$(echo "$UNAME_RELEASE"|sed -e 's/[-(].*//')" exit ;; *:*VMS:*:*) - UNAME_MACHINE=`(uname -p) 2>/dev/null` + UNAME_MACHINE=$( (uname -p) 2>/dev/null) case "$UNAME_MACHINE" in A*) echo alpha-dec-vms ; exit ;; I*) echo ia64-dec-vms ; exit ;; @@ -1410,13 +1477,13 @@ EOF echo i386-pc-xenix exit ;; i*86:skyos:*:*) - echo "$UNAME_MACHINE"-pc-skyos"`echo "$UNAME_RELEASE" | sed -e 's/ .*$//'`" + echo "$UNAME_MACHINE"-pc-skyos"$(echo "$UNAME_RELEASE" | sed -e 's/ .*$//')" exit ;; i*86:rdos:*:*) echo "$UNAME_MACHINE"-pc-rdos exit ;; - i*86:AROS:*:*) - echo "$UNAME_MACHINE"-pc-aros + *:AROS:*:*) + echo "$UNAME_MACHINE"-unknown-aros exit ;; x86_64:VMkernel:*:*) echo "$UNAME_MACHINE"-unknown-esx @@ -1424,8 +1491,148 @@ EOF amd64:Isilon\ OneFS:*:*) echo x86_64-unknown-onefs exit ;; + *:Unleashed:*:*) + echo "$UNAME_MACHINE"-unknown-unleashed"$UNAME_RELEASE" + exit ;; esac +# 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 @@ -1445,9 +1652,15 @@ This script (version $timestamp), has failed to recognize the operating system you are using. If your script is old, overwrite *all* copies of config.guess and config.sub with the latest versions from: - https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess + https://git.savannah.gnu.org/cgit/config.git/plain/config.guess and - https://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub + https://git.savannah.gnu.org/cgit/config.git/plain/config.sub +EOF + +year=$(echo $timestamp | sed 's,-.*,,') +# shellcheck disable=SC2003 +if test "$(expr "$(date +%Y)" - "$year")" -lt 3 ; then + cat >&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` +uname -m = $( (uname -m) 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` +/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` +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 diff --git a/libesedb-sys/libesedb-20210424/config.rpath b/libesedb-sys/libesedb-20230824/config.rpath similarity index 92% rename from libesedb-sys/libesedb-20210424/config.rpath rename to libesedb-sys/libesedb-20230824/config.rpath index 17298f2..24be79c 100644 --- a/libesedb-sys/libesedb-20210424/config.rpath +++ b/libesedb-sys/libesedb-20230824/config.rpath @@ -2,7 +2,7 @@ # Output a system dependent set of variables, describing how to set the # run time search path of shared libraries in an executable. # -# Copyright 1996-2010 Free Software Foundation, Inc. +# Copyright 1996-2020 Free Software Foundation, Inc. # Taken from GNU libtool, 2001 # Originally by Gordon Matzigkeit , 1996 # @@ -25,7 +25,7 @@ # known workaround is to choose shorter directory names for the build # directory and/or the installation directory. -# All known linkers require a `.a' archive for static linking (except MSVC, +# All known linkers require a '.a' archive for static linking (except MSVC, # which needs '.lib'). libext=a shrext=.so @@ -57,13 +57,6 @@ else aix*) wl='-Wl,' ;; - darwin*) - case $cc_basename in - xlc*) - wl='-Wl,' - ;; - esac - ;; mingw* | cygwin* | pw32* | os2* | cegcc*) ;; hpux9* | hpux10* | hpux11*) @@ -72,9 +65,7 @@ else irix5* | irix6* | nonstopux*) wl='-Wl,' ;; - newsos6) - ;; - linux* | k*bsd*-gnu) + linux* | k*bsd*-gnu | kopensolaris*-gnu) case $cc_basename in ecc*) wl='-Wl,' @@ -85,17 +76,26 @@ else lf95*) wl='-Wl,' ;; - pgcc | pgf77 | pgf90) + nagfor*) + wl='-Wl,-Wl,,' + ;; + pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) wl='-Wl,' ;; ccc*) wl='-Wl,' ;; + xl* | bgxl* | bgf* | mpixl*) + wl='-Wl,' + ;; como) wl='-lopt=' ;; *) case `$CC -V 2>&1 | sed 5q` in + *Sun\ F* | *Sun*Fortran*) + wl= + ;; *Sun\ C*) wl='-Wl,' ;; @@ -103,13 +103,24 @@ else ;; esac ;; + newsos6) + ;; + *nto* | *qnx*) + ;; osf3* | osf4* | osf5*) wl='-Wl,' ;; rdos*) ;; solaris*) - wl='-Wl,' + case $cc_basename in + f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) + wl='-Qoption ld ' + ;; + *) + wl='-Wl,' + ;; + esac ;; sunos4*) wl='-Qoption ld ' @@ -171,15 +182,14 @@ if test "$with_gnu_ld" = yes; then fi ;; amigaos*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # Samuel A. Falvo II reports - # that the semantics of dynamic libraries on AmigaOS, at least up - # to version 4, is to share data among multiple programs linked - # with the same dynamic library. Since this doesn't match the - # behavior of shared libraries on other platforms, we cannot use - # them. - ld_shlibs=no + case "$host_cpu" in + powerpc) + ;; + m68k) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac ;; beos*) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then @@ -198,11 +208,13 @@ if test "$with_gnu_ld" = yes; then ld_shlibs=no fi ;; + haiku*) + ;; interix[3-9]*) hardcode_direct=no hardcode_libdir_flag_spec='${wl}-rpath,$libdir' ;; - gnu* | linux* | k*bsd*-gnu) + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then : else @@ -325,10 +337,14 @@ else fi ;; amigaos*) - hardcode_libdir_flag_spec='-L$libdir' - hardcode_minus_L=yes - # see comment about different semantics on the GNU ld section - ld_shlibs=no + case "$host_cpu" in + powerpc) + ;; + m68k) + hardcode_libdir_flag_spec='-L$libdir' + hardcode_minus_L=yes + ;; + esac ;; bsdi[45]*) ;; @@ -342,29 +358,16 @@ else ;; darwin* | rhapsody*) hardcode_direct=no - if test "$GCC" = yes ; then + if { case $cc_basename in ifort*) true;; *) test "$GCC" = yes;; esac; }; then : else - case $cc_basename in - xlc*) - ;; - *) - ld_shlibs=no - ;; - esac + ld_shlibs=no fi ;; dgux*) hardcode_libdir_flag_spec='-L$libdir' ;; - freebsd1*) - ld_shlibs=no - ;; - freebsd2.2*) - hardcode_libdir_flag_spec='-R$libdir' - hardcode_direct=yes - ;; - freebsd2*) + freebsd2.[01]*) hardcode_direct=yes hardcode_minus_L=yes ;; @@ -420,6 +423,8 @@ else hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' hardcode_libdir_separator=: ;; + *nto* | *qnx*) + ;; openbsd*) if test -f /usr/libexec/ld.so; then hardcode_direct=yes @@ -515,7 +520,12 @@ case "$host_os" in library_names_spec='$libname$shrext' ;; amigaos*) - library_names_spec='$libname.a' + case "$host_cpu" in + powerpc*) + library_names_spec='$libname$shrext' ;; + m68k) + library_names_spec='$libname.a' ;; + esac ;; beos*) library_names_spec='$libname$shrext' @@ -534,19 +544,18 @@ case "$host_os" in dgux*) library_names_spec='$libname$shrext' ;; - freebsd1*) + freebsd[23].*) + library_names_spec='$libname$shrext$versuffix' ;; freebsd* | dragonfly*) - case "$host_os" in - freebsd[123]*) - library_names_spec='$libname$shrext$versuffix' ;; - *) - library_names_spec='$libname$shrext' ;; - esac + library_names_spec='$libname$shrext' ;; gnu*) library_names_spec='$libname$shrext' ;; + haiku*) + library_names_spec='$libname$shrext' + ;; hpux9* | hpux10* | hpux11*) case $host_cpu in ia64*) @@ -582,7 +591,7 @@ case "$host_os" in ;; linux*oldld* | linux*aout* | linux*coff*) ;; - linux* | k*bsd*-gnu) + linux* | k*bsd*-gnu | kopensolaris*-gnu) library_names_spec='$libname$shrext' ;; knetbsd*-gnu) @@ -594,7 +603,7 @@ case "$host_os" in newsos6) library_names_spec='$libname$shrext' ;; - nto-qnx*) + *nto* | *qnx*) library_names_spec='$libname$shrext' ;; openbsd*) @@ -625,6 +634,9 @@ case "$host_os" in sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) library_names_spec='$libname$shrext' ;; + tpf*) + library_names_spec='$libname$shrext' + ;; uts4*) library_names_spec='$libname$shrext' ;; diff --git a/libesedb-sys/libesedb-20210424/config.sub b/libesedb-sys/libesedb-20230824/config.sub similarity index 75% rename from libesedb-sys/libesedb-20210424/config.sub rename to libesedb-sys/libesedb-20230824/config.sub index b51fb8c..63c1f1c 100644 --- a/libesedb-sys/libesedb-20210424/config.sub +++ b/libesedb-sys/libesedb-20230824/config.sub @@ -1,8 +1,8 @@ #! /bin/sh # Configuration validation subroutine script. -# Copyright 1992-2018 Free Software Foundation, Inc. +# Copyright 1992-2021 Free Software Foundation, Inc. -timestamp='2018-08-29' +timestamp='2021-01-08' # 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 @@ -33,7 +33,7 @@ timestamp='2018-08-29' # 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/gitweb/?p=config.git;a=blob_plain;f=config.sub +# 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 @@ -50,7 +50,7 @@ timestamp='2018-08-29' # CPU_TYPE-MANUFACTURER-KERNEL-OPERATING_SYSTEM # It is wrong to echo any other type of specification. -me=`echo "$0" | sed -e 's,.*/,,'` +me=$(echo "$0" | sed -e 's,.*/,,') usage="\ Usage: $0 [OPTION] CPU-MFR-OPSYS or ALIAS @@ -67,7 +67,7 @@ Report bugs and patches to ." version="\ GNU config.sub ($timestamp) -Copyright 1992-2018 Free Software Foundation, Inc. +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." @@ -89,7 +89,7 @@ while test $# -gt 0 ; do - ) # Use stdin as input. break ;; -* ) - echo "$me: invalid option $1$help" + echo "$me: invalid option $1$help" >&2 exit 1 ;; *local*) @@ -111,7 +111,8 @@ case $# in esac # Split fields of configuration type -IFS="-" read -r field1 field2 field3 field4 <&2 - exit 1 + # No normalization, but not necessarily accepted, that comes below. ;; esac + else # Here we handle the default operating systems that come with various machines. @@ -1525,6 +1499,7 @@ else # will signal an error saying that MANUFACTURER isn't an operating # system, and we'll never get to this point. +kernel= case $cpu-$vendor in score-*) os=elf @@ -1536,7 +1511,8 @@ case $cpu-$vendor in os=riscix1.2 ;; arm*-rebel) - os=linux + kernel=linux + os=gnu ;; arm*-semi) os=aout @@ -1702,84 +1678,178 @@ case $cpu-$vendor in os=none ;; esac + fi +# Now, validate our (potentially fixed-up) OS. +case $os in + # Sometimes we do "kernel-libc", so those need to count as OSes. + musl* | newlib* | uclibc*) + ;; + # Likewise for "kernel-abi" + eabi* | gnueabi*) + ;; + # VxWorks passes extra cpu info in the 4th filed. + simlinux | simwindows | spe) + ;; + # Now accept the basic system types. + # The portable systems comes first. + # Each alternative MUST end in a * to match a version number. + gnu* | android* | bsd* | mach* | minix* | genix* | ultrix* | irix* \ + | *vms* | esix* | aix* | cnk* | sunos | sunos[34]* \ + | hpux* | unos* | osf* | luna* | dgux* | auroraux* | solaris* \ + | sym* | plan9* | psp* | sim* | xray* | os68k* | v88r* \ + | hiux* | abug | nacl* | netware* | windows* \ + | os9* | macos* | osx* | ios* \ + | mpw* | magic* | mmixware* | mon960* | lnews* \ + | amigaos* | amigados* | msdos* | newsos* | unicos* | aof* \ + | aos* | aros* | cloudabi* | sortix* | twizzler* \ + | nindy* | vxsim* | vxworks* | ebmon* | hms* | mvs* \ + | clix* | riscos* | uniplus* | iris* | isc* | rtu* | xenix* \ + | mirbsd* | netbsd* | dicos* | openedition* | ose* \ + | bitrig* | openbsd* | solidbsd* | libertybsd* | os108* \ + | ekkobsd* | freebsd* | riscix* | lynxos* | os400* \ + | bosx* | nextstep* | cxux* | aout* | elf* | oabi* \ + | ptx* | coff* | ecoff* | winnt* | domain* | vsta* \ + | udi* | lites* | ieee* | go32* | aux* | hcos* \ + | chorusrdb* | cegcc* | glidix* \ + | cygwin* | msys* | pe* | moss* | proelf* | rtems* \ + | midipix* | mingw32* | mingw64* | mint* \ + | uxpv* | beos* | mpeix* | udk* | moxiebox* \ + | interix* | uwin* | mks* | rhapsody* | darwin* \ + | openstep* | oskit* | conix* | pw32* | nonstopux* \ + | storm-chaos* | tops10* | tenex* | tops20* | its* \ + | os2* | vos* | palmos* | uclinux* | nucleus* | morphos* \ + | scout* | superux* | sysv* | rtmk* | tpf* | windiss* \ + | powermax* | dnix* | nx6 | nx7 | sei* | dragonfly* \ + | skyos* | haiku* | rdos* | toppers* | drops* | es* \ + | onefs* | tirtos* | phoenix* | fuchsia* | redox* | bme* \ + | midnightbsd* | amdhsa* | unleashed* | emscripten* | wasi* \ + | nsk* | powerunix* | genode* | zvmoe* | qnx* | emx*) + ;; + # This one is extra strict with allowed versions + sco3.2v2 | sco3.2v[4-9]* | sco5v6*) + # Don't forget version if it is 3.2v4 or newer. + ;; + none) + ;; + *) + echo Invalid configuration \`"$1"\': OS \`"$os"\' not recognized 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-uclibc* ) + ;; + uclinux-uclibc* ) + ;; + -dietlibc* | -newlib* | -musl* | -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 $os in - riscix*) + case $cpu-$os in + *-riscix*) vendor=acorn ;; - sunos*) + *-sunos*) vendor=sun ;; - cnk*|-aix*) + *-cnk* | *-aix*) vendor=ibm ;; - beos*) + *-beos*) vendor=be ;; - hpux*) + *-hpux*) vendor=hp ;; - mpeix*) + *-mpeix*) vendor=hp ;; - hiux*) + *-hiux*) vendor=hitachi ;; - unos*) + *-unos*) vendor=crds ;; - dgux*) + *-dgux*) vendor=dg ;; - luna*) + *-luna*) vendor=omron ;; - genix*) + *-genix*) vendor=ns ;; - clix*) + *-clix*) vendor=intergraph ;; - mvs* | opened*) + *-mvs* | *-opened*) + vendor=ibm + ;; + *-os400*) vendor=ibm ;; - os400*) + s390-* | s390x-*) vendor=ibm ;; - ptx*) + *-ptx*) vendor=sequent ;; - tpf*) + *-tpf*) vendor=ibm ;; - vxsim* | vxworks* | windiss*) + *-vxsim* | *-vxworks* | *-windiss*) vendor=wrs ;; - aux*) + *-aux*) vendor=apple ;; - hms*) + *-hms*) vendor=hitachi ;; - mpw* | macos*) + *-mpw* | *-macos*) vendor=apple ;; - *mint | mint[0-9]* | *MiNT | MiNT[0-9]*) + *-*mint | *-mint[0-9]* | *-*MiNT | *-MiNT[0-9]*) vendor=atari ;; - vos*) + *-vos*) vendor=stratus ;; esac ;; esac -echo "$cpu-$vendor-$os" +echo "$cpu-$vendor-${kernel:+$kernel-}$os" exit # Local variables: diff --git a/libesedb-sys/libesedb-20210424/configure b/libesedb-sys/libesedb-20230824/configure similarity index 59% rename from libesedb-sys/libesedb-20210424/configure rename to libesedb-sys/libesedb-20230824/configure index ed16142..3c90bc4 100644 --- a/libesedb-sys/libesedb-20210424/configure +++ b/libesedb-sys/libesedb-20230824/configure @@ -1,11 +1,12 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.69 for libesedb 20210424. +# Generated by GNU Autoconf 2.71 for libesedb 20230824. # # 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,18 +169,20 @@ 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 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='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' @@ -206,31 +190,40 @@ 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" - if (eval "$as_required") 2>/dev/null; then : + || 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 +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: joachim.metz@gmail.com about your system, including any $0: error possibly output before this message. Then install $0: a modern shell, or manually run the script under such a @@ -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 @@ -590,48 +621,44 @@ MAKEFLAGS= # Identity of this package. PACKAGE_NAME='libesedb' PACKAGE_TARNAME='libesedb' -PACKAGE_VERSION='20210424' -PACKAGE_STRING='libesedb 20210424' +PACKAGE_VERSION='20230824' +PACKAGE_STRING='libesedb 20230824' PACKAGE_BUGREPORT='joachim.metz@gmail.com' PACKAGE_URL='' ac_unique_file="include/libesedb.h.in" # 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= gt_needs= ac_subst_vars='am__EXEEXT_FALSE am__EXEEXT_TRUE @@ -915,11 +942,11 @@ LTLIBICONV LIBICONV INTL_MACOSX_LIBS XGETTEXT_EXTRA_OPTIONS +MSGMERGE_FOR_MSGFMT_OPTION MSGMERGE XGETTEXT_015 XGETTEXT GMSGFMT_015 -MSGFMT_015 GMSGFMT MSGFMT GETTEXT_MACRO_VERSION @@ -927,6 +954,13 @@ USE_NLS PKGCONFIG LIBTOOL_DEPS CXXCPP +am__fastdepCXX_FALSE +am__fastdepCXX_TRUE +CXXDEPMODE +ac_ct_CXX +CXXFLAGS +CXX +CPP LT_SYS_LIBRARY_PATH OTOOL64 OTOOL @@ -937,23 +971,16 @@ MANIFEST_TOOL RANLIB ac_ct_AR AR +FILECMD LN_S NM ac_ct_DUMPBIN DUMPBIN LD FGREP -SED -LIBTOOL -am__fastdepCXX_FALSE -am__fastdepCXX_TRUE -CXXDEPMODE -ac_ct_CXX -CXXFLAGS -CXX EGREP GREP -CPP +SED am__fastdepCC_FALSE am__fastdepCC_TRUE CCDEPMODE @@ -970,6 +997,7 @@ CPPFLAGS LDFLAGS CFLAGS CC +LIBTOOL OBJDUMP DLLTOOL AS @@ -985,6 +1013,9 @@ AM_BACKSLASH AM_DEFAULT_VERBOSITY AM_DEFAULT_V AM_V +CSCOPE +ETAGS +CTAGS am__untar am__tar AMTAR @@ -1027,6 +1058,7 @@ infodir docdir oldincludedir includedir +runstatedir localstatedir sharedstatedir sysconfdir @@ -1051,12 +1083,12 @@ ac_subst_files='' ac_user_opts=' enable_option_checking enable_silent_rules -enable_dependency_tracking enable_shared enable_static with_pic enable_fast_install with_aix_soname +enable_dependency_tracking with_gnu_ld with_sysroot enable_libtool_lock @@ -1107,11 +1139,11 @@ CFLAGS LDFLAGS LIBS CPPFLAGS +LT_SYS_LIBRARY_PATH CPP CXX CXXFLAGS CCC -LT_SYS_LIBRARY_PATH CXXCPP PKG_CONFIG PKG_CONFIG_PATH @@ -1190,6 +1222,7 @@ datadir='${datarootdir}' sysconfdir='${prefix}/etc' sharedstatedir='${prefix}/com' localstatedir='${prefix}/var' +runstatedir='${localstatedir}/run' includedir='${prefix}/include' oldincludedir='/usr/include' docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' @@ -1219,8 +1252,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 ;; @@ -1261,9 +1292,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" @@ -1287,9 +1318,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" @@ -1442,6 +1473,15 @@ do | -silent | --silent | --silen | --sile | --sil) silent=yes ;; + -runstatedir | --runstatedir | --runstatedi | --runstated \ + | --runstate | --runstat | --runsta | --runst | --runs \ + | --run | --ru | --r) + ac_prev=runstatedir ;; + -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \ + | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \ + | --run=* | --ru=* | --r=*) + runstatedir=$ac_optarg ;; + -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) ac_prev=sbindir ;; -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ @@ -1491,9 +1531,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" @@ -1507,9 +1547,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" @@ -1553,9 +1593,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}" ;; @@ -1571,7 +1611,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 @@ -1579,7 +1619,7 @@ fi for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ datadir sysconfdir sharedstatedir localstatedir includedir \ oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ - libdir localedir mandir + libdir localedir mandir runstatedir do eval ac_val=\$$ac_var # Remove trailing slashes. @@ -1635,7 +1675,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 @@ -1692,7 +1732,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 libesedb 20210424 to adapt to many kinds of systems. +\`configure' configures libesedb 20230824 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1732,6 +1772,7 @@ Fine tuning of the installation directories: --sysconfdir=DIR read-only single-machine data [PREFIX/etc] --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] --localstatedir=DIR modifiable single-machine data [PREFIX/var] + --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run] --libdir=DIR object code libraries [EPREFIX/lib] --includedir=DIR C header files [PREFIX/include] --oldincludedir=DIR C header files for non-gcc [/usr/include] @@ -1762,7 +1803,7 @@ fi if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of libesedb 20210424:";; + short | recursive ) echo "Configuration of libesedb 20230824:";; esac cat <<\_ACEOF @@ -1772,14 +1813,14 @@ Optional Features: --enable-FEATURE[=ARG] include FEATURE [ARG=yes] --enable-silent-rules less verbose build output (undo: "make V=1") --disable-silent-rules verbose build output (undo: "make V=0") - --enable-dependency-tracking - do not reject slow dependency extractors - --disable-dependency-tracking - speeds up one-time build --enable-shared[=PKGS] build shared libraries [default=yes] --enable-static[=PKGS] build static libraries [default=yes] --enable-fast-install[=PKGS] optimize for fast installation [default=yes] + --enable-dependency-tracking + do not reject slow dependency extractors + --disable-dependency-tracking + speeds up one-time build --disable-libtool-lock avoid locking (might break parallel builds) --disable-nls do not use Native Language Support --disable-rpath do not hardcode runtime library paths @@ -1810,7 +1851,7 @@ 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). - --with-gnu-ld assume the C compiler uses GNU ld default=no + --with-gnu-ld assume the C compiler uses GNU ld [default=no] --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib --without-libiconv-prefix don't search for libiconv in includedir and libdir --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib @@ -1891,11 +1932,11 @@ 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 + LT_SYS_LIBRARY_PATH + User-defined run-time library search path. CPP C preprocessor CXX C++ compiler command CXXFLAGS C++ compiler flags - LT_SYS_LIBRARY_PATH - User-defined run-time library search path. CXXCPP C++ preprocessor PKG_CONFIG path to pkg-config utility PKG_CONFIG_PATH @@ -1993,9 +2034,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/ ;; @@ -2023,7 +2064,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 @@ -2031,7 +2073,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 @@ -2040,10 +2082,10 @@ fi test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -libesedb configure 20210424 -generated by GNU Autoconf 2.69 +libesedb configure 20230824 +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 @@ -2060,14 +2102,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 @@ -2075,14 +2117,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 @@ -2092,95 +2135,20 @@ fi } # 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;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } > conftest.i && { - test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || - test ! -s conftest.err - }; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_c_try_cpp - -# ac_fn_cxx_try_compile LINENO -# ---------------------------- -# Try to compile conftest.$ac_ext, and return whether this succeeded. -ac_fn_cxx_try_compile () -{ - as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack - rm -f conftest.$ac_objext - if { { ac_try="$ac_compile" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compile") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - grep -v '^ *+' conftest.err >conftest.er1 - cat conftest.er1 >&5 - mv -f conftest.er1 conftest.err - fi - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } && { - test -z "$ac_cxx_werror_flag" || - test ! -s conftest.err - } && test -s conftest.$ac_objext; then : - ac_retval=0 -else - $as_echo "$as_me: failed program was:" >&5 -sed 's/^/| /' conftest.$ac_ext >&5 - - ac_retval=1 -fi - eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno - as_fn_set_status $ac_retval - -} # ac_fn_cxx_try_compile - # ac_fn_c_try_link LINENO # ----------------------- # Try to link conftest.$ac_ext, and return whether this succeeded. 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 @@ -2188,17 +2156,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 @@ -2220,83 +2189,44 @@ 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 -# 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_func LINENO FUNC VAR # ---------------------------------- # Tests whether FUNC exists, setting the cache variable VAR accordingly 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. @@ -2304,16 +2234,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. @@ -2331,28 +2254,106 @@ 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 +# 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;; +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_cxx_try_compile LINENO +# ---------------------------- +# Try to compile conftest.$ac_ext, and return whether this succeeded. +ac_fn_cxx_try_compile () +{ + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack + rm -f conftest.$ac_objext 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\"" +printf "%s\n" "$ac_try_echo"; } >&5 + (eval "$ac_compile") 2>conftest.err + ac_status=$? + if test -s conftest.err; then + grep -v '^ *+' conftest.err >conftest.er1 + cat conftest.er1 >&5 + mv -f conftest.er1 conftest.err + fi + 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 : + 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_cxx_try_compile + # ac_fn_cxx_try_cpp LINENO # ------------------------ # Try to preprocess conftest.$ac_ext, and return whether this succeeded. @@ -2365,7 +2366,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 @@ -2373,14 +2374,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 @@ -2396,14 +2398,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 @@ -2411,17 +2413,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 @@ -2436,96 +2439,48 @@ fi } # ac_fn_cxx_try_link -# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES -# ------------------------------------------------------- -# Tests whether HEADER exists, giving a warning if it cannot be compiled using -# the include files in INCLUDES and setting the cache variable VAR -# accordingly. -ac_fn_c_check_header_mongrel () +# 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 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 joachim.metz@gmail.com ## -## ------------------------------------- ##" - ) | sed "s/^/$as_me: WARNING: /" >&2 - ;; + if { { ac_try="$ac_link" +case "(($ac_try" in + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; + *) ac_try_echo=$ac_try;; 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; } +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_check_header_mongrel +} # ac_fn_c_try_run # ac_fn_c_check_type LINENO TYPE VAR INCLUDES # ------------------------------------------- @@ -2534,17 +2489,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; @@ -2552,12 +2508,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; @@ -2565,18 +2522,19 @@ 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 @@ -2595,7 +2553,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= 0)]; test_array [0] = 0; @@ -2605,14 +2563,15 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=0 ac_mid=0 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2622,9 +2581,10 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid; break -else +else $as_nop as_fn_arith $ac_mid + 1 && ac_lo=$as_val if test $ac_lo -le $ac_mid; then ac_lo= ac_hi= @@ -2632,14 +2592,14 @@ else fi as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 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 done -else +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) < 0)]; test_array [0] = 0; @@ -2649,14 +2609,15 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=-1 ac_mid=-1 while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) >= $ac_mid)]; test_array [0] = 0; @@ -2666,9 +2627,10 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_lo=$ac_mid; break -else +else $as_nop as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val if test $ac_mid -le $ac_hi; then ac_lo= ac_hi= @@ -2676,14 +2638,14 @@ else fi as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 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 done -else +else $as_nop ac_lo= ac_hi= 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 # Binary search between lo and hi bounds. while test "x$ac_lo" != "x$ac_hi"; do as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val @@ -2691,7 +2653,7 @@ while test "x$ac_lo" != "x$ac_hi"; do /* end confdefs.h. */ $4 int -main () +main (void) { static int test_array [1 - 2 * !(($2) <= $ac_mid)]; test_array [0] = 0; @@ -2701,12 +2663,13 @@ return test_array [0]; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_hi=$ac_mid -else +else $as_nop as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 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 done case $ac_lo in #(( ?*) eval "$3=\$ac_lo"; ac_retval=0 ;; @@ -2716,12 +2679,12 @@ esac cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ $4 -static long int longval () { return $2; } -static unsigned long int ulongval () { return $2; } +static long int longval (void) { return $2; } +static unsigned long int ulongval (void) { return $2; } #include #include int -main () +main (void) { FILE *f = fopen ("conftest.val", "w"); @@ -2749,9 +2712,10 @@ main () return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : echo >>conftest.val; read $3 &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 @@ -2796,27 +2763,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 libesedb $as_me 20210424, which was -generated by GNU Autoconf 2.69. Invocation command line was +It was created by libesedb $as_me 20230824, which was +generated by GNU Autoconf 2.71. Invocation command line was - $ $0 $@ + $ $0$ac_configure_args_raw _ACEOF exec 5>>config.log @@ -2849,8 +2839,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 @@ -2885,7 +2879,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'" ;; @@ -2920,11 +2914,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 @@ -2935,8 +2931,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) ;; #( @@ -2960,7 +2956,7 @@ $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; ) echo - $as_echo "## ----------------- ## + printf "%s\n" "## ----------------- ## ## Output variables. ## ## ----------------- ##" echo @@ -2968,14 +2964,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 @@ -2983,15 +2979,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 @@ -2999,8 +2995,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 && @@ -3014,63 +3010,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 @@ -3080,20 +3061,651 @@ 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 +# 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]; + +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]); +' + +# 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 + +#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); +} + +// 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; + +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 bool +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 = 0; + float fnumber = 0; + + 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); + + return *str && number && fnumber; +} +' + +# 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); + + // Check restrict. + if (test_restrict ("String literal") == 0) + success = true; + char *restrict newvar = "Another string"; + + // Check varargs. + success &= 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; + + // Check named initializers. + struct named_init ni = { + .number = 34, + .name = L"Test wide string", + .average = 543.34343, + }; + + ni.number = 58; + + int dynamic_array[ni.number]; + dynamic_array[0] = argv[0][0]; + dynamic_array[ni.number - 1] = 543; + + // work around unused variable warnings + ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\'' + || dynamic_array[ni.number - 1] != 543); +' + +# 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; + +// 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"); + +// Check _Noreturn. +int _Noreturn does_not_return (void) { for (;;) continue; } + +// 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; +}; + +// Check UTF-8 literals. +#define u8 syntax error! +char const utf8_literal[] = u8"happens to be ASCII" "another string"; + +// Check duplicate typedefs. +typedef long *long_ptr; +typedef long int *long_ptr; +typedef long_ptr long_ptr; + +// 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 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; +' + +# 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} + +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} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + ${ac_c_conftest_c99_main} + return ok; +} +" + +# Test code for whether the C compiler supports C89 (complete). +ac_c_conftest_c89_program="${ac_c_conftest_c89_globals} + +int +main (int argc, char **argv) +{ + int ok = 0; + ${ac_c_conftest_c89_main} + return ok; +} +" + +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" +# 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 + +// 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; + +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")); + } +} + +template struct test_template +{ + T const val; + explicit test_template(T t) : val(t) {} + template T add(U u) { return static_cast(u) + val; } +}; + +} // anonymous namespace +' + +# 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 + +namespace cxx11test +{ + constexpr int get_val() { return 20; } + + struct testinit + { + int i; + double d; + }; + + class delegate + { + public: + delegate(int n) : n(n) {} + delegate(): delegate(2354) {} + + virtual int getval() { return this->n; }; + protected: + int n; + }; + + 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; + }; + + // for testing lambda expressions + template Ret eval(Fn f, Ret v) + { + return f(v); + } + + // 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...); + } +} +' + +# 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; } + + 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"; +} +' + +# 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; +} +" + gt_needs="$gt_needs " + +# Auxiliary files required by this configure script. +ac_aux_files="config.rpath compile ltmain.sh config.guess config.sub missing install-sh" + +# Locations in which to look for auxiliary files. +ac_aux_dir_candidates="${srcdir}${PATH_SEPARATOR}${srcdir}/..${PATH_SEPARATOR}${srcdir}/../.." + +# 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=: + + 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 + + as_found=false +done +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 +fi + + +# 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 + # Check that the precious variables saved in the cache have kept the same # value. ac_cache_corrupted=false @@ -3104,12 +3716,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,) - { $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;} + { 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) - { $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;} + { 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=: ;; ,);; *) @@ -3118,24 +3730,24 @@ $as_echo "$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 - { $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;} + { 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 - { $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;} + { 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 - { $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;} + { 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=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; + *\'*) 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 @@ -3145,11 +3757,12 @@ $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 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 + { 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. ## @@ -3167,36 +3780,9 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu am__api_version='1.16' -ac_aux_dir= -for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; 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 \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 -fi - -# 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. -# Find a good install program. We prefer a C program (faster), + # 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 @@ -3210,20 +3796,25 @@ ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. # 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; } +{ 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 ${ac_cv_path_install+:} false; then : - $as_echo_n "(cached) " >&6 -else +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=. - # Account for people who put trailing slashes in PATH elements. -case $as_dir/ in #(( - ./ | .// | /[cC]/* | \ + 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/* ) ;; @@ -3233,13 +3824,13 @@ case $as_dir/ in #(( # 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 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 + 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 + 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 @@ -3247,12 +3838,12 @@ case $as_dir/ in #(( 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" && + 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" + ac_cv_path_install="$as_dir$ac_prog$ac_exec_ext -c" break 3 fi fi @@ -3268,7 +3859,7 @@ IFS=$as_save_IFS rm -rf conftest.one conftest.two conftest.dir fi - if test "${ac_cv_path_install+set}" = set; then + 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 @@ -3278,8 +3869,8 @@ fi INSTALL=$ac_install_sh fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 -$as_echo "$INSTALL" >&6; } +{ 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. @@ -3289,8 +3880,8 @@ test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 -$as_echo_n "checking whether build environment is sane... " >&6; } +{ 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=' @@ -3344,8 +3935,8 @@ 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; } +{ 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= @@ -3364,26 +3955,23 @@ test "$program_suffix" != NONE && # 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"` +program_transform_name=`printf "%s\n" "$program_transform_name" | sed "$ac_script"` + # Expand $ac_aux_dir to an absolute path. am_aux_dir=`cd "$ac_aux_dir" && pwd` -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 + + 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 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;} + { 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 if test x"${install_sh+set}" != xset; then @@ -3403,11 +3991,12 @@ 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 +{ 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 @@ -3415,11 +4004,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 @@ -3430,11 +4023,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 @@ -3443,11 +4036,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 @@ -3455,11 +4049,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 @@ -3470,11 +4068,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 @@ -3482,8 +4080,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 @@ -3495,25 +4093,31 @@ fi fi INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" -{ $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; } + + { 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 ${ac_cv_path_mkdir+:} false; then : - $as_echo_n "(cached) " >&6 -else + 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 - test -z "$as_dir" && as_dir=. + 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 (GNU coreutils) '* | \ - 'mkdir (coreutils) '* | \ + 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 + ac_cv_path_mkdir=$as_dir$ac_prog$ac_exec_ext break 3;; esac done @@ -3524,7 +4128,7 @@ IFS=$as_save_IFS fi test -d ./--version && rmdir ./--version - if test "${ac_cv_path_mkdir+set}" = set; then + 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 @@ -3534,18 +4138,19 @@ fi MKDIR_P="$ac_install_sh -d" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 -$as_echo "$MKDIR_P" >&6; } +{ 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 -{ $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 +{ 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 @@ -3553,11 +4158,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_AWK="$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 @@ -3568,24 +4177,25 @@ 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 +printf "%s\n" "$AWK" >&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 "$AWK" && break done -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 -$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } +{ 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=`$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 +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: @@ -3601,12 +4211,12 @@ 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; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } SET_MAKE= 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; } SET_MAKE="MAKE=${MAKE-make}" fi @@ -3620,7 +4230,8 @@ fi rmdir .tst 2>/dev/null # Check whether --enable-silent-rules was given. -if test "${enable_silent_rules+set}" = set; then : +if test ${enable_silent_rules+y} +then : enableval=$enable_silent_rules; fi @@ -3630,12 +4241,13 @@ case $enable_silent_rules in # ((( *) 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)) +{ 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 @@ -3647,8 +4259,8 @@ 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; } +{ 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)' @@ -3680,17 +4292,13 @@ fi # Define the identity of the package. PACKAGE='libesedb' - VERSION='20210424' + VERSION='20230824' -cat >>confdefs.h <<_ACEOF -#define PACKAGE "$PACKAGE" -_ACEOF +printf "%s\n" "#define PACKAGE \"$PACKAGE\"" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define VERSION "$VERSION" -_ACEOF +printf "%s\n" "#define VERSION \"$VERSION\"" >>confdefs.h # Some tools Automake needs. @@ -3736,29 +4344,29 @@ _am_tools='gnutar plaintar pax cpio none' # (that is, avoid stderr redirection). am_uid=`id -u || echo unknown` am_gid=`id -g || echo unknown` - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 -$as_echo_n "checking whether UID '$am_uid' is supported by ustar format... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether UID '$am_uid' is supported by ustar format" >&5 +printf %s "checking whether UID '$am_uid' is supported by ustar format... " >&6; } if test $am_uid -le $am_max_uid; then - { $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; } _am_tools=none fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 -$as_echo_n "checking whether GID '$am_gid' is supported by ustar format... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether GID '$am_gid' is supported by ustar format" >&5 +printf %s "checking whether GID '$am_gid' is supported by ustar format... " >&6; } if test $am_gid -le $am_max_gid; then - { $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; } _am_tools=none fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 -$as_echo_n "checking how to create a ustar tar archive... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to create a ustar tar archive" >&5 +printf %s "checking how to create a ustar tar archive... " >&6; } # Go ahead even if we have the value already cached. We do so because we # need to set the values for the 'am__tar' and 'am__untar' variables. @@ -3833,19 +4441,34 @@ $as_echo_n "checking how to create a ustar tar archive... " >&6; } done rm -rf conftest.dir - if ${am_cv_prog_tar_ustar+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test ${am_cv_prog_tar_ustar+y} +then : + printf %s "(cached) " >&6 +else $as_nop am_cv_prog_tar_ustar=$_am_tool fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 -$as_echo "$am_cv_prog_tar_ustar" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_ustar" >&5 +printf "%s\n" "$am_cv_prog_tar_ustar" >&6; } +# Variables for tags utilities; see am/tags.am +if test -z "$CTAGS"; then + CTAGS=ctags +fi + +if test -z "$ETAGS"; then + ETAGS=etags +fi + +if test -z "$CSCOPE"; then + CSCOPE=cscope +fi + + # 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 @@ -3892,26 +4515,29 @@ 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 -{ $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 + + # 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"` + 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 +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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 -$as_echo "$ac_cv_build" >&6; } +{ 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;; @@ -3930,21 +4556,22 @@ IFS=$ac_save_IFS case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac -{ $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 +{ 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 + 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 -$as_echo "$ac_cv_host" >&6; } +{ 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;; @@ -3964,302 +4591,98 @@ case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac -enable_win32_dll=yes +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 -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. -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_AS="${ac_tool_prefix}as" - $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 -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 +macro_version='2.4.7' +macro_revision='2.4.7' -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. -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_AS="as" - $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_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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 ;; -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 -{ $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 -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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - 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" -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 -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_OBJDUMP="${ac_tool_prefix}objdump" - $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 -OBJDUMP=$ac_cv_prog_OBJDUMP -if test -n "$OBJDUMP"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 -$as_echo "$OBJDUMP" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "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 -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_OBJDUMP="objdump" - $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_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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi +ltmain=$ac_aux_dir/ltmain.sh - if test "x$ac_ct_OBJDUMP" = x; then - OBJDUMP="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 - OBJDUMP=$ac_ct_OBJDUMP - fi +# 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 - OBJDUMP="$ac_cv_prog_OBJDUMP" + # 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 -test -z "$AS" && AS=as -test -z "$DLLTOOL" && DLLTOOL=dlltool -test -z "$OBJDUMP" && OBJDUMP=objdump @@ -4268,6 +4691,74 @@ test -z "$OBJDUMP" && OBJDUMP=objdump + + + + +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 + +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 + + ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -4276,11 +4767,12 @@ 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 +{ 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 @@ -4288,11 +4780,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_CC="${ac_tool_prefix}gcc" - $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 @@ -4303,11 +4799,11 @@ 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; } + { 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 @@ -4316,11 +4812,12 @@ 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 +{ 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 @@ -4328,11 +4825,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_CC="gcc" - $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 @@ -4343,11 +4844,11 @@ 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; } + { 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 if test "x$ac_ct_CC" = x; then @@ -4355,8 +4856,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 CC=$ac_ct_CC @@ -4369,11 +4870,12 @@ 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 +{ 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 @@ -4381,11 +4883,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_CC="${ac_tool_prefix}cc" - $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 @@ -4396,11 +4902,11 @@ 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; } + { 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 @@ -4409,11 +4915,12 @@ 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 +{ 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 @@ -4422,15 +4929,19 @@ 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 test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then + 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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -4446,18 +4957,18 @@ if test $ac_prog_rejected = yes; then # 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+' '}$@" + 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; } + { 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 @@ -4468,11 +4979,12 @@ if test -z "$CC"; 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_CC+:} 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_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 @@ -4480,11 +4992,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_CC="$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 @@ -4495,11 +5011,11 @@ 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; } + { 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 @@ -4512,11 +5028,12 @@ if test -z "$CC"; 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_CC+:} 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_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 @@ -4524,11 +5041,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_CC="$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 @@ -4539,11 +5060,11 @@ 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; } + { 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 @@ -4555,8 +5076,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 CC=$ac_ct_CC @@ -4564,25 +5085,129 @@ esac fi fi +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 + 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}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 + +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 -test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +fi +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 + 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="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 + +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. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 +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 +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\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$ac_try_echo"; } >&5 (eval "$ac_compiler $ac_option >&5") 2>conftest.err ac_status=$? if test -s conftest.err; then @@ -4592,7 +5217,7 @@ $as_echo "$ac_try_echo"; } >&5 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; } done @@ -4600,7 +5225,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { ; @@ -4612,9 +5237,9 @@ 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[^ ]*//'` +{ 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.*" @@ -4635,11 +5260,12 @@ 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_link_default") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + 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, @@ -4656,7 +5282,7 @@ do # certainly right. break;; *.* ) - if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; + if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no; then :; else ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` fi @@ -4672,44 +5298,46 @@ do done test "$ac_cv_exeext" = no && ac_cv_exeext= -else +else $as_nop 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 +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 -{ { $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 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; } +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 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; } +{ 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\"" -$as_echo "$ac_try_echo"; } >&5 +printf "%s\n" "$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 : + 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 @@ -4723,15 +5351,15 @@ for ac_file in conftest.exe conftest conftest.*; do * ) 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;} +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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 -$as_echo "$ac_cv_exeext" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 +printf "%s\n" "$ac_cv_exeext" >&6; } rm -f conftest.$ac_ext EXEEXT=$ac_cv_exeext @@ -4740,7 +5368,7 @@ cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { FILE *f = fopen ("conftest.out", "w"); return ferror (f) || fclose (f) != 0; @@ -4752,8 +5380,8 @@ _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; } +{ 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 @@ -4761,10 +5389,10 @@ 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_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; } if { ac_try='./conftest$ac_cv_exeext' { { case "(($ac_try" in @@ -4772,39 +5400,40 @@ $as_echo "$ac_try_echo"; } >&5 *) 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_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; }; }; 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. + { { 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 -$as_echo "$cross_compiling" >&6; } +{ 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 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 +{ 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 () +main (void) { ; @@ -4818,11 +5447,12 @@ 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_compile") 2>&5 ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then : + 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 @@ -4831,31 +5461,32 @@ $as_echo "$ac_try_echo"; } >&5 break;; esac done -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 -{ { $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 $? "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; } +{ 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 -{ $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 +{ 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 @@ -4865,29 +5496,33 @@ main () return 0; } _ACEOF -if ac_fn_c_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 +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_c_compiler_gnu" >&5 -$as_echo "$ac_cv_c_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 GCC=yes else GCC= fi -ac_test_CFLAGS=${CFLAGS+set} +ac_test_CFLAGS=${CFLAGS+y} 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 +{ 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 @@ -4896,57 +5531,60 @@ else /* 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 : ac_cv_prog_cc_g=yes -else +else $as_nop CFLAGS="" 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 : -else +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 : +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 +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 -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext +rm -f core conftest.err conftest.$ac_objext conftest.beam 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 +{ 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 @@ -4961,94 +5599,144 @@ else CFLAGS= fi 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_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. */ -#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]; +$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 -/* 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]; +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 -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; -} +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__" +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 : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_prog_cc_c89=$ac_arg fi -rm -f core conftest.err conftest.$ac_objext +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 -# 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 : +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 @@ -5057,21 +5745,23 @@ 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_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 -else +{ 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 () +main (void) { ; @@ -5099,8 +5789,8 @@ _ACEOF rm -f core conftest* unset am_i 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; } +{ 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. @@ -5115,77 +5805,15 @@ 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 -DEPDIR="${am__leading_dot}deps" - -ac_config_commands="$ac_config_commands depfiles" - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 -$as_echo_n "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.* -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 -$as_echo "${_am_result}" >&6; } - -# Check whether --enable-dependency-tracking was given. -if test "${enable_dependency_tracking+set}" = set; then : - enableval=$enable_dependency_tracking; -fi - -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= -{ $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 -else +{ 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 @@ -5292,8 +5920,8 @@ else fi 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; } +{ 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 @@ -5307,150 +5935,100 @@ else 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 -{ $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 +{ 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 - # 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 : + 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 - # Broken: fails on valid input. -continue + ac_cv_path_SED=$SED 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 fi -rm -f conftest.err conftest.i conftest.$ac_ext +{ 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 -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 +test -z "$SED" && SED=sed +Xsed="$SED -e 1s/^X//" - done - ac_cv_prog_CPP=$CPP -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 -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 -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 -{ $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 + + +{ 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 @@ -5458,10 +6036,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 grep ggrep; do + 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" + 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 @@ -5470,13 +6053,13 @@ case `"$ac_path_GREP" --version 2>&1` in ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "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 @@ -5504,16 +6087,17 @@ else fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 -$as_echo "$ac_cv_path_GREP" >&6; } +{ 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" -{ $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 +{ 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 @@ -5524,10 +6108,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 egrep; do + 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" + 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 @@ -5536,13 +6125,13 @@ case `"$ac_path_EGREP" --version 2>&1` in ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_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 'EGREP' >> "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 @@ -5571,84 +6160,309 @@ fi fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 -$as_echo "$ac_cv_path_EGREP" >&6; } +{ 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 - { $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 +{ 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_prog_gcc_traditional=no + ac_cv_path_FGREP=$FGREP +fi + + fi fi -rm -f conftest* +{ 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" - 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 +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 -rm -f conftest* - fi +ac_prog=ld +if test yes = "$GCC"; then + # Check if gcc -print-prog-name=ld gives a path. + { 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 + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $ac_prog in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` + done + test -z "$LD" && LD=$ac_prog + ;; + "") + # If it fails, then pretend we aren't using GCC. + ac_prog=ld + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac +elif test yes = "$with_gnu_ld"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 +printf %s "checking for GNU ld... " >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 +printf %s "checking for non-GNU ld... " >&6; } +fi +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 + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + lt_cv_path_LD=$ac_dir/$ac_prog + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$lt_cv_path_LD" -v 2>&1 &5 -$as_echo "$ac_cv_prog_gcc_traditional" >&6; } - if test $ac_cv_prog_gcc_traditional = yes; then - CC="$CC -traditional" - fi fi -ac_ext=cpp -ac_cpp='$CXXCPP $CPPFLAGS' -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu -if test -z "$CXX"; then - if test -n "$CCC"; then - CXX=$CCC +LD=$lt_cv_path_LD +if test -n "$LD"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } +else + { 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 +{ 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 &5 +printf "%s\n" "$lt_cv_prog_gnu_ld" >&6; } +with_gnu_ld=$lt_cv_prog_gnu_ld + + + + + + + + + +{ 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 +else + lt_nm_to_check=${ac_tool_prefix}nm + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then + lt_nm_to_check="$lt_nm_to_check nm" + fi + for lt_tmp_nm in $lt_nm_to_check; do + lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do + IFS=$lt_save_ifs + test -z "$ac_dir" && ac_dir=. + tmp_nm=$ac_dir/$lt_tmp_nm + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then + # Check to see if the nm accepts a BSD-compat flag. + # Adding the 'sed 1q' prevents false positives on HP-UX, which says: + # nm: unknown option "B" ignored + # Tru64's nm complains that /dev/null is an invalid object file + # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty + case $build_os in + mingw*) lt_bad_file=conftest.nm/nofile ;; + *) lt_bad_file=/dev/null ;; + esac + case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in + *$lt_bad_file* | *'Invalid file or object type'*) + lt_cv_path_NM="$tmp_nm -B" + break 2 + ;; + *) + case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in + */dev/null*) + lt_cv_path_NM="$tmp_nm -p" + break 2 + ;; + *) + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but + continue # so that we can try to find one that supports BSD flags + ;; + esac + ;; + esac + fi + done + IFS=$lt_save_ifs + done + : ${lt_cv_path_NM=no} +fi +fi +{ 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 + # Didn't find any BSD compatible name lister, look for dumpbin. + if test -n "$DUMPBIN"; then : + # Let the user override the test. 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 + for ac_prog in dumpbin "link -dump" 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. +{ 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 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_DUMPBIN="$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 @@ -5657,42 +6471,47 @@ 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; } +DUMPBIN=$ac_cv_prog_DUMPBIN +if test -n "$DUMPBIN"; then + { 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 - test -n "$CXX" && break + test -n "$DUMPBIN" && 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 +if test -z "$DUMPBIN"; then + ac_ct_DUMPBIN=$DUMPBIN + for ac_prog in dumpbin "link -dump" 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. +{ 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 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_DUMPBIN="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -5701,355 +6520,260 @@ IFS=$as_save_IFS fi fi -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX -if test -n "$ac_ct_CXX"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 -$as_echo "$ac_ct_CXX" >&6; } +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN +if test -n "$ac_ct_DUMPBIN"; then + { 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 - test -n "$ac_ct_CXX" && break + test -n "$ac_ct_DUMPBIN" && break done - if test "x$ac_ct_CXX" = x; then - CXX="g++" + if test "x$ac_ct_DUMPBIN" = x; then + DUMPBIN=":" 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 - CXX=$ac_ct_CXX + DUMPBIN=$ac_ct_DUMPBIN fi fi + case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in + *COFF*) + DUMPBIN="$DUMPBIN -symbols -headers" + ;; + *) + DUMPBIN=: + ;; + esac + fi + + if test : != "$DUMPBIN"; then + NM=$DUMPBIN fi fi -# Provide some information about the compiler. -$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 -set X $ac_compile -ac_compiler=$2 -for ac_option in --version -v -V -qversion; do - { { ac_try="$ac_compiler $ac_option >&5" -case "(($ac_try" in - *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; - *) ac_try_echo=$ac_try;; -esac -eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" -$as_echo "$ac_try_echo"; } >&5 - (eval "$ac_compiler $ac_option >&5") 2>conftest.err - ac_status=$? - if test -s conftest.err; then - sed '10a\ -... rest of stderr output deleted ... - 10q' conftest.err >conftest.er1 - cat conftest.er1 >&5 - fi - rm -f conftest.er1 conftest.err - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; } -done +test -z "$NM" && NM=nm -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 -$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } -if ${ac_cv_cxx_compiler_gnu+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -int -main () -{ -#ifndef __GNUC__ - choke me -#endif - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_compiler_gnu=yes -else - ac_compiler_gnu=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu + + +{ 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) + (eval "$ac_compile" 2>conftest.err) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) + cat conftest.err >&5 + (eval echo "\"\$as_me:$LINENO: output\"" >&5) + cat conftest.out >&5 + if $GREP 'External.*some_variable' conftest.out > /dev/null; then + lt_cv_nm_interface="MS dumpbin" + fi + rm -f conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 -$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } -if test $ac_compiler_gnu = yes; then - GXX=yes +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 +printf "%s\n" "$lt_cv_nm_interface" >&6; } + +{ 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 - GXX= + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 +printf "%s\n" "no, using $LN_S" >&6; } fi -ac_test_CXXFLAGS=${CXXFLAGS+set} -ac_save_CXXFLAGS=$CXXFLAGS -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 -$as_echo_n "checking whether $CXX accepts -g... " >&6; } -if ${ac_cv_prog_cxx_g+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_save_cxx_werror_flag=$ac_cxx_werror_flag - ac_cxx_werror_flag=yes - ac_cv_prog_cxx_g=no - CXXFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_prog_cxx_g=yes -else - CXXFLAGS="" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +# find the maximum length of command line arguments +{ 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 -int -main () -{ + case $build_os in + msdosdjgpp*) + # On DJGPP, this test can blow up pretty badly due to problems in libc + # (any single argument exceeding 2000 bytes causes a buffer overrun + # during glob expansion). Even if it were fixed, the result of this + # check would be larger than it should be. + lt_cv_sys_max_cmd_len=12288; # 12K is about right + ;; - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : + gnu*) + # Under GNU Hurd, this test is not required because there is + # no limit to the length of command line arguments. + # Libtool will interpret -1 as no limit whatsoever + lt_cv_sys_max_cmd_len=-1; + ;; -else - ac_cxx_werror_flag=$ac_save_cxx_werror_flag - CXXFLAGS="-g" - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + cygwin* | mingw* | cegcc*) + # On Win9x/ME, this test blows up -- it succeeds, but takes + # about 5 minutes as the teststring grows exponentially. + # Worse, since 9x/ME are not pre-emptively multitasking, + # you end up with a "frozen" computer, even though with patience + # the test eventually succeeds (with a max line length of 256k). + # Instead, let's just punt: use the minimum linelength reported by + # all of the supported platforms: 8192 (on NT/2K/XP). + lt_cv_sys_max_cmd_len=8192; + ;; -int -main () -{ + mint*) + # On MiNT this can take a long time and run out of memory. + lt_cv_sys_max_cmd_len=8192; + ;; - ; - return 0; -} -_ACEOF -if ac_fn_cxx_try_compile "$LINENO"; then : - ac_cv_prog_cxx_g=yes -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_cxx_werror_flag=$ac_save_cxx_werror_flag -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 -$as_echo "$ac_cv_prog_cxx_g" >&6; } -if test "$ac_test_CXXFLAGS" = set; then - CXXFLAGS=$ac_save_CXXFLAGS -elif test $ac_cv_prog_cxx_g = yes; then - if test "$GXX" = yes; then - CXXFLAGS="-g -O2" - else - CXXFLAGS="-g" - fi -else - if test "$GXX" = yes; then - CXXFLAGS="-O2" - else - CXXFLAGS= - fi -fi -ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu + amigaos*) + # On AmigaOS with pdksh, this test takes hours, literally. + # So we just punt and use a minimum line length of 8192. + lt_cv_sys_max_cmd_len=8192; + ;; -depcc="$CXX" am_compiler_list= + bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) + # This has been around since 386BSD, at least. Likely further. + if test -x /sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` + elif test -x /usr/sbin/sysctl; then + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` + else + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs + fi + # And add a safety zone + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + ;; -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 -$as_echo_n "checking dependency style of $depcc... " >&6; } -if ${am_cv_CXX_dependencies_compiler_type+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then - # We make a subdir and do the tests there. Otherwise we can end up - # making bogus files that we don't know about and never remove. For - # instance it was reported that on HP-UX the gcc test will end up - # making a dummy file named 'D' -- because '-MD' means "put the output - # in D". - rm -rf conftest.dir - mkdir conftest.dir - # Copy depcomp to subdir because otherwise we won't find it if we're - # using a relative directory. - cp "$am_depcomp" conftest.dir - cd conftest.dir - # We will build objects and dependencies in a subdirectory because - # it helps to detect inapplicable dependency modes. For instance - # both Tru64's cc and ICC support -MD to output dependencies as a - # side effect of compilation, but ICC will put the dependencies in - # the current directory while Tru64 will put them in the object - # directory. - mkdir sub + interix*) + # We know the value 262144 and hardcode it with a safety zone (like BSD) + lt_cv_sys_max_cmd_len=196608 + ;; - am_cv_CXX_dependencies_compiler_type=none - if test "$am_compiler_list" = ""; then - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` - fi - am__universal=false - case " $depcc " in #( - *\ -arch\ *\ -arch\ *) am__universal=true ;; - esac + os2*) + # The test takes a long time on OS/2. + lt_cv_sys_max_cmd_len=8192 + ;; - 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. + osf*) + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not + # nice to cause kernel panics so lets avoid the loop below. + # First set a reasonable default. + lt_cv_sys_max_cmd_len=16384 # - # 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 + if test -x /sbin/sysconfig; then + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in + *1*) lt_cv_sys_max_cmd_len=-1 ;; + esac fi - done - - cd .. - rm -rf conftest.dir -else - am_cv_CXX_dependencies_compiler_type=none -fi + ;; + sco3.2v5*) + lt_cv_sys_max_cmd_len=102400 + ;; + sysv5* | sco5v6* | sysv4.2uw2*) + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` + if test -n "$kargmax"; then + lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[ ]//'` + else + lt_cv_sys_max_cmd_len=32768 + fi + ;; + *) + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` + if test -n "$lt_cv_sys_max_cmd_len" && \ + test undefined != "$lt_cv_sys_max_cmd_len"; then + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` + else + # Make teststring a little bigger before we do anything with it. + # a 1K string should be a reasonable start. + for i in 1 2 3 4 5 6 7 8; do + teststring=$teststring$teststring + done + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} + # If test is not a shell built-in, we'll probably end up computing a + # maximum length that is only half of the actual maximum length, but + # we can't tell. + while { test X`env echo "$teststring$teststring" 2>/dev/null` \ + = "X$teststring$teststring"; } >/dev/null 2>&1 && + test 17 != "$i" # 1/2 MB should be enough + do + i=`expr $i + 1` + teststring=$teststring$teststring + done + # Only check the string length outside the loop. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` + teststring= + # Add a significant safety factor because C++ compilers can tack on + # massive amounts of additional arguments before passing them to the + # linker. It appears as though 1/2 is a usable value. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` + fi + ;; + esac fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 -$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type - if - test "x$enable_dependency_tracking" != xno \ - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then - am__fastdepCXX_TRUE= - am__fastdepCXX_FALSE='#' +if test -n "$lt_cv_sys_max_cmd_len"; then + { 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 - am__fastdepCXX_TRUE='#' - am__fastdepCXX_FALSE= + { 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 -{ $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 -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;} ;; -esac +: ${CP="cp -f"} +: ${MV="mv -f"} +: ${RM="rm -f"} +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then + lt_unset=unset +else + lt_unset=false +fi -macro_version='2.4.6' -macro_revision='2.4.6' +# test EBCDIC or ASCII +case `echo X|tr X '\101'` in + A) # ASCII based system + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr + lt_SP2NL='tr \040 \012' + lt_NL2SP='tr \015\012 \040\040' + ;; + *) # EBCDIC based system + lt_SP2NL='tr \100 \n' + lt_NL2SP='tr \r\n \100\100' + ;; +esac @@ -6059,68 +6783,112 @@ macro_revision='2.4.6' -ltmain=$ac_aux_dir/ltmain.sh +{ 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 + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 + ;; + esac + ;; + *-*-cygwin* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin + ;; + *-*-cygwin* ) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; + * ) # otherwise, assume *nix + lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin + ;; + esac + ;; + * ) # unhandled hosts (and "normal" native builds) + lt_cv_to_host_file_cmd=func_convert_file_noop + ;; +esac -# Backslashify metacharacters that are still active within -# double-quoted strings. -sed_quote_subst='s/\(["`$\\]\)/\\\1/g' +fi -# Same as above, but do not quote variable references. -double_quote_subst='s/\(["`\\]\)/\\\1/g' +to_host_file_cmd=$lt_cv_to_host_file_cmd +{ 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; } -# 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 -$as_echo_n "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 +{ 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 + *-*-mingw* ) + case $build in + *-*-mingw* ) # actually msys + lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 + ;; + esac + ;; +esac -# func_echo_all arg... -# Invoke $ECHO with all args, space-separated. -func_echo_all () -{ - $ECHO "" -} +fi -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; } ;; -esac +to_tool_file_cmd=$lt_cv_to_tool_file_cmd +{ 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; } +{ 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 +{ 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 +"" | " "*) ;; +*) reload_flag=" $reload_flag" ;; +esac +reload_cmds='$LD$reload_flag -o $output$reload_objs' +case $host_os in + cygwin* | mingw* | pw32* | cegcc*) + if test yes != "$GCC"; then + reload_cmds=false + fi + ;; + darwin*) + if test yes = "$GCC"; then + reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' + else + reload_cmds='$LD$reload_flag -o $output$reload_objs' + fi + ;; +esac @@ -6130,78 +6898,107 @@ 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 +if test -n "$ac_tool_prefix"; then + # Extract the first word of "${ac_tool_prefix}file", so it can be a program name with args. +set dummy ${ac_tool_prefix}file; 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_FILECMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$FILECMD"; then + ac_cv_prog_FILECMD="$FILECMD" # Let the user override the test. else - 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 +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_prog in sed gsed; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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 - $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 '' >> "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 + if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then + ac_cv_prog_FILECMD="${ac_tool_prefix}file" + 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 - if test -z "$ac_cv_path_SED"; then - as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 - fi + +fi +fi +FILECMD=$ac_cv_prog_FILECMD +if test -n "$FILECMD"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $FILECMD" >&5 +printf "%s\n" "$FILECMD" >&6; } else - ac_cv_path_SED=$SED + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi + fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 -$as_echo "$ac_cv_path_SED" >&6; } - SED="$ac_cv_path_SED" - rm -f conftest.sed +if test -z "$ac_cv_prog_FILECMD"; then + ac_ct_FILECMD=$FILECMD + # Extract the first word of "file", so it can be a program name with args. +set dummy file; 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_FILECMD+y} +then : + printf %s "(cached) " >&6 +else $as_nop + 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 #((( + '') 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_FILECMD="file" + 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 "$SED" && SED=sed -Xsed="$SED -e 1s/^X//" +fi +fi +ac_ct_FILECMD=$ac_cv_prog_ac_ct_FILECMD +if test -n "$ac_ct_FILECMD"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FILECMD" >&5 +printf "%s\n" "$ac_ct_FILECMD" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + if test "x$ac_ct_FILECMD" = x; then + FILECMD=":" + 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 + FILECMD=$ac_ct_FILECMD + fi +else + FILECMD="$ac_cv_prog_FILECMD" +fi @@ -6209,199 +7006,500 @@ Xsed="$SED -e 1s/^X//" +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 -{ $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 +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 - 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 +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_prog in fgrep; do + case $as_dir in #((( + '') as_dir=./ ;; + */) ;; + *) as_dir=$as_dir/ ;; + esac 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 - $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 '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 + 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 - 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 + +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 - ac_cv_path_FGREP=$FGREP + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 -$as_echo "$ac_cv_path_FGREP" >&6; } - FGREP="$ac_cv_path_FGREP" - - -test -z "$GREP" && GREP=grep - +test -z "$OBJDUMP" && OBJDUMP=objdump +{ 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' +# Need to set the preceding variable on all platforms that support +# interlibrary dependencies. +# 'none' -- dependencies not supported. +# 'unknown' -- same as none, but documents that we really don't know. +# 'pass_all' -- all dependencies passed with no checks. +# 'test_compile' -- check by making test program. +# 'file_magic [[regex]]' -- check by looking for files in library path +# that responds to the $file_magic_cmd with a given extended regex. +# If you have 'file' or equivalent on your system and you're not sure +# whether 'pass_all' will *always* work, you probably want this one. +case $host_os in +aix[4-9]*) + lt_cv_deplibs_check_method=pass_all + ;; +beos*) + lt_cv_deplibs_check_method=pass_all + ;; +bsdi[45]*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' + lt_cv_file_magic_cmd='$FILECMD -L' + lt_cv_file_magic_test_file=/shlib/libc.so + ;; +cygwin*) + # func_win32_libid is a shell function defined in ltmain.sh + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + ;; +mingw* | pw32*) + # Base MSYS/MinGW do not provide the 'file' command needed by + # func_win32_libid shell function, so use a weaker test based on 'objdump', + # unless we find 'file', for example because we are cross-compiling. + if ( file / ) >/dev/null 2>&1; then + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' + lt_cv_file_magic_cmd='func_win32_libid' + else + # Keep this pattern in sync with the one in func_win32_libid. + lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' + lt_cv_file_magic_cmd='$OBJDUMP -f' + fi + ;; +cegcc*) + # use the weaker test based on 'objdump'. See mingw*. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' + lt_cv_file_magic_cmd='$OBJDUMP -f' + ;; +darwin* | rhapsody*) + lt_cv_deplibs_check_method=pass_all + ;; +freebsd* | dragonfly* | midnightbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + case $host_cpu in + i*86 ) + # Not sure whether the presence of OpenBSD here was a mistake. + # Let's accept both of them until this is cleared up. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' + lt_cv_file_magic_cmd=$FILECMD + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` + ;; + esac + else + lt_cv_deplibs_check_method=pass_all + fi + ;; +haiku*) + lt_cv_deplibs_check_method=pass_all + ;; +hpux10.20* | hpux11*) + lt_cv_file_magic_cmd=$FILECMD + case $host_cpu in + ia64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so + ;; + hppa*64*) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl + ;; + *) + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' + lt_cv_file_magic_test_file=/usr/lib/libc.sl + ;; + esac + ;; -# Check whether --with-gnu-ld was given. -if test "${with_gnu_ld+set}" = set; then : - withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes -else - with_gnu_ld=no -fi +interix[3-9]*) + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' + ;; -ac_prog=ld -if test yes = "$GCC"; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 -$as_echo_n "checking for ld used by $CC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return, which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; +irix5* | irix6* | nonstopux*) + case $LD in + *-32|*"-32 ") libmagic=32-bit;; + *-n32|*"-n32 ") libmagic=N32;; + *-64|*"-64 ") libmagic=64-bit;; + *) libmagic=never-match;; esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | ?:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the pathname of ld - ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` - while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do - ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` - done - test -z "$LD" && LD=$ac_prog - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld + lt_cv_deplibs_check_method=pass_all + ;; + +# This must be glibc/ELF. +linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) + lt_cv_deplibs_check_method=pass_all + ;; + +netbsd*) + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' + fi + ;; + +newos6*) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' + lt_cv_file_magic_cmd=$FILECMD + lt_cv_file_magic_test_file=/usr/lib/libnls.so + ;; + +*nto* | *qnx*) + lt_cv_deplibs_check_method=pass_all + ;; + +openbsd* | bitrig*) + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' + else + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' + fi + ;; + +osf3* | osf4* | osf5*) + lt_cv_deplibs_check_method=pass_all + ;; + +rdos*) + lt_cv_deplibs_check_method=pass_all + ;; + +solaris*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) + lt_cv_deplibs_check_method=pass_all + ;; + +sysv4 | sysv4.3*) + case $host_vendor in + motorola) + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown + ncr) + lt_cv_deplibs_check_method=pass_all + ;; + sequent) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' + ;; + sni) + lt_cv_file_magic_cmd='/bin/file' + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" + lt_cv_file_magic_test_file=/lib/libc.so + ;; + siemens) + lt_cv_deplibs_check_method=pass_all + ;; + pc) + lt_cv_deplibs_check_method=pass_all ;; esac -elif test yes = "$with_gnu_ld"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 -$as_echo_n "checking for GNU ld... " >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 -$as_echo_n "checking for non-GNU ld... " >&6; } + ;; + +tpf*) + lt_cv_deplibs_check_method=pass_all + ;; +os2*) + lt_cv_deplibs_check_method=pass_all + ;; +esac + fi -if ${lt_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 -else - if test -z "$LD"; then - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - lt_cv_path_LD=$ac_dir/$ac_prog - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some variants of GNU ld only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$lt_cv_path_LD" -v 2>&1 &5 +printf "%s\n" "$lt_cv_deplibs_check_method" >&6; } + +file_magic_glob= +want_nocaseglob=no +if test "$build" = "$host"; then + case $host_os in + mingw* | pw32*) + if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then + want_nocaseglob=yes + else + file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` fi + ;; + esac +fi + +file_magic_cmd=$lt_cv_file_magic_cmd +deplibs_check_method=$lt_cv_deplibs_check_method +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 +{ 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=$lt_save_ifs +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 - lt_cv_path_LD=$LD # Let the user override the test with a path. + { 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 -LD=$lt_cv_path_LD -if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } +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 - { $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 + + 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 - # I'd rather use --version here, but apparently some GNU lds only accept -v. -case `$LD -v 2>&1 &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 +cygwin* | mingw* | pw32* | cegcc*) + # two different shell functions defined in ltmain.sh; + # decide which one to use based on capabilities of $DLLTOOL + case `$DLLTOOL --help 2>&1` in + *--identify-strict*) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib + ;; + *) + lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback + ;; + esac ;; *) - lt_cv_prog_gnu_ld=no + # fallback: assume linklib IS sharedlib + lt_cv_sharedlib_from_linklib_cmd=$ECHO ;; esac -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 -$as_echo "$lt_cv_prog_gnu_ld" >&6; } -with_gnu_ld=$lt_cv_prog_gnu_ld +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; } +sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd +test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO @@ -6410,91 +7508,33 @@ 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 - if test -n "$NM"; then - # Let the user override the test. - lt_cv_path_NM=$NM -else - lt_nm_to_check=${ac_tool_prefix}nm - if test -n "$ac_tool_prefix" && test "$build" = "$host"; then - lt_nm_to_check="$lt_nm_to_check nm" - fi - for lt_tmp_nm in $lt_nm_to_check; do - lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR - for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do - IFS=$lt_save_ifs - test -z "$ac_dir" && ac_dir=. - tmp_nm=$ac_dir/$lt_tmp_nm - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then - # Check to see if the nm accepts a BSD-compat flag. - # Adding the 'sed 1q' prevents false positives on HP-UX, which says: - # nm: unknown option "B" ignored - # Tru64's nm complains that /dev/null is an invalid object file - # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty - case $build_os in - mingw*) lt_bad_file=conftest.nm/nofile ;; - *) lt_bad_file=/dev/null ;; - esac - case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in - *$lt_bad_file* | *'Invalid file or object type'*) - lt_cv_path_NM="$tmp_nm -B" - break 2 - ;; - *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in - */dev/null*) - lt_cv_path_NM="$tmp_nm -p" - break 2 - ;; - *) - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but - continue # so that we can try to find one that supports BSD flags - ;; - esac - ;; - esac - fi - done - IFS=$lt_save_ifs - done - : ${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; } -if test no != "$lt_cv_path_NM"; then - NM=$lt_cv_path_NM -else - # Didn't find any BSD compatible name lister, look for dumpbin. - if test -n "$DUMPBIN"; then : - # Let the user override the test. - else - if test -n "$ac_tool_prefix"; then - for ac_prog in dumpbin "link -dump" +if test -n "$ac_tool_prefix"; then + for ac_prog in ar 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 - if test -n "$DUMPBIN"; then - ac_cv_prog_DUMPBIN="$DUMPBIN" # 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_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_DUMPBIN="$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_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 @@ -6503,42 +7543,47 @@ IFS=$as_save_IFS 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; } +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 - test -n "$DUMPBIN" && break + test -n "$AR" && break done fi -if test -z "$DUMPBIN"; then - ac_ct_DUMPBIN=$DUMPBIN - for ac_prog in dumpbin "link -dump" +if test -z "$AR"; then + ac_ct_AR=$AR + for ac_prog in ar 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 - if test -n "$ac_ct_DUMPBIN"; then - ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # 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_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 - 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_DUMPBIN="$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_AR="$ac_prog" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6547,373 +7592,224 @@ IFS=$as_save_IFS 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; } +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 - { $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_DUMPBIN" && break + test -n "$ac_ct_AR" && break done - if test "x$ac_ct_DUMPBIN" = x; then - DUMPBIN=":" + if test "x$ac_ct_AR" = x; then + AR="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;} +{ 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 + AR=$ac_ct_AR fi fi - case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in - *COFF*) - DUMPBIN="$DUMPBIN -symbols -headers" - ;; - *) - DUMPBIN=: - ;; - esac - fi +: ${AR=ar} - if test : != "$DUMPBIN"; then - NM=$DUMPBIN - fi -fi -test -z "$NM" && NM=nm +# Use ARFLAGS variable as AR's operation code to sync the variable naming with +# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have +# higher priority because thats what people were doing historically (setting +# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS +# variable obsoleted/removed. -{ $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 - 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) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) - (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) - cat conftest.err >&5 - (eval echo "\"\$as_me:$LINENO: output\"" >&5) - cat conftest.out >&5 - if $GREP 'External.*some_variable' conftest.out > /dev/null; then - lt_cv_nm_interface="MS dumpbin" - 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; } +test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} +lt_ar_flags=$AR_FLAGS -{ $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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 -$as_echo "no, using $LN_S" >&6; } -fi -# 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 - i=0 - teststring=ABCD - case $build_os in - msdosdjgpp*) - # On DJGPP, this test can blow up pretty badly due to problems in libc - # (any single argument exceeding 2000 bytes causes a buffer overrun - # during glob expansion). Even if it were fixed, the result of this - # check would be larger than it should be. - lt_cv_sys_max_cmd_len=12288; # 12K is about right - ;; - gnu*) - # Under GNU Hurd, this test is not required because there is - # no limit to the length of command line arguments. - # Libtool will interpret -1 as no limit whatsoever - lt_cv_sys_max_cmd_len=-1; - ;; - cygwin* | mingw* | cegcc*) - # On Win9x/ME, this test blows up -- it succeeds, but takes - # about 5 minutes as the teststring grows exponentially. - # Worse, since 9x/ME are not pre-emptively multitasking, - # you end up with a "frozen" computer, even though with patience - # the test eventually succeeds (with a max line length of 256k). - # Instead, let's just punt: use the minimum linelength reported by - # all of the supported platforms: 8192 (on NT/2K/XP). - lt_cv_sys_max_cmd_len=8192; - ;; - mint*) - # On MiNT this can take a long time and run out of memory. - lt_cv_sys_max_cmd_len=8192; - ;; +# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override +# by AR_FLAGS because that was never working and AR_FLAGS is about to die. - amigaos*) - # On AmigaOS with pdksh, this test takes hours, literally. - # So we just punt and use a minimum line length of 8192. - lt_cv_sys_max_cmd_len=8192; - ;; - bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) - # This has been around since 386BSD, at least. Likely further. - if test -x /sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` - elif test -x /usr/sbin/sysctl; then - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` - else - lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs - fi - # And add a safety zone - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - ;; - interix*) - # We know the value 262144 and hardcode it with a safety zone (like BSD) - lt_cv_sys_max_cmd_len=196608 - ;; - os2*) - # The test takes a long time on OS/2. - lt_cv_sys_max_cmd_len=8192 - ;; - - osf*) - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not - # nice to cause kernel panics so lets avoid the loop below. - # First set a reasonable default. - lt_cv_sys_max_cmd_len=16384 - # - if test -x /sbin/sysconfig; then - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in - *1*) lt_cv_sys_max_cmd_len=-1 ;; - esac - fi - ;; - sco3.2v5*) - lt_cv_sys_max_cmd_len=102400 - ;; - sysv5* | sco5v6* | sysv4.2uw2*) - kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` - if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` - else - lt_cv_sys_max_cmd_len=32768 - fi - ;; - *) - lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` - if test -n "$lt_cv_sys_max_cmd_len" && \ - test undefined != "$lt_cv_sys_max_cmd_len"; then - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` - else - # Make teststring a little bigger before we do anything with it. - # a 1K string should be a reasonable start. - for i in 1 2 3 4 5 6 7 8; do - teststring=$teststring$teststring - done - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} - # If test is not a shell built-in, we'll probably end up computing a - # maximum length that is only half of the actual maximum length, but - # we can't tell. - while { test X`env echo "$teststring$teststring" 2>/dev/null` \ - = "X$teststring$teststring"; } >/dev/null 2>&1 && - test 17 != "$i" # 1/2 MB should be enough - do - i=`expr $i + 1` - teststring=$teststring$teststring - done - # Only check the string length outside the loop. - lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` - teststring= - # Add a significant safety factor because C++ compilers can tack on - # massive amounts of additional arguments before passing them to the - # linker. It appears as though 1/2 is a usable value. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` - fi - ;; - esac - -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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 -$as_echo "none" >&6; } -fi -max_cmd_len=$lt_cv_sys_max_cmd_len +{ 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 (void) +{ + ; + return 0; +} +_ACEOF +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=$? + 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. + rm -f conftest.$ac_objext libconftest.a + { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 + (eval $lt_ar_try) 2>&5 + ac_status=$? + 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=@ + fi + fi + rm -f conftest.* libconftest.a +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext -: ${CP="cp -f"} -: ${MV="mv -f"} -: ${RM="rm -f"} +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; } -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then - lt_unset=unset +if test no = "$lt_cv_ar_at_file"; then + archiver_list_spec= else - lt_unset=false + archiver_list_spec=$lt_cv_ar_at_file fi -# test EBCDIC or ASCII -case `echo X|tr X '\101'` in - A) # ASCII based system - # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr - lt_SP2NL='tr \040 \012' - lt_NL2SP='tr \015\012 \040\040' - ;; - *) # EBCDIC based system - lt_SP2NL='tr \100 \n' - lt_NL2SP='tr \r\n \100\100' - ;; -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 +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 - case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 - ;; - esac - ;; - *-*-cygwin* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin - ;; - *-*-cygwin* ) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; - * ) # otherwise, assume *nix - lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin - ;; - esac - ;; - * ) # unhandled hosts (and "normal" native builds) - lt_cv_to_host_file_cmd=func_convert_file_noop - ;; -esac +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 +IFS=$as_save_IFS 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; } - - - - - -{ $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 +fi +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 - #assume ordinary cross tools, or native build. -lt_cv_to_tool_file_cmd=func_convert_file_noop -case $host in - *-*-mingw* ) - case $build in - *-*-mingw* ) # actually msys - lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 - ;; - esac - ;; -esac - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } 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; } - - - +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 -{ $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 +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 - lt_cv_ld_reload_flag='-r' + { 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: $lt_cv_ld_reload_flag" >&5 -$as_echo "$lt_cv_ld_reload_flag" >&6; } -reload_flag=$lt_cv_ld_reload_flag -case $reload_flag in -"" | " "*) ;; -*) reload_flag=" $reload_flag" ;; -esac -reload_cmds='$LD$reload_flag -o $output$reload_objs' -case $host_os in - cygwin* | mingw* | pw32* | cegcc*) - if test yes != "$GCC"; then - reload_cmds=false - fi - ;; - darwin*) - if test yes = "$GCC"; then - reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' - else - reload_cmds='$LD$reload_flag -o $output$reload_objs' - fi - ;; -esac - + 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 + STRIP=$ac_ct_STRIP + fi +else + STRIP="$ac_cv_prog_STRIP" +fi +test -z "$STRIP" && STRIP=: @@ -6921,25 +7817,30 @@ 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 - if test -n "$OBJDUMP"; then - ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. + # 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 +{ 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 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_prog_RANLIB="${ac_tool_prefix}ranlib" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6948,38 +7849,43 @@ IFS=$as_save_IFS 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; } +RANLIB=$ac_cv_prog_RANLIB +if test -n "$RANLIB"; then + { 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 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. +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 +{ 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 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_prog_ac_ct_RANLIB="ranlib" + printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5 break 2 fi done @@ -6988,257 +7894,85 @@ IFS=$as_save_IFS 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_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB +if test -n "$ac_ct_RANLIB"; then + { 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_OBJDUMP" = x; then - OBJDUMP="false" + if test "x$ac_ct_RANLIB" = x; then + RANLIB=":" 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 + RANLIB=$ac_ct_RANLIB fi else - OBJDUMP="$ac_cv_prog_OBJDUMP" + RANLIB="$ac_cv_prog_RANLIB" fi -test -z "$OBJDUMP" && OBJDUMP=objdump +test -z "$RANLIB" && RANLIB=: -{ $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 - 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 -# interlibrary dependencies. -# 'none' -- dependencies not supported. -# 'unknown' -- same as none, but documents that we really don't know. -# 'pass_all' -- all dependencies passed with no checks. -# 'test_compile' -- check by making test program. -# 'file_magic [[regex]]' -- check by looking for files in library path -# that responds to the $file_magic_cmd with a given extended regex. -# If you have 'file' or equivalent on your system and you're not sure -# whether 'pass_all' will *always* work, you probably want this one. +# Determine commands to create old-style static archives. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' +old_postinstall_cmds='chmod 644 $oldlib' +old_postuninstall_cmds= + +if test -n "$RANLIB"; then + case $host_os in + bitrig* | openbsd*) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" + ;; + *) + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" + ;; + esac + old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" +fi case $host_os in -aix[4-9]*) - lt_cv_deplibs_check_method=pass_all - ;; + darwin*) + lock_old_archive_extraction=yes ;; + *) + lock_old_archive_extraction=no ;; +esac -beos*) - lt_cv_deplibs_check_method=pass_all - ;; -bsdi[45]*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' - lt_cv_file_magic_test_file=/shlib/libc.so - ;; -cygwin*) - # func_win32_libid is a shell function defined in ltmain.sh - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - ;; -mingw* | pw32*) - # Base MSYS/MinGW do not provide the 'file' command needed by - # func_win32_libid shell function, so use a weaker test based on 'objdump', - # unless we find 'file', for example because we are cross-compiling. - if ( file / ) >/dev/null 2>&1; then - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' - lt_cv_file_magic_cmd='func_win32_libid' - else - # Keep this pattern in sync with the one in func_win32_libid. - lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' - lt_cv_file_magic_cmd='$OBJDUMP -f' - fi - ;; -cegcc*) - # use the weaker test based on 'objdump'. See mingw*. - lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' - lt_cv_file_magic_cmd='$OBJDUMP -f' - ;; -darwin* | rhapsody*) - lt_cv_deplibs_check_method=pass_all - ;; -freebsd* | dragonfly*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - case $host_cpu in - i*86 ) - # Not sure whether the presence of OpenBSD here was a mistake. - # Let's accept both of them until this is cleared up. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` - ;; - esac - else - lt_cv_deplibs_check_method=pass_all - fi - ;; -haiku*) - lt_cv_deplibs_check_method=pass_all - ;; -hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file - case $host_cpu in - ia64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so - ;; - hppa*64*) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl - ;; - *) - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' - lt_cv_file_magic_test_file=/usr/lib/libc.sl - ;; - esac - ;; -interix[3-9]*) - # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' - ;; -irix5* | irix6* | nonstopux*) - case $LD in - *-32|*"-32 ") libmagic=32-bit;; - *-n32|*"-n32 ") libmagic=N32;; - *-64|*"-64 ") libmagic=64-bit;; - *) libmagic=never-match;; - esac - lt_cv_deplibs_check_method=pass_all - ;; -# This must be glibc/ELF. -linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) - lt_cv_deplibs_check_method=pass_all - ;; -netbsd*) - if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' - fi - ;; -newos6*) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file - lt_cv_file_magic_test_file=/usr/lib/libnls.so - ;; -*nto* | *qnx*) - lt_cv_deplibs_check_method=pass_all - ;; -openbsd* | bitrig*) - if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' - else - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' - fi - ;; -osf3* | osf4* | osf5*) - lt_cv_deplibs_check_method=pass_all - ;; -rdos*) - lt_cv_deplibs_check_method=pass_all - ;; -solaris*) - lt_cv_deplibs_check_method=pass_all - ;; -sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) - lt_cv_deplibs_check_method=pass_all - ;; -sysv4 | sysv4.3*) - case $host_vendor in - motorola) - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]' - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` - ;; - ncr) - lt_cv_deplibs_check_method=pass_all - ;; - sequent) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' - ;; - sni) - lt_cv_file_magic_cmd='/bin/file' - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" - lt_cv_file_magic_test_file=/lib/libc.so - ;; - siemens) - lt_cv_deplibs_check_method=pass_all - ;; - pc) - lt_cv_deplibs_check_method=pass_all - ;; - esac - ;; -tpf*) - lt_cv_deplibs_check_method=pass_all - ;; -os2*) - lt_cv_deplibs_check_method=pass_all - ;; -esac -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 -$as_echo "$lt_cv_deplibs_check_method" >&6; } -file_magic_glob= -want_nocaseglob=no -if test "$build" = "$host"; then - case $host_os in - mingw* | pw32*) - if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then - want_nocaseglob=yes - else - file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` - fi - ;; - esac -fi -file_magic_cmd=$lt_cv_file_magic_cmd -deplibs_check_method=$lt_cv_deplibs_check_method -test -z "$deplibs_check_method" && deplibs_check_method=unknown @@ -7253,608 +7987,32 @@ test -z "$deplibs_check_method" && deplibs_check_method=unknown +# If no C compiler was specified, use CC. +LTCC=${LTCC-"$CC"} +# If no C compiler flags were specified, use CFLAGS. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"} +# Allow CC to be a program name with arguments. +compiler=$CC +# Check for command to grab the raw symbol name followed by C symbol from nm. +{ 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?!! ;)] +# Character class describing NM global symbol codes. +symcode='[BCDEGRST]' - -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 - -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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - 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" -fi - -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 - lt_cv_sharedlib_from_linklib_cmd='unknown' - -case $host_os in -cygwin* | mingw* | pw32* | cegcc*) - # two different shell functions defined in ltmain.sh; - # decide which one to use based on capabilities of $DLLTOOL - case `$DLLTOOL --help 2>&1` in - *--identify-strict*) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib - ;; - *) - lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback - ;; - esac - ;; -*) - # fallback: assume linklib IS sharedlib - lt_cv_sharedlib_from_linklib_cmd=$ECHO - ;; -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; } -sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd -test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO - - - - - - - -if test -n "$ac_tool_prefix"; then - for ac_prog in ar - 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. -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_AR="$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 -AR=$ac_cv_prog_AR -if test -n "$AR"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 -$as_echo "$AR" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - test -n "$AR" && break - done -fi -if test -z "$AR"; then - ac_ct_AR=$AR - for ac_prog in ar -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. -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_AR="$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_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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - - 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:) -{ $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 - AR=$ac_ct_AR - fi -fi - -: ${AR=ar} -: ${AR_FLAGS=cru} - - - - - - - - - - - -{ $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 - lt_cv_ar_at_file=no - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ - -int -main () -{ - - ; - return 0; -} -_ACEOF -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 - test $ac_status = 0; } - if test 0 -eq "$ac_status"; then - # Ensure the archiver fails upon bogus file names. - rm -f conftest.$ac_objext libconftest.a - { { 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 - test $ac_status = 0; } - if test 0 -ne "$ac_status"; then - lt_cv_ar_at_file=@ - fi - fi - rm -f conftest.* libconftest.a - -fi -rm -f core conftest.err conftest.$ac_objext 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; } - -if test no = "$lt_cv_ar_at_file"; then - archiver_list_spec= -else - archiver_list_spec=$lt_cv_ar_at_file -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 - 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 - -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 - - -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 - -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 - - 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 - -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 - 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 - 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_RANLIB="${ac_tool_prefix}ranlib" - $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 -RANLIB=$ac_cv_prog_RANLIB -if test -n "$RANLIB"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 -$as_echo "$RANLIB" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - -fi -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 - 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 - 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_RANLIB="ranlib" - $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_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; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } -fi - - if test "x$ac_ct_RANLIB" = x; then - RANLIB=":" - 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 - RANLIB=$ac_ct_RANLIB - fi -else - RANLIB="$ac_cv_prog_RANLIB" -fi - -test -z "$RANLIB" && RANLIB=: - - - - - - -# Determine commands to create old-style static archives. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' -old_postinstall_cmds='chmod 644 $oldlib' -old_postuninstall_cmds= - -if test -n "$RANLIB"; then - case $host_os in - bitrig* | openbsd*) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" - ;; - *) - old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" - ;; - esac - old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" -fi - -case $host_os in - darwin*) - lock_old_archive_extraction=yes ;; - *) - lock_old_archive_extraction=no ;; -esac - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -# If no C compiler was specified, use CC. -LTCC=${LTCC-"$CC"} - -# If no C compiler flags were specified, use CFLAGS. -LTCFLAGS=${LTCFLAGS-"$CFLAGS"} - -# Allow CC to be a program name with arguments. -compiler=$CC - - -# 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 - -# These are sane defaults that work on at least a few old systems. -# [They come from Ultrix. What could be older than Ultrix?!! ;)] - -# Character class describing NM global symbol codes. -symcode='[BCDEGRST]' - -# Regexp to match symbols that can be accessed directly from C. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)' +# Regexp to match symbols that can be accessed directly from C. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)' # Define system-specific variables. case $host_os in @@ -7900,7 +8058,7 @@ esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. - lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" + lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" @@ -7918,20 +8076,20 @@ fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ +lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ @@ -7955,7 +8113,7 @@ for ac_symprfx in "" "_"; do if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. - # Also find C++ and __fastcall symbols from MSVC++, + # Also find C++ and __fastcall symbols from MSVC++ or ICC, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK '"\ " {last_section=section; section=\$ 3};"\ @@ -7973,9 +8131,9 @@ for ac_symprfx in "" "_"; do " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx" else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no @@ -7997,14 +8155,14 @@ _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 + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; } && test -s "$nlist"; then # Try sorting and uniquifying the output. if sort "$nlist" | uniq > "$nlist"T; then @@ -8073,7 +8231,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 @@ -8108,11 +8266,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. @@ -8158,13 +8316,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 @@ -8177,29 +8336,30 @@ case $with_sysroot in #( fi ;; #( /*) - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` ;; #( 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} @@ -8210,10 +8370,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 \ @@ -8233,15 +8398,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= @@ -8252,8 +8418,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; } @@ -8276,7 +8442,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 @@ -8292,9 +8459,9 @@ 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 + case `$FILECMD conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; @@ -8312,10 +8479,10 @@ 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 + case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; @@ -8327,7 +8494,7 @@ ia64-*-hpux*) ;; esac else - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; @@ -8350,10 +8517,10 @@ 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 + case `$FILECMD conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; @@ -8361,7 +8528,7 @@ mips64*-*linux*) emul="${emul}64" ;; esac - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; @@ -8369,7 +8536,7 @@ mips64*-*linux*) emul="${emul}ltsmip" ;; esac - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; @@ -8391,16 +8558,16 @@ 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 + case `$FILECMD conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) - case `/usr/bin/file conftest.o` in + case `$FILECMD conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; @@ -8454,11 +8621,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' @@ -8469,19 +8637,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' @@ -8490,8 +8659,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 @@ -8504,9 +8673,9 @@ $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 + case `$FILECMD conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) @@ -8541,11 +8710,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 @@ -8553,11 +8723,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 @@ -8568,11 +8742,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 @@ -8581,11 +8755,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 @@ -8593,11 +8768,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 @@ -8608,11 +8787,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 @@ -8620,8 +8799,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 @@ -8631,11 +8810,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 @@ -8645,8 +8825,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 @@ -8661,11 +8841,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 @@ -8673,11 +8854,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 @@ -8688,11 +8873,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 @@ -8701,11 +8886,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 @@ -8713,11 +8899,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 @@ -8728,11 +8918,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 @@ -8740,8 +8930,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 @@ -8753,11 +8943,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 @@ -8765,11 +8956,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 @@ -8780,11 +8975,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 @@ -8793,11 +8988,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 @@ -8805,11 +9001,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 @@ -8820,11 +9020,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 @@ -8832,8 +9032,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 @@ -8845,11 +9045,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 @@ -8857,11 +9058,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 @@ -8872,11 +9077,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 @@ -8885,11 +9090,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 @@ -8897,11 +9103,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 @@ -8912,11 +9122,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 @@ -8924,8 +9134,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 @@ -8937,11 +9147,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 @@ -8949,11 +9160,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 @@ -8964,11 +9179,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 @@ -8977,11 +9192,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 @@ -8989,11 +9205,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 @@ -9004,11 +9224,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 @@ -9016,8 +9236,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 @@ -9029,11 +9249,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 @@ -9041,11 +9262,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 @@ -9056,11 +9281,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 @@ -9069,11 +9294,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 @@ -9081,11 +9307,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 @@ -9096,11 +9326,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 @@ -9108,8 +9338,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 @@ -9144,11 +9374,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 @@ -9177,14 +9408,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 @@ -9193,39 +9425,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 $AR_FLAGS libconftest.a conftest.o" >&5 + $AR $AR_FLAGS libconftest.a conftest.o 2>&5 echo "$RANLIB libconftest.a" >&5 $RANLIB libconftest.a 2>&5 cat > conftest.c << _LT_EOF @@ -9245,24 +9479,19 @@ _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' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # 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]*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - 10.[012][,.]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + darwin*) + case $MACOSX_DEPLOYMENT_TARGET,$host in + 10.[012],*|,*powerpc*-darwin[5-8]*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + *) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac @@ -9317,164 +9546,378 @@ func_munge_path_list () esac } -{ $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 +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 -int -main () -{ - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_stdc=yes -else - ac_cv_header_stdc=no + + + + + + +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 +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 -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 : + + +# Set options +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 - ac_cv_header_stdc=no -fi -rm -f conftest* +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 -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 : +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 - ac_cv_header_stdc=no + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi -rm -f conftest* + 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 $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 : - : + 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 - 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 +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 -#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 : +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 - ac_cv_header_stdc=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_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 -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +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 -{ $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 +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 -# 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 +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 -done + ;; +esac +test -z "$AS" && AS=as -for ac_header in dlfcn.h -do : - 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 -fi -done +test -z "$DLLTOOL" && DLLTOOL=dlltool -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 "$OBJDUMP" && OBJDUMP=objdump + + -# Set options @@ -9483,7 +9926,8 @@ func_stripname_cnf () # 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 ;; @@ -9501,7 +9945,7 @@ if test "${enable_shared+set}" = set; then : IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_shared=yes fi @@ -9514,7 +9958,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 ;; @@ -9532,7 +9977,7 @@ if test "${enable_static+set}" = set; then : IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_static=yes fi @@ -9546,7 +9991,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 ;; @@ -9563,7 +10009,7 @@ if test "${with_pic+set}" = set; then : IFS=$lt_save_ifs ;; esac -else +else $as_nop pic_mode=default fi @@ -9575,7 +10021,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 ;; @@ -9593,7 +10040,7 @@ if test "${enable_fast_install+set}" = set; then : IFS=$lt_save_ifs ;; esac -else +else $as_nop enable_fast_install=yes fi @@ -9607,11 +10054,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) ;; @@ -9620,18 +10068,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', @@ -9713,11 +10162,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 @@ -9728,17 +10178,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 @@ -9759,8 +10207,8 @@ esac ofile=libtool can_build_shared=yes -# All known linkers require a '.a' archive for static linking (except MSVC, -# which needs '.lib'). +# All known linkers require a '.a' archive for static linking (except MSVC and +# ICC, which need '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld @@ -9784,11 +10232,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. @@ -9837,11 +10286,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 @@ -9850,11 +10299,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. @@ -9903,11 +10353,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 @@ -9992,11 +10442,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 @@ -10027,8 +10478,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" @@ -10269,7 +10720,7 @@ lt_prog_compiler_static= lt_prog_compiler_static='-qstaticlink' ;; *) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker lt_prog_compiler_pic='-KPIC' @@ -10385,26 +10836,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 @@ -10435,8 +10888,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 @@ -10464,11 +10917,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" @@ -10492,8 +10946,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 : @@ -10507,11 +10961,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 @@ -10554,19 +11009,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 @@ -10609,8 +11065,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; } @@ -10618,19 +11074,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 @@ -10642,8 +11098,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= @@ -10687,15 +11143,15 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie case $host_os in cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time + # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. + # Microsoft Visual C++ or Intel C++ Compiler. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) + # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) with_gnu_ld=yes ;; openbsd* | bitrig*) @@ -10747,7 +11203,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie whole_archive_flag_spec= fi supports_anon_versioning=no - case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in + case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... @@ -10859,6 +11315,7 @@ _LT_EOF emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes + file_list_spec='@' ;; interix[3-9]*) @@ -10873,7 +11330,7 @@ _LT_EOF # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) @@ -10916,7 +11373,7 @@ _LT_EOF compiler_needs_object=yes ;; esac - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C 5.9 whole_archive_flag_spec='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' compiler_needs_object=yes @@ -10928,7 +11385,7 @@ _LT_EOF if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi @@ -10944,7 +11401,7 @@ _LT_EOF archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi @@ -11076,7 +11533,7 @@ _LT_EOF if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else - export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no @@ -11198,21 +11655,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/,/^$/ { @@ -11227,7 +11686,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 @@ -11251,21 +11710,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/,/^$/ { @@ -11280,7 +11741,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 @@ -11343,12 +11804,12 @@ fi cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. + # Microsoft Visual C++ or Intel C++ Compiler. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in - cl*) - # Native MSVC + cl* | icl*) + # Native MSVC or ICC hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported always_export_symbols=yes @@ -11389,7 +11850,7 @@ fi fi' ;; *) - # Assume MSVC wrapper + # Assume MSVC and ICC wrapper hardcode_libdir_flag_spec=' ' allow_undefined_flag=unsupported # Tell ltmain to make .lib files, not .a files. @@ -11430,8 +11891,8 @@ fi output_verbose_link_cmd=func_echo_all archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - archive_expsym_cmds="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - module_expsym_cmds="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + archive_expsym_cmds="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + module_expsym_cmds="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" else ld_shlibs=no @@ -11465,7 +11926,7 @@ fi ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnightbsd*) archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' hardcode_libdir_flag_spec='-R$libdir' hardcode_direct=yes @@ -11531,11 +11992,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" @@ -11559,8 +12021,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' @@ -11600,28 +12062,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 @@ -11713,6 +12177,7 @@ $as_echo "$lt_cv_irix_exported_symbol" >&6; } emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes=yes + file_list_spec='@' ;; osf3*) @@ -11901,8 +12366,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 @@ -11938,18 +12403,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 @@ -11967,7 +12433,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 @@ -11981,8 +12447,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 @@ -12141,8 +12607,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 @@ -12404,7 +12870,7 @@ cygwin* | mingw* | pw32* | cegcc*) case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" ;; @@ -12414,14 +12880,14 @@ cygwin* | mingw* | pw32* | cegcc*) ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; - *,cl*) - # Native MSVC + *,cl* | *,icl*) + # Native MSVC or ICC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' @@ -12440,7 +12906,7 @@ cygwin* | mingw* | pw32* | cegcc*) done IFS=$lt_save_ifs # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form @@ -12477,7 +12943,7 @@ cygwin* | mingw* | pw32* | cegcc*) ;; *) - # Assume MSVC wrapper + # Assume MSVC and ICC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; @@ -12510,7 +12976,7 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd* | dragonfly*) +freebsd* | dragonfly* | midnightbsd*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then @@ -12703,9 +13169,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 @@ -12715,19 +13182,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 @@ -12741,9 +13210,6 @@ fi # before this can be enabled. hardcode_into_libs=yes - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command @@ -12752,7 +13218,7 @@ fi # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on @@ -12962,8 +13428,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" @@ -13084,8 +13550,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" || @@ -13109,8 +13575,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 @@ -13154,11 +13620,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 @@ -13167,32 +13634,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= @@ -13212,14 +13678,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 @@ -13228,41 +13696,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 @@ -13271,37 +13740,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 @@ -13310,37 +13779,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 @@ -13349,30 +13818,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 @@ -13411,11 +13879,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 @@ -13494,7 +13963,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=$? @@ -13512,16 +13981,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 @@ -13594,49 +14064,1292 @@ int main () else puts (dlerror ()); - return status; -} -_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 - test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then - (./conftest; exit; ) >&5 2>/dev/null - lt_status=$? - case x$lt_status in - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; - x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; - esac - else : - # compilation failed - lt_cv_dlopen_self_static=no - fi + return status; +} +_LT_EOF + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 + (eval $ac_link) 2>&5 + ac_status=$? + 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=$? + case x$lt_status in + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; + esac + else : + # compilation failed + lt_cv_dlopen_self_static=no + fi +fi +rm -fr conftest* + + +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; } + fi + + CPPFLAGS=$save_CPPFLAGS + LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS + ;; + esac + + case $lt_cv_dlopen_self in + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; + *) enable_dlopen_self=unknown ;; + esac + + case $lt_cv_dlopen_self_static in + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; + *) enable_dlopen_self_static=unknown ;; + esac +fi + + + + + + + + + + + + + + + + + +striplib= +old_striplib= +{ 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 -z "$STRIP"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +else + if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + old_striplib="$STRIP --strip-debug" + striplib="$STRIP --strip-unneeded" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + else + case $host_os in + darwin*) + # FIXME - insert some real tests, host_os isn't really good enough + striplib="$STRIP -x" + old_striplib="$STRIP -S" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ;; + freebsd*) + if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then + old_striplib="$STRIP --strip-debug" + striplib="$STRIP --strip-unneeded" + { 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; } + fi + ;; + *) + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ;; + esac + fi +fi + + + + + + + + + + + + + # Report what library types will actually be built + { 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; } + + { 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 + # are all built from PIC. + case $host_os in + aix3*) + test yes = "$enable_shared" && enable_static=no + if test -n "$RANLIB"; then + archive_cmds="$archive_cmds~\$RANLIB \$lib" + postinstall_cmds='$RANLIB $lib' + fi + ;; + + aix[4-9]*) + if test ia64 != "$host_cpu"; then + case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in + yes,aix,yes) ;; # shared object as lib.so file only + yes,svr4,*) ;; # shared object as lib.so archive member only + yes,*) enable_static=no ;; # shared object in lib.a archive as well + esac + fi + ;; + esac + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 +printf "%s\n" "$enable_shared" >&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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 +printf "%s\n" "$enable_static" >&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 + +CC=$lt_save_CC + + + + + + + + + + + + + + + + ac_config_commands="$ac_config_commands libtool" + + + + +# Only expand once: + + + +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 + +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 + + +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 +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 + + 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 + +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 + + + 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 + +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 + + +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 +{ 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$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 +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 + + + 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 +{ 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 + 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="$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 +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 + + + 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:) +{ 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 +fi + +fi +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 + 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}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 + +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 + + +fi +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 + 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="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 + +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 + +{ 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 (void) +{ +#ifndef __GNUC__ + choke me +#endif + + ; + return 0; +} +_ACEOF +if ac_fn_c_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_c_compiler_gnu=$ac_compiler_gnu + +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; } +ac_compiler_gnu=$ac_cv_c_compiler_gnu + +if test $ac_compiler_gnu = yes; then + GCC=yes +else + GCC= +fi +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 (void) +{ + + ; + return 0; +} +_ACEOF +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 (void) +{ + + ; + return 0; +} +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +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 (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 + # 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 +{ 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' +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="$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 + # 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_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 + + # 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 + + 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 + + +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 +rm -f conftest.err conftest.i conftest.$ac_ext + +done +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. +rm -f conftest.i conftest.err conftest.$ac_ext +if $ac_preproc_ok +then : + break +fi + + done + ac_cv_prog_CPP=$CPP + +fi + CPP=$ac_cv_prog_CPP +else + 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 -rm -fr conftest* + +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 $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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 -$as_echo "$lt_cv_dlopen_self_static" >&6; } - fi +rm -rf conftest* - CPPFLAGS=$save_CPPFLAGS - LDFLAGS=$save_LDFLAGS - LIBS=$save_LIBS - ;; - esac - case $lt_cv_dlopen_self in - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; - *) enable_dlopen_self=unknown ;; - esac + 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* - case $lt_cv_dlopen_self_static in - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; - *) enable_dlopen_self_static=unknown ;; - esac + 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 @@ -13645,109 +15358,513 @@ fi +ac_ext=cpp +ac_cpp='$CXXCPP $CPPFLAGS' +ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' +ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' +ac_compiler_gnu=$ac_cv_cxx_compiler_gnu +if test -z "$CXX"; then + if test -n "$CCC"; then + CXX=$CCC + else + if test -n "$ac_tool_prefix"; then + for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 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 + + + 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 +{ 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 + 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" + 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_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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } +fi + test -n "$ac_ct_CXX" && break +done + if test "x$ac_ct_CXX" = x; then + CXX="g++" + else + case $cross_compiling:$ac_tool_warned in +yes:) +{ 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 + 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 -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; } -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; } -else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - 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; } - else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - fi - ;; - *) - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ;; - esac +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. */ +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 : +else $as_nop + ac_cxx_werror_flag=$ac_save_cxx_werror_flag + CXXFLAGS="-g" + 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.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 + 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 - # 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; } + am_cv_CXX_dependencies_compiler_type=none + if test "$am_compiler_list" = ""; then + am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` + fi + am__universal=false + case " $depcc " in #( + *\ -arch\ *\ -arch\ *) am__universal=true ;; + esac - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 -$as_echo_n "checking whether to build shared libraries... " >&6; } - test no = "$can_build_shared" && enable_shared=no + 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 - # On AIX, shared libraries and static libraries use the same namespace, and - # are all built from PIC. - case $host_os in - aix3*) - test yes = "$enable_shared" && enable_static=no - if test -n "$RANLIB"; then - archive_cmds="$archive_cmds~\$RANLIB \$lib" - postinstall_cmds='$RANLIB $lib' + # 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 - aix[4-9]*) - if test ia64 != "$host_cpu"; then - case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in - yes,aix,yes) ;; # shared object as lib.so file only - yes,svr4,*) ;; # shared object as lib.so archive member only - yes,*) enable_static=no ;; # shared object in lib.a archive as well - esac - fi - ;; - esac - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 -$as_echo "$enable_shared" >&6; } + cd .. + rm -rf conftest.dir +else + am_cv_CXX_dependencies_compiler_type=none +fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 -$as_echo_n "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; } +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 + if + test "x$enable_dependency_tracking" != xno \ + && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then + am__fastdepCXX_TRUE= + am__fastdepCXX_FALSE='#' +else + am__fastdepCXX_TRUE='#' + am__fastdepCXX_FALSE= +fi -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 -CC=$lt_save_CC +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 if test -n "$CXX" && ( test no != "$CXX" && ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || @@ -13757,36 +15874,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 @@ -13798,10 +15911,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 @@ -13811,7 +15925,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 @@ -13823,29 +15938,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 @@ -13857,10 +15967,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 @@ -13870,11 +15981,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 @@ -14010,17 +16122,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 @@ -14049,15 +16162,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 @@ -14086,18 +16200,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 @@ -14163,8 +16278,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*) @@ -14302,21 +16417,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/,/^$/ { @@ -14331,7 +16448,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 @@ -14356,21 +16473,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/,/^$/ { @@ -14385,7 +16504,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 @@ -14450,8 +16569,8 @@ fi cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in - ,cl* | no,cl*) - # Native MSVC + ,cl* | no,cl* | ,icl* | no,icl*) + # Native MSVC or ICC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. hardcode_libdir_flag_spec_CXX=' ' @@ -14542,11 +16661,11 @@ fi output_verbose_link_cmd=func_echo_all archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - module_expsym_cmds_CXX="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + module_expsym_cmds_CXX="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" if test yes != "$lt_cv_apple_cc_single_mod"; then archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" - archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" + archive_expsym_cmds_CXX="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi else @@ -14581,6 +16700,7 @@ fi emximp -o $lib $output_objdir/$libname.def' old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' enable_shared_with_static_runtimes_CXX=yes + file_list_spec_CXX='@' ;; dgux*) @@ -14611,7 +16731,7 @@ fi archive_cmds_need_lc_CXX=no ;; - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnightbsd*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions ld_shlibs_CXX=yes @@ -14748,7 +16868,7 @@ fi # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - archive_expsym_cmds_CXX='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + archive_expsym_cmds_CXX='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in @@ -14888,13 +17008,13 @@ fi archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 no_undefined_flag_CXX=' -zdefs' @@ -15236,8 +17356,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 @@ -15275,7 +17395,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. @@ -15284,10 +17404,11 @@ if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 # the conftest object file. pre_test_object_deps_done=no + eval std_shrext=\"$shrext_cmds\" for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in - -L* | -R* | -l*) + -L* | -R* | -l* | *.${libext} | *${std_shrext}) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || @@ -15551,7 +17672,7 @@ lt_prog_compiler_static_CXX= ;; esac ;; - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnightbsd*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) @@ -15634,7 +17755,7 @@ lt_prog_compiler_static_CXX= lt_prog_compiler_static_CXX='-qstaticlink' ;; *) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 lt_prog_compiler_pic_CXX='-KPIC' @@ -15756,26 +17877,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 @@ -15806,8 +17929,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 @@ -15829,11 +17952,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" @@ -15857,8 +17981,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 : @@ -15869,11 +17993,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 @@ -15916,16 +18041,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 @@ -15968,8 +18094,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; } @@ -15977,19 +18103,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 @@ -15998,8 +18124,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]_.*' @@ -16016,7 +18142,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else - export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) @@ -16024,7 +18150,7 @@ $as_echo_n "checking whether the $compiler linker ($LD) supports shared librarie ;; cygwin* | mingw* | cegcc*) case $cc_basename in - cl*) + cl* | icl*) exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) @@ -16038,8 +18164,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 @@ -16066,18 +18192,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 @@ -16095,7 +18222,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 @@ -16109,8 +18236,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 @@ -16179,8 +18306,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' @@ -16371,7 +18498,7 @@ cygwin* | mingw* | pw32* | cegcc*) case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; mingw* | cegcc*) @@ -16380,14 +18507,14 @@ cygwin* | mingw* | pw32* | cegcc*) ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' + library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; - *,cl*) - # Native MSVC + *,cl* | *,icl*) + # Native MSVC or ICC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' @@ -16406,7 +18533,7 @@ cygwin* | mingw* | pw32* | cegcc*) done IFS=$lt_save_ifs # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form @@ -16443,7 +18570,7 @@ cygwin* | mingw* | pw32* | cegcc*) ;; *) - # Assume MSVC wrapper + # Assume MSVC and ICC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; @@ -16475,7 +18602,7 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd* | dragonfly*) +freebsd* | dragonfly* | midnightbsd*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then @@ -16668,9 +18795,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 @@ -16680,19 +18808,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 @@ -16706,9 +18836,6 @@ fi # before this can be enabled. hardcode_into_libs=yes - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command @@ -16717,7 +18844,7 @@ fi # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on @@ -16927,8 +19054,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" @@ -16992,8 +19119,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_CXX= if test -n "$hardcode_libdir_flag_spec_CXX" || test -n "$runpath_var_CXX" || @@ -17017,8 +19144,8 @@ else # directories. hardcode_action_CXX=unsupported fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 -$as_echo "$hardcode_action_CXX" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 +printf "%s\n" "$hardcode_action_CXX" >&6; } if test relink = "$hardcode_action_CXX" || test yes = "$inherit_rpath_CXX"; then @@ -17057,36 +19184,50 @@ ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $ ac_compiler_gnu=$ac_cv_c_compiler_gnu +{ 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 - - - - - - - - - ac_config_commands="$ac_config_commands libtool" - - - - -# Only expand once: - - - - # 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_PKGCONFIG+:} 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_PKGCONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $PKGCONFIG in [\\/]* | ?:[\\/]*) ac_cv_path_PKGCONFIG="$PKGCONFIG" # Let the user override the test with a path. @@ -17096,11 +19237,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_PKGCONFIG="$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_PKGCONFIG="$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 @@ -17112,39 +19257,33 @@ esac fi PKGCONFIG=$ac_cv_path_PKGCONFIG if test -n "$PKGCONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 -$as_echo "$PKGCONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKGCONFIG" >&5 +printf "%s\n" "$PKGCONFIG" >&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 -mkdir_p="$MKDIR_P" -case $mkdir_p in - [\\/$]* | ?:[\\/]*) ;; - */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; -esac - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 -$as_echo_n "checking whether NLS is requested... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 +printf %s "checking whether NLS is requested... " >&6; } # Check whether --enable-nls was given. -if test "${enable_nls+set}" = set; then : +if test ${enable_nls+y} +then : enableval=$enable_nls; USE_NLS=$enableval -else +else $as_nop USE_NLS=yes fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +printf "%s\n" "$USE_NLS" >&6; } - GETTEXT_MACRO_VERSION=0.18 + GETTEXT_MACRO_VERSION=0.20 @@ -17152,15 +19291,14 @@ $as_echo "$USE_NLS" >&6; } # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh + # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which + # contains only /bin. Note that ksh looks also at the FPATH variable, + # so we have to set that as well for the test. + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + || PATH_SEPARATOR=';' + } fi # Find out how to test for executable files. Don't use a zero-byte file, @@ -17179,11 +19317,12 @@ rm -f conf$$.file # Extract the first word of "msgfmt", so it can be a program name with args. set dummy msgfmt; 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_MSGFMT+:} 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_MSGFMT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$MSGFMT" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. @@ -17211,20 +19350,21 @@ esac fi MSGFMT="$ac_cv_path_MSGFMT" if test "$MSGFMT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 -$as_echo "$MSGFMT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 +printf "%s\n" "$MSGFMT" >&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 # Extract the first word of "gmsgfmt", so it can be a program name with args. set dummy gmsgfmt; 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_GMSGFMT+:} 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_GMSGFMT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case $GMSGFMT in [\\/]* | ?:[\\/]*) ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. @@ -17234,11 +19374,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_GMSGFMT="$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_GMSGFMT="$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 @@ -17251,21 +19395,16 @@ esac fi GMSGFMT=$ac_cv_path_GMSGFMT if test -n "$GMSGFMT"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 -$as_echo "$GMSGFMT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 +printf "%s\n" "$GMSGFMT" >&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 - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; - *) MSGFMT_015=$MSGFMT ;; - esac - - case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in + case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; *) GMSGFMT_015=$GMSGFMT ;; esac @@ -17275,15 +19414,14 @@ fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh + # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which + # contains only /bin. Note that ksh looks also at the FPATH variable, + # so we have to set that as well for the test. + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + || PATH_SEPARATOR=';' + } fi # Find out how to test for executable files. Don't use a zero-byte file, @@ -17302,11 +19440,12 @@ rm -f conf$$.file # Extract the first word of "xgettext", so it can be a program name with args. set dummy xgettext; 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_XGETTEXT+:} 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_XGETTEXT+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$XGETTEXT" in [\\/]* | ?:[\\/]*) ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. @@ -17334,11 +19473,11 @@ esac fi XGETTEXT="$ac_cv_path_XGETTEXT" if test "$XGETTEXT" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 -$as_echo "$XGETTEXT" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 +printf "%s\n" "$XGETTEXT" >&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 rm -f messages.po @@ -17353,15 +19492,14 @@ fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh + # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which + # contains only /bin. Note that ksh looks also at the FPATH variable, + # so we have to set that as well for the test. + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + || PATH_SEPARATOR=';' + } fi # Find out how to test for executable files. Don't use a zero-byte file, @@ -17380,11 +19518,12 @@ rm -f conf$$.file # Extract the first word of "msgmerge", so it can be a program name with args. set dummy msgmerge; 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_MSGMERGE+:} 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_MSGMERGE+y} +then : + printf %s "(cached) " >&6 +else $as_nop case "$MSGMERGE" in [\\/]* | ?:[\\/]*) ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. @@ -17411,15 +19550,23 @@ esac fi MSGMERGE="$ac_cv_path_MSGMERGE" if test "$MSGMERGE" != ":"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 -$as_echo "$MSGMERGE" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 +printf "%s\n" "$MSGMERGE" >&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 "$localedir" || localedir='${datadir}/locale' + if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then + MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' + else + if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then + MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' + else + MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' + fi + fi test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= @@ -17445,125 +19592,197 @@ fi prefix="$acl_save_prefix" + # 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 "$withval" = no || with_gnu_ld=yes -else +else $as_nop with_gnu_ld=no fi # Prepare PATH_SEPARATOR. # The user is always right. if test "${PATH_SEPARATOR+set}" != set; then - echo "#! /bin/sh" >conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh + # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which + # contains only /bin. Note that ksh looks also at the FPATH variable, + # so we have to set that as well for the test. + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + || PATH_SEPARATOR=';' + } fi -ac_prog=ld -if test "$GCC" = yes; then - # Check if gcc -print-prog-name=ld gives a path. - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 -$as_echo_n "checking for ld used by GCC... " >&6; } - case $host in - *-*-mingw*) - # gcc leaves a trailing carriage return which upsets mingw - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; - *) - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; - esac - case $ac_prog in - # Accept absolute paths. - [\\/]* | [A-Za-z]:[\\/]*) - re_direlt='/[^/][^/]*/\.\./' - # Canonicalize the path of ld - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` - done - test -z "$LD" && LD="$ac_prog" - ;; - "") - # If it fails, then pretend we aren't using GCC. - ac_prog=ld - ;; - *) - # If it is relative, then search for the first ld in PATH. - with_gnu_ld=unknown - ;; - esac + +if test -n "$LD"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld" >&5 +printf %s "checking for ld... " >&6; } +elif test "$GCC" = yes; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 +printf %s "checking for ld used by $CC... " >&6; } elif test "$with_gnu_ld" = yes; 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 ${acl_cv_path_LD+:} false; then : - $as_echo_n "(cached) " >&6 +if test -n "$LD"; then + # Let the user override the test with a path. + : else - if test -z "$LD"; then - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" - for ac_dir in $PATH; do - test -z "$ac_dir" && ac_dir=. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then - acl_cv_path_LD="$ac_dir/$ac_prog" - # Check to see if the program is GNU ld. I'd rather use --version, - # but apparently some GNU ld's only accept -v. - # Break only if it was the GNU/non-GNU ld that we prefer. - case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in - *GNU* | *'with BFD'*) - test "$with_gnu_ld" != no && break ;; - *) - test "$with_gnu_ld" != yes && break ;; + if test ${acl_cv_path_LD+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + acl_cv_path_LD= # Final result of this test + ac_prog=ld # Program to search in $PATH + if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + acl_output=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $acl_output in + # Accept absolute paths. + [\\/]* | ?:[\\/]*) + re_direlt='/[^/][^/]*/\.\./' + # Canonicalize the pathname of ld + acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` + while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do + acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` + done + # Got the pathname. No search in PATH is needed. + acl_cv_path_LD="$acl_output" + ac_prog= + ;; + "") + # If it fails, then pretend we aren't using GCC. + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; esac fi - done - IFS="$ac_save_ifs" -else - acl_cv_path_LD="$LD" # Let the user override the test with a path. + if test -n "$ac_prog"; then + # Search for $ac_prog in $PATH. + acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$acl_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 conftest.$ac_ext +/* end confdefs.h. */ +#if defined __powerpc64__ || defined _ARCH_PPC64 + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + # The compiler produces 64-bit code. Add option '-b64' so that the + # linker groks 64-bit object files. + case "$acl_cv_path_LD " in + *" -b64 "*) ;; + *) acl_cv_path_LD="$acl_cv_path_LD -b64" ;; + esac + fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + sparc64-*-netbsd*) + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined __sparcv9 || defined __arch64__ + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + +else $as_nop + # The compiler produces 32-bit code. Add option '-m elf32_sparc' + # so that the linker groks 32-bit object files. + case "$acl_cv_path_LD " in + *" -m elf32_sparc "*) ;; + *) acl_cv_path_LD="$acl_cv_path_LD -m elf32_sparc" ;; + esac + +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + esac + fi -LD="$acl_cv_path_LD" -if test -n "$LD"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 -$as_echo "$LD" >&6; } -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + LD="$acl_cv_path_LD" 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 ${acl_cv_prog_gnu_ld+:} false; then : - $as_echo_n "(cached) " >&6 -else - # I'd rather use --version here, but apparently some GNU ld's only accept -v. +if test -n "$LD"; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 +printf "%s\n" "$LD" >&6; } +else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 +fi +{ 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 ${acl_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 &5 -$as_echo "$acl_cv_prog_gnu_ld" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 +printf "%s\n" "$acl_cv_prog_gnu_ld" >&6; } with_gnu_ld=$acl_cv_prog_gnu_ld - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 -$as_echo_n "checking for shared library run path origin... " >&6; } -if ${acl_cv_rpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 +printf %s "checking for shared library run path origin... " >&6; } +if test ${acl_cv_rpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh @@ -17572,8 +19791,8 @@ else acl_cv_rpath=done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 -$as_echo "$acl_cv_rpath" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 +printf "%s\n" "$acl_cv_rpath" >&6; } wl="$acl_cv_wl" acl_libext="$acl_cv_libext" acl_shlibext="$acl_cv_shlibext" @@ -17584,76 +19803,435 @@ $as_echo "$acl_cv_rpath" >&6; } acl_hardcode_direct="$acl_cv_hardcode_direct" acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" # Check whether --enable-rpath was given. -if test "${enable_rpath+set}" = set; then : +if test ${enable_rpath+y} +then : enableval=$enable_rpath; : -else +else $as_nop enable_rpath=yes fi - acl_libdirstem=lib - acl_libdirstem2= - case "$host_os" in - solaris*) - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 -$as_echo_n "checking for 64-bit host... " >&6; } -if ${gl_cv_solaris_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking 32-bit host C ABI" >&5 +printf %s "checking 32-bit host C ABI... " >&6; } +if test ${gl_cv_host_cpu_c_abi_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if test -n "$gl_cv_host_cpu_c_abi"; then + case "$gl_cv_host_cpu_c_abi" in + i386 | x86_64-x32 | arm | armhf | arm64-ilp32 | hppa | ia64-ilp32 | mips | mipsn32 | powerpc | riscv*-ilp32* | s390 | sparc) + gl_cv_host_cpu_c_abi_32bit=yes ;; + x86_64 | alpha | arm64 | hppa64 | ia64 | mips64 | powerpc64 | powerpc64-elfv2 | riscv*-lp64* | s390x | sparc64 ) + gl_cv_host_cpu_c_abi_32bit=no ;; + *) + gl_cv_host_cpu_c_abi_32bit=unknown ;; + esac + else + case "$host_cpu" in + + # CPUs that only support a 32-bit ABI. + arc \ + | bfin \ + | cris* \ + | csky \ + | epiphany \ + | ft32 \ + | h8300 \ + | m68k \ + | microblaze | microblazeel \ + | nds32 | nds32le | nds32be \ + | nios2 | nios2eb | nios2el \ + | or1k* \ + | or32 \ + | sh | sh1234 | sh1234elb \ + | tic6x \ + | xtensa* ) + gl_cv_host_cpu_c_abi_32bit=yes + ;; + + # CPUs that only support a 64-bit ABI. + alpha | alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] \ + | mmix ) + gl_cv_host_cpu_c_abi_32bit=no + ;; + + i[34567]86 ) + gl_cv_host_cpu_c_abi_32bit=yes + ;; + + x86_64 ) + # On x86_64 systems, the C compiler may be generating code in one of + # these ABIs: + # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. + # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 + # with native Windows (mingw, MSVC). + # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. + # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if (defined __x86_64__ || defined __amd64__ \ + || defined _M_X64 || defined _M_AMD64) \ + && !(defined __ILP32__ || defined _ILP32) + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + arm* | aarch64 ) + # Assume arm with EABI. + # On arm64 systems, the C compiler may be generating code in one of + # these ABIs: + # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. + # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. + # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined __aarch64__ && !(defined __ILP32__ || defined _ILP32) + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) + # On hppa, the C compiler may be generating 32-bit code or 64-bit + # code. In the latter case, it defines _LP64 and __LP64__. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef __LP64__ + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + ia64* ) + # On ia64 on HP-UX, the C compiler may be generating 64-bit code or + # 32-bit code. In the latter case, it defines _ILP32. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#ifdef _ILP32 + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=yes +else $as_nop + gl_cv_host_cpu_c_abi_32bit=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + mips* ) + # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this + # at 32. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + powerpc* ) + # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. + # No need to distinguish them here; the caller may distinguish + # them based on the OS. + # On powerpc64 systems, the C compiler may still be generating + # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may + # be generating 64-bit code. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined __powerpc64__ || defined _ARCH_PPC64 + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + rs6000 ) + gl_cv_host_cpu_c_abi_32bit=yes + ;; + + riscv32 | riscv64 ) + # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. + # Size of 'long' and 'void *': + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined __LP64__ + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + s390* ) + # On s390x, the C compiler may be generating 64-bit (= s390x) code + # or 31-bit (= s390) code. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined __LP64__ || defined __s390x__ + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + sparc | sparc64 ) + # UltraSPARCs running Linux have `uname -m` = "sparc64", but the + # C compiler still generates 32-bit code. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#if defined __sparcv9 || defined __arch64__ + int ok; + #else + error fail + #endif + +_ACEOF +if ac_fn_c_try_compile "$LINENO" +then : + gl_cv_host_cpu_c_abi_32bit=no +else $as_nop + gl_cv_host_cpu_c_abi_32bit=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + ;; + + *) + gl_cv_host_cpu_c_abi_32bit=unknown + ;; + esac + fi + +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_host_cpu_c_abi_32bit" >&5 +printf "%s\n" "$gl_cv_host_cpu_c_abi_32bit" >&6; } + + HOST_CPU_C_ABI_32BIT="$gl_cv_host_cpu_c_abi_32bit" + + + + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ELF binary format" >&5 +printf %s "checking for ELF binary format... " >&6; } +if test ${gl_cv_elf+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ - -#ifdef _LP64 -sixtyfour bits -#endif +#ifdef __ELF__ + Extensible Linking Format + #endif _ACEOF if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | - $EGREP "sixtyfour bits" >/dev/null 2>&1; then : - gl_cv_solaris_64bit=yes -else - gl_cv_solaris_64bit=no + $EGREP "Extensible Linking Format" >/dev/null 2>&1 +then : + gl_cv_elf=yes +else $as_nop + gl_cv_elf=no fi -rm -f conftest* +rm -rf conftest* fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 -$as_echo "$gl_cv_solaris_64bit" >&6; } - if test $gl_cv_solaris_64bit = yes; then - acl_libdirstem=lib/64 - case "$host_cpu" in - sparc*) acl_libdirstem2=lib/sparcv9 ;; - i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; - esac - fi - ;; - *) - searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` - if test -n "$searchpath"; then - acl_save_IFS="${IFS= }"; IFS=":" - for searchdir in $searchpath; do - if test -d "$searchdir"; then - case "$searchdir" in - */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; - */../ | */.. ) - # Better ignore directories of this form. They are misleading. - ;; - *) searchdir=`cd "$searchdir" && pwd` - case "$searchdir" in - */lib64 ) acl_libdirstem=lib64 ;; - esac ;; - esac - fi - done - IFS="$acl_save_IFS" - fi - ;; - esac - test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gl_cv_elf" >&5 +printf "%s\n" "$gl_cv_elf" >&6; } + if test $gl_cv_elf; then + # Extract the ELF class of a file (5th byte) in decimal. + # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header + if od -A x < /dev/null >/dev/null 2>/dev/null; then + # Use POSIX od. + func_elfclass () + { + od -A n -t d1 -j 4 -N 1 + } + else + # Use BSD hexdump. + func_elfclass () + { + dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' + echo + } + fi + case $HOST_CPU_C_ABI_32BIT in + yes) + # 32-bit ABI. + acl_is_expected_elfclass () + { + test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 + } + ;; + no) + # 64-bit ABI. + acl_is_expected_elfclass () + { + test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 + } + ;; + *) + # Unknown. + acl_is_expected_elfclass () + { + : + } + ;; + esac + else + acl_is_expected_elfclass () + { + : + } + fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for the common suffixes of directories in the library search path" >&5 +printf %s "checking for the common suffixes of directories in the library search path... " >&6; } +if test ${acl_cv_libdirstems+y} +then : + printf %s "(cached) " >&6 +else $as_nop + acl_libdirstem=lib + acl_libdirstem2= + acl_libdirstem3= + case "$host_os" in + solaris*) + if test $HOST_CPU_C_ABI_32BIT = no; then + acl_libdirstem2=lib/64 + case "$host_cpu" in + sparc*) acl_libdirstem3=lib/sparcv9 ;; + i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; + esac + fi + ;; + *) + searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ + | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test $HOST_CPU_C_ABI_32BIT != no; then + # 32-bit or unknown ABI. + if test -d /usr/lib32; then + acl_libdirstem2=lib32 + fi + fi + if test $HOST_CPU_C_ABI_32BIT != yes; then + # 64-bit or unknown ABI. + if test -d /usr/lib64; then + acl_libdirstem3=lib64 + fi + fi + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; + */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib32 ) acl_libdirstem2=lib32 ;; + */lib64 ) acl_libdirstem3=lib64 ;; + esac ;; + esac + fi + done + IFS="$acl_save_IFS" + if test $HOST_CPU_C_ABI_32BIT = yes; then + # 32-bit ABI. + acl_libdirstem3= + fi + if test $HOST_CPU_C_ABI_32BIT = no; then + # 64-bit ABI. + acl_libdirstem2= + fi + fi + ;; + esac + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" + test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" + acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $acl_cv_libdirstems" >&5 +printf "%s\n" "$acl_cv_libdirstems" >&6; } + acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` + acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` + acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` @@ -17674,13 +20252,16 @@ $as_echo "$gl_cv_solaris_64bit" >&6; } eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" + eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" + eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libiconv-prefix was given. -if test "${with_libiconv_prefix+set}" = set; then : +if test ${with_libiconv_prefix+y} +then : withval=$with_libiconv_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -17694,6 +20275,8 @@ if test "${with_libiconv_prefix+set}" = set; then : eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" + eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" + eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" @@ -17701,15 +20284,19 @@ if test "${with_libiconv_prefix+set}" = set; then : else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" - if test "$acl_libdirstem2" != "$acl_libdirstem" \ - && ! test -d "$withval/$acl_libdirstem"; then - additional_libdir="$withval/$acl_libdirstem2" - fi + additional_libdir2="$withval/$acl_libdirstem2" + additional_libdir3="$withval/$acl_libdirstem3" fi fi fi + if test "X$additional_libdir2" = "X$additional_libdir"; then + additional_libdir2= + fi + if test "X$additional_libdir3" = "X$additional_libdir"; then + additional_libdir3= + fi LIBICONV= LTLIBICONV= INCICONV= @@ -17732,7 +20319,7 @@ fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then @@ -17755,45 +20342,51 @@ fi shrext= fi if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" + for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do + if test "X$found_dir" = "X"; then + eval dir=\$$additional_libdir_variable + if test -n "$dir"; then + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" - found_so="$dir/$f" - break + found_a="$dir/$libname.$acl_libext" fi - done + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi fi fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi + done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBICONV; do @@ -17810,7 +20403,7 @@ fi -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then + if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else @@ -17820,14 +20413,14 @@ fi | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do - if test -f "$dir/$f"; then + if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break @@ -17837,7 +20430,7 @@ fi fi fi if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then + if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi @@ -17859,7 +20452,8 @@ fi if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ - || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" else haveit= @@ -17938,6 +20532,13 @@ fi fi additional_includedir="$basedir/include" ;; + */$acl_libdirstem3 | */$acl_libdirstem3/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` + if test "$name" = 'iconv'; then + LIBICONV_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then @@ -17983,12 +20584,14 @@ fi for dep in $dependency_libs; do case "$dep" in -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ - && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ + && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ - || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ + || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; @@ -18007,14 +20610,14 @@ fi exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then + if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" + if test -d "$dependency_libdir"; then + LIBICONV="${LIBICONV}${LIBICONV:+ }-L$dependency_libdir" fi fi haveit= @@ -18028,14 +20631,14 @@ fi exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then + if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" + if test -d "$dependency_libdir"; then + LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$dependency_libdir" fi fi fi @@ -18142,78 +20745,81 @@ fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 -$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } -if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 +printf %s "checking for CFPreferencesCopyAppValue... " >&6; } +if test ${gt_cv_func_CFPreferencesCopyAppValue+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { CFPreferencesCopyAppValue(NULL, NULL) ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : gt_cv_func_CFPreferencesCopyAppValue=yes -else +else $as_nop gt_cv_func_CFPreferencesCopyAppValue=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="$gt_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 -$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 +printf "%s\n" "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then -$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h +printf "%s\n" "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 -$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } -if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyPreferredLanguages" >&5 +printf %s "checking for CFLocaleCopyPreferredLanguages... " >&6; } +if test ${gt_cv_func_CFLocaleCopyPreferredLanguages+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_LIBS="$LIBS" LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { -CFLocaleCopyCurrent(); +CFLocaleCopyPreferredLanguages(); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - gt_cv_func_CFLocaleCopyCurrent=yes -else - gt_cv_func_CFLocaleCopyCurrent=no +if ac_fn_c_try_link "$LINENO" +then : + gt_cv_func_CFLocaleCopyPreferredLanguages=yes +else $as_nop + gt_cv_func_CFLocaleCopyPreferredLanguages=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="$gt_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 -$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } - if test $gt_cv_func_CFLocaleCopyCurrent = yes; then +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyPreferredLanguages" >&5 +printf "%s\n" "$gt_cv_func_CFLocaleCopyPreferredLanguages" >&6; } + if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then -$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h +printf "%s\n" "#define HAVE_CFLOCALECOPYPREFERREDLANGUAGES 1" >>confdefs.h fi INTL_MACOSX_LIBS= - if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then + if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ + || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" fi @@ -18254,37 +20860,48 @@ typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; gt_expression_test_code= fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 -$as_echo_n "checking for GNU gettext in libc... " >&6; } -if eval \${$gt_func_gnugettext_libc+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 +printf %s "checking for GNU gettext in libc... " >&6; } +if eval test \${$gt_func_gnugettext_libc+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include -$gt_revision_test_code +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern int *_nl_domain_bindings; +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + int -main () +main (void) { + bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$gt_func_gnugettext_libc=yes" -else +else $as_nop eval "$gt_func_gnugettext_libc=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=\$$gt_func_gnugettext_libc - { $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; } if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then @@ -18317,103 +20934,122 @@ $as_echo "$ac_res" >&6; } done - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 -$as_echo_n "checking for iconv... " >&6; } -if ${am_cv_func_iconv+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 +printf %s "checking for iconv... " >&6; } +if test ${am_cv_func_iconv+y} +then : + printf %s "(cached) " >&6 +else $as_nop am_cv_func_iconv="no, consider installing GNU libiconv" am_cv_lib_iconv=no cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include #include + int -main () +main (void) { iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_func_iconv=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 if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include #include + int -main () +main (void) { iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : am_cv_lib_iconv=yes am_cv_func_iconv=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="$am_save_LIBS" fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 -$as_echo "$am_cv_func_iconv" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 +printf "%s\n" "$am_cv_func_iconv" >&6; } if test "$am_cv_func_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 -$as_echo_n "checking for working iconv... " >&6; } -if ${am_cv_func_iconv_works+:} false; then : - $as_echo_n "(cached) " >&6 -else - - am_save_LIBS="$LIBS" + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 +printf %s "checking for working iconv... " >&6; } +if test ${am_cv_func_iconv_works+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi - if test "$cross_compiling" = yes; then : + am_cv_func_iconv_works=no + for ac_iconv_const in '' 'const'; do + if test "$cross_compiling" = yes +then : case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac -else + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; + *) am_cv_func_iconv_works="guessing yes" ;; + esac +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include -int main () + +#ifndef ICONV_CONST +# define ICONV_CONST $ac_iconv_const +#endif + +int +main (void) { +int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { - static const char input[] = "\342\202\254"; /* EURO SIGN */ + static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; - const char *inptr = input; + ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, - (char **) &inptr, &inbytesleft, + &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) - return 1; + result |= 1; + iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from @@ -18422,17 +21058,37 @@ int main () iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { - static const char input[] = "\263"; + static ICONV_CONST char input[] = "\263"; char buf[10]; - const char *inptr = input; + ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, - (char **) &inptr, &inbytesleft, + &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) - return 1; + result |= 2; + iconv_close (cd_ascii_to_88591); + } + } + /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ + { + iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); + if (cd_88591_to_utf8 != (iconv_t)(-1)) + { + static ICONV_CONST char input[] = "\304"; + static char buf[2] = { (char)0xDE, (char)0xAD }; + ICONV_CONST char *inptr = input; + size_t inbytesleft = 1; + char *outptr = buf; + size_t outbytesleft = 1; + size_t res = iconv (cd_88591_to_utf8, + &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) + result |= 4; + iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ @@ -18441,48 +21097,65 @@ int main () iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; - const char *inptr = input; + ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, + &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) - return 1; + result |= 8; + iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - return 1; + { + /* Try standardized names. */ + iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); + /* Try IRIX, OSF/1 names. */ + iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); + /* Try AIX names. */ + iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); + /* Try HP-UX names. */ + iconv_t cd4 = iconv_open ("utf8", "eucJP"); + if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) + && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) + result |= 16; + if (cd1 != (iconv_t)(-1)) + iconv_close (cd1); + if (cd2 != (iconv_t)(-1)) + iconv_close (cd2); + if (cd3 != (iconv_t)(-1)) + iconv_close (cd3); + if (cd4 != (iconv_t)(-1)) + iconv_close (cd4); + } + return result; + + ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : +if ac_fn_c_try_run "$LINENO" +then : am_cv_func_iconv_works=yes -else - am_cv_func_iconv_works=no fi rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ conftest.$ac_objext conftest.beam conftest.$ac_ext fi + test "$am_cv_func_iconv_works" = no || break + done LIBS="$am_save_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 -$as_echo "$am_cv_func_iconv_works" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 +printf "%s\n" "$am_cv_func_iconv_works" >&6; } case "$am_cv_func_iconv_works" in *no) am_func_iconv=no am_cv_lib_iconv=no ;; *) am_func_iconv=yes ;; @@ -18492,14 +21165,14 @@ $as_echo "$am_cv_func_iconv_works" >&6; } fi if test "$am_func_iconv" = yes; then -$as_echo "#define HAVE_ICONV 1" >>confdefs.h +printf "%s\n" "#define HAVE_ICONV 1" >>confdefs.h fi if test "$am_cv_lib_iconv" = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 -$as_echo_n "checking how to link with libiconv... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 -$as_echo "$LIBICONV" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 +printf %s "checking how to link with libiconv... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 +printf "%s\n" "$LIBICONV" >&6; } else CPPFLAGS="$am_save_CPPFLAGS" LIBICONV= @@ -18515,7 +21188,6 @@ $as_echo "$LIBICONV" >&6; } - use_additional=yes acl_save_prefix="$prefix" @@ -18525,13 +21197,16 @@ $as_echo "$LIBICONV" >&6; } eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" + eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" + eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" # Check whether --with-libintl-prefix was given. -if test "${with_libintl_prefix+set}" = set; then : +if test ${with_libintl_prefix+y} +then : withval=$with_libintl_prefix; if test "X$withval" = "Xno"; then use_additional=no @@ -18545,6 +21220,8 @@ if test "${with_libintl_prefix+set}" = set; then : eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" + eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" + eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" @@ -18552,15 +21229,19 @@ if test "${with_libintl_prefix+set}" = set; then : else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" - if test "$acl_libdirstem2" != "$acl_libdirstem" \ - && ! test -d "$withval/$acl_libdirstem"; then - additional_libdir="$withval/$acl_libdirstem2" - fi + additional_libdir2="$withval/$acl_libdirstem2" + additional_libdir3="$withval/$acl_libdirstem3" fi fi fi + if test "X$additional_libdir2" = "X$additional_libdir"; then + additional_libdir2= + fi + if test "X$additional_libdir3" = "X$additional_libdir"; then + additional_libdir3= + fi LIBINTL= LTLIBINTL= INCINTL= @@ -18583,7 +21264,7 @@ fi done if test -z "$already_handled"; then names_already_handled="$names_already_handled $name" - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then @@ -18606,45 +21287,51 @@ fi shrext= fi if test $use_additional = yes; then - dir="$additional_libdir" - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" + for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do + if test "X$found_dir" = "X"; then + eval dir=\$$additional_libdir_variable + if test -n "$dir"; then + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" - found_so="$dir/$f" - break + found_a="$dir/$libname.$acl_libext" fi - done + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi fi fi - fi - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi + done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIBINTL; do @@ -18661,7 +21348,7 @@ fi -L*) dir=`echo "X$x" | sed -e 's/^X-L//'` if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then + if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else @@ -18671,14 +21358,14 @@ fi | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do - if test -f "$dir/$f"; then + if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break @@ -18688,7 +21375,7 @@ fi fi fi if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then + if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi @@ -18710,7 +21397,8 @@ fi if test "X$found_so" != "X"; then if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ - || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" else haveit= @@ -18789,6 +21477,13 @@ fi fi additional_includedir="$basedir/include" ;; + */$acl_libdirstem3 | */$acl_libdirstem3/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` + if test "$name" = 'intl'; then + LIBINTL_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; esac if test "X$additional_includedir" != "X"; then if test "X$additional_includedir" != "X/usr/include"; then @@ -18834,12 +21529,14 @@ fi for dep in $dependency_libs; do case "$dep" in -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ - && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ + && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ - || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ + || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; @@ -18858,14 +21555,14 @@ fi exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then + if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" + if test -d "$dependency_libdir"; then + LIBINTL="${LIBINTL}${LIBINTL:+ }-L$dependency_libdir" fi fi haveit= @@ -18879,14 +21576,14 @@ fi exec_prefix="$acl_save_exec_prefix" prefix="$acl_save_prefix" - if test "X$x" = "X-L$additional_libdir"; then + if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then - if test -d "$additional_libdir"; then - LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" + if test -d "$dependency_libdir"; then + LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$dependency_libdir" fi fi fi @@ -18969,78 +21666,98 @@ fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 -$as_echo_n "checking for GNU gettext in libintl... " >&6; } -if eval \${$gt_func_gnugettext_libintl+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 +printf %s "checking for GNU gettext in libintl... " >&6; } +if eval test \${$gt_func_gnugettext_libintl+y} +then : + printf %s "(cached) " >&6 +else $as_nop gt_save_CPPFLAGS="$CPPFLAGS" CPPFLAGS="$CPPFLAGS $INCINTL" gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include -$gt_revision_test_code +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + int -main () +main (void) { + bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : eval "$gt_func_gnugettext_libintl=yes" -else +else $as_nop eval "$gt_func_gnugettext_libintl=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 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ + #include -$gt_revision_test_code +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif const char *_nl_expand_alias (const char *); +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + int -main () +main (void) { + bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - eval "$gt_func_gnugettext_libintl=yes" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + eval "$gt_func_gnugettext_libintl=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 fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS" fi eval ac_res=\$$gt_func_gnugettext_libintl - { $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; } fi if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ @@ -19067,20 +21784,20 @@ $as_echo "$ac_res" >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes" \ || test "$nls_cv_use_gnu_gettext" = "yes"; then -$as_echo "#define ENABLE_NLS 1" >>confdefs.h +printf "%s\n" "#define ENABLE_NLS 1" >>confdefs.h else USE_NLS=no fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 -$as_echo_n "checking whether to use NLS... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 -$as_echo "$USE_NLS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 +printf %s "checking whether to use NLS... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 +printf "%s\n" "$USE_NLS" >&6; } if test "$USE_NLS" = "yes"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 -$as_echo_n "checking where the gettext function comes from... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 +printf %s "checking where the gettext function comes from... " >&6; } if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then gt_source="external libintl" @@ -19090,18 +21807,18 @@ $as_echo_n "checking where the gettext function comes from... " >&6; } else gt_source="included intl directory" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 -$as_echo "$gt_source" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 +printf "%s\n" "$gt_source" >&6; } fi if test "$USE_NLS" = "yes"; then if test "$gt_use_preinstalled_gnugettext" = "yes"; then if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 -$as_echo_n "checking how to link with libintl... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 -$as_echo "$LIBINTL" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 +printf %s "checking how to link with libintl... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 +printf "%s\n" "$LIBINTL" >&6; } for element in $INCINTL; do haveit= @@ -19128,10 +21845,10 @@ $as_echo "$LIBINTL" >&6; } fi -$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_GETTEXT 1" >>confdefs.h -$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h +printf "%s\n" "#define HAVE_DCGETTEXT 1" >>confdefs.h fi @@ -19149,16 +21866,17 @@ $as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h -{ $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 +{ 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 () +main (void) { #ifndef __cplusplus @@ -19171,7 +21889,7 @@ main () /* 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. + /* 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 */ @@ -19199,7 +21917,7 @@ main () iptr p = 0; ++p; } - { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying + { /* 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; @@ -19215,31 +21933,33 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_const=yes -else +else $as_nop ac_cv_c_const=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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 -$as_echo "$ac_cv_c_const" >&6; } +{ 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 -$as_echo "#define const /**/" >>confdefs.h +printf "%s\n" "#define const /**/" >>confdefs.h fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 -$as_echo_n "checking for working volatile... " >&6; } -if ${ac_cv_c_volatile+:} false; then : - $as_echo_n "(cached) " >&6 -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 +printf %s "checking for working volatile... " >&6; } +if test ${ac_cv_c_volatile+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ int -main () +main (void) { volatile int x; @@ -19249,34 +21969,37 @@ return !x && !y; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_c_volatile=yes -else +else $as_nop ac_cv_c_volatile=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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 -$as_echo "$ac_cv_c_volatile" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 +printf "%s\n" "$ac_cv_c_volatile" >&6; } if test $ac_cv_c_volatile = no; then -$as_echo "#define volatile /**/" >>confdefs.h +printf "%s\n" "#define volatile /**/" >>confdefs.h fi # Check whether --enable-largefile was given. -if test "${enable_largefile+set}" = set; then : +if test ${enable_largefile+y} +then : enableval=$enable_largefile; fi if test "$enable_largefile" != no; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 -$as_echo_n "checking for special C compiler options needed for large files... " >&6; } -if ${ac_cv_sys_largefile_CC+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 +printf %s "checking for special C compiler options needed for large files... " >&6; } +if test ${ac_cv_sys_largefile_CC+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_sys_largefile_CC=no if test "$GCC" != yes; then ac_save_CC=$CC @@ -19290,44 +22013,47 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : break fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam CC="$CC -n32" - if ac_fn_c_try_compile "$LINENO"; then : + if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_largefile_CC=' -n32'; break fi -rm -f core conftest.err conftest.$ac_objext +rm -f core conftest.err conftest.$ac_objext conftest.beam break done CC=$ac_save_CC rm -f conftest.$ac_ext fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 -$as_echo "$ac_cv_sys_largefile_CC" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 +printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; } if test "$ac_cv_sys_largefile_CC" != no; then CC=$CC$ac_cv_sys_largefile_CC fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 -$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } -if ${ac_cv_sys_file_offset_bits+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 +printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } +if test ${ac_cv_sys_file_offset_bits+y} +then : + printf %s "(cached) " >&6 +else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19336,22 +22062,23 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_file_offset_bits=no; break 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _FILE_OFFSET_BITS 64 @@ -19360,43 +22087,43 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_file_offset_bits=64; break 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 ac_cv_sys_file_offset_bits=unknown break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 -$as_echo "$ac_cv_sys_file_offset_bits" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 +printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; } case $ac_cv_sys_file_offset_bits in #( no | unknown) ;; *) -cat >>confdefs.h <<_ACEOF -#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits -_ACEOF +printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h ;; esac rm -rf conftest* if test $ac_cv_sys_file_offset_bits = unknown; then - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 -$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } -if ${ac_cv_sys_large_files+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 +printf %s "checking for _LARGE_FILES value needed for large files... " >&6; } +if test ${ac_cv_sys_large_files+y} +then : + printf %s "(cached) " >&6 +else $as_nop while :; do cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ @@ -19405,22 +22132,23 @@ else We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_large_files=no; break 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 cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #define _LARGE_FILES 1 @@ -19429,83 +22157,85 @@ rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext We can't simply define LARGE_OFF_T to be 9223372036854775807, since some C++ compilers masquerading as C compilers incorrectly reject 9223372036854775807. */ -#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) +#define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31)) int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 && LARGE_OFF_T % 2147483647 == 1) ? 1 : -1]; int -main () +main (void) { ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_sys_large_files=1; break 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 ac_cv_sys_large_files=unknown break done fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 -$as_echo "$ac_cv_sys_large_files" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 +printf "%s\n" "$ac_cv_sys_large_files" >&6; } case $ac_cv_sys_large_files in #( no | unknown) ;; *) -cat >>confdefs.h <<_ACEOF -#define _LARGE_FILES $ac_cv_sys_large_files -_ACEOF +printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h ;; esac rm -rf conftest* fi - - fi # Check whether --enable-shared-libs was given. -if test "${enable_shared_libs+set}" = set; then : +if test ${enable_shared_libs+y} +then : enableval=$enable_shared_libs; ac_cv_enable_shared_libs=$enableval -else +else $as_nop ac_cv_enable_shared_libs="yes" fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable disable shared library support" >&5 -$as_echo_n "checking whether to disable disable shared library support... " >&6; } -if ${ac_cv_enable_shared_libs+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to disable disable shared library support" >&5 +printf %s "checking whether to disable disable shared library support... " >&6; } +if test ${ac_cv_enable_shared_libs+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_shared_libs="yes" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_shared_libs" >&5 -$as_echo "$ac_cv_enable_shared_libs" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_shared_libs" >&5 +printf "%s\n" "$ac_cv_enable_shared_libs" >&6; } # Check whether --enable-static-executables was given. -if test "${enable_static_executables+set}" = set; then : +if test ${enable_static_executables+y} +then : enableval=$enable_static_executables; ac_cv_enable_static_executables=$enableval -else +else $as_nop ac_cv_enable_static_executables=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build static executables (binaries)" >&5 -$as_echo_n "checking whether to enable build static executables (binaries)... " >&6; } -if ${ac_cv_enable_static_executables+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable build static executables (binaries)" >&5 +printf %s "checking whether to enable build static executables (binaries)... " >&6; } +if test ${ac_cv_enable_static_executables+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_static_executables=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_static_executables" >&5 -$as_echo "$ac_cv_enable_static_executables" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_static_executables" >&5 +printf "%s\n" "$ac_cv_enable_static_executables" >&6; } - if test "x$ac_cv_enable_static_executables" != xno; then : + if test "x$ac_cv_enable_static_executables" != xno +then : STATIC_LDFLAGS="-all-static"; @@ -19518,37 +22248,41 @@ fi # Check whether --enable-winapi was given. -if test "${enable_winapi+set}" = set; then : +if test ${enable_winapi+y} +then : enableval=$enable_winapi; ac_cv_enable_winapi=$enableval -else +else $as_nop ac_cv_enable_winapi=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable WINAPI support for cross-compilation" >&5 -$as_echo_n "checking whether to enable enable WINAPI support for cross-compilation... " >&6; } -if ${ac_cv_enable_winapi+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable enable WINAPI support for cross-compilation" >&5 +printf %s "checking whether to enable enable WINAPI support for cross-compilation... " >&6; } +if test ${ac_cv_enable_winapi+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_winapi=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_winapi" >&5 -$as_echo "$ac_cv_enable_winapi" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_winapi" >&5 +printf "%s\n" "$ac_cv_enable_winapi" >&6; } - if test "x$ac_cv_enable_winapi" = xauto-detect; then : + if test "x$ac_cv_enable_winapi" = xauto-detect +then : ac_common_check_winapi_target_string="$target" - if test "x$ac_common_check_winapi_target_string" = x; then : + if test "x$ac_common_check_winapi_target_string" = x +then : ac_common_check_winapi_target_string="$host" fi case $ac_common_check_winapi_target_string in #( *mingw*) : - { $as_echo "$as_me:${as_lineno-$LINENO}: detected MinGW enabling WINAPI support for cross-compilation" >&5 -$as_echo "$as_me: detected MinGW enabling WINAPI support for cross-compilation" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected MinGW enabling WINAPI support for cross-compilation" >&5 +printf "%s\n" "$as_me: detected MinGW enabling WINAPI support for cross-compilation" >&6;} ac_cv_enable_winapi=yes ;; #( *msys*) : - { $as_echo "$as_me:${as_lineno-$LINENO}: detected MSYS enabling WINAPI support for cross-compilation" >&5 -$as_echo "$as_me: detected MSYS enabling WINAPI support for cross-compilation" >&6;} + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: detected MSYS enabling WINAPI support for cross-compilation" >&5 +printf "%s\n" "$as_me: detected MSYS enabling WINAPI support for cross-compilation" >&6;} ac_cv_enable_winapi=yes ;; #( *) : ac_cv_enable_winapi=no ;; #( @@ -19562,45 +22296,50 @@ fi # Check whether --enable-wide-character-type was given. -if test "${enable_wide_character_type+set}" = set; then : +if test ${enable_wide_character_type+y} +then : enableval=$enable_wide_character_type; ac_cv_enable_wide_character_type=$enableval -else +else $as_nop ac_cv_enable_wide_character_type=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable wide character type support" >&5 -$as_echo_n "checking whether to enable enable wide character type support... " >&6; } -if ${ac_cv_enable_wide_character_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable enable wide character type support" >&5 +printf %s "checking whether to enable enable wide character type support... " >&6; } +if test ${ac_cv_enable_wide_character_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_wide_character_type=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_wide_character_type" >&5 -$as_echo "$ac_cv_enable_wide_character_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_wide_character_type" >&5 +printf "%s\n" "$ac_cv_enable_wide_character_type" >&6; } # Check whether --enable-verbose-output was given. -if test "${enable_verbose_output+set}" = set; then : +if test ${enable_verbose_output+y} +then : enableval=$enable_verbose_output; ac_cv_enable_verbose_output=$enableval -else +else $as_nop ac_cv_enable_verbose_output=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable verbose output" >&5 -$as_echo_n "checking whether to enable enable verbose output... " >&6; } -if ${ac_cv_enable_verbose_output+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable enable verbose output" >&5 +printf %s "checking whether to enable enable verbose output... " >&6; } +if test ${ac_cv_enable_verbose_output+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_verbose_output=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_verbose_output" >&5 -$as_echo "$ac_cv_enable_verbose_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_verbose_output" >&5 +printf "%s\n" "$ac_cv_enable_verbose_output" >&6; } - if test "x$ac_cv_enable_verbose_output" != xno ; then : + if test "x$ac_cv_enable_verbose_output" != xno +then : -$as_echo "#define HAVE_VERBOSE_OUTPUT 1" >>confdefs.h +printf "%s\n" "#define HAVE_VERBOSE_OUTPUT 1" >>confdefs.h ac_cv_enable_verbose_output=yes @@ -19610,136 +22349,155 @@ fi # Check whether --enable-debug-output was given. -if test "${enable_debug_output+set}" = set; then : +if test ${enable_debug_output+y} +then : enableval=$enable_debug_output; ac_cv_enable_debug_output=$enableval -else +else $as_nop ac_cv_enable_debug_output=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable debug output" >&5 -$as_echo_n "checking whether to enable enable debug output... " >&6; } -if ${ac_cv_enable_debug_output+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable enable debug output" >&5 +printf %s "checking whether to enable enable debug output... " >&6; } +if test ${ac_cv_enable_debug_output+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_debug_output=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_debug_output" >&5 -$as_echo "$ac_cv_enable_debug_output" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_debug_output" >&5 +printf "%s\n" "$ac_cv_enable_debug_output" >&6; } - if test "x$ac_cv_enable_debug_output" != xno ; then : + if test "x$ac_cv_enable_debug_output" != xno +then : -$as_echo "#define HAVE_DEBUG_OUTPUT 1" >>confdefs.h +printf "%s\n" "#define HAVE_DEBUG_OUTPUT 1" >>confdefs.h ac_cv_enable_debug_output=yes fi -if test "x$ac_cv_enable_winapi" = xyes; then : +if test "x$ac_cv_enable_winapi" = xyes +then : ac_cv_enable_wide_character_type=yes fi - if test "x$ac_cv_enable_wide_character_type" = xyes; then : + if test "x$ac_cv_enable_wide_character_type" = xyes +then : -$as_echo "#define HAVE_WIDE_CHARACTER_TYPE 1" >>confdefs.h +printf "%s\n" "#define HAVE_WIDE_CHARACTER_TYPE 1" >>confdefs.h HAVE_WIDE_CHARACTER_TYPE=1 -else +else $as_nop HAVE_WIDE_CHARACTER_TYPE=0 fi - for ac_header in sys/types.h inttypes.h stdint.h wchar.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_types_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" +if test "x$ac_cv_header_inttypes_h" = xyes +then : + printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" +if test "x$ac_cv_header_stdint_h" = xyes +then : + printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h +fi +ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = xyes +then : + printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h - if test "x$ac_cv_header_sys_types_h" = xyes; then : +fi + + + if test "x$ac_cv_header_sys_types_h" = xyes +then : HAVE_SYS_TYPES_H=1 -else +else $as_nop HAVE_SYS_TYPES_H=0 fi - if test "x$ac_cv_header_inttypes_h" = xyes; then : + if test "x$ac_cv_header_inttypes_h" = xyes +then : HAVE_INTTYPES_H=1 -else +else $as_nop HAVE_INTTYPES_H=0 fi - if test "x$ac_cv_header_stdint_h" = xyes; then : + if test "x$ac_cv_header_stdint_h" = xyes +then : HAVE_STDINT_H=1 -else +else $as_nop HAVE_STDINT_H=0 fi - if test "x$ac_cv_header_wchar_h" = xyes; then : + if test "x$ac_cv_header_wchar_h" = xyes +then : HAVE_WCHAR_H=1 -else +else $as_nop HAVE_WCHAR_H=0 fi ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" -if test "x$ac_cv_type_mode_t" = xyes; then : +if test "x$ac_cv_type_mode_t" = xyes +then : -else +else $as_nop -cat >>confdefs.h <<_ACEOF -#define mode_t int -_ACEOF +printf "%s\n" "#define mode_t int" >>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 : +if test "x$ac_cv_type_off_t" = xyes +then : -else +else $as_nop -cat >>confdefs.h <<_ACEOF -#define off_t long int -_ACEOF +printf "%s\n" "#define off_t long int" >>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 : +if test "x$ac_cv_type_size_t" = xyes +then : -else +else $as_nop -cat >>confdefs.h <<_ACEOF -#define size_t unsigned int -_ACEOF +printf "%s\n" "#define size_t unsigned int" >>confdefs.h fi ac_fn_c_check_type "$LINENO" "size32_t" "ac_cv_type_size32_t" "$ac_includes_default" -if test "x$ac_cv_type_size32_t" = xyes; then : +if test "x$ac_cv_type_size32_t" = xyes +then : HAVE_SIZE32_T=1 -else +else $as_nop HAVE_SIZE32_T=0 @@ -19747,10 +22505,11 @@ fi ac_fn_c_check_type "$LINENO" "ssize32_t" "ac_cv_type_ssize32_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize32_t" = xyes; then : +if test "x$ac_cv_type_ssize32_t" = xyes +then : HAVE_SSIZE32_T=1 -else +else $as_nop HAVE_SSIZE32_T=0 @@ -19758,10 +22517,11 @@ fi ac_fn_c_check_type "$LINENO" "size64_t" "ac_cv_type_size64_t" "$ac_includes_default" -if test "x$ac_cv_type_size64_t" = xyes; then : +if test "x$ac_cv_type_size64_t" = xyes +then : HAVE_SIZE64_T=1 -else +else $as_nop HAVE_SIZE64_T=0 @@ -19769,10 +22529,11 @@ fi ac_fn_c_check_type "$LINENO" "ssize64_t" "ac_cv_type_ssize64_t" "$ac_includes_default" -if test "x$ac_cv_type_ssize64_t" = xyes; then : +if test "x$ac_cv_type_ssize64_t" = xyes +then : HAVE_SSIZE64_T=1 -else +else $as_nop HAVE_SSIZE64_T=0 @@ -19780,10 +22541,11 @@ fi ac_fn_c_check_type "$LINENO" "off64_t" "ac_cv_type_off64_t" "$ac_includes_default" -if test "x$ac_cv_type_off64_t" = xyes; then : +if test "x$ac_cv_type_off64_t" = xyes +then : HAVE_OFF64_T=1 -else +else $as_nop HAVE_OFF64_T=0 @@ -19791,12 +22553,14 @@ 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 : +if test "x$ac_cv_type_ssize_t" = xyes +then : fi ac_fn_c_check_type "$LINENO" "u64" "ac_cv_type_u64" "$ac_includes_default" -if test "x$ac_cv_type_u64" = xyes; then : +if test "x$ac_cv_type_u64" = xyes +then : fi @@ -19805,17 +22569,19 @@ fi # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 -$as_echo_n "checking size of int... " >&6; } -if ${ac_cv_sizeof_int+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of int" >&5 +printf %s "checking size of int... " >&6; } +if test ${ac_cv_sizeof_int+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_int" = yes; then - { { $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 77 "cannot compute sizeof (int) See \`config.log' for more details" "$LINENO" 5; } else @@ -19824,31 +22590,31 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 -$as_echo "$ac_cv_sizeof_int" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5 +printf "%s\n" "$ac_cv_sizeof_int" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_INT $ac_cv_sizeof_int -_ACEOF +printf "%s\n" "#define SIZEOF_INT $ac_cv_sizeof_int" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 -$as_echo_n "checking size of long... " >&6; } -if ${ac_cv_sizeof_long+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of long" >&5 +printf %s "checking size of long... " >&6; } +if test ${ac_cv_sizeof_long+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_long" = yes; then - { { $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 77 "cannot compute sizeof (long) See \`config.log' for more details" "$LINENO" 5; } else @@ -19857,31 +22623,31 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 -$as_echo "$ac_cv_sizeof_long" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5 +printf "%s\n" "$ac_cv_sizeof_long" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_LONG $ac_cv_sizeof_long -_ACEOF +printf "%s\n" "#define SIZEOF_LONG $ac_cv_sizeof_long" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 -$as_echo_n "checking size of off_t... " >&6; } -if ${ac_cv_sizeof_off_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 +printf %s "checking size of off_t... " >&6; } +if test ${ac_cv_sizeof_off_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_off_t" = yes; then - { { $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 77 "cannot compute sizeof (off_t) See \`config.log' for more details" "$LINENO" 5; } else @@ -19890,31 +22656,31 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 -$as_echo "$ac_cv_sizeof_off_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 +printf "%s\n" "$ac_cv_sizeof_off_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_OFF_T $ac_cv_sizeof_off_t -_ACEOF +printf "%s\n" "#define SIZEOF_OFF_T $ac_cv_sizeof_off_t" >>confdefs.h # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 -$as_echo_n "checking size of size_t... " >&6; } -if ${ac_cv_sizeof_size_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5 +printf %s "checking size of size_t... " >&6; } +if test ${ac_cv_sizeof_size_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_size_t" = yes; then - { { $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 77 "cannot compute sizeof (size_t) See \`config.log' for more details" "$LINENO" 5; } else @@ -19923,33 +22689,34 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 -$as_echo "$ac_cv_sizeof_size_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5 +printf "%s\n" "$ac_cv_sizeof_size_t" >&6; } -cat >>confdefs.h <<_ACEOF -#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t -_ACEOF +printf "%s\n" "#define SIZEOF_SIZE_T $ac_cv_sizeof_size_t" >>confdefs.h - if test "x$ac_cv_header_wchar_h" = xyes; then : + if test "x$ac_cv_header_wchar_h" = xyes +then : # The cast to long int works around a bug in the HP C Compiler # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. # This bug is HP SR number 8606223364. -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 -$as_echo_n "checking size of wchar_t... " >&6; } -if ${ac_cv_sizeof_wchar_t+:} false; then : - $as_echo_n "(cached) " >&6 -else - if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default"; then : - -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking size of wchar_t" >&5 +printf %s "checking size of wchar_t... " >&6; } +if test ${ac_cv_sizeof_wchar_t+y} +then : + printf %s "(cached) " >&6 +else $as_nop + if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (wchar_t))" "ac_cv_sizeof_wchar_t" "$ac_includes_default" +then : + +else $as_nop if test "$ac_cv_type_wchar_t" = yes; then - { { $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 77 "cannot compute sizeof (wchar_t) See \`config.log' for more details" "$LINENO" 5; } else @@ -19958,838 +22725,1945 @@ See \`config.log' for more details" "$LINENO" 5; } fi fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 -$as_echo "$ac_cv_sizeof_wchar_t" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_wchar_t" >&5 +printf "%s\n" "$ac_cv_sizeof_wchar_t" >&6; } + +printf "%s\n" "#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t" >>confdefs.h -cat >>confdefs.h <<_ACEOF -#define SIZEOF_WCHAR_T $ac_cv_sizeof_wchar_t + +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. */ + +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 +extern void ac_decl (int, char *); +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 $as_nop + ac_cv_c_undeclared_builtin_options=$ac_arg fi + break +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 + 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 "x$ac_cv_enable_winapi" = xyes +then : + ac_fn_c_check_header_compile "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" +if test "x$ac_cv_header_windows_h" = xyes +then : + printf "%s\n" "#define HAVE_WINDOWS_H 1" >>confdefs.h - if test "x$ac_cv_enable_winapi" = xyes; then : - for ac_header in windows.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "windows.h" "ac_cv_header_windows_h" "$ac_includes_default" -if test "x$ac_cv_header_windows_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WINDOWS_H 1 +fi + + + if test "x$ac_cv_header_windows_h" = xno +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 1 "Missing header: windows.h header is required to compile with winapi support +See \`config.log' for more details" "$LINENO" 5; } + +fi + +fi + + if test "x$ac_cv_enable_winapi" = xno +then : + ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" +if test "x$ac_cv_header_libintl_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h + +fi + + +fi + + ac_fn_c_check_header_compile "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" +if test "x$ac_cv_header_limits_h" = xyes +then : + printf "%s\n" "#define HAVE_LIMITS_H 1" >>confdefs.h + +fi + + + ac_fn_c_check_header_compile "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" +if test "x$ac_cv_header_stdlib_h" = xyes +then : + printf "%s\n" "#define HAVE_STDLIB_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" +if test "x$ac_cv_header_string_h" = xyes +then : + printf "%s\n" "#define HAVE_STRING_H 1" >>confdefs.h + +fi + + + ac_fn_c_check_header_compile "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default" +if test "x$ac_cv_header_wchar_h" = xyes +then : + printf "%s\n" "#define HAVE_WCHAR_H 1" >>confdefs.h + +fi +ac_fn_c_check_header_compile "$LINENO" "wctype.h" "ac_cv_header_wctype_h" "$ac_includes_default" +if test "x$ac_cv_header_wctype_h" = xyes +then : + printf "%s\n" "#define HAVE_WCTYPE_H 1" >>confdefs.h + +fi + + + ac_fn_c_check_func "$LINENO" "fclose" "ac_cv_func_fclose" +if test "x$ac_cv_func_fclose" = xyes +then : + printf "%s\n" "#define HAVE_FCLOSE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "feof" "ac_cv_func_feof" +if test "x$ac_cv_func_feof" = xyes +then : + printf "%s\n" "#define HAVE_FEOF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "fgets" "ac_cv_func_fgets" +if test "x$ac_cv_func_fgets" = xyes +then : + printf "%s\n" "#define HAVE_FGETS 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "fopen" "ac_cv_func_fopen" +if test "x$ac_cv_func_fopen" = xyes +then : + printf "%s\n" "#define HAVE_FOPEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "fread" "ac_cv_func_fread" +if test "x$ac_cv_func_fread" = xyes +then : + printf "%s\n" "#define HAVE_FREAD 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "fseeko" "ac_cv_func_fseeko" +if test "x$ac_cv_func_fseeko" = xyes +then : + printf "%s\n" "#define HAVE_FSEEKO 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "fseeko64" "ac_cv_func_fseeko64" +if test "x$ac_cv_func_fseeko64" = xyes +then : + printf "%s\n" "#define HAVE_FSEEKO64 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "fwrite" "ac_cv_func_fwrite" +if test "x$ac_cv_func_fwrite" = xyes +then : + printf "%s\n" "#define HAVE_FWRITE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "vfprintf" "ac_cv_func_vfprintf" +if test "x$ac_cv_func_vfprintf" = xyes +then : + printf "%s\n" "#define HAVE_VFPRINTF 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_fclose" != xyes +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 1 "Missing function: fclose +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_feof" != xyes +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 1 "Missing function: feof +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_fgets" != xyes +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 1 "Missing function: fgets +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_fopen" != xyes +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 1 "Missing function: fopen +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_fread" != xyes +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 1 "Missing function: fread +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_fseeko" != xyes && test "x$ac_cv_func_fseeko64" != xyes +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 1 "Missing function: fseeko and fseeko64 +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_fwrite" != xyes +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 1 "Missing function: fwrite +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_vfprintf" != xyes +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 1 "Missing function: vfprintf +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_enable_wide_character_type" != xno +then : + ac_fn_c_check_func "$LINENO" "fgetws" "ac_cv_func_fgetws" +if test "x$ac_cv_func_fgetws" = xyes +then : + printf "%s\n" "#define HAVE_FGETWS 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_fgetws" != xyes +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 1 "Missing function: fgetws +See \`config.log' for more details" "$LINENO" 5; } + +fi + +fi + + ac_fn_c_check_func "$LINENO" "free" "ac_cv_func_free" +if test "x$ac_cv_func_free" = xyes +then : + printf "%s\n" "#define HAVE_FREE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "malloc" "ac_cv_func_malloc" +if test "x$ac_cv_func_malloc" = xyes +then : + printf "%s\n" "#define HAVE_MALLOC 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "memcmp" "ac_cv_func_memcmp" +if test "x$ac_cv_func_memcmp" = xyes +then : + printf "%s\n" "#define HAVE_MEMCMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "memcpy" "ac_cv_func_memcpy" +if test "x$ac_cv_func_memcpy" = xyes +then : + printf "%s\n" "#define HAVE_MEMCPY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "memset" "ac_cv_func_memset" +if test "x$ac_cv_func_memset" = xyes +then : + printf "%s\n" "#define HAVE_MEMSET 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "realloc" "ac_cv_func_realloc" +if test "x$ac_cv_func_realloc" = xyes +then : + printf "%s\n" "#define HAVE_REALLOC 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_free" != xyes +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 1 "Missing function: free +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_malloc" != xyes +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 1 "Missing function: malloc +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_memcmp" != xyes +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 1 "Missing function: memcmp +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_memcpy" != xyes +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 1 "Missing function: memcpy +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_memset" != xyes +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 1 "Missing function: memset +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_realloc" != xyes +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 1 "Missing function: realloc +See \`config.log' for more details" "$LINENO" 5; } + +fi + + ac_fn_c_check_func "$LINENO" "memchr" "ac_cv_func_memchr" +if test "x$ac_cv_func_memchr" = xyes +then : + printf "%s\n" "#define HAVE_MEMCHR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "memrchr" "ac_cv_func_memrchr" +if test "x$ac_cv_func_memrchr" = xyes +then : + printf "%s\n" "#define HAVE_MEMRCHR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "snprintf" "ac_cv_func_snprintf" +if test "x$ac_cv_func_snprintf" = xyes +then : + printf "%s\n" "#define HAVE_SNPRINTF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "sscanf" "ac_cv_func_sscanf" +if test "x$ac_cv_func_sscanf" = xyes +then : + printf "%s\n" "#define HAVE_SSCANF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" +if test "x$ac_cv_func_strcasecmp" = xyes +then : + printf "%s\n" "#define HAVE_STRCASECMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr" +if test "x$ac_cv_func_strchr" = xyes +then : + printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strlen" "ac_cv_func_strlen" +if test "x$ac_cv_func_strlen" = xyes +then : + printf "%s\n" "#define HAVE_STRLEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strncasecmp" "ac_cv_func_strncasecmp" +if test "x$ac_cv_func_strncasecmp" = xyes +then : + printf "%s\n" "#define HAVE_STRNCASECMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strncmp" "ac_cv_func_strncmp" +if test "x$ac_cv_func_strncmp" = xyes +then : + printf "%s\n" "#define HAVE_STRNCMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strncpy" "ac_cv_func_strncpy" +if test "x$ac_cv_func_strncpy" = xyes +then : + printf "%s\n" "#define HAVE_STRNCPY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strnicmp" "ac_cv_func_strnicmp" +if test "x$ac_cv_func_strnicmp" = xyes +then : + printf "%s\n" "#define HAVE_STRNICMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strrchr" "ac_cv_func_strrchr" +if test "x$ac_cv_func_strrchr" = xyes +then : + printf "%s\n" "#define HAVE_STRRCHR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr" +if test "x$ac_cv_func_strstr" = xyes +then : + printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" +if test "x$ac_cv_func_vsnprintf" = xyes +then : + printf "%s\n" "#define HAVE_VSNPRINTF 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_memchr" != xyes && test "x$ac_cv_func_strchr" != xyes +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 1 "Missing functions: memchr and strchr +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_memcmp" != xyes && test "x$ac_cv_func_strncmp" != xyes +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 1 "Missing functions: memcmp and strncmp +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_memcpy" != xyes && test "x$ac_cv_func_strncpy" != xyes +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 1 "Missing functions: memcpy and strncpy +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_memrchr" = xyes +then : + ac_fn_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_memrchr" = xyes +then : + ac_have_decl=1 +else $as_nop + ac_have_decl=0 +fi +printf "%s\n" "#define HAVE_DECL_MEMRCHR $ac_have_decl" >>confdefs.h + + + if test "x$ac_cv_decl_memrchr" != xyes +then : + ac_cv_func_memrchr=no +fi + +fi + + if test "x$ac_cv_func_memrchr" != xyes && test "x$ac_cv_func_strrchr" != xyes +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 1 "Missing functions: strrchr and memrchr +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_snprintf" != xyes +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 1 "Missing function: snprintf +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_sscanf" != xyes +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 1 "Missing function: sscanf +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_strlen" != xyes +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 1 "Missing function: strlen +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_strcasecmp" != xyes && test "x$ac_cv_func_strncasecmp" != xyes && test "x$ac_cv_func_strnicmp" != xyes +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 1 "Missing functions: strncasecmp, strcasecmp and strnicmp +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_strstr" != xyes +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 1 "Missing function: strstr +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_vsnprintf" != xyes +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 1 "Missing function: vsnprintf +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_enable_wide_character_type" != xno +then : + ac_fn_c_check_func "$LINENO" "swprintf" "ac_cv_func_swprintf" +if test "x$ac_cv_func_swprintf" = xyes +then : + printf "%s\n" "#define HAVE_SWPRINTF 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "towlower" "ac_cv_func_towlower" +if test "x$ac_cv_func_towlower" = xyes +then : + printf "%s\n" "#define HAVE_TOWLOWER 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcscasecmp" "ac_cv_func_wcscasecmp" +if test "x$ac_cv_func_wcscasecmp" = xyes +then : + printf "%s\n" "#define HAVE_WCSCASECMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcschr" "ac_cv_func_wcschr" +if test "x$ac_cv_func_wcschr" = xyes +then : + printf "%s\n" "#define HAVE_WCSCHR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcslen" "ac_cv_func_wcslen" +if test "x$ac_cv_func_wcslen" = xyes +then : + printf "%s\n" "#define HAVE_WCSLEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcsncasecmp" "ac_cv_func_wcsncasecmp" +if test "x$ac_cv_func_wcsncasecmp" = xyes +then : + printf "%s\n" "#define HAVE_WCSNCASECMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcsncmp" "ac_cv_func_wcsncmp" +if test "x$ac_cv_func_wcsncmp" = xyes +then : + printf "%s\n" "#define HAVE_WCSNCMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcsncpy" "ac_cv_func_wcsncpy" +if test "x$ac_cv_func_wcsncpy" = xyes +then : + printf "%s\n" "#define HAVE_WCSNCPY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcsnicmp" "ac_cv_func_wcsnicmp" +if test "x$ac_cv_func_wcsnicmp" = xyes +then : + printf "%s\n" "#define HAVE_WCSNICMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcsrchr" "ac_cv_func_wcsrchr" +if test "x$ac_cv_func_wcsrchr" = xyes +then : + printf "%s\n" "#define HAVE_WCSRCHR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wcsstr" "ac_cv_func_wcsstr" +if test "x$ac_cv_func_wcsstr" = xyes +then : + printf "%s\n" "#define HAVE_WCSSTR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wmemchr" "ac_cv_func_wmemchr" +if test "x$ac_cv_func_wmemchr" = xyes +then : + printf "%s\n" "#define HAVE_WMEMCHR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wmemcmp" "ac_cv_func_wmemcmp" +if test "x$ac_cv_func_wmemcmp" = xyes +then : + printf "%s\n" "#define HAVE_WMEMCMP 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wmemcpy" "ac_cv_func_wmemcpy" +if test "x$ac_cv_func_wmemcpy" = xyes +then : + printf "%s\n" "#define HAVE_WMEMCPY 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "wmemrchr" "ac_cv_func_wmemrchr" +if test "x$ac_cv_func_wmemrchr" = xyes +then : + printf "%s\n" "#define HAVE_WMEMRCHR 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_swprintf" != xyes +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 1 "Missing function: swprintf +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_wmemchr" != xyes && test "x$ac_cv_func_wcschr" != xyes +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 1 "Missing functions: wmemchr and wcschr +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_wmemcmp" != xyes && test "x$ac_cv_func_wcsncmp" != xyes +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 1 "Missing functions: wmemcmp and wcsncmp +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_wmemcpy" != xyes && test "x$ac_cv_func_wcsncpy" != xyes +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 1 "Missing functions: wmemcpy and wcsncpy +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_wmemrchr" != xyes && test "x$ac_cv_func_wcsrchr" != xyes +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 1 "Missing functions: wmemrchr and wcsrchr +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_wcslen" != xyes +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 1 "Missing function: wcslen +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_wcsncasecmp" != xyes && test "x$ac_cv_func_wcscasecmp" != xyes && test "x$ac_cv_func_wcsnicmp" != xyes && test "x$ac_cv_func_towlower" != xyes +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 1 "Missing functions: wcsncasecmp, wcscasecmp, wcsnicmp and towlower +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_func_wcsstr" != xyes +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 1 "Missing function: wcsstr +See \`config.log' for more details" "$LINENO" 5; } + +fi + +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the conversion specifier \"%jd\"" >&5 +printf %s "checking whether printf supports the conversion specifier \"%jd\"... " >&6; } + + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -Wall -Werror" + 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 + + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main (void) +{ +printf( "%jd" ); + ; + return 0; +} _ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_cv_have_printf_jd=no +else $as_nop + ac_cv_cv_have_printf_jd=yes +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext + if test "x$ac_cv_cv_have_printf_jd" = xyes +then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main (void) +{ +printf( "%jd", (off_t) 10 ); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_cv_have_printf_jd=yes +else $as_nop + ac_cv_cv_have_printf_jd=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext + +fi + + if test "x$ac_cv_cv_have_printf_jd" = xyes +then : + if test "$cross_compiling" = yes +then : + ac_cv_cv_have_printf_jd=undetermined +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main (void) +{ +char string[ 3 ]; +if( snprintf( string, 3, "%jd", (off_t) 10 ) < 0 ) return( 1 ); +if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_run "$LINENO" +then : + ac_cv_cv_have_printf_jd=yes +else $as_nop + ac_cv_cv_have_printf_jd=no +fi +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi -done - - - if test "x$ac_cv_header_windows_h" = xno; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing header: windows.h header is required to compile with winapi support -See \`config.log' for more details" "$LINENO" 5; } 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 - if test "x$ac_cv_enable_winapi" = xno; then : - for ac_header in libintl.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default" -if test "x$ac_cv_header_libintl_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBINTL_H 1 -_ACEOF + CFLAGS="$SAVE_CFLAGS" -fi + if test "x$ac_cv_cv_have_printf_jd" = xyes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -done +printf "%s\n" "#define HAVE_PRINTF_JD 1" >>confdefs.h +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_have_printf_jd" >&5 +printf "%s\n" "$ac_cv_cv_have_printf_jd" >&6; } fi - for ac_header in limits.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default" -if test "x$ac_cv_header_limits_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIMITS_H 1 -_ACEOF -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether printf supports the conversion specifier \"%zd\"" >&5 +printf %s "checking whether printf supports the conversion specifier \"%zd\"... " >&6; } -done + SAVE_CFLAGS="$CFLAGS" + CFLAGS="$CFLAGS -Wall -Werror" + 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 - for ac_header in stdlib.h string.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main (void) +{ +printf( "%zd" ); + ; + return 0; +} _ACEOF - +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_cv_have_printf_zd=no +else $as_nop + ac_cv_cv_have_printf_zd=yes fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext -done - - - for ac_header in wchar.h wctype.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 + if test "x$ac_cv_cv_have_printf_zd" = xyes +then : + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main (void) +{ +printf( "%zd", (size_t) 10 ); + ; + return 0; +} _ACEOF - +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_cv_have_printf_zd=yes +else $as_nop + ac_cv_cv_have_printf_zd=no fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext -done - +fi - for ac_func in fclose feof fgets fopen fread fseeko fseeko64 fwrite vfprintf -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 + if test "x$ac_cv_cv_have_printf_zd" = xyes +then : + if test "$cross_compiling" = yes +then : + ac_cv_cv_have_printf_zd=undetermined +else $as_nop + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +#include +int +main (void) +{ +char string[ 3 ]; +if( snprintf( string, 3, "%zd", (size_t) 10 ) < 0 ) return( 1 ); +if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); + ; + return 0; +} _ACEOF - +if ac_fn_c_try_run "$LINENO" +then : + ac_cv_cv_have_printf_zd=yes +else $as_nop + ac_cv_cv_have_printf_zd=no fi -done - - - if test "x$ac_cv_func_fclose" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: fclose -See \`config.log' for more details" "$LINENO" 5; } - +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ + conftest.$ac_objext conftest.beam conftest.$ac_ext fi - if test "x$ac_cv_func_feof" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: feof -See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_func_fgets" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: fgets -See \`config.log' for more details" "$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 -fi + CFLAGS="$SAVE_CFLAGS" - if test "x$ac_cv_func_fopen" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: fopen -See \`config.log' for more details" "$LINENO" 5; } + if test "x$ac_cv_cv_have_printf_zd" = xyes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -fi +printf "%s\n" "#define HAVE_PRINTF_ZD 1" >>confdefs.h - if test "x$ac_cv_func_fread" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: fread -See \`config.log' for more details" "$LINENO" 5; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_have_printf_zd" >&5 +printf "%s\n" "$ac_cv_cv_have_printf_zd" >&6; } fi - if test "x$ac_cv_func_fseeko" != xyes && test "x$ac_cv_func_fseeko64" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: fseeko and fseeko64 -See \`config.log' for more details" "$LINENO" 5; } -fi - if test "x$ac_cv_func_fwrite" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: fwrite -See \`config.log' for more details" "$LINENO" 5; } -fi - if test "x$ac_cv_func_vfprintf" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: vfprintf -See \`config.log' for more details" "$LINENO" 5; } -fi - if test "x$ac_cv_enable_wide_character_type" != xno; then : - for ac_func in fgetws -do : - ac_fn_c_check_func "$LINENO" "fgetws" "ac_cv_func_fgetws" -if test "x$ac_cv_func_fgetws" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_FGETWS 1 -_ACEOF -fi -done - if test "x$ac_cv_func_fgetws" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: fgetws -See \`config.log' for more details" "$LINENO" 5; } +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 + 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_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 - +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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - for ac_func in free malloc memcmp memcpy memset realloc -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF fi +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 + 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" + 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 - - if test "x$ac_cv_func_free" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: free -See \`config.log' for more details" "$LINENO" 5; } - + ;; +esac fi - - if test "x$ac_cv_func_malloc" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: malloc -See \`config.log' for more details" "$LINENO" 5; } - +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 + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi - if test "x$ac_cv_func_memcmp" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: memcmp -See \`config.log' for more details" "$LINENO" 5; } - + if test "x$ac_pt_PKG_CONFIG" = x; then + PKG_CONFIG="" + 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 + PKG_CONFIG=$ac_pt_PKG_CONFIG + fi +else + PKG_CONFIG="$ac_cv_path_PKG_CONFIG" fi - if test "x$ac_cv_func_memcpy" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: memcpy -See \`config.log' for more details" "$LINENO" 5; } - fi - - if test "x$ac_cv_func_memset" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: memset -See \`config.log' for more details" "$LINENO" 5; } - +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 - - if test "x$ac_cv_func_realloc" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: realloc -See \`config.log' for more details" "$LINENO" 5; } - +ac_fn_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" "$ac_c_undeclared_builtin_options" "CFLAGS" +if test "x$ac_cv_have_decl_strerror_r" = xyes +then : + ac_have_decl=1 +else $as_nop + ac_have_decl=0 fi +printf "%s\n" "#define HAVE_DECL_STRERROR_R $ac_have_decl" >>confdefs.h - for ac_func in memchr memrchr snprintf sscanf strcasecmp strchr strlen strncasecmp strncmp strncpy strnicmp strrchr strstr vsnprintf -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF - -fi -done - if test "x$ac_cv_func_memchr" != xyes && test "x$ac_cv_func_strchr" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: memchr and strchr -See \`config.log' for more details" "$LINENO" 5; } +# Check whether --with-libcerror was given. +if test ${with_libcerror+y} +then : + withval=$with_libcerror; ac_cv_with_libcerror=$withval +else $as_nop + ac_cv_with_libcerror=auto-detect +fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libcerror+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_with_libcerror=auto-detect fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcerror" >&5 +printf "%s\n" "$ac_cv_with_libcerror" >&6; } - if test "x$ac_cv_func_memcmp" != xyes && test "x$ac_cv_func_strncmp" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: memcmp and strncmp + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcerror" = xno +then : + ac_cv_libcerror=no +else $as_nop + ac_cv_libcerror=check + if test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect +then : + if test -d "$ac_cv_with_libcerror" +then : + CFLAGS="$CFLAGS -I${ac_cv_with_libcerror}/include" + LDFLAGS="$LDFLAGS -L${ac_cv_with_libcerror}/lib" +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 1 "no such directory: $ac_cv_with_libcerror See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_func_memcpy" != xyes && test "x$ac_cv_func_strncpy" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: memcpy and strncpy -See \`config.log' for more details" "$LINENO" 5; } +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : -fi +pkg_failed=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror >= 20120425" >&5 +printf %s "checking for libcerror >= 20120425... " >&6; } - if test "x$ac_cv_func_memrchr" = xyes; then : - ac_fn_c_check_decl "$LINENO" "memrchr" "ac_cv_have_decl_memrchr" "$ac_includes_default" -if test "x$ac_cv_have_decl_memrchr" = xyes; then : - ac_have_decl=1 +if test -n "$libcerror_CFLAGS"; then + pkg_cv_libcerror_CFLAGS="$libcerror_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerror >= 20120425\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcerror >= 20120425") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_libcerror_CFLAGS=`$PKG_CONFIG --cflags "libcerror >= 20120425" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes else - ac_have_decl=0 + pkg_failed=yes fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_MEMRCHR $ac_have_decl -_ACEOF - - - if test "x$ac_cv_decl_memrchr" != xyes; then : - ac_cv_func_memrchr=no + else + pkg_failed=untried fi - +if test -n "$libcerror_LIBS"; then + pkg_cv_libcerror_LIBS="$libcerror_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerror >= 20120425\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcerror >= 20120425") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_libcerror_LIBS=`$PKG_CONFIG --libs "libcerror >= 20120425" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes fi - - if test "x$ac_cv_func_memrchr" != xyes && test "x$ac_cv_func_strrchr" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: strrchr and memrchr -See \`config.log' for more details" "$LINENO" 5; } - + else + pkg_failed=untried fi - if test "x$ac_cv_func_snprintf" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: snprintf -See \`config.log' for more details" "$LINENO" 5; } -fi - if test "x$ac_cv_func_sscanf" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: sscanf -See \`config.log' for more details" "$LINENO" 5; } +if test $pkg_failed = yes; then + { 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 +else + _pkg_short_errors_supported=no fi + if test $_pkg_short_errors_supported = yes; then + libcerror_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcerror >= 20120425" 2>&1` + else + libcerror_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcerror >= 20120425" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$libcerror_PKG_ERRORS" >&5 - if test "x$ac_cv_func_strlen" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: strlen -See \`config.log' for more details" "$LINENO" 5; } - + ac_cv_libcerror=check +elif test $pkg_failed = untried; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libcerror=check +else + libcerror_CFLAGS=$pkg_cv_libcerror_CFLAGS + libcerror_LIBS=$pkg_cv_libcerror_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libcerror=yes fi - if test "x$ac_cv_func_strcasecmp" != xyes && test "x$ac_cv_func_strncasecmp" != xyes && test "x$ac_cv_func_strnicmp" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: strncasecmp, strcasecmp and strnicmp -See \`config.log' for more details" "$LINENO" 5; } +fi + if test "x$ac_cv_libcerror" = xyes +then : + ac_cv_libcerror_CPPFLAGS="$pkg_cv_libcerror_CFLAGS" + ac_cv_libcerror_LIBADD="$pkg_cv_libcerror_LIBS" +fi fi - if test "x$ac_cv_func_strstr" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: strstr -See \`config.log' for more details" "$LINENO" 5; } + if test "x$ac_cv_libcerror" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libcerror.h" "ac_cv_header_libcerror_h" "$ac_includes_default" +if test "x$ac_cv_header_libcerror_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBCERROR_H 1" >>confdefs.h fi - if test "x$ac_cv_func_vsnprintf" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: vsnprintf -See \`config.log' for more details" "$LINENO" 5; } -fi + if test "x$ac_cv_header_libcerror_h" = xno +then : + ac_cv_libcerror=no +else $as_nop + ac_cv_libcerror=yes - if test "x$ac_cv_enable_wide_character_type" != xno; then : - for ac_func in swprintf towlower wcscasecmp wcschr wcslen wcsncasecmp wcsncmp wcsncpy wcsnicmp wcsrchr wcsstr wmemchr wmemcmp wmemcpy wmemrchr -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_get_version in -lcerror" >&5 +printf %s "checking for libcerror_get_version in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $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 libcerror_get_version (); +int +main (void) +{ +return libcerror_get_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_get_version=yes +else $as_nop + ac_cv_lib_cerror_libcerror_get_version=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_cerror_libcerror_get_version" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_get_version" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_get_version" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no fi -done - if test "x$ac_cv_func_swprintf" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: swprintf -See \`config.log' for more details" "$LINENO" 5; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_free in -lcerror" >&5 +printf %s "checking for libcerror_error_free in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_error_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $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 libcerror_error_free (); +int +main (void) +{ +return libcerror_error_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_error_free=yes +else $as_nop + ac_cv_lib_cerror_libcerror_error_free=no fi - - if test "x$ac_cv_func_wmemchr" != xyes && test "x$ac_cv_func_wcschr" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: wmemchr and wcschr -See \`config.log' for more details" "$LINENO" 5; } - +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - if test "x$ac_cv_func_wmemcmp" != xyes && test "x$ac_cv_func_wcsncmp" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: wmemcmp and wcsncmp -See \`config.log' for more details" "$LINENO" 5; } - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_free" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_free" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_error_free" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no fi - if test "x$ac_cv_func_wmemcpy" != xyes && test "x$ac_cv_func_wcsncpy" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: wmemcpy and wcsncpy -See \`config.log' for more details" "$LINENO" 5; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_set in -lcerror" >&5 +printf %s "checking for libcerror_error_set in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_error_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $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 libcerror_error_set (); +int +main (void) +{ +return libcerror_error_set (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_error_set=yes +else $as_nop + ac_cv_lib_cerror_libcerror_error_set=no fi - - if test "x$ac_cv_func_wmemrchr" != xyes && test "x$ac_cv_func_wcsrchr" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: wmemrchr and wcsrchr -See \`config.log' for more details" "$LINENO" 5; } - +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - if test "x$ac_cv_func_wcslen" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: wcslen -See \`config.log' for more details" "$LINENO" 5; } - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_set" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_set" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_error_set" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no fi - if test "x$ac_cv_func_wcsncasecmp" != xyes && test "x$ac_cv_func_wcscasecmp" != xyes && test "x$ac_cv_func_wcsnicmp" != xyes && test "x$ac_cv_func_towlower" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: wcsncasecmp, wcscasecmp, wcsnicmp and towlower -See \`config.log' for more details" "$LINENO" 5; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_matches in -lcerror" >&5 +printf %s "checking for libcerror_error_matches in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_error_matches+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $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 libcerror_error_matches (); +int +main (void) +{ +return libcerror_error_matches (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_error_matches=yes +else $as_nop + ac_cv_lib_cerror_libcerror_error_matches=no fi - - if test "x$ac_cv_func_wcsstr" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: wcsstr -See \`config.log' for more details" "$LINENO" 5; } - +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_cerror_libcerror_error_matches" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_matches" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_error_matches" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_fprint in -lcerror" >&5 +printf %s "checking for libcerror_error_fprint in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_error_fprint+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the conversion specifier \"%jd\"" >&5 -$as_echo_n "checking whether printf supports the conversion specifier \"%jd\"... " >&6; } +/* 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 libcerror_error_fprint (); +int +main (void) +{ +return libcerror_error_fprint (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_error_fprint=yes +else $as_nop + ac_cv_lib_cerror_libcerror_error_fprint=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_cerror_libcerror_error_fprint" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_fprint" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_error_fprint" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no +fi - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Wall -Werror" - 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 libcerror_error_sprint in -lcerror" >&5 +printf %s "checking for libcerror_error_sprint in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_error_sprint+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $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 libcerror_error_sprint (); +int +main (void) +{ +return libcerror_error_sprint (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_error_sprint=yes +else $as_nop + ac_cv_lib_cerror_libcerror_error_sprint=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_cerror_libcerror_error_sprint" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_sprint" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_error_sprint" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no +fi - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_backtrace_fprint in -lcerror" >&5 +printf %s "checking for libcerror_error_backtrace_fprint in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_error_backtrace_fprint+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + +/* 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 libcerror_error_backtrace_fprint (); int -main () +main (void) { -printf( "%jd" ); +return libcerror_error_backtrace_fprint (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_cv_have_printf_jd=no -else - ac_cv_cv_have_printf_jd=yes +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_error_backtrace_fprint=yes +else $as_nop + ac_cv_lib_cerror_libcerror_error_backtrace_fprint=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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_backtrace_fprint" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_backtrace_fprint" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_error_backtrace_fprint" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no +fi - if test "x$ac_cv_cv_have_printf_jd" = xyes; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_backtrace_sprint in -lcerror" >&5 +printf %s "checking for libcerror_error_backtrace_sprint in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_error_backtrace_sprint+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include + +/* 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 libcerror_error_backtrace_sprint (); int -main () +main (void) { -printf( "%jd", (off_t) 10 ); +return libcerror_error_backtrace_sprint (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_cv_have_printf_jd=yes -else - ac_cv_cv_have_printf_jd=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_error_backtrace_sprint=yes +else $as_nop + ac_cv_lib_cerror_libcerror_error_backtrace_sprint=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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_error_backtrace_sprint" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_error_backtrace_sprint" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_error_backtrace_sprint" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no fi - if test "x$ac_cv_cv_have_printf_jd" = xyes; then : - if test "$cross_compiling" = yes; then : - ac_cv_cv_have_printf_jd=undetermined -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcerror_system_set_error in -lcerror" >&5 +printf %s "checking for libcerror_system_set_error in -lcerror... " >&6; } +if test ${ac_cv_lib_cerror_libcerror_system_set_error+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcerror $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include + +/* 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 libcerror_system_set_error (); int -main () +main (void) { -char string[ 3 ]; -if( snprintf( string, 3, "%jd", (off_t) 10 ) < 0 ) return( 1 ); -if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); +return libcerror_system_set_error (); ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_cv_have_printf_jd=yes -else - ac_cv_cv_have_printf_jd=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cerror_libcerror_system_set_error=yes +else $as_nop + ac_cv_lib_cerror_libcerror_system_set_error=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_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cerror_libcerror_system_set_error" >&5 +printf "%s\n" "$ac_cv_lib_cerror_libcerror_system_set_error" >&6; } +if test "x$ac_cv_lib_cerror_libcerror_system_set_error" = xyes +then : + ac_cv_libcerror_dummy=yes +else $as_nop + ac_cv_libcerror=no fi + ac_cv_libcerror_LIBADD="-lcerror" 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 +fi + if test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect && test "x$ac_cv_libcerror" != xyes +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 1 "unable to find supported libcerror in directory: $ac_cv_with_libcerror +See \`config.log' for more details" "$LINENO" 5; } - CFLAGS="$SAVE_CFLAGS" +fi + +fi - if test "x$ac_cv_cv_have_printf_jd" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + if test "x$ac_cv_libcerror" = xyes +then : -$as_echo "#define HAVE_PRINTF_JD 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCERROR 1" >>confdefs.h -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_have_printf_jd" >&5 -$as_echo "$ac_cv_cv_have_printf_jd" >&6; } fi + if test "x$ac_cv_libcerror" = xyes +then : + HAVE_LIBCERROR=1 + +else $as_nop + HAVE_LIBCERROR=0 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf supports the conversion specifier \"%zd\"" >&5 -$as_echo_n "checking whether printf supports the conversion specifier \"%zd\"... " >&6; } - SAVE_CFLAGS="$CFLAGS" - CFLAGS="$CFLAGS -Wall -Werror" - 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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -printf( "%zd" ); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_cv_have_printf_zd=no -else - ac_cv_cv_have_printf_zd=yes + if test "x$ac_cv_libcerror" != xyes +then : + ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes +then : + printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h + fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext +ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" +if test "x$ac_cv_header_varargs_h" = xyes +then : + printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h - if test "x$ac_cv_cv_have_printf_zd" = xyes; then : - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -int -main () -{ -printf( "%zd", (size_t) 10 ); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_cv_have_printf_zd=yes -else - ac_cv_cv_have_printf_zd=no fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext + + + if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes +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 1 "Missing headers: stdarg.h and varargs.h +See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_cv_have_printf_zd" = xyes; then : - if test "$cross_compiling" = yes; then : - ac_cv_cv_have_printf_zd=undetermined -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + if test "x$ac_cv_enable_wide_character_type" != xno +then : + ac_fn_c_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs" +if test "x$ac_cv_func_wcstombs" = xyes +then : + printf "%s\n" "#define HAVE_WCSTOMBS 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_wcstombs" != xyes +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 1 "Missing function: wcstombs +See \`config.log' for more details" "$LINENO" 5; } + +fi + +fi + + +if test $ac_cv_have_decl_strerror_r = yes; then + # For backward compatibility's sake, define HAVE_STRERROR_R. + # (We used to run AC_CHECK_FUNCS_ONCE for strerror_r, as well + # as AC_CHECK_DECLS_ONCE.) + +printf "%s\n" "#define HAVE_STRERROR_R 1" >>confdefs.h + +fi + +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 +printf %s "checking whether strerror_r returns char *... " >&6; } +if test ${ac_cv_func_strerror_r_char_p+y} +then : + printf %s "(cached) " >&6 +else $as_nop + + ac_cv_func_strerror_r_char_p=no + if test $ac_cv_have_decl_strerror_r = yes; then + cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include -#include +#include int -main () +main (void) { -char string[ 3 ]; -if( snprintf( string, 3, "%zd", (size_t) 10 ) < 0 ) return( 1 ); -if( ( string[ 0 ] != '1' ) || ( string[ 1 ] != '0' ) ) return( 1 ); + + char buf[100]; + char x = *strerror_r (0, buf, sizeof buf); + char *p = strerror_r (0, buf, sizeof buf); + return !p || x; + ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_cv_have_printf_zd=yes -else - ac_cv_cv_have_printf_zd=no -fi -rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ - conftest.$ac_objext conftest.beam conftest.$ac_ext +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_func_strerror_r_char_p=yes fi +rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext + fi fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 +printf "%s\n" "$ac_cv_func_strerror_r_char_p" >&6; } +if test $ac_cv_func_strerror_r_char_p = yes; then - 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 - - CFLAGS="$SAVE_CFLAGS" +printf "%s\n" "#define STRERROR_R_CHAR_P 1" >>confdefs.h - if test "x$ac_cv_cv_have_printf_zd" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } +fi -$as_echo "#define HAVE_PRINTF_ZD 1" >>confdefs.h -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_have_printf_zd" >&5 -$as_echo "$ac_cv_cv_have_printf_zd" >&6; } + if test "x$ac_cv_have_decl_strerror_r" != xyes +then : + ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" +if test "x$ac_cv_func_strerror" = xyes +then : + printf "%s\n" "#define HAVE_STRERROR 1" >>confdefs.h fi + if test "x$ac_cv_func_strerror" != xyes +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 1 "Missing functions: strerror_r and strerror +See \`config.log' for more details" "$LINENO" 5; } + +fi +fi + ac_cv_libcerror_CPPFLAGS="-I../libcerror"; + ac_cv_libcerror_LIBADD="../libcerror/libcerror.la"; + ac_cv_libcerror=local +printf "%s\n" "#define HAVE_LOCAL_LIBCERROR 1" >>confdefs.h + HAVE_LOCAL_LIBCERROR=1 -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$ac_cv_libcerror" = xlocal; then + HAVE_LOCAL_LIBCERROR_TRUE= + HAVE_LOCAL_LIBCERROR_FALSE='#' else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } + HAVE_LOCAL_LIBCERROR_TRUE='#' + HAVE_LOCAL_LIBCERROR_FALSE= fi + if test "x$ac_cv_libcerror_CPPFLAGS" != "x" +then : + LIBCERROR_CPPFLAGS=$ac_cv_libcerror_CPPFLAGS + 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 -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 -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_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 - break 2 - fi -done - done -IFS=$as_save_IFS + if test "x$ac_cv_libcerror_LIBADD" != "x" +then : + LIBCERROR_LIBADD=$ac_cv_libcerror_LIBADD + - ;; -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; } + + if test "x$ac_cv_libcerror" = xyes +then : + ax_libcerror_pc_libs_private=-lcerror + + 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 -else - PKG_CONFIG="$ac_cv_path_PKG_CONFIG" + if test "x$ac_cv_libcerror" = xyes +then : + ax_libcerror_spec_requires=libcerror + + ax_libcerror_spec_build_requires=libcerror-devel + + fi + + + # Check whether --enable-multi-threading-support was given. +if test ${enable_multi_threading_support+y} +then : + enableval=$enable_multi_threading_support; ac_cv_enable_multi_threading_support=$enableval +else $as_nop + ac_cv_enable_multi_threading_support=yes 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 + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable enable multi-threading support" >&5 +printf %s "checking whether to enable enable multi-threading support... " >&6; } +if test ${ac_cv_enable_multi_threading_support+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_enable_multi_threading_support=yes fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_multi_threading_support" >&5 +printf "%s\n" "$ac_cv_enable_multi_threading_support" >&6; } -# Check whether --with-libcerror was given. -if test "${with_libcerror+set}" = set; then : - withval=$with_libcerror; ac_cv_with_libcerror=$withval -else - ac_cv_with_libcerror=auto-detect +# Check whether --with-libcthreads was given. +if test ${with_libcthreads+y} +then : + withval=$with_libcthreads; ac_cv_with_libcthreads=$withval +else $as_nop + ac_cv_with_libcthreads=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libcerror in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libcerror+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_with_libcerror=auto-detect + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libcthreads+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_with_libcthreads=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcerror" >&5 -$as_echo "$ac_cv_with_libcerror" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcthreads" >&5 +printf "%s\n" "$ac_cv_with_libcthreads" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcerror" = xno; then : - ac_cv_libcerror=no -else - ac_cv_libcerror=check - if test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect; then : - if test -d "$ac_cv_with_libcerror"; then : - CFLAGS="$CFLAGS -I${ac_cv_with_libcerror}/include" - LDFLAGS="$LDFLAGS -L${ac_cv_with_libcerror}/lib" -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 1 "no such directory: $ac_cv_with_libcerror + if test "x$ac_cv_enable_multi_threading_support" = xno +then : + ac_cv_libcthreads="no" + ac_cv_libcthreads_multi_threading="no" +else $as_nop + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcthreads" = xno +then : + ac_cv_libcthreads=no +else $as_nop + ac_cv_libcthreads=check + if test "x$ac_cv_with_libcthreads" != x && test "x$ac_cv_with_libcthreads" != xauto-detect +then : + if test -d "$ac_cv_with_libcthreads" +then : + CFLAGS="$CFLAGS -I${ac_cv_with_libcthreads}/include" + LDFLAGS="$LDFLAGS -L${ac_cv_with_libcthreads}/lib" +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 1 "no such directory: $ac_cv_with_libcthreads See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror" >&5 -$as_echo_n "checking for libcerror... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads >= 20160404" >&5 +printf %s "checking for libcthreads >= 20160404... " >&6; } -if test -n "$libcerror_CFLAGS"; then - pkg_cv_libcerror_CFLAGS="$libcerror_CFLAGS" +if test -n "$libcthreads_CFLAGS"; then + pkg_cv_libcthreads_CFLAGS="$libcthreads_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerror >= 20120425\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcerror >= 20120425") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcthreads >= 20160404\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcthreads >= 20160404") 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_libcerror_CFLAGS=`$PKG_CONFIG --cflags "libcerror >= 20120425" 2>/dev/null` + pkg_cv_libcthreads_CFLAGS=`$PKG_CONFIG --cflags "libcthreads >= 20160404" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -20797,16 +24671,16 @@ fi else pkg_failed=untried fi -if test -n "$libcerror_LIBS"; then - pkg_cv_libcerror_LIBS="$libcerror_LIBS" +if test -n "$libcthreads_LIBS"; then + pkg_cv_libcthreads_LIBS="$libcthreads_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcerror >= 20120425\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcerror >= 20120425") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcthreads >= 20160404\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcthreads >= 20160404") 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_libcerror_LIBS=`$PKG_CONFIG --libs "libcerror >= 20120425" 2>/dev/null` + pkg_cv_libcthreads_LIBS=`$PKG_CONFIG --libs "libcthreads >= 20160404" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -20818,8 +24692,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 @@ -20827,837 +24701,987 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libcerror_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcerror >= 20120425" 2>&1` + libcthreads_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcthreads >= 20160404" 2>&1` else - libcerror_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcerror >= 20120425" 2>&1` + libcthreads_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcthreads >= 20160404" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libcerror_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libcthreads_PKG_ERRORS" >&5 - ac_cv_libcerror=check + ac_cv_libcthreads=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libcerror=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libcthreads=check else - libcerror_CFLAGS=$pkg_cv_libcerror_CFLAGS - libcerror_LIBS=$pkg_cv_libcerror_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libcerror=yes + libcthreads_CFLAGS=$pkg_cv_libcthreads_CFLAGS + libcthreads_LIBS=$pkg_cv_libcthreads_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libcthreads=yes fi fi - if test "x$ac_cv_libcerror" = xyes; then : - ac_cv_libcerror_CPPFLAGS="$pkg_cv_libcerror_CFLAGS" - ac_cv_libcerror_LIBADD="$pkg_cv_libcerror_LIBS" + if test "x$ac_cv_libcthreads" = xyes +then : + ac_cv_libcthreads_CPPFLAGS="$pkg_cv_libcthreads_CFLAGS" + ac_cv_libcthreads_LIBADD="$pkg_cv_libcthreads_LIBS" fi fi - if test "x$ac_cv_libcerror" = xcheck; then : - for ac_header in libcerror.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libcerror.h" "ac_cv_header_libcerror_h" "$ac_includes_default" -if test "x$ac_cv_header_libcerror_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCERROR_H 1 + if test "x$ac_cv_libcthreads" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libcthreads.h" "ac_cv_header_libcthreads_h" "$ac_includes_default" +if test "x$ac_cv_header_libcthreads_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBCTHREADS_H 1" >>confdefs.h + +fi + + + if test "x$ac_cv_header_libcthreads_h" = xno +then : + ac_cv_libcthreads=no +else $as_nop + ac_cv_libcthreads=yes + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_get_version in -lcthreads" >&5 +printf %s "checking for libcthreads_get_version in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $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 libcthreads_get_version (); +int +main (void) +{ +return libcthreads_get_version (); + ; + return 0; +} _ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_get_version=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_get_version=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_cthreads_libcthreads_get_version" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_get_version" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_get_version" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_create in -lcthreads" >&5 +printf %s "checking for libcthreads_thread_create in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_thread_create+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $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 libcthreads_thread_create (); +int +main (void) +{ +return libcthreads_thread_create (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_thread_create=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_thread_create=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_cthreads_libcthreads_thread_create" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_thread_create" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_thread_create" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi -done + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_join in -lcthreads" >&5 +printf %s "checking for libcthreads_thread_join in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_thread_join+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $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 libcthreads_thread_join (); +int +main (void) +{ +return libcthreads_thread_join (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_thread_join=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_thread_join=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_cthreads_libcthreads_thread_join" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_thread_join" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_thread_join" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no +fi - if test "x$ac_cv_header_libcerror_h" = xno; then : - ac_cv_libcerror=no -else - ac_cv_libcerror=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_get_version in -lcerror" >&5 -$as_echo_n "checking for libcerror_get_version in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_attributes_initialize in -lcthreads" >&5 +printf %s "checking for libcthreads_thread_attributes_initialize in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $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 libcthreads_thread_attributes_initialize (); +int +main (void) +{ +return libcthreads_thread_attributes_initialize (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize=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_cthreads_libcthreads_thread_attributes_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_attributes_free in -lcthreads" >&5 +printf %s "checking for libcthreads_thread_attributes_free in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_thread_attributes_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $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 libcthreads_thread_attributes_free (); +int +main (void) +{ +return libcthreads_thread_attributes_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_thread_attributes_free=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_thread_attributes_free=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_cthreads_libcthreads_thread_attributes_free" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_thread_attributes_free" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_thread_attributes_free" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_initialize in -lcthreads" >&5 +printf %s "checking for libcthreads_condition_initialize in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_condition_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $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 libcthreads_condition_initialize (); +int +main (void) +{ +return libcthreads_condition_initialize (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_condition_initialize=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_condition_initialize=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_cthreads_libcthreads_condition_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_condition_initialize" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_condition_initialize" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_free in -lcthreads" >&5 +printf %s "checking for libcthreads_condition_free in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_condition_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $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 libcthreads_condition_free (); +int +main (void) +{ +return libcthreads_condition_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_condition_free=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_condition_free=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_cthreads_libcthreads_condition_free" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_condition_free" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_condition_free" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_broadcast in -lcthreads" >&5 +printf %s "checking for libcthreads_condition_broadcast in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_condition_broadcast+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $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 libcthreads_condition_broadcast (); +int +main (void) +{ +return libcthreads_condition_broadcast (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_condition_broadcast=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_condition_broadcast=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_cthreads_libcthreads_condition_broadcast" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_condition_broadcast" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_condition_broadcast" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_signal in -lcthreads" >&5 +printf %s "checking for libcthreads_condition_signal in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_condition_signal+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_get_version (); +char libcthreads_condition_signal (); int -main () +main (void) { -return libcerror_get_version (); +return libcthreads_condition_signal (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_get_version=yes -else - ac_cv_lib_cerror_libcerror_get_version=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_condition_signal=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_condition_signal=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_cerror_libcerror_get_version" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_get_version" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_get_version" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_condition_signal" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_condition_signal" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_condition_signal" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_free in -lcerror" >&5 -$as_echo_n "checking for libcerror_error_free in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_error_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_wait in -lcthreads" >&5 +printf %s "checking for libcthreads_condition_wait in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_condition_wait+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_error_free (); +char libcthreads_condition_wait (); int -main () +main (void) { -return libcerror_error_free (); +return libcthreads_condition_wait (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_error_free=yes -else - ac_cv_lib_cerror_libcerror_error_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_condition_wait=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_condition_wait=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_cerror_libcerror_error_free" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_error_free" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_error_free" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_condition_wait" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_condition_wait" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_condition_wait" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_set in -lcerror" >&5 -$as_echo_n "checking for libcerror_error_set in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_error_set+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_initialize in -lcthreads" >&5 +printf %s "checking for libcthreads_lock_initialize in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_lock_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_error_set (); +char libcthreads_lock_initialize (); int -main () +main (void) { -return libcerror_error_set (); +return libcthreads_lock_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_error_set=yes -else - ac_cv_lib_cerror_libcerror_error_set=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_lock_initialize=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_lock_initialize=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_cerror_libcerror_error_set" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_error_set" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_error_set" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_lock_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_lock_initialize" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_lock_initialize" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_matches in -lcerror" >&5 -$as_echo_n "checking for libcerror_error_matches in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_error_matches+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_free in -lcthreads" >&5 +printf %s "checking for libcthreads_lock_free in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_lock_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_error_matches (); +char libcthreads_lock_free (); int -main () +main (void) { -return libcerror_error_matches (); +return libcthreads_lock_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_error_matches=yes -else - ac_cv_lib_cerror_libcerror_error_matches=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_lock_free=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_lock_free=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_cerror_libcerror_error_matches" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_error_matches" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_error_matches" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_lock_free" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_lock_free" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_lock_free" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_fprint in -lcerror" >&5 -$as_echo_n "checking for libcerror_error_fprint in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_error_fprint+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_grab in -lcthreads" >&5 +printf %s "checking for libcthreads_lock_grab in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_lock_grab+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_error_fprint (); +char libcthreads_lock_grab (); int -main () +main (void) { -return libcerror_error_fprint (); +return libcthreads_lock_grab (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_error_fprint=yes -else - ac_cv_lib_cerror_libcerror_error_fprint=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_lock_grab=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_lock_grab=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_cerror_libcerror_error_fprint" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_error_fprint" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_error_fprint" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_lock_grab" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_lock_grab" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_lock_grab" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_sprint in -lcerror" >&5 -$as_echo_n "checking for libcerror_error_sprint in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_error_sprint+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_release in -lcthreads" >&5 +printf %s "checking for libcthreads_lock_release in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_lock_release+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_error_sprint (); +char libcthreads_lock_release (); int -main () +main (void) { -return libcerror_error_sprint (); +return libcthreads_lock_release (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_error_sprint=yes -else - ac_cv_lib_cerror_libcerror_error_sprint=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_lock_release=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_lock_release=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_cerror_libcerror_error_sprint" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_error_sprint" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_error_sprint" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_lock_release" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_lock_release" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_lock_release" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_backtrace_fprint in -lcerror" >&5 -$as_echo_n "checking for libcerror_error_backtrace_fprint in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_error_backtrace_fprint+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_initialize in -lcthreads" >&5 +printf %s "checking for libcthreads_mutex_initialize in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_mutex_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_error_backtrace_fprint (); +char libcthreads_mutex_initialize (); int -main () +main (void) { -return libcerror_error_backtrace_fprint (); +return libcthreads_mutex_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_error_backtrace_fprint=yes -else - ac_cv_lib_cerror_libcerror_error_backtrace_fprint=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_mutex_initialize=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_mutex_initialize=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_cerror_libcerror_error_backtrace_fprint" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_error_backtrace_fprint" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_error_backtrace_fprint" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_mutex_initialize" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_mutex_initialize" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_error_backtrace_sprint in -lcerror" >&5 -$as_echo_n "checking for libcerror_error_backtrace_sprint in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_error_backtrace_sprint+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_free in -lcthreads" >&5 +printf %s "checking for libcthreads_mutex_free in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_mutex_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_error_backtrace_sprint (); +char libcthreads_mutex_free (); int -main () +main (void) { -return libcerror_error_backtrace_sprint (); +return libcthreads_mutex_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_error_backtrace_sprint=yes -else - ac_cv_lib_cerror_libcerror_error_backtrace_sprint=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_mutex_free=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_mutex_free=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_cerror_libcerror_error_backtrace_sprint" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_error_backtrace_sprint" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_error_backtrace_sprint" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_free" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_mutex_free" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_mutex_free" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcerror_system_set_error in -lcerror" >&5 -$as_echo_n "checking for libcerror_system_set_error in -lcerror... " >&6; } -if ${ac_cv_lib_cerror_libcerror_system_set_error+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_grab in -lcthreads" >&5 +printf %s "checking for libcthreads_mutex_grab in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_mutex_grab+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcerror $LIBS" +LIBS="-lcthreads $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 libcerror_system_set_error (); +char libcthreads_mutex_grab (); int -main () +main (void) { -return libcerror_system_set_error (); +return libcthreads_mutex_grab (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cerror_libcerror_system_set_error=yes -else - ac_cv_lib_cerror_libcerror_system_set_error=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_mutex_grab=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_mutex_grab=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_cerror_libcerror_system_set_error" >&5 -$as_echo "$ac_cv_lib_cerror_libcerror_system_set_error" >&6; } -if test "x$ac_cv_lib_cerror_libcerror_system_set_error" = xyes; then : - ac_cv_libcerror_dummy=yes -else - ac_cv_libcerror=no -fi - - - ac_cv_libcerror_LIBADD="-lcerror" -fi - -fi - if test "x$ac_cv_with_libcerror" != x && test "x$ac_cv_with_libcerror" != xauto-detect && test "x$ac_cv_libcerror" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "unable to find supported libcerror in directory: $ac_cv_with_libcerror -See \`config.log' for more details" "$LINENO" 5; } - -fi - -fi - - if test "x$ac_cv_libcerror" = xyes; then : - -$as_echo "#define HAVE_LIBCERROR 1" >>confdefs.h - - -fi - - if test "x$ac_cv_libcerror" = xyes; then : - HAVE_LIBCERROR=1 - -else - HAVE_LIBCERROR=0 - - -fi - - - if test "x$ac_cv_libcerror" != xyes; then : - for ac_header in stdarg.h varargs.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - -fi - -done - - - if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing headers: stdarg.h and varargs.h -See \`config.log' for more details" "$LINENO" 5; } - -fi - - if test "x$ac_cv_enable_wide_character_type" != xno; then : - for ac_func in wcstombs -do : - ac_fn_c_check_func "$LINENO" "wcstombs" "ac_cv_func_wcstombs" -if test "x$ac_cv_func_wcstombs" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_WCSTOMBS 1 -_ACEOF - -fi -done - - - if test "x$ac_cv_func_wcstombs" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: wcstombs -See \`config.log' for more details" "$LINENO" 5; } - -fi - -fi - - ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default" -if test "x$ac_cv_have_decl_strerror_r" = xyes; then : - ac_have_decl=1 -else - ac_have_decl=0 -fi - -cat >>confdefs.h <<_ACEOF -#define HAVE_DECL_STRERROR_R $ac_have_decl -_ACEOF - -for ac_func in strerror_r -do : - ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r" -if test "x$ac_cv_func_strerror_r" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRERROR_R 1 -_ACEOF - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_grab" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_mutex_grab" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_mutex_grab" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi -done - -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5 -$as_echo_n "checking whether strerror_r returns char *... " >&6; } -if ${ac_cv_func_strerror_r_char_p+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_func_strerror_r_char_p=no - if test $ac_cv_have_decl_strerror_r = yes; then - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_try_grab in -lcthreads" >&5 +printf %s "checking for libcthreads_mutex_try_grab in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_mutex_try_grab+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default + +/* 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 libcthreads_mutex_try_grab (); int -main () +main (void) { - - char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - char *p = strerror_r (0, buf, sizeof buf); - return !p || x; - +return libcthreads_mutex_try_grab (); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_func_strerror_r_char_p=yes +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_mutex_try_grab=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_mutex_try_grab=no fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - else - # strerror_r is not declared. Choose between - # systems that have relatively inaccessible declarations for the - # function. BeOS and DEC UNIX 4.0 fall in this category, but the - # former has a strerror_r that returns char*, while the latter - # has a strerror_r that returns `int'. - # This test should segfault on the DEC system. - if test "$cross_compiling" = yes; then : - : -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext +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_cthreads_libcthreads_mutex_try_grab" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_mutex_try_grab" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_mutex_try_grab" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_release in -lcthreads" >&5 +printf %s "checking for libcthreads_mutex_release in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_mutex_release+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -$ac_includes_default - extern char *strerror_r (); + +/* 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 libcthreads_mutex_release (); int -main () +main (void) { -char buf[100]; - char x = *strerror_r (0, buf, sizeof buf); - return ! isalpha (x); +return libcthreads_mutex_release (); ; return 0; } _ACEOF -if ac_fn_c_try_run "$LINENO"; then : - ac_cv_func_strerror_r_char_p=yes +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_mutex_release=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_mutex_release=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_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - fi - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_mutex_release" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_mutex_release" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_mutex_release" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5 -$as_echo "$ac_cv_func_strerror_r_char_p" >&6; } -if test $ac_cv_func_strerror_r_char_p = yes; then -$as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h - -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_initialize in -lcthreads" >&5 +printf %s "checking for libcthreads_read_write_lock_initialize in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "x$ac_cv_have_decl_strerror_r" != xyes; then : - for ac_func in strerror -do : - ac_fn_c_check_func "$LINENO" "strerror" "ac_cv_func_strerror" -if test "x$ac_cv_func_strerror" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_STRERROR 1 +/* 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 libcthreads_read_write_lock_initialize (); +int +main (void) +{ +return libcthreads_read_write_lock_initialize (); + ; + return 0; +} _ACEOF - -fi -done - - - if test "x$ac_cv_func_strerror" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing functions: strerror_r and strerror -See \`config.log' for more details" "$LINENO" 5; } - -fi - -fi - - ac_cv_libcerror_CPPFLAGS="-I../libcerror"; - ac_cv_libcerror_LIBADD="../libcerror/libcerror.la"; - - ac_cv_libcerror=local - - - -$as_echo "#define HAVE_LOCAL_LIBCERROR 1" >>confdefs.h - - HAVE_LOCAL_LIBCERROR=1 - - -fi - - if test "x$ac_cv_libcerror" = xlocal; then - HAVE_LOCAL_LIBCERROR_TRUE= - HAVE_LOCAL_LIBCERROR_FALSE='#' -else - HAVE_LOCAL_LIBCERROR_TRUE='#' - HAVE_LOCAL_LIBCERROR_FALSE= -fi - - if test "x$ac_cv_libcerror_CPPFLAGS" != "x"; then : - LIBCERROR_CPPFLAGS=$ac_cv_libcerror_CPPFLAGS - - -fi - if test "x$ac_cv_libcerror_LIBADD" != "x"; then : - LIBCERROR_LIBADD=$ac_cv_libcerror_LIBADD - - -fi - - if test "x$ac_cv_libcerror" = xyes; then : - ax_libcerror_pc_libs_private=-lcerror - - -fi - - if test "x$ac_cv_libcerror" = xyes; then : - ax_libcerror_spec_requires=libcerror - - ax_libcerror_spec_build_requires=libcerror-devel - - -fi - - - - # Check whether --enable-multi-threading-support was given. -if test "${enable_multi_threading_support+set}" = set; then : - enableval=$enable_multi_threading_support; ac_cv_enable_multi_threading_support=$enableval -else - ac_cv_enable_multi_threading_support=yes -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable enable multi-threading support" >&5 -$as_echo_n "checking whether to enable enable multi-threading support... " >&6; } -if ${ac_cv_enable_multi_threading_support+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_enable_multi_threading_support=yes -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_multi_threading_support" >&5 -$as_echo "$ac_cv_enable_multi_threading_support" >&6; } - - -# Check whether --with-libcthreads was given. -if test "${with_libcthreads+set}" = set; then : - withval=$with_libcthreads; ac_cv_with_libcthreads=$withval -else - ac_cv_with_libcthreads=auto-detect +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libcthreads in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libcthreads+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_with_libcthreads=auto-detect +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_with_libcthreads" >&5 -$as_echo "$ac_cv_with_libcthreads" >&6; } - - if test "x$ac_cv_enable_multi_threading_support" = xno; then : - ac_cv_libcthreads="no" - ac_cv_libcthreads_multi_threading="no" -else - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcthreads" = xno; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop ac_cv_libcthreads=no -else - ac_cv_libcthreads=check - if test "x$ac_cv_with_libcthreads" != x && test "x$ac_cv_with_libcthreads" != xauto-detect; then : - if test -d "$ac_cv_with_libcthreads"; then : - CFLAGS="$CFLAGS -I${ac_cv_with_libcthreads}/include" - LDFLAGS="$LDFLAGS -L${ac_cv_with_libcthreads}/lib" -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 1 "no such directory: $ac_cv_with_libcthreads -See \`config.log' for more details" "$LINENO" 5; } - -fi - -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads" >&5 -$as_echo_n "checking for libcthreads... " >&6; } - -if test -n "$libcthreads_CFLAGS"; then - pkg_cv_libcthreads_CFLAGS="$libcthreads_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcthreads >= 20160404\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcthreads >= 20160404") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libcthreads_CFLAGS=`$PKG_CONFIG --cflags "libcthreads >= 20160404" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$libcthreads_LIBS"; then - pkg_cv_libcthreads_LIBS="$libcthreads_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcthreads >= 20160404\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcthreads >= 20160404") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libcthreads_LIBS=`$PKG_CONFIG --libs "libcthreads >= 20160404" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_free in -lcthreads" >&5 +printf %s "checking for libcthreads_read_write_lock_free in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_read_write_lock_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - libcthreads_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcthreads >= 20160404" 2>&1` - else - libcthreads_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcthreads >= 20160404" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$libcthreads_PKG_ERRORS" >&5 - - ac_cv_libcthreads=check -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libcthreads=check -else - libcthreads_CFLAGS=$pkg_cv_libcthreads_CFLAGS - libcthreads_LIBS=$pkg_cv_libcthreads_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libcthreads=yes +/* 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 libcthreads_read_write_lock_free (); +int +main (void) +{ +return libcthreads_read_write_lock_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_read_write_lock_free=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_read_write_lock_free=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 - if test "x$ac_cv_libcthreads" = xyes; then : - ac_cv_libcthreads_CPPFLAGS="$pkg_cv_libcthreads_CFLAGS" - ac_cv_libcthreads_LIBADD="$pkg_cv_libcthreads_LIBS" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_free" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_read_write_lock_free" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_free" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop + ac_cv_libcthreads=no fi -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_grab_for_read in -lcthreads" >&5 +printf %s "checking for libcthreads_read_write_lock_grab_for_read in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcthreads $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "x$ac_cv_libcthreads" = xcheck; then : - for ac_header in libcthreads.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libcthreads.h" "ac_cv_header_libcthreads_h" "$ac_includes_default" -if test "x$ac_cv_header_libcthreads_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCTHREADS_H 1 +/* 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 libcthreads_read_write_lock_grab_for_read (); +int +main (void) +{ +return libcthreads_read_write_lock_grab_for_read (); + ; + return 0; +} _ACEOF - +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read=no fi - -done - - - if test "x$ac_cv_header_libcthreads_h" = xno; then : +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_cthreads_libcthreads_read_write_lock_grab_for_read" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read" = xyes +then : + ac_cv_libcthreads_dummy=yes +else $as_nop ac_cv_libcthreads=no -else - ac_cv_libcthreads=yes +fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_get_version in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_get_version in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_grab_for_write in -lcthreads" >&5 +printf %s "checking for libcthreads_read_write_lock_grab_for_write in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21666,41 +25690,40 @@ 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 libcthreads_get_version (); +char libcthreads_read_write_lock_grab_for_write (); int -main () +main (void) { -return libcthreads_get_version (); +return libcthreads_read_write_lock_grab_for_write (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_get_version=yes -else - ac_cv_lib_cthreads_libcthreads_get_version=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write=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_cthreads_libcthreads_get_version" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_get_version" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_create in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_thread_create in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_thread_create+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_release_for_read in -lcthreads" >&5 +printf %s "checking for libcthreads_read_write_lock_release_for_read in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21709,40 +25732,40 @@ 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 libcthreads_thread_create (); +char libcthreads_read_write_lock_release_for_read (); int -main () +main (void) { -return libcthreads_thread_create (); +return libcthreads_read_write_lock_release_for_read (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_thread_create=yes -else - ac_cv_lib_cthreads_libcthreads_thread_create=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read=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_cthreads_libcthreads_thread_create" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_thread_create" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_thread_create" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_join in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_thread_join in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_thread_join+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_release_for_write in -lcthreads" >&5 +printf %s "checking for libcthreads_read_write_lock_release_for_write in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21751,41 +25774,41 @@ 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 libcthreads_thread_join (); +char libcthreads_read_write_lock_release_for_write (); int -main () +main (void) { -return libcthreads_thread_join (); +return libcthreads_read_write_lock_release_for_write (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_thread_join=yes -else - ac_cv_lib_cthreads_libcthreads_thread_join=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write=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_cthreads_libcthreads_thread_join" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_thread_join" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_thread_join" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_attributes_initialize in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_thread_attributes_initialize in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_initialize in -lcthreads" >&5 +printf %s "checking for libcthreads_queue_initialize in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_queue_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21794,40 +25817,40 @@ 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 libcthreads_thread_attributes_initialize (); +char libcthreads_queue_initialize (); int -main () +main (void) { -return libcthreads_thread_attributes_initialize (); +return libcthreads_queue_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize=yes -else - ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_queue_initialize=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_queue_initialize=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_cthreads_libcthreads_thread_attributes_initialize" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_thread_attributes_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_queue_initialize" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_queue_initialize" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_attributes_free in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_thread_attributes_free in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_thread_attributes_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_free in -lcthreads" >&5 +printf %s "checking for libcthreads_queue_free in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_queue_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21836,41 +25859,40 @@ 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 libcthreads_thread_attributes_free (); +char libcthreads_queue_free (); int -main () +main (void) { -return libcthreads_thread_attributes_free (); +return libcthreads_queue_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_thread_attributes_free=yes -else - ac_cv_lib_cthreads_libcthreads_thread_attributes_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_queue_free=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_queue_free=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_cthreads_libcthreads_thread_attributes_free" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_thread_attributes_free" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_thread_attributes_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_free" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_queue_free" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_queue_free" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_initialize in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_condition_initialize in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_condition_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_type_pop in -lcthreads" >&5 +printf %s "checking for libcthreads_queue_type_pop in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_queue_type_pop+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21879,40 +25901,40 @@ 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 libcthreads_condition_initialize (); +char libcthreads_queue_type_pop (); int -main () +main (void) { -return libcthreads_condition_initialize (); +return libcthreads_queue_type_pop (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_condition_initialize=yes -else - ac_cv_lib_cthreads_libcthreads_condition_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_queue_type_pop=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_queue_type_pop=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_cthreads_libcthreads_condition_initialize" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_condition_initialize" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_condition_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_type_pop" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_queue_type_pop" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_queue_type_pop" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_free in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_condition_free in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_condition_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_pop in -lcthreads" >&5 +printf %s "checking for libcthreads_queue_pop in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_queue_pop+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21921,40 +25943,40 @@ 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 libcthreads_condition_free (); +char libcthreads_queue_pop (); int -main () +main (void) { -return libcthreads_condition_free (); +return libcthreads_queue_pop (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_condition_free=yes -else - ac_cv_lib_cthreads_libcthreads_condition_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_queue_pop=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_queue_pop=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_cthreads_libcthreads_condition_free" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_condition_free" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_condition_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_pop" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_queue_pop" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_queue_pop" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_broadcast in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_condition_broadcast in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_condition_broadcast+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_try_push in -lcthreads" >&5 +printf %s "checking for libcthreads_queue_try_push in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_queue_try_push+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -21963,40 +25985,40 @@ 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 libcthreads_condition_broadcast (); +char libcthreads_queue_try_push (); int -main () +main (void) { -return libcthreads_condition_broadcast (); +return libcthreads_queue_try_push (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_condition_broadcast=yes -else - ac_cv_lib_cthreads_libcthreads_condition_broadcast=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_queue_try_push=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_queue_try_push=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_cthreads_libcthreads_condition_broadcast" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_condition_broadcast" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_condition_broadcast" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_try_push" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_queue_try_push" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_queue_try_push" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_signal in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_condition_signal in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_condition_signal+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_push in -lcthreads" >&5 +printf %s "checking for libcthreads_queue_push in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_queue_push+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22005,40 +26027,40 @@ 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 libcthreads_condition_signal (); +char libcthreads_queue_push (); int -main () +main (void) { -return libcthreads_condition_signal (); +return libcthreads_queue_push (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_condition_signal=yes -else - ac_cv_lib_cthreads_libcthreads_condition_signal=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_queue_push=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_queue_push=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_cthreads_libcthreads_condition_signal" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_condition_signal" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_condition_signal" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_push" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_queue_push" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_queue_push" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_condition_wait in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_condition_wait in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_condition_wait+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_push_sorted in -lcthreads" >&5 +printf %s "checking for libcthreads_queue_push_sorted in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_queue_push_sorted+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22047,41 +26069,41 @@ 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 libcthreads_condition_wait (); +char libcthreads_queue_push_sorted (); int -main () +main (void) { -return libcthreads_condition_wait (); +return libcthreads_queue_push_sorted (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_condition_wait=yes -else - ac_cv_lib_cthreads_libcthreads_condition_wait=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_queue_push_sorted=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_queue_push_sorted=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_cthreads_libcthreads_condition_wait" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_condition_wait" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_condition_wait" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_queue_push_sorted" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_queue_push_sorted" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_queue_push_sorted" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_initialize in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_lock_initialize in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_lock_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_create in -lcthreads" >&5 +printf %s "checking for libcthreads_thread_pool_create in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_thread_pool_create+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22090,40 +26112,40 @@ 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 libcthreads_lock_initialize (); +char libcthreads_thread_pool_create (); int -main () +main (void) { -return libcthreads_lock_initialize (); +return libcthreads_thread_pool_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_lock_initialize=yes -else - ac_cv_lib_cthreads_libcthreads_lock_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_thread_pool_create=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_thread_pool_create=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_cthreads_libcthreads_lock_initialize" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_lock_initialize" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_lock_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_pool_create" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_thread_pool_create" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_create" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_free in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_lock_free in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_lock_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_push in -lcthreads" >&5 +printf %s "checking for libcthreads_thread_pool_push in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_thread_pool_push+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22132,40 +26154,40 @@ 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 libcthreads_lock_free (); +char libcthreads_thread_pool_push (); int -main () +main (void) { -return libcthreads_lock_free (); +return libcthreads_thread_pool_push (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_lock_free=yes -else - ac_cv_lib_cthreads_libcthreads_lock_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_thread_pool_push=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_thread_pool_push=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_cthreads_libcthreads_lock_free" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_lock_free" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_lock_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_pool_push" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_thread_pool_push" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_push" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_grab in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_lock_grab in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_lock_grab+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_push_sorted in -lcthreads" >&5 +printf %s "checking for libcthreads_thread_pool_push_sorted in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22174,40 +26196,40 @@ 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 libcthreads_lock_grab (); +char libcthreads_thread_pool_push_sorted (); int -main () +main (void) { -return libcthreads_lock_grab (); +return libcthreads_thread_pool_push_sorted (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_lock_grab=yes -else - ac_cv_lib_cthreads_libcthreads_lock_grab=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted=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_cthreads_libcthreads_lock_grab" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_lock_grab" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_lock_grab" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_lock_release in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_lock_release in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_lock_release+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_join in -lcthreads" >&5 +printf %s "checking for libcthreads_thread_pool_join in -lcthreads... " >&6; } +if test ${ac_cv_lib_cthreads_libcthreads_thread_pool_join+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcthreads $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -22216,2068 +26238,2257 @@ 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 libcthreads_lock_release (); +char libcthreads_thread_pool_join (); int -main () +main (void) { -return libcthreads_lock_release (); +return libcthreads_thread_pool_join (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_lock_release=yes -else - ac_cv_lib_cthreads_libcthreads_lock_release=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cthreads_libcthreads_thread_pool_join=yes +else $as_nop + ac_cv_lib_cthreads_libcthreads_thread_pool_join=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_cthreads_libcthreads_lock_release" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_lock_release" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_lock_release" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cthreads_libcthreads_thread_pool_join" >&5 +printf "%s\n" "$ac_cv_lib_cthreads_libcthreads_thread_pool_join" >&6; } +if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_join" = xyes +then : ac_cv_libcthreads_dummy=yes -else +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_initialize in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_mutex_initialize in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_mutex_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + ac_cv_libcthreads_LIBADD="-lcthreads" +fi + +fi + + if test "x$ac_cv_with_libcthreads" != x && test "x$ac_cv_with_libcthreads" != xauto-detect && test "x$ac_cv_libcthreads" != xyes +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 1 "unable to find supported libcthreads in directory: $ac_cv_with_libcthreads +See \`config.log' for more details" "$LINENO" 5; } + +fi + +fi + + if test "x$ac_cv_libcthreads" = xyes +then : + +printf "%s\n" "#define HAVE_LIBCTHREADS 1" >>confdefs.h + + +fi + + if test "x$ac_cv_libcthreads" = xyes +then : + ac_cv_libcthreads_multi_threading=libcthreads +else $as_nop + ac_cv_libcthreads_multi_threading=no +fi + + if test "x$ac_cv_libcthreads" = xyes +then : + HAVE_LIBCTHREADS=1 + +else $as_nop + HAVE_LIBCTHREADS=0 + + +fi + + + if test "x$ac_cv_libcthreads" != xyes +then : + if test "x$ac_cv_enable_winapi" = xno +then : + + +# Check whether --with-pthread was given. +if test ${with_pthread+y} +then : + withval=$with_pthread; ac_cv_with_pthread=$withval +else $as_nop + ac_cv_with_pthread=auto-detect +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for pthread in includedir and libdir or in the specified DIR, or no if not to use pthread" >&5 +printf %s "checking whether to use search for pthread in includedir and libdir or in the specified DIR, or no if not to use pthread... " >&6; } +if test ${ac_cv_with_pthread+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_with_pthread=auto-detect +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pthread" >&5 +printf "%s\n" "$ac_cv_with_pthread" >&6; } + + if test "x$ac_cv_with_pthread" != x && test "x$ac_cv_with_pthread" != xno && test "x$ac_cv_with_pthread" != xauto-detect +then : + if test -d "$ac_cv_with_pthread" +then : + CFLAGS="$CFLAGS -I${ac_cv_with_pthread}/include" + LDFLAGS="$LDFLAGS -L${ac_cv_with_pthread}/lib" +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: no such directory: $ac_cv_with_pthread" >&5 +printf "%s\n" "$as_me: WARNING: no such directory: $ac_cv_with_pthread" >&2;} + +fi + +fi + + if test "x$ac_cv_with_pthread" = xno +then : + ac_cv_pthread=no +else $as_nop + ac_fn_c_check_header_compile "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" +if test "x$ac_cv_header_pthread_h" = xyes +then : + printf "%s\n" "#define HAVE_PTHREAD_H 1" >>confdefs.h + +fi + + + if test "x$ac_cv_header_pthread_h" = xno +then : + ac_cv_pthread=no +else $as_nop + ac_cv_pthread=pthread + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 +printf %s "checking for pthread_create in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_create+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_mutex_initialize (); +char pthread_create (); int -main () +main (void) { -return libcthreads_mutex_initialize (); +return pthread_create (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_mutex_initialize=yes -else - ac_cv_lib_cthreads_libcthreads_mutex_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_create=yes +else $as_nop + ac_cv_lib_pthread_pthread_create=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_cthreads_libcthreads_mutex_initialize" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_initialize" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_mutex_initialize" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_create" >&6; } +if test "x$ac_cv_lib_pthread_pthread_create" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_free in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_mutex_free in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_mutex_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5 +printf %s "checking for pthread_exit in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_exit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_mutex_free (); +char pthread_exit (); int -main () +main (void) { -return libcthreads_mutex_free (); +return pthread_exit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_mutex_free=yes -else - ac_cv_lib_cthreads_libcthreads_mutex_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_exit=yes +else $as_nop + ac_cv_lib_pthread_pthread_exit=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_cthreads_libcthreads_mutex_free" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_free" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_mutex_free" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_exit" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_exit" >&6; } +if test "x$ac_cv_lib_pthread_pthread_exit" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_grab in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_mutex_grab in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_mutex_grab+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5 +printf %s "checking for pthread_join in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_join+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_mutex_grab (); +char pthread_join (); int -main () +main (void) { -return libcthreads_mutex_grab (); +return pthread_join (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_mutex_grab=yes -else - ac_cv_lib_cthreads_libcthreads_mutex_grab=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_join=yes +else $as_nop + ac_cv_lib_pthread_pthread_join=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_cthreads_libcthreads_mutex_grab" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_grab" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_mutex_grab" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_join" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_join" >&6; } +if test "x$ac_cv_lib_pthread_pthread_join" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_try_grab in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_mutex_try_grab in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_mutex_try_grab+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_init in -lpthread" >&5 +printf %s "checking for pthread_cond_init in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_cond_init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_mutex_try_grab (); +char pthread_cond_init (); int -main () +main (void) { -return libcthreads_mutex_try_grab (); +return pthread_cond_init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_mutex_try_grab=yes -else - ac_cv_lib_cthreads_libcthreads_mutex_try_grab=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_cond_init=yes +else $as_nop + ac_cv_lib_pthread_pthread_cond_init=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_cthreads_libcthreads_mutex_try_grab" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_try_grab" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_mutex_try_grab" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_init" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_cond_init" >&6; } +if test "x$ac_cv_lib_pthread_pthread_cond_init" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_mutex_release in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_mutex_release in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_mutex_release+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_destroy in -lpthread" >&5 +printf %s "checking for pthread_cond_destroy in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_cond_destroy+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_mutex_release (); +char pthread_cond_destroy (); int -main () +main (void) { -return libcthreads_mutex_release (); +return pthread_cond_destroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_mutex_release=yes -else - ac_cv_lib_cthreads_libcthreads_mutex_release=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_cond_destroy=yes +else $as_nop + ac_cv_lib_pthread_pthread_cond_destroy=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_cthreads_libcthreads_mutex_release" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_mutex_release" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_mutex_release" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_destroy" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_cond_destroy" >&6; } +if test "x$ac_cv_lib_pthread_pthread_cond_destroy" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_broadcast in -lpthread" >&5 +printf %s "checking for pthread_cond_broadcast in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_cond_broadcast+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_initialize in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_read_write_lock_initialize in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else +/* 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_cond_broadcast (); +int +main (void) +{ +return pthread_cond_broadcast (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_cond_broadcast=yes +else $as_nop + ac_cv_lib_pthread_pthread_cond_broadcast=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_pthread_pthread_cond_broadcast" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_cond_broadcast" >&6; } +if test "x$ac_cv_lib_pthread_pthread_cond_broadcast" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_signal in -lpthread" >&5 +printf %s "checking for pthread_cond_signal in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_cond_signal+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_read_write_lock_initialize (); +char pthread_cond_signal (); int -main () +main (void) { -return libcthreads_read_write_lock_initialize (); +return pthread_cond_signal (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize=yes -else - ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_cond_signal=yes +else $as_nop + ac_cv_lib_pthread_pthread_cond_signal=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_cthreads_libcthreads_read_write_lock_initialize" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_initialize" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_signal" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_cond_signal" >&6; } +if test "x$ac_cv_lib_pthread_pthread_cond_signal" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_free in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_read_write_lock_free in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_wait in -lpthread" >&5 +printf %s "checking for pthread_cond_wait in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_cond_wait+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_read_write_lock_free (); +char pthread_cond_wait (); int -main () +main (void) { -return libcthreads_read_write_lock_free (); +return pthread_cond_wait (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_read_write_lock_free=yes -else - ac_cv_lib_cthreads_libcthreads_read_write_lock_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_cond_wait=yes +else $as_nop + ac_cv_lib_pthread_pthread_cond_wait=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_cthreads_libcthreads_read_write_lock_free" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_free" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_free" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_cond_wait" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_cond_wait" >&6; } +if test "x$ac_cv_lib_pthread_pthread_cond_wait" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_grab_for_read in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_read_write_lock_grab_for_read in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 +printf %s "checking for pthread_mutex_init in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_mutex_init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_read_write_lock_grab_for_read (); +char pthread_mutex_init (); int -main () +main (void) { -return libcthreads_read_write_lock_grab_for_read (); +return pthread_mutex_init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read=yes -else - ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_mutex_init=yes +else $as_nop + ac_cv_lib_pthread_pthread_mutex_init=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_cthreads_libcthreads_read_write_lock_grab_for_read" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_read" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } +if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_grab_for_write in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_read_write_lock_grab_for_write in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_destroy in -lpthread" >&5 +printf %s "checking for pthread_mutex_destroy in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_mutex_destroy+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_read_write_lock_grab_for_write (); +char pthread_mutex_destroy (); int -main () +main (void) { -return libcthreads_read_write_lock_grab_for_write (); +return pthread_mutex_destroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write=yes -else - ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_mutex_destroy=yes +else $as_nop + ac_cv_lib_pthread_pthread_mutex_destroy=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_cthreads_libcthreads_read_write_lock_grab_for_write" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_grab_for_write" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_destroy" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_destroy" >&6; } +if test "x$ac_cv_lib_pthread_pthread_mutex_destroy" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_release_for_read in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_read_write_lock_release_for_read in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 +printf %s "checking for pthread_mutex_lock in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_mutex_lock+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_read_write_lock_release_for_read (); +char pthread_mutex_lock (); int -main () +main (void) { -return libcthreads_read_write_lock_release_for_read (); +return pthread_mutex_lock (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read=yes -else - ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_mutex_lock=yes +else $as_nop + ac_cv_lib_pthread_pthread_mutex_lock=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_pthread_pthread_mutex_lock" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } +if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_trylock in -lpthread" >&5 +printf %s "checking for pthread_mutex_trylock in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_mutex_trylock+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lpthread $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 pthread_mutex_trylock (); +int +main (void) +{ +return pthread_mutex_trylock (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_mutex_trylock=yes +else $as_nop + ac_cv_lib_pthread_pthread_mutex_trylock=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_cthreads_libcthreads_read_write_lock_release_for_read" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_read" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_trylock" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_trylock" >&6; } +if test "x$ac_cv_lib_pthread_pthread_mutex_trylock" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_read_write_lock_release_for_write in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_read_write_lock_release_for_write in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_unlock in -lpthread" >&5 +printf %s "checking for pthread_mutex_unlock in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_mutex_unlock+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_read_write_lock_release_for_write (); +char pthread_mutex_unlock (); int -main () +main (void) { -return libcthreads_read_write_lock_release_for_write (); +return pthread_mutex_unlock (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write=yes -else - ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_mutex_unlock=yes +else $as_nop + ac_cv_lib_pthread_pthread_mutex_unlock=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_cthreads_libcthreads_read_write_lock_release_for_write" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_read_write_lock_release_for_write" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_unlock" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_mutex_unlock" >&6; } +if test "x$ac_cv_lib_pthread_pthread_mutex_unlock" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_initialize in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_queue_initialize in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_queue_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lpthread" >&5 +printf %s "checking for pthread_rwlock_init in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_rwlock_init+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_queue_initialize (); +char pthread_rwlock_init (); int -main () +main (void) { -return libcthreads_queue_initialize (); +return pthread_rwlock_init (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_queue_initialize=yes -else - ac_cv_lib_cthreads_libcthreads_queue_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_rwlock_init=yes +else $as_nop + ac_cv_lib_pthread_pthread_rwlock_init=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_cthreads_libcthreads_queue_initialize" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_queue_initialize" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_queue_initialize" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_init" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_rwlock_init" >&6; } +if test "x$ac_cv_lib_pthread_pthread_rwlock_init" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_free in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_queue_free in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_queue_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy in -lpthread" >&5 +printf %s "checking for pthread_rwlock_destroy in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_rwlock_destroy+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_queue_free (); +char pthread_rwlock_destroy (); int -main () +main (void) { -return libcthreads_queue_free (); +return pthread_rwlock_destroy (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_queue_free=yes -else - ac_cv_lib_cthreads_libcthreads_queue_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_rwlock_destroy=yes +else $as_nop + ac_cv_lib_pthread_pthread_rwlock_destroy=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_cthreads_libcthreads_queue_free" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_queue_free" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_queue_free" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_destroy" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_rwlock_destroy" >&6; } +if test "x$ac_cv_lib_pthread_pthread_rwlock_destroy" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_type_pop in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_queue_type_pop in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_queue_type_pop+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_rdlock in -lpthread" >&5 +printf %s "checking for pthread_rwlock_rdlock in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_rwlock_rdlock+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_queue_type_pop (); +char pthread_rwlock_rdlock (); int -main () +main (void) { -return libcthreads_queue_type_pop (); +return pthread_rwlock_rdlock (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_queue_type_pop=yes -else - ac_cv_lib_cthreads_libcthreads_queue_type_pop=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_rwlock_rdlock=yes +else $as_nop + ac_cv_lib_pthread_pthread_rwlock_rdlock=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_cthreads_libcthreads_queue_type_pop" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_queue_type_pop" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_queue_type_pop" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_rdlock" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_rwlock_rdlock" >&6; } +if test "x$ac_cv_lib_pthread_pthread_rwlock_rdlock" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_pop in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_queue_pop in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_queue_pop+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_wrlock in -lpthread" >&5 +printf %s "checking for pthread_rwlock_wrlock in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_rwlock_wrlock+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_queue_pop (); +char pthread_rwlock_wrlock (); int -main () +main (void) { -return libcthreads_queue_pop (); +return pthread_rwlock_wrlock (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_queue_pop=yes -else - ac_cv_lib_cthreads_libcthreads_queue_pop=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_rwlock_wrlock=yes +else $as_nop + ac_cv_lib_pthread_pthread_rwlock_wrlock=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_cthreads_libcthreads_queue_pop" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_queue_pop" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_queue_pop" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_wrlock" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_rwlock_wrlock" >&6; } +if test "x$ac_cv_lib_pthread_pthread_rwlock_wrlock" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_try_push in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_queue_try_push in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_queue_try_push+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_unlock in -lpthread" >&5 +printf %s "checking for pthread_rwlock_unlock in -lpthread... " >&6; } +if test ${ac_cv_lib_pthread_pthread_rwlock_unlock+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lpthread $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 libcthreads_queue_try_push (); +char pthread_rwlock_unlock (); int -main () +main (void) { -return libcthreads_queue_try_push (); +return pthread_rwlock_unlock (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_queue_try_push=yes -else - ac_cv_lib_cthreads_libcthreads_queue_try_push=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_pthread_pthread_rwlock_unlock=yes +else $as_nop + ac_cv_lib_pthread_pthread_rwlock_unlock=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_cthreads_libcthreads_queue_try_push" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_queue_try_push" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_queue_try_push" = xyes; then : - ac_cv_libcthreads_dummy=yes -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_rwlock_unlock" >&5 +printf "%s\n" "$ac_cv_lib_pthread_pthread_rwlock_unlock" >&6; } +if test "x$ac_cv_lib_pthread_pthread_rwlock_unlock" = xyes +then : + ac_pthread_dummy=yes +else $as_nop + ac_cv_pthread=no +fi + + + ac_cv_pthread_LIBADD="-lpthread"; + +fi + +fi + + if test "x$ac_cv_pthread" = xpthread +then : + +printf "%s\n" "#define HAVE_PTHREAD 1" >>confdefs.h + + +fi + + if test "x$ac_cv_pthread" != xno +then : + HAVE_PTHREAD=1 + +else $as_nop + HAVE_PTHREAD=0 + + +fi + + + if test "x$ac_cv_pthread_CPPFLAGS" != "x" +then : + PTHREAD_CPPFLAGS=$ac_cv_pthread_CPPFLAGS + + +fi + if test "x$ac_cv_pthread_LIBADD" != "x" +then : + PTHREAD_LIBADD=$ac_cv_pthread_LIBADD + + +fi + + if test "x$ac_cv_pthread" = xpthread +then : + ax_pthread_pc_libs_private=-lpthread + + +fi + + ac_cv_libcthreads_multi_threading=$ac_cv_pthread +else $as_nop + ac_cv_libcthreads_multi_threading="winapi" +fi + + if test "x$ac_cv_libcthreads_multi_threading" != xno +then : + ac_cv_libcthreads_CPPFLAGS="-I../libcthreads"; + ac_cv_libcthreads_LIBADD="../libcthreads/libcthreads.la"; + + ac_cv_libcthreads=local +else $as_nop ac_cv_libcthreads=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_push in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_queue_push in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_queue_push+:} false; then : - $as_echo_n "(cached) " >&6 + + +printf "%s\n" "#define HAVE_LOCAL_LIBCTHREADS 1" >>confdefs.h + + HAVE_LOCAL_LIBCTHREADS=1 + + +fi + +fi + + if test "x$ac_cv_libcthreads" = xlocal; then + HAVE_LOCAL_LIBCTHREADS_TRUE= + HAVE_LOCAL_LIBCTHREADS_FALSE='#' +else + HAVE_LOCAL_LIBCTHREADS_TRUE='#' + HAVE_LOCAL_LIBCTHREADS_FALSE= +fi + + if test "x$ac_cv_libcthreads_CPPFLAGS" != "x" +then : + LIBCTHREADS_CPPFLAGS=$ac_cv_libcthreads_CPPFLAGS + + +fi + if test "x$ac_cv_libcthreads_LIBADD" != "x" +then : + LIBCTHREADS_LIBADD=$ac_cv_libcthreads_LIBADD + + +fi + + if test "x$ac_cv_libcthreads" != xno +then : + +printf "%s\n" "#define HAVE_MULTI_THREAD_SUPPORT 1" >>confdefs.h + + HAVE_MULTI_THREAD_SUPPORT=1 + +else $as_nop + HAVE_MULTI_THREAD_SUPPORT=0 + + +fi + + if test "x$ac_cv_libcthreads" = xyes +then : + ax_libcthreads_pc_libs_private=-lcthreads + + +fi + + if test "x$ac_cv_libcthreads" = xyes +then : + ax_libcthreads_spec_requires=libcthreads + + ax_libcthreads_spec_build_requires=libcthreads-devel + + +fi + + + + +# Check whether --with-libcdata was given. +if test ${with_libcdata+y} +then : + withval=$with_libcdata; ac_cv_with_libcdata=$withval +else $as_nop + ac_cv_with_libcdata=auto-detect +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libcdata+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_with_libcdata=auto-detect +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcdata" >&5 +printf "%s\n" "$ac_cv_with_libcdata" >&6; } + + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcdata" = xno +then : + ac_cv_libcdata=no +else $as_nop + ac_cv_libcdata=check + if test "x$ac_cv_with_libcdata" != x && test "x$ac_cv_with_libcdata" != xauto-detect +then : + if test -d "$ac_cv_with_libcdata" +then : + CFLAGS="$CFLAGS -I${ac_cv_with_libcdata}/include" + LDFLAGS="$LDFLAGS -L${ac_cv_with_libcdata}/lib" +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 1 "no such directory: $ac_cv_with_libcdata +See \`config.log' for more details" "$LINENO" 5; } + +fi + +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : + +pkg_failed=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata >= 20230108" >&5 +printf %s "checking for libcdata >= 20230108... " >&6; } + +if test -n "$libcdata_CFLAGS"; then + pkg_cv_libcdata_CFLAGS="$libcdata_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdata >= 20230108\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcdata >= 20230108") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_libcdata_CFLAGS=`$PKG_CONFIG --cflags "libcdata >= 20230108" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$libcdata_LIBS"; then + pkg_cv_libcdata_LIBS="$libcdata_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdata >= 20230108\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcdata >= 20230108") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_libcdata_LIBS=`$PKG_CONFIG --libs "libcdata >= 20230108" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi + + + +if test $pkg_failed = yes; then + { 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 +else + _pkg_short_errors_supported=no +fi + if test $_pkg_short_errors_supported = yes; then + libcdata_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcdata >= 20230108" 2>&1` + else + libcdata_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcdata >= 20230108" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$libcdata_PKG_ERRORS" >&5 + + ac_cv_libcdata=check +elif test $pkg_failed = untried; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libcdata=check else + libcdata_CFLAGS=$pkg_cv_libcdata_CFLAGS + libcdata_LIBS=$pkg_cv_libcdata_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libcdata=yes +fi + +fi + if test "x$ac_cv_libcdata" = xyes +then : + ac_cv_libcdata_CPPFLAGS="$pkg_cv_libcdata_CFLAGS" + ac_cv_libcdata_LIBADD="$pkg_cv_libcdata_LIBS" +fi + +fi + + if test "x$ac_cv_libcdata" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libcdata.h" "ac_cv_header_libcdata_h" "$ac_includes_default" +if test "x$ac_cv_header_libcdata_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBCDATA_H 1" >>confdefs.h + +fi + + + if test "x$ac_cv_header_libcdata_h" = xno +then : + ac_cv_libcdata=no +else $as_nop + ac_cv_libcdata=yes + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_get_version in -lcdata" >&5 +printf %s "checking for libcdata_get_version in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lcdata $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 libcthreads_queue_push (); +char libcdata_get_version (); int -main () +main (void) { -return libcthreads_queue_push (); +return libcdata_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_queue_push=yes -else - ac_cv_lib_cthreads_libcthreads_queue_push=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_get_version=yes +else $as_nop + ac_cv_lib_cdata_libcdata_get_version=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_cthreads_libcthreads_queue_push" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_queue_push" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_queue_push" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_get_version" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_get_version" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_get_version" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_queue_push_sorted in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_queue_push_sorted in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_queue_push_sorted+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_initialize in -lcdata" >&5 +printf %s "checking for libcdata_array_initialize in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lcdata $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 libcthreads_queue_push_sorted (); +char libcdata_array_initialize (); int -main () +main (void) { -return libcthreads_queue_push_sorted (); +return libcdata_array_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_queue_push_sorted=yes -else - ac_cv_lib_cthreads_libcthreads_queue_push_sorted=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_initialize=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_initialize=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_cthreads_libcthreads_queue_push_sorted" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_queue_push_sorted" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_queue_push_sorted" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_initialize" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_initialize" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_create in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_thread_pool_create in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_thread_pool_create+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_free in -lcdata" >&5 +printf %s "checking for libcdata_array_free in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lcdata $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 libcthreads_thread_pool_create (); +char libcdata_array_free (); int -main () +main (void) { -return libcthreads_thread_pool_create (); +return libcdata_array_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_thread_pool_create=yes -else - ac_cv_lib_cthreads_libcthreads_thread_pool_create=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_free=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_free=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_cthreads_libcthreads_thread_pool_create" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_thread_pool_create" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_create" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_free" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_free" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_free" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_push in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_thread_pool_push in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_thread_pool_push+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_empty in -lcdata" >&5 +printf %s "checking for libcdata_array_empty in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_empty+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lcdata $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 libcthreads_thread_pool_push (); +char libcdata_array_empty (); int -main () +main (void) { -return libcthreads_thread_pool_push (); +return libcdata_array_empty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_thread_pool_push=yes -else - ac_cv_lib_cthreads_libcthreads_thread_pool_push=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_empty=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_empty=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_cthreads_libcthreads_thread_pool_push" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_thread_pool_push" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_push" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_empty" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_empty" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_empty" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_push_sorted in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_thread_pool_push_sorted in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_clone in -lcdata" >&5 +printf %s "checking for libcdata_array_clone in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lcdata $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 libcthreads_thread_pool_push_sorted (); +char libcdata_array_clone (); int -main () +main (void) { -return libcthreads_thread_pool_push_sorted (); +return libcdata_array_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted=yes -else - ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_clone=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_clone=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_cthreads_libcthreads_thread_pool_push_sorted" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_push_sorted" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_clone" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_clone" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_clone" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcthreads_thread_pool_join in -lcthreads" >&5 -$as_echo_n "checking for libcthreads_thread_pool_join in -lcthreads... " >&6; } -if ${ac_cv_lib_cthreads_libcthreads_thread_pool_join+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_resize in -lcdata" >&5 +printf %s "checking for libcdata_array_resize in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_resize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcthreads $LIBS" +LIBS="-lcdata $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 libcthreads_thread_pool_join (); +char libcdata_array_resize (); int -main () +main (void) { -return libcthreads_thread_pool_join (); +return libcdata_array_resize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cthreads_libcthreads_thread_pool_join=yes -else - ac_cv_lib_cthreads_libcthreads_thread_pool_join=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_resize=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_resize=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_cthreads_libcthreads_thread_pool_join" >&5 -$as_echo "$ac_cv_lib_cthreads_libcthreads_thread_pool_join" >&6; } -if test "x$ac_cv_lib_cthreads_libcthreads_thread_pool_join" = xyes; then : - ac_cv_libcthreads_dummy=yes -else - ac_cv_libcthreads=no -fi - - - ac_cv_libcthreads_LIBADD="-lcthreads" -fi - -fi - - if test "x$ac_cv_with_libcthreads" != x && test "x$ac_cv_with_libcthreads" != xauto-detect && test "x$ac_cv_libcthreads" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "unable to find supported libcthreads in directory: $ac_cv_with_libcthreads -See \`config.log' for more details" "$LINENO" 5; } - -fi - -fi - - if test "x$ac_cv_libcthreads" = xyes; then : - -$as_echo "#define HAVE_LIBCTHREADS 1" >>confdefs.h - - -fi - - if test "x$ac_cv_libcthreads" = xyes; then : - ac_cv_libcthreads_multi_threading=libcthreads -else - ac_cv_libcthreads_multi_threading=no -fi - - if test "x$ac_cv_libcthreads" = xyes; then : - HAVE_LIBCTHREADS=1 - -else - HAVE_LIBCTHREADS=0 - - -fi - - - if test "x$ac_cv_libcthreads" != xyes; then : - if test "x$ac_cv_enable_winapi" = xno; then : - - -# Check whether --with-pthread was given. -if test "${with_pthread+set}" = set; then : - withval=$with_pthread; ac_cv_with_pthread=$withval -else - ac_cv_with_pthread=auto-detect -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for pthread in includedir and libdir or in the specified DIR, or no if not to use pthread" >&5 -$as_echo_n "checking whether to use search for pthread in includedir and libdir or in the specified DIR, or no if not to use pthread... " >&6; } -if ${ac_cv_with_pthread+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_with_pthread=auto-detect -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pthread" >&5 -$as_echo "$ac_cv_with_pthread" >&6; } - - if test "x$ac_cv_with_pthread" != x && test "x$ac_cv_with_pthread" != xno && test "x$ac_cv_with_pthread" != xauto-detect; then : - if test -d "$ac_cv_with_pthread"; then : - CFLAGS="$CFLAGS -I${ac_cv_with_pthread}/include" - LDFLAGS="$LDFLAGS -L${ac_cv_with_pthread}/lib" -else - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no such directory: $ac_cv_with_pthread" >&5 -$as_echo "$as_me: WARNING: no such directory: $ac_cv_with_pthread" >&2;} - -fi - -fi - - if test "x$ac_cv_with_pthread" = xno; then : - ac_cv_pthread=no -else - for ac_header in pthread.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" -if test "x$ac_cv_header_pthread_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PTHREAD_H 1 -_ACEOF - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_resize" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_resize" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_resize" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi -done - - - if test "x$ac_cv_header_pthread_h" = xno; then : - ac_cv_pthread=no -else - ac_cv_pthread=pthread - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5 -$as_echo_n "checking for pthread_create in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_create+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_reverse in -lcdata" >&5 +printf %s "checking for libcdata_array_reverse in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_reverse+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_create (); +char libcdata_array_reverse (); int -main () +main (void) { -return pthread_create (); +return libcdata_array_reverse (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_create=yes -else - ac_cv_lib_pthread_pthread_create=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_reverse=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_reverse=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_pthread_pthread_create" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_create" >&6; } -if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_reverse" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_reverse" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_reverse" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_exit in -lpthread" >&5 -$as_echo_n "checking for pthread_exit in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_exit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_number_of_entries in -lcdata" >&5 +printf %s "checking for libcdata_array_get_number_of_entries in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_get_number_of_entries+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_exit (); + Use char because int might match the return type of a GCC + builtin and then its argument prototype would still apply. */ +char libcdata_array_get_number_of_entries (); int -main () +main (void) { -return pthread_exit (); +return libcdata_array_get_number_of_entries (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_exit=yes -else - ac_cv_lib_pthread_pthread_exit=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_get_number_of_entries=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_get_number_of_entries=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_pthread_pthread_exit" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_exit" >&6; } -if test "x$ac_cv_lib_pthread_pthread_exit" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_get_number_of_entries" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_get_number_of_entries" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_get_number_of_entries" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in -lpthread" >&5 -$as_echo_n "checking for pthread_join in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_join+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_entry_by_index in -lcdata" >&5 +printf %s "checking for libcdata_array_get_entry_by_index in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_get_entry_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_join (); +char libcdata_array_get_entry_by_index (); int -main () +main (void) { -return pthread_join (); +return libcdata_array_get_entry_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_join=yes -else - ac_cv_lib_pthread_pthread_join=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_get_entry_by_index=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_get_entry_by_index=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_pthread_pthread_join" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_join" >&6; } -if test "x$ac_cv_lib_pthread_pthread_join" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_get_entry_by_index" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_get_entry_by_index" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_get_entry_by_index" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_init in -lpthread" >&5 -$as_echo_n "checking for pthread_cond_init in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_cond_init+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_entry_by_value in -lcdata" >&5 +printf %s "checking for libcdata_array_get_entry_by_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_get_entry_by_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_cond_init (); +char libcdata_array_get_entry_by_value (); int -main () +main (void) { -return pthread_cond_init (); +return libcdata_array_get_entry_by_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_cond_init=yes -else - ac_cv_lib_pthread_pthread_cond_init=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_get_entry_by_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_get_entry_by_value=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_pthread_pthread_cond_init" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_cond_init" >&6; } -if test "x$ac_cv_lib_pthread_pthread_cond_init" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_get_entry_by_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_get_entry_by_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_get_entry_by_value" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_destroy in -lpthread" >&5 -$as_echo_n "checking for pthread_cond_destroy in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_cond_destroy+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_set_entry_by_index in -lcdata" >&5 +printf %s "checking for libcdata_array_set_entry_by_index in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_set_entry_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_cond_destroy (); +char libcdata_array_set_entry_by_index (); int -main () +main (void) { -return pthread_cond_destroy (); +return libcdata_array_set_entry_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_cond_destroy=yes -else - ac_cv_lib_pthread_pthread_cond_destroy=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_set_entry_by_index=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_set_entry_by_index=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_pthread_pthread_cond_destroy" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_cond_destroy" >&6; } -if test "x$ac_cv_lib_pthread_pthread_cond_destroy" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_set_entry_by_index" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_set_entry_by_index" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_set_entry_by_index" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_broadcast in -lpthread" >&5 -$as_echo_n "checking for pthread_cond_broadcast in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_cond_broadcast+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_prepend_entry in -lcdata" >&5 +printf %s "checking for libcdata_array_prepend_entry in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_prepend_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_cond_broadcast (); +char libcdata_array_prepend_entry (); int -main () +main (void) { -return pthread_cond_broadcast (); +return libcdata_array_prepend_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_cond_broadcast=yes -else - ac_cv_lib_pthread_pthread_cond_broadcast=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_prepend_entry=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_prepend_entry=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_pthread_pthread_cond_broadcast" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_cond_broadcast" >&6; } -if test "x$ac_cv_lib_pthread_pthread_cond_broadcast" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_prepend_entry" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_prepend_entry" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_prepend_entry" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_signal in -lpthread" >&5 -$as_echo_n "checking for pthread_cond_signal in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_cond_signal+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_append_entry in -lcdata" >&5 +printf %s "checking for libcdata_array_append_entry in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_append_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_cond_signal (); +char libcdata_array_append_entry (); int -main () +main (void) { -return pthread_cond_signal (); +return libcdata_array_append_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_cond_signal=yes -else - ac_cv_lib_pthread_pthread_cond_signal=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_append_entry=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_append_entry=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_pthread_pthread_cond_signal" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_cond_signal" >&6; } -if test "x$ac_cv_lib_pthread_pthread_cond_signal" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_append_entry" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_append_entry" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_append_entry" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_cond_wait in -lpthread" >&5 -$as_echo_n "checking for pthread_cond_wait in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_cond_wait+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_insert_entry in -lcdata" >&5 +printf %s "checking for libcdata_array_insert_entry in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_insert_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_cond_wait (); +char libcdata_array_insert_entry (); int -main () +main (void) { -return pthread_cond_wait (); +return libcdata_array_insert_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_cond_wait=yes -else - ac_cv_lib_pthread_pthread_cond_wait=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_insert_entry=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_insert_entry=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_pthread_pthread_cond_wait" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_cond_wait" >&6; } -if test "x$ac_cv_lib_pthread_pthread_cond_wait" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_insert_entry" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_insert_entry" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_insert_entry" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_init in -lpthread" >&5 -$as_echo_n "checking for pthread_mutex_init in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_mutex_init+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_remove_entry in -lcdata" >&5 +printf %s "checking for libcdata_array_remove_entry in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_array_remove_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_mutex_init (); +char libcdata_array_remove_entry (); int -main () +main (void) { -return pthread_mutex_init (); +return libcdata_array_remove_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_mutex_init=yes -else - ac_cv_lib_pthread_pthread_mutex_init=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_array_remove_entry=yes +else $as_nop + ac_cv_lib_cdata_libcdata_array_remove_entry=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_pthread_pthread_mutex_init" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_mutex_init" >&6; } -if test "x$ac_cv_lib_pthread_pthread_mutex_init" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_array_remove_entry" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_array_remove_entry" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_array_remove_entry" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_destroy in -lpthread" >&5 -$as_echo_n "checking for pthread_mutex_destroy in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_mutex_destroy+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_initialize in -lcdata" >&5 +printf %s "checking for libcdata_btree_initialize in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_btree_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_mutex_destroy (); +char libcdata_btree_initialize (); int -main () +main (void) { -return pthread_mutex_destroy (); +return libcdata_btree_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_mutex_destroy=yes -else - ac_cv_lib_pthread_pthread_mutex_destroy=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_btree_initialize=yes +else $as_nop + ac_cv_lib_cdata_libcdata_btree_initialize=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_pthread_pthread_mutex_destroy" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_mutex_destroy" >&6; } -if test "x$ac_cv_lib_pthread_pthread_mutex_destroy" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_btree_initialize" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_btree_initialize" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 -$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_free in -lcdata" >&5 +printf %s "checking for libcdata_btree_free in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_btree_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_mutex_lock (); +char libcdata_btree_free (); int -main () +main (void) { -return pthread_mutex_lock (); +return libcdata_btree_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_mutex_lock=yes -else - ac_cv_lib_pthread_pthread_mutex_lock=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_btree_free=yes +else $as_nop + ac_cv_lib_cdata_libcdata_btree_free=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_pthread_pthread_mutex_lock" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } -if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_free" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_btree_free" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_btree_free" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_trylock in -lpthread" >&5 -$as_echo_n "checking for pthread_mutex_trylock in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_mutex_trylock+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_number_of_values in -lcdata" >&5 +printf %s "checking for libcdata_btree_get_number_of_values in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_btree_get_number_of_values+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_mutex_trylock (); +char libcdata_btree_get_number_of_values (); int -main () +main (void) { -return pthread_mutex_trylock (); +return libcdata_btree_get_number_of_values (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_mutex_trylock=yes -else - ac_cv_lib_pthread_pthread_mutex_trylock=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_btree_get_number_of_values=yes +else $as_nop + ac_cv_lib_cdata_libcdata_btree_get_number_of_values=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_pthread_pthread_mutex_trylock" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_mutex_trylock" >&6; } -if test "x$ac_cv_lib_pthread_pthread_mutex_trylock" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_get_number_of_values" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_btree_get_number_of_values" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_btree_get_number_of_values" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_unlock in -lpthread" >&5 -$as_echo_n "checking for pthread_mutex_unlock in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_mutex_unlock+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_value_by_index in -lcdata" >&5 +printf %s "checking for libcdata_btree_get_value_by_index in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_btree_get_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_mutex_unlock (); +char libcdata_btree_get_value_by_index (); int -main () +main (void) { -return pthread_mutex_unlock (); +return libcdata_btree_get_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_mutex_unlock=yes -else - ac_cv_lib_pthread_pthread_mutex_unlock=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_btree_get_value_by_index=yes +else $as_nop + ac_cv_lib_cdata_libcdata_btree_get_value_by_index=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_pthread_pthread_mutex_unlock" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_mutex_unlock" >&6; } -if test "x$ac_cv_lib_pthread_pthread_mutex_unlock" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_get_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_btree_get_value_by_index" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_btree_get_value_by_index" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_init in -lpthread" >&5 -$as_echo_n "checking for pthread_rwlock_init in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_rwlock_init+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_value_by_value in -lcdata" >&5 +printf %s "checking for libcdata_btree_get_value_by_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_btree_get_value_by_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_rwlock_init (); +char libcdata_btree_get_value_by_value (); int -main () +main (void) { -return pthread_rwlock_init (); +return libcdata_btree_get_value_by_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_rwlock_init=yes -else - ac_cv_lib_pthread_pthread_rwlock_init=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_btree_get_value_by_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_btree_get_value_by_value=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_pthread_pthread_rwlock_init" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_rwlock_init" >&6; } -if test "x$ac_cv_lib_pthread_pthread_rwlock_init" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_get_value_by_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_btree_get_value_by_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_btree_get_value_by_value" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_destroy in -lpthread" >&5 -$as_echo_n "checking for pthread_rwlock_destroy in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_rwlock_destroy+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_insert_value in -lcdata" >&5 +printf %s "checking for libcdata_btree_insert_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_btree_insert_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_rwlock_destroy (); +char libcdata_btree_insert_value (); int -main () +main (void) { -return pthread_rwlock_destroy (); +return libcdata_btree_insert_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_rwlock_destroy=yes -else - ac_cv_lib_pthread_pthread_rwlock_destroy=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_btree_insert_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_btree_insert_value=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_pthread_pthread_rwlock_destroy" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_rwlock_destroy" >&6; } -if test "x$ac_cv_lib_pthread_pthread_rwlock_destroy" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_insert_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_btree_insert_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_btree_insert_value" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_rdlock in -lpthread" >&5 -$as_echo_n "checking for pthread_rwlock_rdlock in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_rwlock_rdlock+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_replace_value in -lcdata" >&5 +printf %s "checking for libcdata_btree_replace_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_btree_replace_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_rwlock_rdlock (); +char libcdata_btree_replace_value (); int -main () +main (void) { -return pthread_rwlock_rdlock (); +return libcdata_btree_replace_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_rwlock_rdlock=yes -else - ac_cv_lib_pthread_pthread_rwlock_rdlock=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_btree_replace_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_btree_replace_value=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_pthread_pthread_rwlock_rdlock" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_rwlock_rdlock" >&6; } -if test "x$ac_cv_lib_pthread_pthread_rwlock_rdlock" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_replace_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_btree_replace_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_btree_replace_value" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_wrlock in -lpthread" >&5 -$as_echo_n "checking for pthread_rwlock_wrlock in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_rwlock_wrlock+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_remove_value in -lcdata" >&5 +printf %s "checking for libcdata_btree_remove_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_btree_remove_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_rwlock_wrlock (); +char libcdata_btree_remove_value (); int -main () +main (void) { -return pthread_rwlock_wrlock (); +return libcdata_btree_remove_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_rwlock_wrlock=yes -else - ac_cv_lib_pthread_pthread_rwlock_wrlock=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_btree_remove_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_btree_remove_value=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_pthread_pthread_rwlock_wrlock" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_rwlock_wrlock" >&6; } -if test "x$ac_cv_lib_pthread_pthread_rwlock_wrlock" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_btree_remove_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_btree_remove_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_btree_remove_value" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_rwlock_unlock in -lpthread" >&5 -$as_echo_n "checking for pthread_rwlock_unlock in -lpthread... " >&6; } -if ${ac_cv_lib_pthread_pthread_rwlock_unlock+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_initialize in -lcdata" >&5 +printf %s "checking for libcdata_list_initialize in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lpthread $LIBS" +LIBS="-lcdata $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 pthread_rwlock_unlock (); +char libcdata_list_initialize (); int -main () +main (void) { -return pthread_rwlock_unlock (); +return libcdata_list_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_pthread_pthread_rwlock_unlock=yes -else - ac_cv_lib_pthread_pthread_rwlock_unlock=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_initialize=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_initialize=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_pthread_pthread_rwlock_unlock" >&5 -$as_echo "$ac_cv_lib_pthread_pthread_rwlock_unlock" >&6; } -if test "x$ac_cv_lib_pthread_pthread_rwlock_unlock" = xyes; then : - ac_pthread_dummy=yes -else - ac_cv_pthread=no -fi - - - ac_cv_pthread_LIBADD="-lpthread"; - -fi - -fi - - if test "x$ac_cv_pthread" = xpthread; then : - -$as_echo "#define HAVE_PTHREAD 1" >>confdefs.h - - -fi - - if test "x$ac_cv_pthread" != xno; then : - HAVE_PTHREAD=1 - -else - HAVE_PTHREAD=0 - - -fi - - - if test "x$ac_cv_pthread_CPPFLAGS" != "x"; then : - PTHREAD_CPPFLAGS=$ac_cv_pthread_CPPFLAGS - - -fi - if test "x$ac_cv_pthread_LIBADD" != "x"; then : - PTHREAD_LIBADD=$ac_cv_pthread_LIBADD - - -fi - - if test "x$ac_cv_pthread" = xpthread; then : - ax_pthread_pc_libs_private=-lpthread - - -fi - - ac_cv_libcthreads_multi_threading=$ac_cv_pthread -else - ac_cv_libcthreads_multi_threading="winapi" -fi - - if test "x$ac_cv_libcthreads_multi_threading" != xno; then : - ac_cv_libcthreads_CPPFLAGS="-I../libcthreads"; - ac_cv_libcthreads_LIBADD="../libcthreads/libcthreads.la"; - - ac_cv_libcthreads=local -else - ac_cv_libcthreads=no -fi - - - -$as_echo "#define HAVE_LOCAL_LIBCTHREADS 1" >>confdefs.h - - HAVE_LOCAL_LIBCTHREADS=1 - - -fi - -fi - - if test "x$ac_cv_libcthreads" = xlocal; then - HAVE_LOCAL_LIBCTHREADS_TRUE= - HAVE_LOCAL_LIBCTHREADS_FALSE='#' -else - HAVE_LOCAL_LIBCTHREADS_TRUE='#' - HAVE_LOCAL_LIBCTHREADS_FALSE= -fi - - if test "x$ac_cv_libcthreads_CPPFLAGS" != "x"; then : - LIBCTHREADS_CPPFLAGS=$ac_cv_libcthreads_CPPFLAGS - - -fi - if test "x$ac_cv_libcthreads_LIBADD" != "x"; then : - LIBCTHREADS_LIBADD=$ac_cv_libcthreads_LIBADD - - -fi - - if test "x$ac_cv_libcthreads" != xno; then : - -$as_echo "#define HAVE_MULTI_THREAD_SUPPORT 1" >>confdefs.h - - HAVE_MULTI_THREAD_SUPPORT=1 - -else - HAVE_MULTI_THREAD_SUPPORT=0 - - -fi - - if test "x$ac_cv_libcthreads" = xyes; then : - ax_libcthreads_pc_libs_private=-lcthreads - - -fi - - if test "x$ac_cv_libcthreads" = xyes; then : - ax_libcthreads_spec_requires=libcthreads - - ax_libcthreads_spec_build_requires=libcthreads-devel - - -fi - - - - -# Check whether --with-libcdata was given. -if test "${with_libcdata+set}" = set; then : - withval=$with_libcdata; ac_cv_with_libcdata=$withval -else - ac_cv_with_libcdata=auto-detect -fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libcdata in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libcdata+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_with_libcdata=auto-detect -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcdata" >&5 -$as_echo "$ac_cv_with_libcdata" >&6; } - - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcdata" = xno; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_initialize" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_initialize" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop ac_cv_libcdata=no -else - ac_cv_libcdata=check - if test "x$ac_cv_with_libcdata" != x && test "x$ac_cv_with_libcdata" != xauto-detect; then : - if test -d "$ac_cv_with_libcdata"; then : - CFLAGS="$CFLAGS -I${ac_cv_with_libcdata}/include" - LDFLAGS="$LDFLAGS -L${ac_cv_with_libcdata}/lib" -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 1 "no such directory: $ac_cv_with_libcdata -See \`config.log' for more details" "$LINENO" 5; } - -fi - -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata" >&5 -$as_echo_n "checking for libcdata... " >&6; } - -if test -n "$libcdata_CFLAGS"; then - pkg_cv_libcdata_CFLAGS="$libcdata_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdata >= 20190112\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcdata >= 20190112") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libcdata_CFLAGS=`$PKG_CONFIG --cflags "libcdata >= 20190112" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried -fi -if test -n "$libcdata_LIBS"; then - pkg_cv_libcdata_LIBS="$libcdata_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcdata >= 20190112\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcdata >= 20190112") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libcdata_LIBS=`$PKG_CONFIG --libs "libcdata >= 20190112" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_free in -lcdata" >&5 +printf %s "checking for libcdata_list_free in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcdata $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - libcdata_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcdata >= 20190112" 2>&1` - else - libcdata_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcdata >= 20190112" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$libcdata_PKG_ERRORS" >&5 - - ac_cv_libcdata=check -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libcdata=check -else - libcdata_CFLAGS=$pkg_cv_libcdata_CFLAGS - libcdata_LIBS=$pkg_cv_libcdata_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libcdata=yes +/* 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 libcdata_list_free (); +int +main (void) +{ +return libcdata_list_free (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_free=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_free=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 - if test "x$ac_cv_libcdata" = xyes; then : - ac_cv_libcdata_CPPFLAGS="$pkg_cv_libcdata_CFLAGS" - ac_cv_libcdata_LIBADD="$pkg_cv_libcdata_LIBS" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_free" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_free" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_free" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no fi -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_empty in -lcdata" >&5 +printf %s "checking for libcdata_list_empty in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_empty+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcdata $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "x$ac_cv_libcdata" = xcheck; then : - for ac_header in libcdata.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libcdata.h" "ac_cv_header_libcdata_h" "$ac_includes_default" -if test "x$ac_cv_header_libcdata_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCDATA_H 1 +/* 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 libcdata_list_empty (); +int +main (void) +{ +return libcdata_list_empty (); + ; + return 0; +} _ACEOF - +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_empty=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_empty=no fi - -done - - - if test "x$ac_cv_header_libcdata_h" = xno; then : +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_cdata_libcdata_list_empty" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_empty" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_empty" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop ac_cv_libcdata=no -else - ac_cv_libcdata=yes +fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_get_version in -lcdata" >&5 -$as_echo_n "checking for libcdata_get_version in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_clone in -lcdata" >&5 +printf %s "checking for libcdata_list_clone in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24286,41 +28497,40 @@ 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 libcdata_get_version (); +char libcdata_list_clone (); int -main () +main (void) { -return libcdata_get_version (); +return libcdata_list_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_get_version=yes -else - ac_cv_lib_cdata_libcdata_get_version=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_clone=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_clone=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_cdata_libcdata_get_version" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_get_version" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_clone" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_clone" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_clone" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_initialize in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_initialize in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_number_of_elements in -lcdata" >&5 +printf %s "checking for libcdata_list_get_number_of_elements in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_get_number_of_elements+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24329,40 +28539,40 @@ 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 libcdata_array_initialize (); +char libcdata_list_get_number_of_elements (); int -main () +main (void) { -return libcdata_array_initialize (); +return libcdata_list_get_number_of_elements (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_initialize=yes -else - ac_cv_lib_cdata_libcdata_array_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_get_number_of_elements=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_get_number_of_elements=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_cdata_libcdata_array_initialize" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_initialize" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_number_of_elements" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_get_number_of_elements" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_get_number_of_elements" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_free in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_free in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_first_element in -lcdata" >&5 +printf %s "checking for libcdata_list_get_first_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_get_first_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24371,40 +28581,40 @@ 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 libcdata_array_free (); +char libcdata_list_get_first_element (); int -main () +main (void) { -return libcdata_array_free (); +return libcdata_list_get_first_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_free=yes -else - ac_cv_lib_cdata_libcdata_array_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_get_first_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_get_first_element=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_cdata_libcdata_array_free" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_free" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_first_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_get_first_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_get_first_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_empty in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_empty in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_empty+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_last_element in -lcdata" >&5 +printf %s "checking for libcdata_list_get_last_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_get_last_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24413,40 +28623,40 @@ 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 libcdata_array_empty (); +char libcdata_list_get_last_element (); int -main () +main (void) { -return libcdata_array_empty (); +return libcdata_list_get_last_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_empty=yes -else - ac_cv_lib_cdata_libcdata_array_empty=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_get_last_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_get_last_element=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_cdata_libcdata_array_empty" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_empty" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_empty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_last_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_get_last_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_get_last_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_clone in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_clone in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_element_by_index in -lcdata" >&5 +printf %s "checking for libcdata_list_get_element_by_index in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_get_element_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24455,40 +28665,40 @@ 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 libcdata_array_clone (); +char libcdata_list_get_element_by_index (); int -main () +main (void) { -return libcdata_array_clone (); +return libcdata_list_get_element_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_clone=yes -else - ac_cv_lib_cdata_libcdata_array_clone=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_get_element_by_index=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_get_element_by_index=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_cdata_libcdata_array_clone" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_clone" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_element_by_index" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_get_element_by_index" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_get_element_by_index" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_resize in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_resize in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_resize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_value_by_index in -lcdata" >&5 +printf %s "checking for libcdata_list_get_value_by_index in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_get_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24497,40 +28707,40 @@ 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 libcdata_array_resize (); +char libcdata_list_get_value_by_index (); int -main () +main (void) { -return libcdata_array_resize (); +return libcdata_list_get_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_resize=yes -else - ac_cv_lib_cdata_libcdata_array_resize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_get_value_by_index=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_get_value_by_index=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_cdata_libcdata_array_resize" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_resize" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_resize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_get_value_by_index" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_get_value_by_index" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_reverse in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_reverse in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_reverse+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_prepend_element in -lcdata" >&5 +printf %s "checking for libcdata_list_prepend_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_prepend_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24539,40 +28749,40 @@ 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 libcdata_array_reverse (); +char libcdata_list_prepend_element (); int -main () +main (void) { -return libcdata_array_reverse (); +return libcdata_list_prepend_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_reverse=yes -else - ac_cv_lib_cdata_libcdata_array_reverse=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_prepend_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_prepend_element=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_cdata_libcdata_array_reverse" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_reverse" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_reverse" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_prepend_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_prepend_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_prepend_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_number_of_entries in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_get_number_of_entries in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_get_number_of_entries+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_prepend_value in -lcdata" >&5 +printf %s "checking for libcdata_list_prepend_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_prepend_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24581,40 +28791,40 @@ 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 libcdata_array_get_number_of_entries (); +char libcdata_list_prepend_value (); int -main () +main (void) { -return libcdata_array_get_number_of_entries (); +return libcdata_list_prepend_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_get_number_of_entries=yes -else - ac_cv_lib_cdata_libcdata_array_get_number_of_entries=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_prepend_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_prepend_value=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_cdata_libcdata_array_get_number_of_entries" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_get_number_of_entries" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_get_number_of_entries" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_prepend_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_prepend_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_prepend_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_entry_by_index in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_get_entry_by_index in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_get_entry_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_append_element in -lcdata" >&5 +printf %s "checking for libcdata_list_append_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_append_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24623,40 +28833,40 @@ 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 libcdata_array_get_entry_by_index (); +char libcdata_list_append_element (); int -main () +main (void) { -return libcdata_array_get_entry_by_index (); +return libcdata_list_append_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_get_entry_by_index=yes -else - ac_cv_lib_cdata_libcdata_array_get_entry_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_append_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_append_element=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_cdata_libcdata_array_get_entry_by_index" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_get_entry_by_index" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_get_entry_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_append_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_append_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_append_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_get_entry_by_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_get_entry_by_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_get_entry_by_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_append_value in -lcdata" >&5 +printf %s "checking for libcdata_list_append_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_append_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24665,40 +28875,40 @@ 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 libcdata_array_get_entry_by_value (); +char libcdata_list_append_value (); int -main () +main (void) { -return libcdata_array_get_entry_by_value (); +return libcdata_list_append_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_get_entry_by_value=yes -else - ac_cv_lib_cdata_libcdata_array_get_entry_by_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_append_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_append_value=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_cdata_libcdata_array_get_entry_by_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_get_entry_by_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_get_entry_by_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_append_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_append_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_append_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_set_entry_by_index in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_set_entry_by_index in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_set_entry_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_insert_element in -lcdata" >&5 +printf %s "checking for libcdata_list_insert_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_insert_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24707,40 +28917,40 @@ 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 libcdata_array_set_entry_by_index (); +char libcdata_list_insert_element (); int -main () +main (void) { -return libcdata_array_set_entry_by_index (); +return libcdata_list_insert_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_set_entry_by_index=yes -else - ac_cv_lib_cdata_libcdata_array_set_entry_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_insert_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_insert_element=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_cdata_libcdata_array_set_entry_by_index" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_set_entry_by_index" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_set_entry_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_insert_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_insert_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_insert_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_prepend_entry in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_prepend_entry in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_prepend_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_insert_element_with_existing in -lcdata" >&5 +printf %s "checking for libcdata_list_insert_element_with_existing in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_insert_element_with_existing+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24749,40 +28959,40 @@ 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 libcdata_array_prepend_entry (); +char libcdata_list_insert_element_with_existing (); int -main () +main (void) { -return libcdata_array_prepend_entry (); +return libcdata_list_insert_element_with_existing (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_prepend_entry=yes -else - ac_cv_lib_cdata_libcdata_array_prepend_entry=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_insert_element_with_existing=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_insert_element_with_existing=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_cdata_libcdata_array_prepend_entry" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_prepend_entry" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_prepend_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_insert_element_with_existing" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_insert_element_with_existing" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_insert_element_with_existing" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_append_entry in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_append_entry in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_append_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_insert_value in -lcdata" >&5 +printf %s "checking for libcdata_list_insert_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_insert_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24791,40 +29001,40 @@ 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 libcdata_array_append_entry (); +char libcdata_list_insert_value (); int -main () +main (void) { -return libcdata_array_append_entry (); +return libcdata_list_insert_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_append_entry=yes -else - ac_cv_lib_cdata_libcdata_array_append_entry=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_insert_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_insert_value=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_cdata_libcdata_array_append_entry" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_append_entry" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_append_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_insert_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_insert_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_insert_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_insert_entry in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_insert_entry in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_insert_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_insert_value_with_existing in -lcdata" >&5 +printf %s "checking for libcdata_list_insert_value_with_existing in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_insert_value_with_existing+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24833,40 +29043,40 @@ 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 libcdata_array_insert_entry (); +char libcdata_list_insert_value_with_existing (); int -main () +main (void) { -return libcdata_array_insert_entry (); +return libcdata_list_insert_value_with_existing (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_insert_entry=yes -else - ac_cv_lib_cdata_libcdata_array_insert_entry=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_insert_value_with_existing=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_insert_value_with_existing=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_cdata_libcdata_array_insert_entry" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_insert_entry" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_insert_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_insert_value_with_existing" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_insert_value_with_existing" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_insert_value_with_existing" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_array_remove_entry in -lcdata" >&5 -$as_echo_n "checking for libcdata_array_remove_entry in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_array_remove_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_remove_element in -lcdata" >&5 +printf %s "checking for libcdata_list_remove_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_remove_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24875,41 +29085,41 @@ 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 libcdata_array_remove_entry (); +char libcdata_list_remove_element (); int -main () +main (void) { -return libcdata_array_remove_entry (); +return libcdata_list_remove_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_array_remove_entry=yes -else - ac_cv_lib_cdata_libcdata_array_remove_entry=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_remove_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_remove_element=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_cdata_libcdata_array_remove_entry" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_array_remove_entry" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_array_remove_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_remove_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_remove_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_remove_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_btree_initialize in -lcdata" >&5 -$as_echo_n "checking for libfdata_btree_initialize in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libfdata_btree_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_initialize in -lcdata" >&5 +printf %s "checking for libcdata_list_element_initialize in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24918,40 +29128,40 @@ 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 libfdata_btree_initialize (); +char libcdata_list_element_initialize (); int -main () +main (void) { -return libfdata_btree_initialize (); +return libcdata_list_element_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libfdata_btree_initialize=yes -else - ac_cv_lib_cdata_libfdata_btree_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_initialize=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_initialize=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_cdata_libfdata_btree_initialize" >&5 -$as_echo "$ac_cv_lib_cdata_libfdata_btree_initialize" >&6; } -if test "x$ac_cv_lib_cdata_libfdata_btree_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_initialize" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_initialize" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_free in -lcdata" >&5 -$as_echo_n "checking for libcdata_btree_free in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_btree_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_free in -lcdata" >&5 +printf %s "checking for libcdata_list_element_free in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -24960,40 +29170,40 @@ 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 libcdata_btree_free (); +char libcdata_list_element_free (); int -main () +main (void) { -return libcdata_btree_free (); +return libcdata_list_element_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_btree_free=yes -else - ac_cv_lib_cdata_libcdata_btree_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_free=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_free=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_cdata_libcdata_btree_free" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_btree_free" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_btree_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_free" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_free" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_free" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_number_of_values in -lcdata" >&5 -$as_echo_n "checking for libcdata_btree_get_number_of_values in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_btree_get_number_of_values+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_value in -lcdata" >&5 +printf %s "checking for libcdata_list_element_get_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_get_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25002,40 +29212,40 @@ 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 libcdata_btree_get_number_of_values (); +char libcdata_list_element_get_value (); int -main () +main (void) { -return libcdata_btree_get_number_of_values (); +return libcdata_list_element_get_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_btree_get_number_of_values=yes -else - ac_cv_lib_cdata_libcdata_btree_get_number_of_values=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_get_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_get_value=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_cdata_libcdata_btree_get_number_of_values" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_btree_get_number_of_values" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_btree_get_number_of_values" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_get_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_get_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_get_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_value_by_index in -lcdata" >&5 -$as_echo_n "checking for libcdata_btree_get_value_by_index in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_btree_get_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_value in -lcdata" >&5 +printf %s "checking for libcdata_list_element_set_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_set_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25044,40 +29254,40 @@ 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 libcdata_btree_get_value_by_index (); +char libcdata_list_element_set_value (); int -main () +main (void) { -return libcdata_btree_get_value_by_index (); +return libcdata_list_element_set_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_btree_get_value_by_index=yes -else - ac_cv_lib_cdata_libcdata_btree_get_value_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_set_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_set_value=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_cdata_libcdata_btree_get_value_by_index" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_btree_get_value_by_index" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_btree_get_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_set_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_set_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_set_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_get_value_by_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_btree_get_value_by_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_btree_get_value_by_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_previous_element in -lcdata" >&5 +printf %s "checking for libcdata_list_element_get_previous_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_get_previous_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25086,40 +29296,40 @@ 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 libcdata_btree_get_value_by_value (); +char libcdata_list_element_get_previous_element (); int -main () +main (void) { -return libcdata_btree_get_value_by_value (); +return libcdata_list_element_get_previous_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_btree_get_value_by_value=yes -else - ac_cv_lib_cdata_libcdata_btree_get_value_by_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_get_previous_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_get_previous_element=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_cdata_libcdata_btree_get_value_by_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_btree_get_value_by_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_btree_get_value_by_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_get_previous_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_get_previous_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_get_previous_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_insert_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_btree_insert_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_btree_insert_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_previous_element in -lcdata" >&5 +printf %s "checking for libcdata_list_element_set_previous_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_set_previous_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25128,40 +29338,40 @@ 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 libcdata_btree_insert_value (); +char libcdata_list_element_set_previous_element (); int -main () +main (void) { -return libcdata_btree_insert_value (); +return libcdata_list_element_set_previous_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_btree_insert_value=yes -else - ac_cv_lib_cdata_libcdata_btree_insert_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_set_previous_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_set_previous_element=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_cdata_libcdata_btree_insert_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_btree_insert_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_btree_insert_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_set_previous_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_set_previous_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_set_previous_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_replace_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_btree_replace_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_btree_replace_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_next_element in -lcdata" >&5 +printf %s "checking for libcdata_list_element_get_next_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_get_next_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25170,40 +29380,79 @@ 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 libcdata_btree_replace_value (); +char libcdata_list_element_get_next_element (); int -main () +main (void) { -return libcdata_btree_replace_value (); +return libcdata_list_element_get_next_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_btree_replace_value=yes -else - ac_cv_lib_cdata_libcdata_btree_replace_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_get_next_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_get_next_element=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_cdata_libcdata_btree_replace_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_btree_replace_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_btree_replace_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_get_next_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_get_next_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_get_next_element" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_next_element in -lcdata" >&5 +printf %s "checking for libcdata_list_element_set_next_element in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_set_next_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcdata $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 libcdata_list_element_set_next_element (); +int +main (void) +{ +return libcdata_list_element_set_next_element (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_set_next_element=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_set_next_element=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_cdata_libcdata_list_element_set_next_element" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_set_next_element" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_set_next_element" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_btree_remove_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_btree_remove_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_btree_remove_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_elements in -lcdata" >&5 +printf %s "checking for libcdata_list_element_get_elements in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_get_elements+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25212,41 +29461,40 @@ 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 libcdata_btree_remove_value (); +char libcdata_list_element_get_elements (); int -main () +main (void) { -return libcdata_btree_remove_value (); +return libcdata_list_element_get_elements (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_btree_remove_value=yes -else - ac_cv_lib_cdata_libcdata_btree_remove_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_get_elements=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_get_elements=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_cdata_libcdata_btree_remove_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_btree_remove_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_btree_remove_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_get_elements" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_get_elements" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_get_elements" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_initialize in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_initialize in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_elements in -lcdata" >&5 +printf %s "checking for libcdata_list_element_set_elements in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_list_element_set_elements+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25255,40 +29503,44 @@ 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 libcdata_list_initialize (); +char libcdata_list_element_set_elements (); int -main () +main (void) { -return libcdata_list_initialize (); +return libcdata_list_element_set_elements (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_initialize=yes -else - ac_cv_lib_cdata_libcdata_list_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_list_element_set_elements=yes +else $as_nop + ac_cv_lib_cdata_libcdata_list_element_set_elements=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_cdata_libcdata_list_initialize" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_initialize" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_element_set_elements" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_list_element_set_elements" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_list_element_set_elements" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_free in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_free in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + ac_cv_libcdata=no +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_initialize in -lcdata" >&5 +printf %s "checking for libcdata_range_list_initialize in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25297,40 +29549,40 @@ 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 libcdata_list_free (); +char libcdata_range_list_initialize (); int -main () +main (void) { -return libcdata_list_free (); +return libcdata_range_list_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_free=yes -else - ac_cv_lib_cdata_libcdata_list_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_initialize=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_initialize=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_cdata_libcdata_list_free" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_free" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_initialize" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_initialize" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_empty in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_empty in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_empty+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_free in -lcdata" >&5 +printf %s "checking for libcdata_range_list_free in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25339,40 +29591,40 @@ 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 libcdata_list_empty (); +char libcdata_range_list_free (); int -main () +main (void) { -return libcdata_list_empty (); +return libcdata_range_list_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_empty=yes -else - ac_cv_lib_cdata_libcdata_list_empty=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_free=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_free=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_cdata_libcdata_list_empty" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_empty" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_empty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_free" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_free" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_free" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_clone in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_clone in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_empty in -lcdata" >&5 +printf %s "checking for libcdata_range_list_empty in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_empty+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25381,40 +29633,40 @@ 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 libcdata_list_clone (); +char libcdata_range_list_empty (); int -main () +main (void) { -return libcdata_list_clone (); +return libcdata_range_list_empty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_clone=yes -else - ac_cv_lib_cdata_libcdata_list_clone=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_empty=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_empty=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_cdata_libcdata_list_clone" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_clone" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_empty" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_empty" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_empty" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_number_of_elements in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_get_number_of_elements in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_get_number_of_elements+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_clone in -lcdata" >&5 +printf %s "checking for libcdata_range_list_clone in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25423,40 +29675,40 @@ 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 libcdata_list_get_number_of_elements (); +char libcdata_range_list_clone (); int -main () +main (void) { -return libcdata_list_get_number_of_elements (); +return libcdata_range_list_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_get_number_of_elements=yes -else - ac_cv_lib_cdata_libcdata_list_get_number_of_elements=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_clone=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_clone=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_cdata_libcdata_list_get_number_of_elements" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_get_number_of_elements" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_get_number_of_elements" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_clone" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_clone" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_clone" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_first_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_get_first_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_get_first_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_number_of_elements in -lcdata" >&5 +printf %s "checking for libcdata_range_list_get_number_of_elements in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25465,40 +29717,40 @@ 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 libcdata_list_get_first_element (); +char libcdata_range_list_get_number_of_elements (); int -main () +main (void) { -return libcdata_list_get_first_element (); +return libcdata_range_list_get_number_of_elements (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_get_first_element=yes -else - ac_cv_lib_cdata_libcdata_list_get_first_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements=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_cdata_libcdata_list_get_first_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_get_first_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_get_first_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_last_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_get_last_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_get_last_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_insert_range in -lcdata" >&5 +printf %s "checking for libcdata_range_list_insert_range in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_insert_range+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25507,40 +29759,40 @@ 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 libcdata_list_get_last_element (); +char libcdata_range_list_insert_range (); int -main () +main (void) { -return libcdata_list_get_last_element (); +return libcdata_range_list_insert_range (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_get_last_element=yes -else - ac_cv_lib_cdata_libcdata_list_get_last_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_insert_range=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_insert_range=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_cdata_libcdata_list_get_last_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_get_last_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_get_last_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_insert_range" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_insert_range" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_insert_range" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_element_by_index in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_get_element_by_index in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_get_element_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_insert_range_list in -lcdata" >&5 +printf %s "checking for libcdata_range_list_insert_range_list in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_insert_range_list+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25549,40 +29801,40 @@ 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 libcdata_list_get_element_by_index (); +char libcdata_range_list_insert_range_list (); int -main () +main (void) { -return libcdata_list_get_element_by_index (); +return libcdata_range_list_insert_range_list (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_get_element_by_index=yes -else - ac_cv_lib_cdata_libcdata_list_get_element_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_insert_range_list=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_insert_range_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 LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_list_get_element_by_index" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_get_element_by_index" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_get_element_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_insert_range_list" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_insert_range_list" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_insert_range_list" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_get_value_by_index in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_get_value_by_index in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_get_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_remove_range in -lcdata" >&5 +printf %s "checking for libcdata_range_list_remove_range in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_remove_range+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25591,40 +29843,40 @@ 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 libcdata_list_get_value_by_index (); +char libcdata_range_list_remove_range (); int -main () +main (void) { -return libcdata_list_get_value_by_index (); +return libcdata_range_list_remove_range (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_get_value_by_index=yes -else - ac_cv_lib_cdata_libcdata_list_get_value_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_remove_range=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_remove_range=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_cdata_libcdata_list_get_value_by_index" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_get_value_by_index" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_get_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_remove_range" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_remove_range" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_remove_range" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_prepend_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_prepend_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_prepend_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_range_by_index in -lcdata" >&5 +printf %s "checking for libcdata_range_list_get_range_by_index in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_get_range_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25633,40 +29885,40 @@ 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 libcdata_list_prepend_element (); +char libcdata_range_list_get_range_by_index (); int -main () +main (void) { -return libcdata_list_prepend_element (); +return libcdata_range_list_get_range_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_prepend_element=yes -else - ac_cv_lib_cdata_libcdata_list_prepend_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_get_range_by_index=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_get_range_by_index=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_cdata_libcdata_list_prepend_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_prepend_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_prepend_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_range_by_index" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_get_range_by_index" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_get_range_by_index" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_prepend_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_prepend_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_prepend_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_range_at_offset in -lcdata" >&5 +printf %s "checking for libcdata_range_list_get_range_at_offset in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25675,40 +29927,40 @@ 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 libcdata_list_prepend_value (); +char libcdata_range_list_get_range_at_offset (); int -main () +main (void) { -return libcdata_list_prepend_value (); +return libcdata_range_list_get_range_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_prepend_value=yes -else - ac_cv_lib_cdata_libcdata_list_prepend_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset=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_cdata_libcdata_list_prepend_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_prepend_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_prepend_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_append_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_append_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_append_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_range_is_present in -lcdata" >&5 +printf %s "checking for libcdata_range_list_range_is_present in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_range_is_present+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25717,40 +29969,40 @@ 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 libcdata_list_append_element (); +char libcdata_range_list_range_is_present (); int -main () +main (void) { -return libcdata_list_append_element (); +return libcdata_range_list_range_is_present (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_append_element=yes -else - ac_cv_lib_cdata_libcdata_list_append_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_range_is_present=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_range_is_present=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_cdata_libcdata_list_append_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_append_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_append_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_range_is_present" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_range_is_present" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_range_is_present" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_append_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_append_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_append_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_range_has_overlapping_range in -lcdata" >&5 +printf %s "checking for libcdata_range_list_range_has_overlapping_range in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_range_has_overlapping_range+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25759,40 +30011,40 @@ 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 libcdata_list_append_value (); +char libcdata_range_list_range_has_overlapping_range (); int -main () +main (void) { -return libcdata_list_append_value (); +return libcdata_range_list_range_has_overlapping_range (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_append_value=yes -else - ac_cv_lib_cdata_libcdata_list_append_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_range_has_overlapping_range=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_range_has_overlapping_range=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_cdata_libcdata_list_append_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_append_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_append_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_range_has_overlapping_range" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_range_has_overlapping_range" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_range_has_overlapping_range" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_insert_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_insert_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_insert_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_spanning_range in -lcdata" >&5 +printf %s "checking for libcdata_range_list_get_spanning_range in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_range_list_get_spanning_range+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25801,40 +30053,41 @@ 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 libcdata_list_insert_element (); +char libcdata_range_list_get_spanning_range (); int -main () +main (void) { -return libcdata_list_insert_element (); +return libcdata_range_list_get_spanning_range (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_insert_element=yes -else - ac_cv_lib_cdata_libcdata_list_insert_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_range_list_get_spanning_range=yes +else $as_nop + ac_cv_lib_cdata_libcdata_range_list_get_spanning_range=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_cdata_libcdata_list_insert_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_insert_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_insert_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_insert_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_insert_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_insert_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_initialize in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_initialize in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25843,40 +30096,40 @@ 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 libcdata_list_insert_value (); +char libcdata_tree_node_initialize (); int -main () +main (void) { -return libcdata_list_insert_value (); +return libcdata_tree_node_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_insert_value=yes -else - ac_cv_lib_cdata_libcdata_list_insert_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_initialize=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_initialize=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_cdata_libcdata_list_insert_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_insert_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_insert_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_initialize" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_initialize" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_remove_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_remove_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_remove_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_free in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_free in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25885,41 +30138,40 @@ 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 libcdata_list_remove_element (); +char libcdata_tree_node_free (); int -main () +main (void) { -return libcdata_list_remove_element (); +return libcdata_tree_node_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_remove_element=yes -else - ac_cv_lib_cdata_libcdata_list_remove_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_free=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_free=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_cdata_libcdata_list_remove_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_remove_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_remove_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_free" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_free" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_free" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_initialize in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_initialize in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_empty in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_empty in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_empty+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25928,40 +30180,40 @@ 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 libcdata_list_element_initialize (); +char libcdata_tree_node_empty (); int -main () +main (void) { -return libcdata_list_element_initialize (); +return libcdata_tree_node_empty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_initialize=yes -else - ac_cv_lib_cdata_libcdata_list_element_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_empty=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_empty=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_cdata_libcdata_list_element_initialize" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_initialize" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_empty" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_empty" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_empty" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_free in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_free in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_clone in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_clone in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -25970,40 +30222,40 @@ 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 libcdata_list_element_free (); +char libcdata_tree_node_clone (); int -main () +main (void) { -return libcdata_list_element_free (); +return libcdata_tree_node_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_free=yes -else - ac_cv_lib_cdata_libcdata_list_element_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_clone=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_clone=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_cdata_libcdata_list_element_free" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_free" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_clone" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_clone" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_clone" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_get_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_get_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_value in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_get_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_get_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26012,40 +30264,40 @@ 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 libcdata_list_element_get_value (); +char libcdata_tree_node_get_value (); int -main () +main (void) { -return libcdata_list_element_get_value (); +return libcdata_tree_node_get_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_get_value=yes -else - ac_cv_lib_cdata_libcdata_list_element_get_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_get_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_get_value=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_cdata_libcdata_list_element_get_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_get_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_get_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_get_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_set_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_set_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_value in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_set_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_set_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26054,40 +30306,40 @@ 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 libcdata_list_element_set_value (); +char libcdata_tree_node_set_value (); int -main () +main (void) { -return libcdata_list_element_set_value (); +return libcdata_tree_node_set_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_set_value=yes -else - ac_cv_lib_cdata_libcdata_list_element_set_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_set_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_set_value=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_cdata_libcdata_list_element_set_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_set_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_set_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_set_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_previous_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_get_previous_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_get_previous_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_parent_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_get_parent_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_get_parent_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26096,40 +30348,40 @@ 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 libcdata_list_element_get_previous_element (); +char libcdata_tree_node_get_parent_node (); int -main () +main (void) { -return libcdata_list_element_get_previous_element (); +return libcdata_tree_node_get_parent_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_get_previous_element=yes -else - ac_cv_lib_cdata_libcdata_list_element_get_previous_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_get_parent_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_get_parent_node=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_cdata_libcdata_list_element_get_previous_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_get_previous_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_get_previous_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_parent_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_get_parent_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_parent_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_previous_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_set_previous_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_set_previous_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_parent_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_set_parent_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_set_parent_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26138,40 +30390,40 @@ 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 libcdata_list_element_set_previous_element (); +char libcdata_tree_node_set_parent_node (); int -main () +main (void) { -return libcdata_list_element_set_previous_element (); +return libcdata_tree_node_set_parent_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_set_previous_element=yes -else - ac_cv_lib_cdata_libcdata_list_element_set_previous_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_set_parent_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_set_parent_node=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_cdata_libcdata_list_element_set_previous_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_set_previous_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_set_previous_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_parent_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_set_parent_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_parent_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_next_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_get_next_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_get_next_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_previous_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_get_previous_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_get_previous_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26180,37 +30432,40 @@ 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 libcdata_list_element_get_next_element (); +char libcdata_tree_node_get_previous_node (); int -main () +main (void) { -return libcdata_list_element_get_next_element (); +return libcdata_tree_node_get_previous_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_get_next_element=yes -else - ac_cv_lib_cdata_libcdata_list_element_get_next_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_get_previous_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_get_previous_node=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_cdata_libcdata_list_element_get_next_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_get_next_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_get_next_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_previous_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_get_previous_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_previous_node" = xyes +then : ac_cv_libcdata_dummy=yes -else - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_next_element in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_set_next_element in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_set_next_element+:} false; then : - $as_echo_n "(cached) " >&6 -else +else $as_nop + ac_cv_libcdata=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_previous_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_set_previous_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_set_previous_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26219,40 +30474,40 @@ 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 libcdata_list_element_set_next_element (); +char libcdata_tree_node_set_previous_node (); int -main () +main (void) { -return libcdata_list_element_set_next_element (); +return libcdata_tree_node_set_previous_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_set_next_element=yes -else - ac_cv_lib_cdata_libcdata_list_element_set_next_element=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_set_previous_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_set_previous_node=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_cdata_libcdata_list_element_set_next_element" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_set_next_element" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_set_next_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_get_elements in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_get_elements in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_get_elements+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_next_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_get_next_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_get_next_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26261,40 +30516,40 @@ 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 libcdata_list_element_get_elements (); +char libcdata_tree_node_get_next_node (); int -main () +main (void) { -return libcdata_list_element_get_elements (); +return libcdata_tree_node_get_next_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_get_elements=yes -else - ac_cv_lib_cdata_libcdata_list_element_get_elements=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_get_next_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_get_next_node=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_cdata_libcdata_list_element_get_elements" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_get_elements" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_get_elements" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_next_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_get_next_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_next_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_list_element_set_elements in -lcdata" >&5 -$as_echo_n "checking for libcdata_list_element_set_elements in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_list_element_set_elements+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_next_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_set_next_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_set_next_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26303,44 +30558,40 @@ 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 libcdata_list_element_set_elements (); +char libcdata_tree_node_set_next_node (); int -main () +main (void) { -return libcdata_list_element_set_elements (); +return libcdata_tree_node_set_next_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_list_element_set_elements=yes -else - ac_cv_lib_cdata_libcdata_list_element_set_elements=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_set_next_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_set_next_node=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_cdata_libcdata_list_element_set_elements" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_list_element_set_elements" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_list_element_set_elements" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_next_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_set_next_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_next_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - ac_cv_libcdata=no -fi - - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_initialize in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_initialize in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_nodes in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_get_nodes in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_get_nodes+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26349,40 +30600,40 @@ 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 libcdata_range_list_initialize (); +char libcdata_tree_node_get_nodes (); int -main () +main (void) { -return libcdata_range_list_initialize (); +return libcdata_tree_node_get_nodes (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_initialize=yes -else - ac_cv_lib_cdata_libcdata_range_list_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_get_nodes=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_get_nodes=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_cdata_libcdata_range_list_initialize" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_initialize" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_nodes" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_get_nodes" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_nodes" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_free in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_free in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_nodes in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_set_nodes in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_set_nodes+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26391,40 +30642,40 @@ 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 libcdata_range_list_free (); +char libcdata_tree_node_set_nodes (); int -main () +main (void) { -return libcdata_range_list_free (); +return libcdata_tree_node_set_nodes (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_free=yes -else - ac_cv_lib_cdata_libcdata_range_list_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_set_nodes=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_set_nodes=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_cdata_libcdata_range_list_free" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_free" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_nodes" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_set_nodes" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_nodes" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_empty in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_empty in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_empty+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_append_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_append_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_append_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26433,40 +30684,40 @@ 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 libcdata_range_list_empty (); +char libcdata_tree_node_append_node (); int -main () +main (void) { -return libcdata_range_list_empty (); +return libcdata_tree_node_append_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_empty=yes -else - ac_cv_lib_cdata_libcdata_range_list_empty=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_append_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_append_node=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_cdata_libcdata_range_list_empty" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_empty" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_empty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_append_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_append_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_append_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_clone in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_clone in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_append_value in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_append_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_append_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26475,40 +30726,40 @@ 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 libcdata_range_list_clone (); +char libcdata_tree_node_append_value (); int -main () +main (void) { -return libcdata_range_list_clone (); +return libcdata_tree_node_append_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_clone=yes -else - ac_cv_lib_cdata_libcdata_range_list_clone=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_append_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_append_value=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_cdata_libcdata_range_list_clone" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_clone" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_append_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_append_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_append_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_number_of_elements in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_get_number_of_elements in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_insert_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_insert_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_insert_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26517,40 +30768,40 @@ 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 libcdata_range_list_get_number_of_elements (); +char libcdata_tree_node_insert_node (); int -main () +main (void) { -return libcdata_range_list_get_number_of_elements (); +return libcdata_tree_node_insert_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements=yes -else - ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_insert_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_insert_node=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_cdata_libcdata_range_list_get_number_of_elements" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_get_number_of_elements" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_insert_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_insert_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_insert_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_insert_range in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_insert_range in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_insert_range+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_insert_value in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_insert_value in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_insert_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26559,40 +30810,40 @@ 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 libcdata_range_list_insert_range (); +char libcdata_tree_node_insert_value (); int -main () +main (void) { -return libcdata_range_list_insert_range (); +return libcdata_tree_node_insert_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_insert_range=yes -else - ac_cv_lib_cdata_libcdata_range_list_insert_range=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_insert_value=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_insert_value=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_cdata_libcdata_range_list_insert_range" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_insert_range" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_insert_range" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_insert_value" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_insert_value" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_insert_value" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_insert_range_list in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_insert_range_list in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_insert_range_list+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_replace_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_replace_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_replace_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26601,40 +30852,40 @@ 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 libcdata_range_list_insert_range_list (); +char libcdata_tree_node_replace_node (); int -main () +main (void) { -return libcdata_range_list_insert_range_list (); +return libcdata_tree_node_replace_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_insert_range_list=yes -else - ac_cv_lib_cdata_libcdata_range_list_insert_range_list=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_replace_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_replace_node=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_cdata_libcdata_range_list_insert_range_list" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_insert_range_list" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_insert_range_list" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_replace_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_replace_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_replace_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_remove_range in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_remove_range in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_remove_range+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_remove_node in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_remove_node in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_remove_node+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26643,40 +30894,40 @@ 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 libcdata_range_list_remove_range (); +char libcdata_tree_node_remove_node (); int -main () +main (void) { -return libcdata_range_list_remove_range (); +return libcdata_tree_node_remove_node (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_remove_range=yes -else - ac_cv_lib_cdata_libcdata_range_list_remove_range=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_remove_node=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_remove_node=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_cdata_libcdata_range_list_remove_range" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_remove_range" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_remove_range" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_remove_node" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_remove_node" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_remove_node" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_range_by_index in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_get_range_by_index in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_get_range_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_number_of_sub_nodes in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_get_number_of_sub_nodes in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26685,40 +30936,40 @@ 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 libcdata_range_list_get_range_by_index (); +char libcdata_tree_node_get_number_of_sub_nodes (); int -main () +main (void) { -return libcdata_range_list_get_range_by_index (); +return libcdata_tree_node_get_number_of_sub_nodes (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_get_range_by_index=yes -else - ac_cv_lib_cdata_libcdata_range_list_get_range_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes=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_cdata_libcdata_range_list_get_range_by_index" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_get_range_by_index" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_get_range_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_range_at_offset in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_get_range_at_offset in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_sub_node_by_index in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_get_sub_node_by_index in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26727,40 +30978,40 @@ 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 libcdata_range_list_get_range_at_offset (); +char libcdata_tree_node_get_sub_node_by_index (); int -main () +main (void) { -return libcdata_range_list_get_range_at_offset (); +return libcdata_tree_node_get_sub_node_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset=yes -else - ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index=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_cdata_libcdata_range_list_get_range_at_offset" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_get_range_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index" = xyes +then : ac_cv_libcdata_dummy=yes -else +else $as_nop ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_range_is_present in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_range_is_present in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_range_is_present+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_leaf_node_list in -lcdata" >&5 +printf %s "checking for libcdata_tree_node_get_leaf_node_list in -lcdata... " >&6; } +if test ${ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -26769,1121 +31020,1515 @@ 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 libcdata_range_list_range_is_present (); +char libcdata_tree_node_get_leaf_node_list (); int -main () +main (void) { -return libcdata_range_list_range_is_present (); +return libcdata_tree_node_get_leaf_node_list (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_range_is_present=yes +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list=yes +else $as_nop + ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list=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_cdata_libcdata_tree_node_get_leaf_node_list" >&5 +printf "%s\n" "$ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list" >&6; } +if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list" = xyes +then : + ac_cv_libcdata_dummy=yes +else $as_nop + ac_cv_libcdata=no +fi + + + ac_cv_libcdata_LIBADD="-lcdata" +fi + +fi + if test "x$ac_cv_with_libcdata" != x && test "x$ac_cv_with_libcdata" != xauto-detect && test "x$ac_cv_libcdata" != xyes +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 1 "unable to find supported libcdata in directory: $ac_cv_with_libcdata +See \`config.log' for more details" "$LINENO" 5; } + +fi + +fi + + if test "x$ac_cv_libcdata" = xyes +then : + +printf "%s\n" "#define HAVE_LIBCDATA 1" >>confdefs.h + + +fi + + if test "x$ac_cv_libcdata" = xyes +then : + HAVE_LIBCDATA=1 + +else $as_nop + HAVE_LIBCDATA=0 + + +fi + + + if test "x$ac_cv_libcdata" != xyes +then : + + ac_cv_libcdata_CPPFLAGS="-I../libcdata"; + ac_cv_libcdata_LIBADD="../libcdata/libcdata.la"; + + ac_cv_libcdata=local + + + +printf "%s\n" "#define HAVE_LOCAL_LIBCDATA 1" >>confdefs.h + + HAVE_LOCAL_LIBCDATA=1 + + +fi + + if test "x$ac_cv_libcdata" = xlocal; then + HAVE_LOCAL_LIBCDATA_TRUE= + HAVE_LOCAL_LIBCDATA_FALSE='#' +else + HAVE_LOCAL_LIBCDATA_TRUE='#' + HAVE_LOCAL_LIBCDATA_FALSE= +fi + + if test "x$ac_cv_libcdata_CPPFLAGS" != "x" +then : + LIBCDATA_CPPFLAGS=$ac_cv_libcdata_CPPFLAGS + + +fi + if test "x$ac_cv_libcdata_LIBADD" != "x" +then : + LIBCDATA_LIBADD=$ac_cv_libcdata_LIBADD + + +fi + + if test "x$ac_cv_libcdata" = xyes +then : + ax_libcdata_pc_libs_private=-lcdata + + +fi + + if test "x$ac_cv_libcdata" = xyes +then : + ax_libcdata_spec_requires=libcdata + + ax_libcdata_spec_build_requires=libcdata-devel + + +fi + + + + +# Check whether --with-libclocale was given. +if test ${with_libclocale+y} +then : + withval=$with_libclocale; ac_cv_with_libclocale=$withval +else $as_nop + ac_cv_with_libclocale=auto-detect +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libclocale+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_with_libclocale=auto-detect +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libclocale" >&5 +printf "%s\n" "$ac_cv_with_libclocale" >&6; } + + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libclocale" = xno +then : + ac_cv_libclocale=no +else $as_nop + ac_cv_libclocale=check + if test "x$ac_cv_with_libclocale" != x && test "x$ac_cv_with_libclocale" != xauto-detect +then : + if test -d "$ac_cv_with_libclocale" +then : + CFLAGS="$CFLAGS -I${ac_cv_with_libclocale}/include" + LDFLAGS="$LDFLAGS -L${ac_cv_with_libclocale}/lib" +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 1 "no such directory: $ac_cv_with_libclocale +See \`config.log' for more details" "$LINENO" 5; } + +fi + +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : + +pkg_failed=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale >= 20120425" >&5 +printf %s "checking for libclocale >= 20120425... " >&6; } + +if test -n "$libclocale_CFLAGS"; then + pkg_cv_libclocale_CFLAGS="$libclocale_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclocale >= 20120425\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libclocale >= 20120425") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_libclocale_CFLAGS=`$PKG_CONFIG --cflags "libclocale >= 20120425" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$libclocale_LIBS"; then + pkg_cv_libclocale_LIBS="$libclocale_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclocale >= 20120425\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libclocale >= 20120425") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_libclocale_LIBS=`$PKG_CONFIG --libs "libclocale >= 20120425" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes else - ac_cv_lib_cdata_libcdata_range_list_range_is_present=no + pkg_failed=yes fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + else + pkg_failed=untried fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_range_is_present" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_range_is_present" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_range_is_present" = xyes; then : - ac_cv_libcdata_dummy=yes + + + +if test $pkg_failed = yes; then + { 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 else - ac_cv_libcdata=no + _pkg_short_errors_supported=no fi + if test $_pkg_short_errors_supported = yes; then + libclocale_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libclocale >= 20120425" 2>&1` + else + libclocale_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libclocale >= 20120425" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$libclocale_PKG_ERRORS" >&5 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_range_list_get_spanning_range in -lcdata" >&5 -$as_echo_n "checking for libcdata_range_list_get_spanning_range in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_range_list_get_spanning_range+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + ac_cv_libclocale=check +elif test $pkg_failed = untried; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libclocale=check +else + libclocale_CFLAGS=$pkg_cv_libclocale_CFLAGS + libclocale_LIBS=$pkg_cv_libclocale_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libclocale=yes +fi + +fi + if test "x$ac_cv_libclocale" = xyes && test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libclocale/features.h defines LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 +printf %s "checking whether libclocale/features.h defines LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } +if test ${ac_cv_header_libclocale_features_h_have_wide_character_type+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 -/* 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 libcdata_range_list_get_spanning_range (); + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int -main () +main (void) { -return libcdata_range_list_get_spanning_range (); +#if !defined( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE != 1 ) +#error LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE not defined +#endif ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_range_list_get_spanning_range=yes -else - ac_cv_lib_cdata_libcdata_range_list_get_spanning_range=no +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_header_libclocale_features_h_have_wide_character_type=yes +else $as_nop + ac_cv_header_libclocale_features_h_have_wide_character_type=no fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS +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 + fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_range_list_get_spanning_range" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libclocale_features_h_have_wide_character_type" >&5 +printf "%s\n" "$ac_cv_header_libclocale_features_h_have_wide_character_type" >&6; } + + if test "x$ac_cv_header_libclocale_features_h_have_wide_character_type" = xno +then : + ac_cv_libclocale=no +fi + +fi + if test "x$ac_cv_libclocale" = xyes +then : + ac_cv_libclocale_CPPFLAGS="$pkg_cv_libclocale_CFLAGS" + ac_cv_libclocale_LIBADD="$pkg_cv_libclocale_LIBS" +fi + fi + if test "x$ac_cv_libclocale" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libclocale.h" "ac_cv_header_libclocale_h" "$ac_includes_default" +if test "x$ac_cv_header_libclocale_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBCLOCALE_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_initialize in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_initialize in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else +fi + + + if test "x$ac_cv_header_libclocale_h" = xno +then : + ac_cv_libclocale=no +else $as_nop + ac_cv_libclocale=yes + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_get_version in -lclocale" >&5 +printf %s "checking for libclocale_get_version in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_initialize (); +char libclocale_get_version (); int -main () +main (void) { -return libcdata_tree_node_initialize (); +return libclocale_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_initialize=yes -else - ac_cv_lib_cdata_libcdata_tree_node_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_get_version=yes +else $as_nop + ac_cv_lib_clocale_libclocale_get_version=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_cdata_libcdata_tree_node_initialize" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_initialize" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_initialize" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_get_version" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_get_version" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_get_version" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_free in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_free in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage in -lclocale" >&5 +printf %s "checking for libclocale_codepage in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_codepage+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_free (); +char libclocale_codepage (); int -main () +main (void) { -return libcdata_tree_node_free (); +return libclocale_codepage (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_free=yes -else - ac_cv_lib_cdata_libcdata_tree_node_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_codepage=yes +else $as_nop + ac_cv_lib_clocale_libclocale_codepage=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_cdata_libcdata_tree_node_free" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_free" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_free" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_codepage" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_codepage" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_empty in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_empty in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_empty+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_get in -lclocale" >&5 +printf %s "checking for libclocale_codepage_get in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_codepage_get+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_empty (); +char libclocale_codepage_get (); int -main () +main (void) { -return libcdata_tree_node_empty (); +return libclocale_codepage_get (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_empty=yes -else - ac_cv_lib_cdata_libcdata_tree_node_empty=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_codepage_get=yes +else $as_nop + ac_cv_lib_clocale_libclocale_codepage_get=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_cdata_libcdata_tree_node_empty" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_empty" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_empty" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage_get" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_codepage_get" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_codepage_get" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_clone in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_clone in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_set in -lclocale" >&5 +printf %s "checking for libclocale_codepage_set in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_codepage_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_clone (); +char libclocale_codepage_set (); int -main () +main (void) { -return libcdata_tree_node_clone (); +return libclocale_codepage_set (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_clone=yes -else - ac_cv_lib_cdata_libcdata_tree_node_clone=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_codepage_set=yes +else $as_nop + ac_cv_lib_clocale_libclocale_codepage_set=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_cdata_libcdata_tree_node_clone" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_clone" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_clone" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage_set" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_codepage_set" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_codepage_set" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_get_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_get_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_copy_from_string in -lclocale" >&5 +printf %s "checking for libclocale_codepage_copy_from_string in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_codepage_copy_from_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_get_value (); +char libclocale_codepage_copy_from_string (); int -main () +main (void) { -return libcdata_tree_node_get_value (); +return libclocale_codepage_copy_from_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_get_value=yes -else - ac_cv_lib_cdata_libcdata_tree_node_get_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_codepage_copy_from_string=yes +else $as_nop + ac_cv_lib_clocale_libclocale_codepage_copy_from_string=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_cdata_libcdata_tree_node_get_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_value" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage_copy_from_string" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_codepage_copy_from_string" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_codepage_copy_from_string" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_set_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_set_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + + if test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_copy_from_string_wide in -lclocale" >&5 +printf %s "checking for libclocale_codepage_copy_from_string_wide in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_set_value (); +char libclocale_codepage_copy_from_string_wide (); int -main () +main (void) { -return libcdata_tree_node_set_value (); +return libclocale_codepage_copy_from_string_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_set_value=yes -else - ac_cv_lib_cdata_libcdata_tree_node_set_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide=yes +else $as_nop + ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide=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_cdata_libcdata_tree_node_set_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_value" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_parent_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_get_parent_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_get_parent_node+:} false; then : - $as_echo_n "(cached) " >&6 -else + +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_locale_get_codepage in -lclocale" >&5 +printf %s "checking for libclocale_locale_get_codepage in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_locale_get_codepage+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_get_parent_node (); +char libclocale_locale_get_codepage (); int -main () +main (void) { -return libcdata_tree_node_get_parent_node (); +return libclocale_locale_get_codepage (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_get_parent_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_get_parent_node=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_locale_get_codepage=yes +else $as_nop + ac_cv_lib_clocale_libclocale_locale_get_codepage=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_cdata_libcdata_tree_node_get_parent_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_parent_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_parent_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_locale_get_codepage" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_locale_get_codepage" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_locale_get_codepage" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_parent_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_set_parent_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_set_parent_node+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_locale_get_decimal_point in -lclocale" >&5 +printf %s "checking for libclocale_locale_get_decimal_point in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_locale_get_decimal_point+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_set_parent_node (); +char libclocale_locale_get_decimal_point (); int -main () +main (void) { -return libcdata_tree_node_set_parent_node (); +return libclocale_locale_get_decimal_point (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_set_parent_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_set_parent_node=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_locale_get_decimal_point=yes +else $as_nop + ac_cv_lib_clocale_libclocale_locale_get_decimal_point=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_cdata_libcdata_tree_node_set_parent_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_parent_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_parent_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_locale_get_decimal_point" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_locale_get_decimal_point" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_locale_get_decimal_point" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_previous_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_get_previous_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_get_previous_node+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libclocale_initialize in -lclocale" >&5 +printf %s "checking for libclocale_initialize in -lclocale... " >&6; } +if test ${ac_cv_lib_clocale_libclocale_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lclocale $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 libcdata_tree_node_get_previous_node (); +char libclocale_initialize (); int -main () +main (void) { -return libcdata_tree_node_get_previous_node (); +return libclocale_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_get_previous_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_get_previous_node=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_clocale_libclocale_initialize=yes +else $as_nop + ac_cv_lib_clocale_libclocale_initialize=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_cdata_libcdata_tree_node_get_previous_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_previous_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_previous_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_clocale_libclocale_initialize" >&5 +printf "%s\n" "$ac_cv_lib_clocale_libclocale_initialize" >&6; } +if test "x$ac_cv_lib_clocale_libclocale_initialize" = xyes +then : + ac_cv_libclocale_dummy=yes +else $as_nop + ac_cv_libclocale=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_previous_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_set_previous_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_set_previous_node+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $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 libcdata_tree_node_set_previous_node (); -int -main () -{ -return libcdata_tree_node_set_previous_node (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_set_previous_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_set_previous_node=no + ac_cv_libclocale_LIBADD="-lclocale" fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_previous_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no + if test "x$ac_cv_with_libclocale" != x && test "x$ac_cv_with_libclocale" != xauto-detect && test "x$ac_cv_libclocale" != xyes +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 1 "unable to find supported libclocale in directory: $ac_cv_with_libclocale +See \`config.log' for more details" "$LINENO" 5; } + fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_next_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_get_next_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_get_next_node+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +fi + + if test "x$ac_cv_libclocale" = xyes +then : + +printf "%s\n" "#define HAVE_LIBCLOCALE 1" >>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 libcdata_tree_node_get_next_node (); -int -main () -{ -return libcdata_tree_node_get_next_node (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_get_next_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_get_next_node=no fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + + if test "x$ac_cv_libclocale" = xyes +then : + HAVE_LIBCLOCALE=1 + +else $as_nop + HAVE_LIBCLOCALE=0 + + fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_next_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_next_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_next_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no + + + if test "x$ac_cv_libclocale" != xyes +then : + ac_fn_c_check_header_compile "$LINENO" "langinfo.h" "ac_cv_header_langinfo_h" "$ac_includes_default" +if test "x$ac_cv_header_langinfo_h" = xyes +then : + printf "%s\n" "#define HAVE_LANGINFO_H 1" >>confdefs.h + fi +ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" +if test "x$ac_cv_header_locale_h" = xyes +then : + printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_next_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_set_next_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_set_next_node+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ +fi -/* 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 libcdata_tree_node_set_next_node (); + + ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" +if test "x$ac_cv_func_getenv" = xyes +then : + printf "%s\n" "#define HAVE_GETENV 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_getenv" != xyes +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 1 "Missing function: getenv +See \`config.log' for more details" "$LINENO" 5; } + +fi + + if test "x$ac_cv_enable_winapi" = xno +then : + ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" +if test "x$ac_cv_func_localeconv" = xyes +then : + printf "%s\n" "#define HAVE_LOCALECONV 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_localeconv" != xyes +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 1 "Missing function: localeconv +See \`config.log' for more details" "$LINENO" 5; } + +fi + +fi + + ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" +if test "x$ac_cv_func_setlocale" = xyes +then : + printf "%s\n" "#define HAVE_SETLOCALE 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_setlocale" != xyes +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 1 "Missing function: setlocale +See \`config.log' for more details" "$LINENO" 5; } + +fi + + ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" +if test "x$ac_cv_func_nl_langinfo" = xyes +then : + printf "%s\n" "#define HAVE_NL_LANGINFO 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_nl_langinfo" = xyes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo CODESET support" >&5 +printf %s "checking for nl_langinfo CODESET support... " >&6; } +if test ${ac_cv_cv_langinfo_codeset+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 + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include int -main () +main (void) { -return libcdata_tree_node_set_next_node (); +char* charset = nl_langinfo( CODESET ); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_set_next_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_set_next_node=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_cv_langinfo_codeset=yes +else $as_nop + ac_cv_cv_langinfo_codeset=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 + 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: $ac_cv_lib_cdata_libcdata_tree_node_set_next_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_next_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_next_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cv_langinfo_codeset" >&5 +printf "%s\n" "$ac_cv_cv_langinfo_codeset" >&6; } +else $as_nop + ac_cv_cv_langinfo_codeset=no +fi + + if test "x$ac_cv_cv_langinfo_codeset" = xyes +then : + +printf "%s\n" "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h + + +fi + + + ac_cv_libclocale_CPPFLAGS="-I../libclocale"; + ac_cv_libclocale_LIBADD="../libclocale/libclocale.la"; + + ac_cv_libclocale=local + + + +printf "%s\n" "#define HAVE_LOCAL_LIBCLOCALE 1" >>confdefs.h + + HAVE_LOCAL_LIBCLOCALE=1 + + fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_nodes in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_get_nodes in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_get_nodes+:} false; then : - $as_echo_n "(cached) " >&6 + if test "x$ac_cv_libclocale" = xlocal; then + HAVE_LOCAL_LIBCLOCALE_TRUE= + HAVE_LOCAL_LIBCLOCALE_FALSE='#' else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + HAVE_LOCAL_LIBCLOCALE_TRUE='#' + HAVE_LOCAL_LIBCLOCALE_FALSE= +fi -/* 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 libcdata_tree_node_get_nodes (); -int -main () -{ -return libcdata_tree_node_get_nodes (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_get_nodes=yes + if test "x$ac_cv_libclocale_CPPFLAGS" != "x" +then : + LIBCLOCALE_CPPFLAGS=$ac_cv_libclocale_CPPFLAGS + + +fi + if test "x$ac_cv_libclocale_LIBADD" != "x" +then : + LIBCLOCALE_LIBADD=$ac_cv_libclocale_LIBADD + + +fi + + if test "x$ac_cv_libclocale" = xyes +then : + ax_libclocale_pc_libs_private=-lclocale + + +fi + + if test "x$ac_cv_libclocale" = xyes +then : + ax_libclocale_spec_requires=libclocale + + ax_libclocale_spec_build_requires=libclocale-devel + + +fi + + + + +# Check whether --with-libcnotify was given. +if test ${with_libcnotify+y} +then : + withval=$with_libcnotify; ac_cv_with_libcnotify=$withval +else $as_nop + ac_cv_with_libcnotify=auto-detect +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libcnotify+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_with_libcnotify=auto-detect +fi +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcnotify" >&5 +printf "%s\n" "$ac_cv_with_libcnotify" >&6; } + + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcnotify" = xno +then : + ac_cv_libcnotify=no +else $as_nop + ac_cv_libcnotify=check + if test "x$ac_cv_with_libcnotify" != x && test "x$ac_cv_with_libcnotify" != xauto-detect +then : + if test -d "$ac_cv_with_libcnotify" +then : + CFLAGS="$CFLAGS -I${ac_cv_with_libcnotify}/include" + LDFLAGS="$LDFLAGS -L${ac_cv_with_libcnotify}/lib" +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 1 "no such directory: $ac_cv_with_libcnotify +See \`config.log' for more details" "$LINENO" 5; } + +fi + +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : + +pkg_failed=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify >= 20120425" >&5 +printf %s "checking for libcnotify >= 20120425... " >&6; } + +if test -n "$libcnotify_CFLAGS"; then + pkg_cv_libcnotify_CFLAGS="$libcnotify_CFLAGS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcnotify >= 20120425\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcnotify >= 20120425") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_libcnotify_CFLAGS=`$PKG_CONFIG --cflags "libcnotify >= 20120425" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes +else + pkg_failed=yes +fi + else + pkg_failed=untried +fi +if test -n "$libcnotify_LIBS"; then + pkg_cv_libcnotify_LIBS="$libcnotify_LIBS" + elif test -n "$PKG_CONFIG"; then + if test -n "$PKG_CONFIG" && \ + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcnotify >= 20120425\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcnotify >= 20120425") 2>&5 + ac_status=$? + printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 + test $ac_status = 0; }; then + pkg_cv_libcnotify_LIBS=`$PKG_CONFIG --libs "libcnotify >= 20120425" 2>/dev/null` + test "x$?" != "x0" && pkg_failed=yes else - ac_cv_lib_cdata_libcdata_tree_node_get_nodes=no + pkg_failed=yes fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + else + pkg_failed=untried fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_get_nodes" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_nodes" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_nodes" = xyes; then : - ac_cv_libcdata_dummy=yes + + + +if test $pkg_failed = yes; then + { 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 else - ac_cv_libcdata=no + _pkg_short_errors_supported=no fi + if test $_pkg_short_errors_supported = yes; then + libcnotify_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcnotify >= 20120425" 2>&1` + else + libcnotify_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcnotify >= 20120425" 2>&1` + fi + # Put the nasty error message in config.log where it belongs + echo "$libcnotify_PKG_ERRORS" >&5 - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_set_nodes in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_set_nodes in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_set_nodes+:} false; then : - $as_echo_n "(cached) " >&6 + ac_cv_libcnotify=check +elif test $pkg_failed = untried; then + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libcnotify=check else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + libcnotify_CFLAGS=$pkg_cv_libcnotify_CFLAGS + libcnotify_LIBS=$pkg_cv_libcnotify_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libcnotify=yes +fi -/* 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 libcdata_tree_node_set_nodes (); -int -main () -{ -return libcdata_tree_node_set_nodes (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_set_nodes=yes -else - ac_cv_lib_cdata_libcdata_tree_node_set_nodes=no fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS + if test "x$ac_cv_libcnotify" = xyes +then : + ac_cv_libcnotify_CPPFLAGS="$pkg_cv_libcnotify_CFLAGS" + ac_cv_libcnotify_LIBADD="$pkg_cv_libcnotify_LIBS" fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_set_nodes" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_set_nodes" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_set_nodes" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no + fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_append_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_append_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_append_node+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" -cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ + if test "x$ac_cv_libcnotify" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libcnotify.h" "ac_cv_header_libcnotify_h" "$ac_includes_default" +if test "x$ac_cv_header_libcnotify_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBCNOTIFY_H 1" >>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 libcdata_tree_node_append_node (); -int -main () -{ -return libcdata_tree_node_append_node (); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_append_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_append_node=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext conftest.$ac_ext -LIBS=$ac_check_lib_save_LIBS -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cdata_libcdata_tree_node_append_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_append_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_append_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_append_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_append_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_append_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + + if test "x$ac_cv_header_libcnotify_h" = xno +then : + ac_cv_libcnotify=no +else $as_nop + ac_cv_libcnotify=yes + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify_get_version in -lcnotify" >&5 +printf %s "checking for libcnotify_get_version in -lcnotify... " >&6; } +if test ${ac_cv_lib_cnotify_libcnotify_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lcnotify $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 libcdata_tree_node_append_value (); +char libcnotify_get_version (); int -main () +main (void) { -return libcdata_tree_node_append_value (); +return libcnotify_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_append_value=yes -else - ac_cv_lib_cdata_libcdata_tree_node_append_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cnotify_libcnotify_get_version=yes +else $as_nop + ac_cv_lib_cnotify_libcnotify_get_version=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_cdata_libcdata_tree_node_append_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_append_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_append_value" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_get_version" >&5 +printf "%s\n" "$ac_cv_lib_cnotify_libcnotify_get_version" >&6; } +if test "x$ac_cv_lib_cnotify_libcnotify_get_version" = xyes +then : + ac_cv_libcnotify_dummy=yes +else $as_nop + ac_cv_libcnotify=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_insert_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_insert_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_insert_node+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify_printf in -lcnotify" >&5 +printf %s "checking for libcnotify_printf in -lcnotify... " >&6; } +if test ${ac_cv_lib_cnotify_libcnotify_printf+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lcnotify $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 libcdata_tree_node_insert_node (); +char libcnotify_printf (); int -main () +main (void) { -return libcdata_tree_node_insert_node (); +return libcnotify_printf (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_insert_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_insert_node=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cnotify_libcnotify_printf=yes +else $as_nop + ac_cv_lib_cnotify_libcnotify_printf=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_cdata_libcdata_tree_node_insert_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_insert_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_insert_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_printf" >&5 +printf "%s\n" "$ac_cv_lib_cnotify_libcnotify_printf" >&6; } +if test "x$ac_cv_lib_cnotify_libcnotify_printf" = xyes +then : + ac_cv_libcnotify_dummy=yes +else $as_nop + ac_cv_libcnotify=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_insert_value in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_insert_value in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_insert_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify_print_data in -lcnotify" >&5 +printf %s "checking for libcnotify_print_data in -lcnotify... " >&6; } +if test ${ac_cv_lib_cnotify_libcnotify_print_data+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lcnotify $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 libcdata_tree_node_insert_value (); +char libcnotify_print_data (); int -main () +main (void) { -return libcdata_tree_node_insert_value (); +return libcnotify_print_data (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_insert_value=yes -else - ac_cv_lib_cdata_libcdata_tree_node_insert_value=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cnotify_libcnotify_print_data=yes +else $as_nop + ac_cv_lib_cnotify_libcnotify_print_data=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_cdata_libcdata_tree_node_insert_value" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_insert_value" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_insert_value" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_print_data" >&5 +printf "%s\n" "$ac_cv_lib_cnotify_libcnotify_print_data" >&6; } +if test "x$ac_cv_lib_cnotify_libcnotify_print_data" = xyes +then : + ac_cv_libcnotify_dummy=yes +else $as_nop + ac_cv_libcnotify=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_replace_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_replace_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_replace_node+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify_print_error_backtrace in -lcnotify" >&5 +printf %s "checking for libcnotify_print_error_backtrace in -lcnotify... " >&6; } +if test ${ac_cv_lib_cnotify_libcnotify_print_error_backtrace+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lcnotify $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 libcdata_tree_node_replace_node (); +char libcnotify_print_error_backtrace (); int -main () +main (void) { -return libcdata_tree_node_replace_node (); +return libcnotify_print_error_backtrace (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_replace_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_replace_node=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cnotify_libcnotify_print_error_backtrace=yes +else $as_nop + ac_cv_lib_cnotify_libcnotify_print_error_backtrace=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_cdata_libcdata_tree_node_replace_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_replace_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_replace_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_print_error_backtrace" >&5 +printf "%s\n" "$ac_cv_lib_cnotify_libcnotify_print_error_backtrace" >&6; } +if test "x$ac_cv_lib_cnotify_libcnotify_print_error_backtrace" = xyes +then : + ac_cv_libcnotify_dummy=yes +else $as_nop + ac_cv_libcnotify=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_remove_node in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_remove_node in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_remove_node+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_set in -lcnotify" >&5 +printf %s "checking for libcnotify_stream_set in -lcnotify... " >&6; } +if test ${ac_cv_lib_cnotify_libcnotify_stream_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lcnotify $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 libcdata_tree_node_remove_node (); +char libcnotify_stream_set (); int -main () +main (void) { -return libcdata_tree_node_remove_node (); +return libcnotify_stream_set (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_remove_node=yes -else - ac_cv_lib_cdata_libcdata_tree_node_remove_node=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cnotify_libcnotify_stream_set=yes +else $as_nop + ac_cv_lib_cnotify_libcnotify_stream_set=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_cdata_libcdata_tree_node_remove_node" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_remove_node" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_remove_node" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_stream_set" >&5 +printf "%s\n" "$ac_cv_lib_cnotify_libcnotify_stream_set" >&6; } +if test "x$ac_cv_lib_cnotify_libcnotify_stream_set" = xyes +then : + ac_cv_libcnotify_dummy=yes +else $as_nop + ac_cv_libcnotify=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_number_of_sub_nodes in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_get_number_of_sub_nodes in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_open in -lcnotify" >&5 +printf %s "checking for libcnotify_stream_open in -lcnotify... " >&6; } +if test ${ac_cv_lib_cnotify_libcnotify_stream_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lcnotify $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 libcdata_tree_node_get_number_of_sub_nodes (); +char libcnotify_stream_open (); int -main () +main (void) { -return libcdata_tree_node_get_number_of_sub_nodes (); +return libcnotify_stream_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes=yes -else - ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cnotify_libcnotify_stream_open=yes +else $as_nop + ac_cv_lib_cnotify_libcnotify_stream_open=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_cdata_libcdata_tree_node_get_number_of_sub_nodes" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_number_of_sub_nodes" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_stream_open" >&5 +printf "%s\n" "$ac_cv_lib_cnotify_libcnotify_stream_open" >&6; } +if test "x$ac_cv_lib_cnotify_libcnotify_stream_open" = xyes +then : + ac_cv_libcnotify_dummy=yes +else $as_nop + ac_cv_libcnotify=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_sub_node_by_index in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_get_sub_node_by_index in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_close in -lcnotify" >&5 +printf %s "checking for libcnotify_stream_close in -lcnotify... " >&6; } +if test ${ac_cv_lib_cnotify_libcnotify_stream_close+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lcnotify $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 libcdata_tree_node_get_sub_node_by_index (); +char libcnotify_stream_close (); int -main () +main (void) { -return libcdata_tree_node_get_sub_node_by_index (); +return libcnotify_stream_close (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index=yes -else - ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cnotify_libcnotify_stream_close=yes +else $as_nop + ac_cv_lib_cnotify_libcnotify_stream_close=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_cdata_libcdata_tree_node_get_sub_node_by_index" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_sub_node_by_index" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_stream_close" >&5 +printf "%s\n" "$ac_cv_lib_cnotify_libcnotify_stream_close" >&6; } +if test "x$ac_cv_lib_cnotify_libcnotify_stream_close" = xyes +then : + ac_cv_libcnotify_dummy=yes +else $as_nop + ac_cv_libcnotify=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcdata_tree_node_get_leaf_node_list in -lcdata" >&5 -$as_echo_n "checking for libcdata_tree_node_get_leaf_node_list in -lcdata... " >&6; } -if ${ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcnotify_verbose_set in -lcnotify" >&5 +printf %s "checking for libcnotify_verbose_set in -lcnotify... " >&6; } +if test ${ac_cv_lib_cnotify_libcnotify_verbose_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcdata $LIBS" +LIBS="-lcnotify $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 libcdata_tree_node_get_leaf_node_list (); +char libcnotify_verbose_set (); int -main () +main (void) { -return libcdata_tree_node_get_leaf_node_list (); +return libcnotify_verbose_set (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list=yes -else - ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_cnotify_libcnotify_verbose_set=yes +else $as_nop + ac_cv_lib_cnotify_libcnotify_verbose_set=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_cdata_libcdata_tree_node_get_leaf_node_list" >&5 -$as_echo "$ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list" >&6; } -if test "x$ac_cv_lib_cdata_libcdata_tree_node_get_leaf_node_list" = xyes; then : - ac_cv_libcdata_dummy=yes -else - ac_cv_libcdata=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cnotify_libcnotify_verbose_set" >&5 +printf "%s\n" "$ac_cv_lib_cnotify_libcnotify_verbose_set" >&6; } +if test "x$ac_cv_lib_cnotify_libcnotify_verbose_set" = xyes +then : + ac_cv_libcnotify_dummy=yes +else $as_nop + ac_cv_libcnotify=no fi - ac_cv_libcdata_LIBADD="-lcdata" + ac_cv_libcnotify_LIBADD="-lcnotify" fi fi - if test "x$ac_cv_with_libcdata" != x && test "x$ac_cv_with_libcdata" != xauto-detect && test "x$ac_cv_libcdata" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "unable to find supported libcdata in directory: $ac_cv_with_libcdata + if test "x$ac_cv_with_libcnotify" != x && test "x$ac_cv_with_libcnotify" != xauto-detect && test "x$ac_cv_libcnotify" != xyes +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 1 "unable to find supported libcnotify in directory: $ac_cv_with_libcnotify See \`config.log' for more details" "$LINENO" 5; } fi fi - if test "x$ac_cv_libcdata" = xyes; then : + if test "x$ac_cv_libcnotify" = xyes +then : -$as_echo "#define HAVE_LIBCDATA 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCNOTIFY 1" >>confdefs.h fi - if test "x$ac_cv_libcdata" = xyes; then : - HAVE_LIBCDATA=1 + if test "x$ac_cv_libcnotify" = xyes +then : + HAVE_LIBCNOTIFY=1 -else - HAVE_LIBCDATA=0 +else $as_nop + HAVE_LIBCNOTIFY=0 fi - if test "x$ac_cv_libcdata" != xyes; then : + if test "x$ac_cv_libcnotify" != xyes +then : + ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes +then : + printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h - ac_cv_libcdata_CPPFLAGS="-I../libcdata"; - ac_cv_libcdata_LIBADD="../libcdata/libcdata.la"; +fi +ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" +if test "x$ac_cv_header_varargs_h" = xyes +then : + printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h - ac_cv_libcdata=local +fi + + + if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes +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 1 "Missing headers: stdarg.h and varargs.h +See \`config.log' for more details" "$LINENO" 5; } + +fi + ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" +if test "x$ac_cv_header_errno_h" = xyes +then : + printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h +fi -$as_echo "#define HAVE_LOCAL_LIBCDATA 1" >>confdefs.h - HAVE_LOCAL_LIBCDATA=1 + ac_cv_libcnotify_CPPFLAGS="-I../libcnotify"; + ac_cv_libcnotify_LIBADD="../libcnotify/libcnotify.la"; + + ac_cv_libcnotify=local + + + +printf "%s\n" "#define HAVE_LOCAL_LIBCNOTIFY 1" >>confdefs.h + + HAVE_LOCAL_LIBCNOTIFY=1 fi - if test "x$ac_cv_libcdata" = xlocal; then - HAVE_LOCAL_LIBCDATA_TRUE= - HAVE_LOCAL_LIBCDATA_FALSE='#' + if test "x$ac_cv_libcnotify" = xlocal; then + HAVE_LOCAL_LIBCNOTIFY_TRUE= + HAVE_LOCAL_LIBCNOTIFY_FALSE='#' else - HAVE_LOCAL_LIBCDATA_TRUE='#' - HAVE_LOCAL_LIBCDATA_FALSE= + HAVE_LOCAL_LIBCNOTIFY_TRUE='#' + HAVE_LOCAL_LIBCNOTIFY_FALSE= fi - if test "x$ac_cv_libcdata_CPPFLAGS" != "x"; then : - LIBCDATA_CPPFLAGS=$ac_cv_libcdata_CPPFLAGS + if test "x$ac_cv_libcnotify_CPPFLAGS" != "x" +then : + LIBCNOTIFY_CPPFLAGS=$ac_cv_libcnotify_CPPFLAGS fi - if test "x$ac_cv_libcdata_LIBADD" != "x"; then : - LIBCDATA_LIBADD=$ac_cv_libcdata_LIBADD + if test "x$ac_cv_libcnotify_LIBADD" != "x" +then : + LIBCNOTIFY_LIBADD=$ac_cv_libcnotify_LIBADD fi - if test "x$ac_cv_libcdata" = xyes; then : - ax_libcdata_pc_libs_private=-lcdata + if test "x$ac_cv_libcnotify" = xyes +then : + ax_libcnotify_pc_libs_private=-lcnotify fi - if test "x$ac_cv_libcdata" = xyes; then : - ax_libcdata_spec_requires=libcdata + if test "x$ac_cv_libcnotify" = xyes +then : + ax_libcnotify_spec_requires=libcnotify - ax_libcdata_spec_build_requires=libcdata-devel + ax_libcnotify_spec_build_requires=libcnotify-devel fi @@ -27891,56 +32536,62 @@ fi -# Check whether --with-libclocale was given. -if test "${with_libclocale+set}" = set; then : - withval=$with_libclocale; ac_cv_with_libclocale=$withval -else - ac_cv_with_libclocale=auto-detect +# Check whether --with-libcsplit was given. +if test ${with_libcsplit+y} +then : + withval=$with_libcsplit; ac_cv_with_libcsplit=$withval +else $as_nop + ac_cv_with_libcsplit=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libclocale in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libclocale+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_with_libclocale=auto-detect + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libcsplit+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_with_libcsplit=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libclocale" >&5 -$as_echo "$ac_cv_with_libclocale" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcsplit" >&5 +printf "%s\n" "$ac_cv_with_libcsplit" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libclocale" = xno; then : - ac_cv_libclocale=no -else - ac_cv_libclocale=check - if test "x$ac_cv_with_libclocale" != x && test "x$ac_cv_with_libclocale" != xauto-detect; then : - if test -d "$ac_cv_with_libclocale"; then : - CFLAGS="$CFLAGS -I${ac_cv_with_libclocale}/include" - LDFLAGS="$LDFLAGS -L${ac_cv_with_libclocale}/lib" -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 1 "no such directory: $ac_cv_with_libclocale + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcsplit" = xno +then : + ac_cv_libcsplit=no +else $as_nop + ac_cv_libcsplit=check + if test "x$ac_cv_with_libcsplit" != x && test "x$ac_cv_with_libcsplit" != xauto-detect +then : + if test -d "$ac_cv_with_libcsplit" +then : + CFLAGS="$CFLAGS -I${ac_cv_with_libcsplit}/include" + LDFLAGS="$LDFLAGS -L${ac_cv_with_libcsplit}/lib" +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 1 "no such directory: $ac_cv_with_libcsplit See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale" >&5 -$as_echo_n "checking for libclocale... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit >= 20120701" >&5 +printf %s "checking for libcsplit >= 20120701... " >&6; } -if test -n "$libclocale_CFLAGS"; then - pkg_cv_libclocale_CFLAGS="$libclocale_CFLAGS" +if test -n "$libcsplit_CFLAGS"; then + pkg_cv_libcsplit_CFLAGS="$libcsplit_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclocale >= 20120425\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libclocale >= 20120425") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcsplit >= 20120701\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcsplit >= 20120701") 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_libclocale_CFLAGS=`$PKG_CONFIG --cflags "libclocale >= 20120425" 2>/dev/null` + pkg_cv_libcsplit_CFLAGS=`$PKG_CONFIG --cflags "libcsplit >= 20120701" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -27948,16 +32599,16 @@ fi else pkg_failed=untried fi -if test -n "$libclocale_LIBS"; then - pkg_cv_libclocale_LIBS="$libclocale_LIBS" +if test -n "$libcsplit_LIBS"; then + pkg_cv_libcsplit_LIBS="$libcsplit_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libclocale >= 20120425\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libclocale >= 20120425") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcsplit >= 20120701\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libcsplit >= 20120701") 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_libclocale_LIBS=`$PKG_CONFIG --libs "libclocale >= 20120425" 2>/dev/null` + pkg_cv_libcsplit_LIBS=`$PKG_CONFIG --libs "libcsplit >= 20120701" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -27969,8 +32620,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 @@ -27978,33 +32629,35 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libclocale_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libclocale >= 20120425" 2>&1` + libcsplit_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcsplit >= 20120701" 2>&1` else - libclocale_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libclocale >= 20120425" 2>&1` + libcsplit_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcsplit >= 20120701" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libclocale_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libcsplit_PKG_ERRORS" >&5 - ac_cv_libclocale=check + ac_cv_libcsplit=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libclocale=check -else - libclocale_CFLAGS=$pkg_cv_libclocale_CFLAGS - libclocale_LIBS=$pkg_cv_libclocale_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libclocale=yes -fi - -fi - if test "x$ac_cv_libclocale" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libclocale/features.h defines LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 -$as_echo_n "checking whether libclocale/features.h defines LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } -if ${ac_cv_header_libclocale_features_h_have_wide_character_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libcsplit=check +else + libcsplit_CFLAGS=$pkg_cv_libcsplit_CFLAGS + libcsplit_LIBS=$pkg_cv_libcsplit_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libcsplit=yes +fi + +fi + if test "x$ac_cv_libcsplit" = xyes && test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcsplit/features.h defines LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 +printf %s "checking whether libcsplit/features.h defines LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } +if test ${ac_cv_header_libcsplit_features_h_have_wide_character_type+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' @@ -28013,23 +32666,24 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include +#include int -main () +main (void) { -#if !defined( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE != 1 ) -#error LIBCLOCALE_HAVE_WIDE_CHARACTER_TYPE not defined +#if !defined( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE != 1 ) +#error LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE not defined #endif ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_libclocale_features_h_have_wide_character_type=yes -else - ac_cv_header_libclocale_features_h_have_wide_character_type=no +if ac_fn_c_try_compile "$LINENO" +then : + ac_cv_header_libcsplit_features_h_have_wide_character_type=yes +else $as_nop + ac_cv_header_libcsplit_features_h_have_wide_character_type=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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -28037,641 +32691,678 @@ 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: $ac_cv_header_libclocale_features_h_have_wide_character_type" >&5 -$as_echo "$ac_cv_header_libclocale_features_h_have_wide_character_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libcsplit_features_h_have_wide_character_type" >&5 +printf "%s\n" "$ac_cv_header_libcsplit_features_h_have_wide_character_type" >&6; } - if test "x$ac_cv_header_libclocale_features_h_have_wide_character_type" = xno; then : - ac_cv_libclocale=no + if test "x$ac_cv_header_libcsplit_features_h_have_wide_character_type" = xno +then : + ac_cv_libcsplit=no fi fi - if test "x$ac_cv_libclocale" = xyes; then : - ac_cv_libclocale_CPPFLAGS="$pkg_cv_libclocale_CFLAGS" - ac_cv_libclocale_LIBADD="$pkg_cv_libclocale_LIBS" + if test "x$ac_cv_libcsplit" = xyes +then : + ac_cv_libcsplit_CPPFLAGS="$pkg_cv_libcsplit_CFLAGS" + ac_cv_libcsplit_LIBADD="$pkg_cv_libcsplit_LIBS" fi fi - if test "x$ac_cv_libclocale" = xcheck; then : - for ac_header in libclocale.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libclocale.h" "ac_cv_header_libclocale_h" "$ac_includes_default" -if test "x$ac_cv_header_libclocale_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCLOCALE_H 1 -_ACEOF + if test "x$ac_cv_libcsplit" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libcsplit.h" "ac_cv_header_libcsplit_h" "$ac_includes_default" +if test "x$ac_cv_header_libcsplit_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBCSPLIT_H 1" >>confdefs.h fi -done + if test "x$ac_cv_header_libcsplit_h" = xno +then : + ac_cv_libcsplit=no +else $as_nop + ac_cv_libcsplit=yes - if test "x$ac_cv_header_libclocale_h" = xno; then : - ac_cv_libclocale=no -else - ac_cv_libclocale=yes + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_get_version in -lcsplit" >&5 +printf %s "checking for libcsplit_get_version in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcsplit $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_get_version in -lclocale" >&5 -$as_echo_n "checking for libclocale_get_version in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else +/* 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 libcsplit_get_version (); +int +main (void) +{ +return libcsplit_get_version (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_get_version=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_get_version=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_csplit_libcsplit_get_version" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_get_version" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_get_version" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_string_split in -lcsplit" >&5 +printf %s "checking for libcsplit_narrow_string_split in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_narrow_string_split+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_get_version (); +char libcsplit_narrow_string_split (); int -main () +main (void) { -return libclocale_get_version (); +return libcsplit_narrow_string_split (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_get_version=yes -else - ac_cv_lib_clocale_libclocale_get_version=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_narrow_string_split=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_narrow_string_split=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_clocale_libclocale_get_version" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_get_version" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_get_version" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_string_split" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_narrow_string_split" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_narrow_string_split" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage in -lclocale" >&5 -$as_echo_n "checking for libclocale_codepage in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_codepage+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_free in -lcsplit" >&5 +printf %s "checking for libcsplit_narrow_split_string_free in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_narrow_split_string_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_codepage (); +char libcsplit_narrow_split_string_free (); int -main () +main (void) { -return libclocale_codepage (); +return libcsplit_narrow_split_string_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_codepage=yes -else - ac_cv_lib_clocale_libclocale_codepage=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_narrow_split_string_free=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_narrow_split_string_free=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_csplit_libcsplit_narrow_split_string_free" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_narrow_split_string_free" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_free" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_string in -lcsplit" >&5 +printf %s "checking for libcsplit_narrow_split_string_get_string in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcsplit $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 libcsplit_narrow_split_string_get_string (); +int +main (void) +{ +return libcsplit_narrow_split_string_get_string (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string=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_csplit_libcsplit_narrow_split_string_get_string" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_number_of_segments in -lcsplit" >&5 +printf %s "checking for libcsplit_narrow_split_string_get_number_of_segments in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcsplit $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 libcsplit_narrow_split_string_get_number_of_segments (); +int +main (void) +{ +return libcsplit_narrow_split_string_get_number_of_segments (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments=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_csplit_libcsplit_narrow_split_string_get_number_of_segments" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_segment_by_index in -lcsplit" >&5 +printf %s "checking for libcsplit_narrow_split_string_get_segment_by_index in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lcsplit $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 libcsplit_narrow_split_string_get_segment_by_index (); +int +main (void) +{ +return libcsplit_narrow_split_string_get_segment_by_index (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index=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_clocale_libclocale_codepage" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_codepage" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_codepage" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_get in -lclocale" >&5 -$as_echo_n "checking for libclocale_codepage_get in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_codepage_get+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_set_segment_by_index in -lcsplit" >&5 +printf %s "checking for libcsplit_narrow_split_string_set_segment_by_index in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_codepage_get (); +char libcsplit_narrow_split_string_set_segment_by_index (); int -main () +main (void) { -return libclocale_codepage_get (); +return libcsplit_narrow_split_string_set_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_codepage_get=yes -else - ac_cv_lib_clocale_libclocale_codepage_get=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index=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_clocale_libclocale_codepage_get" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_codepage_get" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_codepage_get" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_set in -lclocale" >&5 -$as_echo_n "checking for libclocale_codepage_set in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_codepage_set+:} false; then : - $as_echo_n "(cached) " >&6 -else + + if test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_string_split in -lcsplit" >&5 +printf %s "checking for libcsplit_wide_string_split in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_wide_string_split+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_codepage_set (); +char libcsplit_wide_string_split (); int -main () +main (void) { -return libclocale_codepage_set (); +return libcsplit_wide_string_split (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_codepage_set=yes -else - ac_cv_lib_clocale_libclocale_codepage_set=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_wide_string_split=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_wide_string_split=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_clocale_libclocale_codepage_set" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_codepage_set" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_codepage_set" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_string_split" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_wide_string_split" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_wide_string_split" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_copy_from_string in -lclocale" >&5 -$as_echo_n "checking for libclocale_codepage_copy_from_string in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_codepage_copy_from_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_free in -lcsplit" >&5 +printf %s "checking for libcsplit_wide_split_string_free in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_wide_split_string_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_codepage_copy_from_string (); +char libcsplit_wide_split_string_free (); int -main () +main (void) { -return libclocale_codepage_copy_from_string (); +return libcsplit_wide_split_string_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_codepage_copy_from_string=yes -else - ac_cv_lib_clocale_libclocale_codepage_copy_from_string=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_wide_split_string_free=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_wide_split_string_free=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_clocale_libclocale_codepage_copy_from_string" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_codepage_copy_from_string" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_codepage_copy_from_string" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_free" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_wide_split_string_free" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_free" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi - - if test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_codepage_copy_from_string_wide in -lclocale" >&5 -$as_echo_n "checking for libclocale_codepage_copy_from_string_wide in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_string in -lcsplit" >&5 +printf %s "checking for libcsplit_wide_split_string_get_string in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_codepage_copy_from_string_wide (); +char libcsplit_wide_split_string_get_string (); int -main () +main (void) { -return libclocale_codepage_copy_from_string_wide (); +return libcsplit_wide_split_string_get_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide=yes -else - ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_wide_split_string_get_string=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_wide_split_string_get_string=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_clocale_libclocale_codepage_copy_from_string_wide" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_codepage_copy_from_string_wide" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no -fi - - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_get_string" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_string" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_string" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_locale_get_codepage in -lclocale" >&5 -$as_echo_n "checking for libclocale_locale_get_codepage in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_locale_get_codepage+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_number_of_segments in -lcsplit" >&5 +printf %s "checking for libcsplit_wide_split_string_get_number_of_segments in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_locale_get_codepage (); +char libcsplit_wide_split_string_get_number_of_segments (); int -main () +main (void) { -return libclocale_locale_get_codepage (); +return libcsplit_wide_split_string_get_number_of_segments (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_locale_get_codepage=yes -else - ac_cv_lib_clocale_libclocale_locale_get_codepage=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments=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_clocale_libclocale_locale_get_codepage" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_locale_get_codepage" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_locale_get_codepage" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_locale_get_decimal_point in -lclocale" >&5 -$as_echo_n "checking for libclocale_locale_get_decimal_point in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_locale_get_decimal_point+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_segment_by_index in -lcsplit" >&5 +printf %s "checking for libcsplit_wide_split_string_get_segment_by_index in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_locale_get_decimal_point (); +char libcsplit_wide_split_string_get_segment_by_index (); int -main () +main (void) { -return libclocale_locale_get_decimal_point (); +return libcsplit_wide_split_string_get_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_locale_get_decimal_point=yes -else - ac_cv_lib_clocale_libclocale_locale_get_decimal_point=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index=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_clocale_libclocale_locale_get_decimal_point" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_locale_get_decimal_point" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_locale_get_decimal_point" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libclocale_initialize in -lclocale" >&5 -$as_echo_n "checking for libclocale_initialize in -lclocale... " >&6; } -if ${ac_cv_lib_clocale_libclocale_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_set_segment_by_index in -lcsplit" >&5 +printf %s "checking for libcsplit_wide_split_string_set_segment_by_index in -lcsplit... " >&6; } +if test ${ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lclocale $LIBS" +LIBS="-lcsplit $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 libclocale_initialize (); +char libcsplit_wide_split_string_set_segment_by_index (); int -main () +main (void) { -return libclocale_initialize (); +return libcsplit_wide_split_string_set_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_clocale_libclocale_initialize=yes -else - ac_cv_lib_clocale_libclocale_initialize=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index=yes +else $as_nop + ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index=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_clocale_libclocale_initialize" >&5 -$as_echo "$ac_cv_lib_clocale_libclocale_initialize" >&6; } -if test "x$ac_cv_lib_clocale_libclocale_initialize" = xyes; then : - ac_cv_libclocale_dummy=yes -else - ac_cv_libclocale=no -fi - - - ac_cv_libclocale_LIBADD="-lclocale" -fi - -fi - if test "x$ac_cv_with_libclocale" != x && test "x$ac_cv_with_libclocale" != xauto-detect && test "x$ac_cv_libclocale" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "unable to find supported libclocale in directory: $ac_cv_with_libclocale -See \`config.log' for more details" "$LINENO" 5; } - -fi - -fi - - if test "x$ac_cv_libclocale" = xyes; then : - -$as_echo "#define HAVE_LIBCLOCALE 1" >>confdefs.h - - -fi - - if test "x$ac_cv_libclocale" = xyes; then : - HAVE_LIBCLOCALE=1 - -else - HAVE_LIBCLOCALE=0 - - -fi - - - if test "x$ac_cv_libclocale" != xyes; then : - for ac_header in langinfo.h locale.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index" >&6; } +if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index" = xyes +then : + ac_cv_libcsplit_dummy=yes +else $as_nop + ac_cv_libcsplit=no fi -done - - - for ac_func in getenv -do : - ac_fn_c_check_func "$LINENO" "getenv" "ac_cv_func_getenv" -if test "x$ac_cv_func_getenv" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_GETENV 1 -_ACEOF fi -done - - - if test "x$ac_cv_func_getenv" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: getenv -See \`config.log' for more details" "$LINENO" 5; } + ac_cv_libcsplit_LIBADD="-lcsplit" fi - if test "x$ac_cv_enable_winapi" = xno; then : - for ac_func in localeconv -do : - ac_fn_c_check_func "$LINENO" "localeconv" "ac_cv_func_localeconv" -if test "x$ac_cv_func_localeconv" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LOCALECONV 1 -_ACEOF - fi -done - - - if test "x$ac_cv_func_localeconv" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: localeconv + if test "x$ac_cv_with_libcsplit" != x && test "x$ac_cv_with_libcsplit" != xauto-detect && test "x$ac_cv_libcsplit" != xyes +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 1 "unable to find supported libcsplit in directory: $ac_cv_with_libcsplit See \`config.log' for more details" "$LINENO" 5; } fi fi - for ac_func in setlocale -do : - ac_fn_c_check_func "$LINENO" "setlocale" "ac_cv_func_setlocale" -if test "x$ac_cv_func_setlocale" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_SETLOCALE 1 -_ACEOF - -fi -done - - - if test "x$ac_cv_func_setlocale" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing function: setlocale -See \`config.log' for more details" "$LINENO" 5; } + if test "x$ac_cv_libcsplit" = xyes +then : -fi +printf "%s\n" "#define HAVE_LIBCSPLIT 1" >>confdefs.h - for ac_func in nl_langinfo -do : - ac_fn_c_check_func "$LINENO" "nl_langinfo" "ac_cv_func_nl_langinfo" -if test "x$ac_cv_func_nl_langinfo" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_NL_LANGINFO 1 -_ACEOF fi -done + if test "x$ac_cv_libcsplit" = xyes +then : + HAVE_LIBCSPLIT=1 - if test "x$ac_cv_func_nl_langinfo" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo CODESET support" >&5 -$as_echo_n "checking for nl_langinfo CODESET support... " >&6; } -if ${ac_cv_cv_langinfo_codeset+:} 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 +else $as_nop + HAVE_LIBCSPLIT=0 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -int -main () -{ -char* charset = nl_langinfo( CODESET ); - ; - return 0; -} -_ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_cv_langinfo_codeset=yes -else - ac_cv_cv_langinfo_codeset=no -fi -rm -f core conftest.err conftest.$ac_objext \ - conftest$ac_exeext 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: $ac_cv_cv_langinfo_codeset" >&5 -$as_echo "$ac_cv_cv_langinfo_codeset" >&6; } -else - ac_cv_cv_langinfo_codeset=no fi - if test "x$ac_cv_cv_langinfo_codeset" = xyes; then : - -$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h - - -fi + if test "x$ac_cv_libcsplit" != xyes +then : - ac_cv_libclocale_CPPFLAGS="-I../libclocale"; - ac_cv_libclocale_LIBADD="../libclocale/libclocale.la"; + ac_cv_libcsplit_CPPFLAGS="-I../libcsplit"; + ac_cv_libcsplit_LIBADD="../libcsplit/libcsplit.la"; - ac_cv_libclocale=local + ac_cv_libcsplit=local -$as_echo "#define HAVE_LOCAL_LIBCLOCALE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBCSPLIT 1" >>confdefs.h - HAVE_LOCAL_LIBCLOCALE=1 + HAVE_LOCAL_LIBCSPLIT=1 fi - if test "x$ac_cv_libclocale" = xlocal; then - HAVE_LOCAL_LIBCLOCALE_TRUE= - HAVE_LOCAL_LIBCLOCALE_FALSE='#' + if test "x$ac_cv_libcsplit" = xlocal; then + HAVE_LOCAL_LIBCSPLIT_TRUE= + HAVE_LOCAL_LIBCSPLIT_FALSE='#' else - HAVE_LOCAL_LIBCLOCALE_TRUE='#' - HAVE_LOCAL_LIBCLOCALE_FALSE= + HAVE_LOCAL_LIBCSPLIT_TRUE='#' + HAVE_LOCAL_LIBCSPLIT_FALSE= fi - if test "x$ac_cv_libclocale_CPPFLAGS" != "x"; then : - LIBCLOCALE_CPPFLAGS=$ac_cv_libclocale_CPPFLAGS + if test "x$ac_cv_libcsplit_CPPFLAGS" != "x" +then : + LIBCSPLIT_CPPFLAGS=$ac_cv_libcsplit_CPPFLAGS fi - if test "x$ac_cv_libclocale_LIBADD" != "x"; then : - LIBCLOCALE_LIBADD=$ac_cv_libclocale_LIBADD + if test "x$ac_cv_libcsplit_LIBADD" != "x" +then : + LIBCSPLIT_LIBADD=$ac_cv_libcsplit_LIBADD fi - if test "x$ac_cv_libclocale" = xyes; then : - ax_libclocale_pc_libs_private=-lclocale + if test "x$ac_cv_libcsplit" = xyes +then : + ax_libcsplit_pc_libs_private=-lcsplit fi - if test "x$ac_cv_libclocale" = xyes; then : - ax_libclocale_spec_requires=libclocale + if test "x$ac_cv_libcsplit" = xyes +then : + ax_libcsplit_spec_requires=libcsplit - ax_libclocale_spec_build_requires=libclocale-devel + ax_libcsplit_spec_build_requires=libcsplit-devel fi @@ -28679,56 +33370,62 @@ fi -# Check whether --with-libcnotify was given. -if test "${with_libcnotify+set}" = set; then : - withval=$with_libcnotify; ac_cv_with_libcnotify=$withval -else - ac_cv_with_libcnotify=auto-detect +# Check whether --with-libuna was given. +if test ${with_libuna+y} +then : + withval=$with_libuna; ac_cv_with_libuna=$withval +else $as_nop + ac_cv_with_libuna=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libcnotify in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libcnotify+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_with_libcnotify=auto-detect + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libuna in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libuna in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libuna+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_cv_with_libuna=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcnotify" >&5 -$as_echo "$ac_cv_with_libcnotify" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libuna" >&5 +printf "%s\n" "$ac_cv_with_libuna" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcnotify" = xno; then : - ac_cv_libcnotify=no -else - ac_cv_libcnotify=check - if test "x$ac_cv_with_libcnotify" != x && test "x$ac_cv_with_libcnotify" != xauto-detect; then : - if test -d "$ac_cv_with_libcnotify"; then : - CFLAGS="$CFLAGS -I${ac_cv_with_libcnotify}/include" - LDFLAGS="$LDFLAGS -L${ac_cv_with_libcnotify}/lib" -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 1 "no such directory: $ac_cv_with_libcnotify + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libuna" = xno +then : + ac_cv_libuna=no +else $as_nop + ac_cv_libuna=check + if test "x$ac_cv_with_libuna" != x && test "x$ac_cv_with_libuna" != xauto-detect +then : + if test -d "$ac_cv_with_libuna" +then : + CFLAGS="$CFLAGS -I${ac_cv_with_libuna}/include" + LDFLAGS="$LDFLAGS -L${ac_cv_with_libuna}/lib" +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 1 "no such directory: $ac_cv_with_libuna See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify" >&5 -$as_echo_n "checking for libcnotify... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna >= 20230702" >&5 +printf %s "checking for libuna >= 20230702... " >&6; } -if test -n "$libcnotify_CFLAGS"; then - pkg_cv_libcnotify_CFLAGS="$libcnotify_CFLAGS" +if test -n "$libuna_CFLAGS"; then + pkg_cv_libuna_CFLAGS="$libuna_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcnotify >= 20120425\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcnotify >= 20120425") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuna >= 20230702\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libuna >= 20230702") 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_libcnotify_CFLAGS=`$PKG_CONFIG --cflags "libcnotify >= 20120425" 2>/dev/null` + pkg_cv_libuna_CFLAGS=`$PKG_CONFIG --cflags "libuna >= 20230702" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -28736,16 +33433,16 @@ fi else pkg_failed=untried fi -if test -n "$libcnotify_LIBS"; then - pkg_cv_libcnotify_LIBS="$libcnotify_LIBS" +if test -n "$libuna_LIBS"; then + pkg_cv_libuna_LIBS="$libuna_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcnotify >= 20120425\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcnotify >= 20120425") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuna >= 20230702\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libuna >= 20230702") 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_libcnotify_LIBS=`$PKG_CONFIG --libs "libcnotify >= 20120425" 2>/dev/null` + pkg_cv_libuna_LIBS=`$PKG_CONFIG --libs "libuna >= 20230702" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -28757,8 +33454,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 @@ -28766,1466 +33463,1912 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libcnotify_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcnotify >= 20120425" 2>&1` + libuna_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuna >= 20230702" 2>&1` else - libcnotify_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcnotify >= 20120425" 2>&1` + libuna_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuna >= 20230702" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libcnotify_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libuna_PKG_ERRORS" >&5 - ac_cv_libcnotify=check + ac_cv_libuna=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libcnotify=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libuna=check else - libcnotify_CFLAGS=$pkg_cv_libcnotify_CFLAGS - libcnotify_LIBS=$pkg_cv_libcnotify_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libcnotify=yes + libuna_CFLAGS=$pkg_cv_libuna_CFLAGS + libuna_LIBS=$pkg_cv_libuna_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libuna=yes fi fi - if test "x$ac_cv_libcnotify" = xyes; then : - ac_cv_libcnotify_CPPFLAGS="$pkg_cv_libcnotify_CFLAGS" - ac_cv_libcnotify_LIBADD="$pkg_cv_libcnotify_LIBS" + if test "x$ac_cv_libuna" = xyes +then : + ac_cv_libuna_CPPFLAGS="$pkg_cv_libuna_CFLAGS" + ac_cv_libuna_LIBADD="$pkg_cv_libuna_LIBS" fi fi - if test "x$ac_cv_libcnotify" = xcheck; then : - for ac_header in libcnotify.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libcnotify.h" "ac_cv_header_libcnotify_h" "$ac_includes_default" -if test "x$ac_cv_header_libcnotify_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCNOTIFY_H 1 + if test "x$ac_cv_libuna" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libuna.h" "ac_cv_header_libuna_h" "$ac_includes_default" +if test "x$ac_cv_header_libuna_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBUNA_H 1" >>confdefs.h + +fi + + + if test "x$ac_cv_header_libuna_h" = xno +then : + ac_cv_libuna=no +else $as_nop + ac_cv_libuna=yes + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_get_version in -luna" >&5 +printf %s "checking for libuna_get_version in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_get_version (); +int +main (void) +{ +return libuna_get_version (); + ; + return 0; +} _ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_get_version=yes +else $as_nop + ac_cv_lib_una_libuna_get_version=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_una_libuna_get_version" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_get_version" >&6; } +if test "x$ac_cv_lib_una_libuna_get_version" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_size_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_base16_stream_size_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_base16_stream_size_to_byte_stream (); +int +main (void) +{ +return libuna_base16_stream_size_to_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream=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_una_libuna_base16_stream_size_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi -done + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_copy_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_base16_stream_copy_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_base16_stream_copy_to_byte_stream (); +int +main (void) +{ +return libuna_base16_stream_copy_to_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream=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_una_libuna_base16_stream_copy_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no +fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_size_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base16_stream_size_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "x$ac_cv_header_libcnotify_h" = xno; then : - ac_cv_libcnotify=no -else - ac_cv_libcnotify=yes +/* 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 libuna_base16_stream_size_from_byte_stream (); +int +main (void) +{ +return libuna_base16_stream_size_from_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream=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_una_libuna_base16_stream_size_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base16_stream_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_base16_stream_copy_from_byte_stream (); +int +main (void) +{ +return libuna_base16_stream_copy_from_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream=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_una_libuna_base16_stream_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_with_index_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base16_stream_with_index_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_base16_stream_with_index_copy_from_byte_stream (); +int +main (void) +{ +return libuna_base16_stream_with_index_copy_from_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream=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_una_libuna_base16_stream_with_index_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_from_base32_stream in -luna" >&5 +printf %s "checking for libuna_base32_quintuplet_copy_from_base32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_base32_quintuplet_copy_from_base32_stream (); +int +main (void) +{ +return libuna_base32_quintuplet_copy_from_base32_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream=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_una_libuna_base32_quintuplet_copy_from_base32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no +fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_get_version in -lcnotify" >&5 -$as_echo_n "checking for libcnotify_get_version in -lcnotify... " >&6; } -if ${ac_cv_lib_cnotify_libcnotify_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_to_base32_stream in -luna" >&5 +printf %s "checking for libuna_base32_quintuplet_copy_to_base32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcnotify $LIBS" +LIBS="-luna $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 libcnotify_get_version (); +char libuna_base32_quintuplet_copy_to_base32_stream (); int -main () +main (void) { -return libcnotify_get_version (); +return libuna_base32_quintuplet_copy_to_base32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cnotify_libcnotify_get_version=yes -else - ac_cv_lib_cnotify_libcnotify_get_version=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream=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_cnotify_libcnotify_get_version" >&5 -$as_echo "$ac_cv_lib_cnotify_libcnotify_get_version" >&6; } -if test "x$ac_cv_lib_cnotify_libcnotify_get_version" = xyes; then : - ac_cv_libcnotify_dummy=yes -else - ac_cv_libcnotify=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_printf in -lcnotify" >&5 -$as_echo_n "checking for libcnotify_printf in -lcnotify... " >&6; } -if ${ac_cv_lib_cnotify_libcnotify_printf+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base32_quintuplet_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcnotify $LIBS" +LIBS="-luna $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 libcnotify_printf (); +char libuna_base32_quintuplet_copy_from_byte_stream (); int -main () +main (void) { -return libcnotify_printf (); +return libuna_base32_quintuplet_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cnotify_libcnotify_printf=yes -else - ac_cv_lib_cnotify_libcnotify_printf=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream=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_cnotify_libcnotify_printf" >&5 -$as_echo "$ac_cv_lib_cnotify_libcnotify_printf" >&6; } -if test "x$ac_cv_lib_cnotify_libcnotify_printf" = xyes; then : - ac_cv_libcnotify_dummy=yes -else - ac_cv_libcnotify=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_print_data in -lcnotify" >&5 -$as_echo_n "checking for libcnotify_print_data in -lcnotify... " >&6; } -if ${ac_cv_lib_cnotify_libcnotify_print_data+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_base32_quintuplet_copy_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcnotify $LIBS" +LIBS="-luna $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 libcnotify_print_data (); +char libuna_base32_quintuplet_copy_to_byte_stream (); int -main () +main (void) { -return libcnotify_print_data (); +return libuna_base32_quintuplet_copy_to_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cnotify_libcnotify_print_data=yes -else - ac_cv_lib_cnotify_libcnotify_print_data=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream=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_cnotify_libcnotify_print_data" >&5 -$as_echo "$ac_cv_lib_cnotify_libcnotify_print_data" >&6; } -if test "x$ac_cv_lib_cnotify_libcnotify_print_data" = xyes; then : - ac_cv_libcnotify_dummy=yes -else - ac_cv_libcnotify=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_print_error_backtrace in -lcnotify" >&5 -$as_echo_n "checking for libcnotify_print_error_backtrace in -lcnotify... " >&6; } -if ${ac_cv_lib_cnotify_libcnotify_print_error_backtrace+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_size_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_base32_stream_size_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcnotify $LIBS" +LIBS="-luna $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 libcnotify_print_error_backtrace (); +char libuna_base32_stream_size_to_byte_stream (); int -main () +main (void) { -return libcnotify_print_error_backtrace (); +return libuna_base32_stream_size_to_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cnotify_libcnotify_print_error_backtrace=yes -else - ac_cv_lib_cnotify_libcnotify_print_error_backtrace=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream=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_cnotify_libcnotify_print_error_backtrace" >&5 -$as_echo "$ac_cv_lib_cnotify_libcnotify_print_error_backtrace" >&6; } -if test "x$ac_cv_lib_cnotify_libcnotify_print_error_backtrace" = xyes; then : - ac_cv_libcnotify_dummy=yes -else - ac_cv_libcnotify=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_set in -lcnotify" >&5 -$as_echo_n "checking for libcnotify_stream_set in -lcnotify... " >&6; } -if ${ac_cv_lib_cnotify_libcnotify_stream_set+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_copy_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_base32_stream_copy_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcnotify $LIBS" +LIBS="-luna $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 libcnotify_stream_set (); +char libuna_base32_stream_copy_to_byte_stream (); int -main () +main (void) { -return libcnotify_stream_set (); +return libuna_base32_stream_copy_to_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cnotify_libcnotify_stream_set=yes -else - ac_cv_lib_cnotify_libcnotify_stream_set=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream=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_cnotify_libcnotify_stream_set" >&5 -$as_echo "$ac_cv_lib_cnotify_libcnotify_stream_set" >&6; } -if test "x$ac_cv_lib_cnotify_libcnotify_stream_set" = xyes; then : - ac_cv_libcnotify_dummy=yes -else - ac_cv_libcnotify=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_open in -lcnotify" >&5 -$as_echo_n "checking for libcnotify_stream_open in -lcnotify... " >&6; } -if ${ac_cv_lib_cnotify_libcnotify_stream_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_size_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base32_stream_size_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcnotify $LIBS" +LIBS="-luna $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 libcnotify_stream_open (); +char libuna_base32_stream_size_from_byte_stream (); int -main () +main (void) { -return libcnotify_stream_open (); +return libuna_base32_stream_size_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cnotify_libcnotify_stream_open=yes -else - ac_cv_lib_cnotify_libcnotify_stream_open=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream=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_cnotify_libcnotify_stream_open" >&5 -$as_echo "$ac_cv_lib_cnotify_libcnotify_stream_open" >&6; } -if test "x$ac_cv_lib_cnotify_libcnotify_stream_open" = xyes; then : - ac_cv_libcnotify_dummy=yes -else - ac_cv_libcnotify=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_stream_close in -lcnotify" >&5 -$as_echo_n "checking for libcnotify_stream_close in -lcnotify... " >&6; } -if ${ac_cv_lib_cnotify_libcnotify_stream_close+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base32_stream_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcnotify $LIBS" +LIBS="-luna $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 libcnotify_stream_close (); +char libuna_base32_stream_copy_from_byte_stream (); int -main () +main (void) { -return libcnotify_stream_close (); +return libuna_base32_stream_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cnotify_libcnotify_stream_close=yes -else - ac_cv_lib_cnotify_libcnotify_stream_close=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream=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_cnotify_libcnotify_stream_close" >&5 -$as_echo "$ac_cv_lib_cnotify_libcnotify_stream_close" >&6; } -if test "x$ac_cv_lib_cnotify_libcnotify_stream_close" = xyes; then : - ac_cv_libcnotify_dummy=yes -else - ac_cv_libcnotify=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcnotify_verbose_set in -lcnotify" >&5 -$as_echo_n "checking for libcnotify_verbose_set in -lcnotify... " >&6; } -if ${ac_cv_lib_cnotify_libcnotify_verbose_set+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_with_index_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base32_stream_with_index_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcnotify $LIBS" +LIBS="-luna $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 libcnotify_verbose_set (); +char libuna_base32_stream_with_index_copy_from_byte_stream (); int -main () +main (void) { -return libcnotify_verbose_set (); +return libuna_base32_stream_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_cnotify_libcnotify_verbose_set=yes -else - ac_cv_lib_cnotify_libcnotify_verbose_set=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream=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_cnotify_libcnotify_verbose_set" >&5 -$as_echo "$ac_cv_lib_cnotify_libcnotify_verbose_set" >&6; } -if test "x$ac_cv_lib_cnotify_libcnotify_verbose_set" = xyes; then : - ac_cv_libcnotify_dummy=yes -else - ac_cv_libcnotify=no -fi - - - ac_cv_libcnotify_LIBADD="-lcnotify" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi -fi - if test "x$ac_cv_with_libcnotify" != x && test "x$ac_cv_with_libcnotify" != xauto-detect && test "x$ac_cv_libcnotify" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "unable to find supported libcnotify in directory: $ac_cv_with_libcnotify -See \`config.log' for more details" "$LINENO" 5; } -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_from_base64_stream in -luna" >&5 +printf %s "checking for libuna_base64_triplet_copy_from_base64_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_base64_triplet_copy_from_base64_stream (); +int +main (void) +{ +return libuna_base64_triplet_copy_from_base64_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream=no fi - - if test "x$ac_cv_libcnotify" = xyes; then : - -$as_echo "#define HAVE_LIBCNOTIFY 1" >>confdefs.h - - +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - if test "x$ac_cv_libcnotify" = xyes; then : - HAVE_LIBCNOTIFY=1 - -else - HAVE_LIBCNOTIFY=0 - - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_to_base64_stream in -luna" >&5 +printf %s "checking for libuna_base64_triplet_copy_to_base64_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "x$ac_cv_libcnotify" != xyes; then : - for ac_header in stdarg.h varargs.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 +/* 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 libuna_base64_triplet_copy_to_base64_stream (); +int +main (void) +{ +return libuna_base64_triplet_copy_to_base64_stream (); + ; + return 0; +} _ACEOF - +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream=no fi - -done - - - if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "Missing headers: stdarg.h and varargs.h -See \`config.log' for more details" "$LINENO" 5; } - +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - for ac_header in errno.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" -if test "x$ac_cv_header_errno_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_ERRNO_H 1 -_ACEOF - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi -done - - - ac_cv_libcnotify_CPPFLAGS="-I../libcnotify"; - ac_cv_libcnotify_LIBADD="../libcnotify/libcnotify.la"; - - ac_cv_libcnotify=local - - - -$as_echo "#define HAVE_LOCAL_LIBCNOTIFY 1" >>confdefs.h - - HAVE_LOCAL_LIBCNOTIFY=1 - + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base64_triplet_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_base64_triplet_copy_from_byte_stream (); +int +main (void) +{ +return libuna_base64_triplet_copy_from_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream=no fi - - if test "x$ac_cv_libcnotify" = xlocal; then - HAVE_LOCAL_LIBCNOTIFY_TRUE= - HAVE_LOCAL_LIBCNOTIFY_FALSE='#' -else - HAVE_LOCAL_LIBCNOTIFY_TRUE='#' - HAVE_LOCAL_LIBCNOTIFY_FALSE= +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - if test "x$ac_cv_libcnotify_CPPFLAGS" != "x"; then : - LIBCNOTIFY_CPPFLAGS=$ac_cv_libcnotify_CPPFLAGS - - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - if test "x$ac_cv_libcnotify_LIBADD" != "x"; then : - LIBCNOTIFY_LIBADD=$ac_cv_libcnotify_LIBADD + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_base64_triplet_copy_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_base64_triplet_copy_to_byte_stream (); +int +main (void) +{ +return libuna_base64_triplet_copy_to_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream=no fi - - if test "x$ac_cv_libcnotify" = xyes; then : - ax_libcnotify_pc_libs_private=-lcnotify - - +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - if test "x$ac_cv_libcnotify" = xyes; then : - ax_libcnotify_spec_requires=libcnotify - - ax_libcnotify_spec_build_requires=libcnotify-devel - - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_size_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_base64_stream_size_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - -# Check whether --with-libcsplit was given. -if test "${with_libcsplit+set}" = set; then : - withval=$with_libcsplit; ac_cv_with_libcsplit=$withval -else - ac_cv_with_libcsplit=auto-detect +/* 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 libuna_base64_stream_size_to_byte_stream (); +int +main (void) +{ +return libuna_base64_stream_size_to_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libcsplit in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libcsplit+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_with_libcsplit=auto-detect +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_with_libcsplit" >&5 -$as_echo "$ac_cv_with_libcsplit" >&6; } - - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcsplit" = xno; then : - ac_cv_libcsplit=no -else - ac_cv_libcsplit=check - if test "x$ac_cv_with_libcsplit" != x && test "x$ac_cv_with_libcsplit" != xauto-detect; then : - if test -d "$ac_cv_with_libcsplit"; then : - CFLAGS="$CFLAGS -I${ac_cv_with_libcsplit}/include" - LDFLAGS="$LDFLAGS -L${ac_cv_with_libcsplit}/lib" -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 1 "no such directory: $ac_cv_with_libcsplit -See \`config.log' for more details" "$LINENO" 5; } - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit" >&5 -$as_echo_n "checking for libcsplit... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_copy_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_base64_stream_copy_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -if test -n "$libcsplit_CFLAGS"; then - pkg_cv_libcsplit_CFLAGS="$libcsplit_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcsplit >= 20120701\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcsplit >= 20120701") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libcsplit_CFLAGS=`$PKG_CONFIG --cflags "libcsplit >= 20120701" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried +/* 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 libuna_base64_stream_copy_to_byte_stream (); +int +main (void) +{ +return libuna_base64_stream_copy_to_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream=no fi -if test -n "$libcsplit_LIBS"; then - pkg_cv_libcsplit_LIBS="$libcsplit_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcsplit >= 20120701\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libcsplit >= 20120701") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libcsplit_LIBS=`$PKG_CONFIG --libs "libcsplit >= 20120701" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - else - pkg_failed=untried +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_size_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base64_stream_size_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no +/* 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 libuna_base64_stream_size_from_byte_stream (); +int +main (void) +{ +return libuna_base64_stream_size_from_byte_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream=no fi - if test $_pkg_short_errors_supported = yes; then - libcsplit_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcsplit >= 20120701" 2>&1` - else - libcsplit_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcsplit >= 20120701" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$libcsplit_PKG_ERRORS" >&5 - - ac_cv_libcsplit=check -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libcsplit=check -else - libcsplit_CFLAGS=$pkg_cv_libcsplit_CFLAGS - libcsplit_LIBS=$pkg_cv_libcsplit_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libcsplit=yes +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_una_libuna_base64_stream_size_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - if test "x$ac_cv_libcsplit" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcsplit/features.h defines LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 -$as_echo_n "checking whether libcsplit/features.h defines LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } -if ${ac_cv_header_libcsplit_features_h_have_wide_character_type+:} 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 - cat confdefs.h - <<_ACEOF >conftest.$ac_ext + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base64_stream_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ -#include + +/* 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 libuna_base64_stream_copy_from_byte_stream (); int -main () +main (void) { -#if !defined( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE != 1 ) -#error LIBCSPLIT_HAVE_WIDE_CHARACTER_TYPE not defined -#endif +return libuna_base64_stream_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_libcsplit_features_h_have_wide_character_type=yes -else - ac_cv_header_libcsplit_features_h_have_wide_character_type=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext - ac_ext=c -ac_cpp='$CPP $CPPFLAGS' -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' -ac_compiler_gnu=$ac_cv_c_compiler_gnu - -fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libcsplit_features_h_have_wide_character_type" >&5 -$as_echo "$ac_cv_header_libcsplit_features_h_have_wide_character_type" >&6; } - - if test "x$ac_cv_header_libcsplit_features_h_have_wide_character_type" = xno; then : - ac_cv_libcsplit=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream=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 - if test "x$ac_cv_libcsplit" = xyes; then : - ac_cv_libcsplit_CPPFLAGS="$pkg_cv_libcsplit_CFLAGS" - ac_cv_libcsplit_LIBADD="$pkg_cv_libcsplit_LIBS" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_with_index_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_base64_stream_with_index_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "x$ac_cv_libcsplit" = xcheck; then : - for ac_header in libcsplit.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libcsplit.h" "ac_cv_header_libcsplit_h" "$ac_includes_default" -if test "x$ac_cv_header_libcsplit_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCSPLIT_H 1 +/* 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 libuna_base64_stream_with_index_copy_from_byte_stream (); +int +main (void) +{ +return libuna_base64_stream_with_index_copy_from_byte_stream (); + ; + return 0; +} _ACEOF - +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream=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_una_libuna_base64_stream_with_index_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi -done - - - if test "x$ac_cv_header_libcsplit_h" = xno; then : - ac_cv_libcsplit=no -else - ac_cv_libcsplit=yes - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_get_version in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_get_version in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf8 in -luna" >&5 +printf %s "checking for libuna_byte_stream_size_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_byte_stream_size_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_get_version (); +char libuna_byte_stream_size_from_utf8 (); int -main () +main (void) { -return libcsplit_get_version (); +return libuna_byte_stream_size_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_get_version=yes -else - ac_cv_lib_csplit_libcsplit_get_version=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_byte_stream_size_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_byte_stream_size_from_utf8=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_csplit_libcsplit_get_version" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_get_version" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_get_version" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_size_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_byte_stream_size_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf8" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_string_split in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_narrow_string_split in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_narrow_string_split+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf8 in -luna" >&5 +printf %s "checking for libuna_byte_stream_copy_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_narrow_string_split (); +char libuna_byte_stream_copy_from_utf8 (); int -main () +main (void) { -return libcsplit_narrow_string_split (); +return libuna_byte_stream_copy_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_narrow_string_split=yes -else - ac_cv_lib_csplit_libcsplit_narrow_string_split=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_byte_stream_copy_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_byte_stream_copy_from_utf8=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_csplit_libcsplit_narrow_string_split" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_narrow_string_split" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_narrow_string_split" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_copy_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf8" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_free in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_narrow_split_string_free in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf16 in -luna" >&5 +printf %s "checking for libuna_byte_stream_size_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_byte_stream_size_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_narrow_split_string_free (); +char libuna_byte_stream_size_from_utf16 (); int -main () +main (void) { -return libcsplit_narrow_split_string_free (); +return libuna_byte_stream_size_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_narrow_split_string_free=yes -else - ac_cv_lib_csplit_libcsplit_narrow_split_string_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_byte_stream_size_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_byte_stream_size_from_utf16=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_csplit_libcsplit_narrow_split_string_free" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_free" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_free" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_size_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_byte_stream_size_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf16" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_string in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_narrow_split_string_get_string in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_byte_stream_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_narrow_split_string_get_string (); +char libuna_byte_stream_copy_from_utf16 (); int -main () +main (void) { -return libcsplit_narrow_split_string_get_string (); +return libuna_byte_stream_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string=yes -else - ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_byte_stream_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_byte_stream_copy_from_utf16=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_csplit_libcsplit_narrow_split_string_get_string" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_string" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf16" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_number_of_segments in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_narrow_split_string_get_number_of_segments in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf32 in -luna" >&5 +printf %s "checking for libuna_byte_stream_size_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_byte_stream_size_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_narrow_split_string_get_number_of_segments (); +char libuna_byte_stream_size_from_utf32 (); int -main () +main (void) { -return libcsplit_narrow_split_string_get_number_of_segments (); +return libuna_byte_stream_size_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments=yes -else - ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_byte_stream_size_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_byte_stream_size_from_utf32=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_csplit_libcsplit_narrow_split_string_get_number_of_segments" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_number_of_segments" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_size_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_byte_stream_size_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf32" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_get_segment_by_index in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_narrow_split_string_get_segment_by_index in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_byte_stream_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_narrow_split_string_get_segment_by_index (); +char libuna_byte_stream_copy_from_utf32 (); int -main () +main (void) { -return libcsplit_narrow_split_string_get_segment_by_index (); +return libuna_byte_stream_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index=yes -else - ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_byte_stream_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_byte_stream_copy_from_utf32=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_csplit_libcsplit_narrow_split_string_get_segment_by_index" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_get_segment_by_index" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_byte_stream_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf32" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_narrow_split_string_set_segment_by_index in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_narrow_split_string_set_segment_by_index in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_size_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_size_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_size_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_narrow_split_string_set_segment_by_index (); +char libuna_unicode_character_size_to_byte_stream (); int -main () +main (void) { -return libcsplit_narrow_split_string_set_segment_by_index (); +return libuna_unicode_character_size_to_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index=yes -else - ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_size_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_size_to_byte_stream=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_csplit_libcsplit_narrow_split_string_set_segment_by_index" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_narrow_split_string_set_segment_by_index" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_size_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_size_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_size_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - - if test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_string_split in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_wide_string_split in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_wide_string_split+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_wide_string_split (); +char libuna_unicode_character_copy_from_byte_stream (); int -main () +main (void) { -return libcsplit_wide_string_split (); +return libuna_unicode_character_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_wide_string_split=yes -else - ac_cv_lib_csplit_libcsplit_wide_string_split=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_byte_stream=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_csplit_libcsplit_wide_string_split" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_wide_string_split" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_wide_string_split" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_free in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_wide_split_string_free in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_wide_split_string_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_byte_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_wide_split_string_free (); +char libuna_unicode_character_copy_to_byte_stream (); int -main () +main (void) { -return libcsplit_wide_split_string_free (); +return libuna_unicode_character_copy_to_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_wide_split_string_free=yes -else - ac_cv_lib_csplit_libcsplit_wide_split_string_free=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_byte_stream=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_csplit_libcsplit_wide_split_string_free" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_free" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_free" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_byte_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_string in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_wide_split_string_get_string in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_size_to_ucs2 in -luna" >&5 +printf %s "checking for libuna_unicode_character_size_to_ucs2 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_size_to_ucs2+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_wide_split_string_get_string (); +char libuna_unicode_character_size_to_ucs2 (); int -main () +main (void) { -return libcsplit_wide_split_string_get_string (); +return libuna_unicode_character_size_to_ucs2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_wide_split_string_get_string=yes -else - ac_cv_lib_csplit_libcsplit_wide_split_string_get_string=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_size_to_ucs2=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_size_to_ucs2=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_csplit_libcsplit_wide_split_string_get_string" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_string" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_string" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_size_to_ucs2" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_size_to_ucs2" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_size_to_ucs2" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_number_of_segments in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_wide_split_string_get_number_of_segments in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_ucs2 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_ucs2 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_ucs2+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_wide_split_string_get_number_of_segments (); +char libuna_unicode_character_copy_from_ucs2 (); int -main () +main (void) { -return libcsplit_wide_split_string_get_number_of_segments (); +return libuna_unicode_character_copy_from_ucs2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments=yes -else - ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_ucs2=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_ucs2=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_csplit_libcsplit_wide_split_string_get_number_of_segments" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_number_of_segments" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_ucs2" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_ucs2" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_ucs2" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_get_segment_by_index in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_wide_split_string_get_segment_by_index in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_ucs2 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_ucs2 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_ucs2+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_wide_split_string_get_segment_by_index (); +char libuna_unicode_character_copy_to_ucs2 (); int -main () +main (void) { -return libcsplit_wide_split_string_get_segment_by_index (); +return libuna_unicode_character_copy_to_ucs2 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index=yes -else - ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_ucs2=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_ucs2=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_csplit_libcsplit_wide_split_string_get_segment_by_index" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_get_segment_by_index" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_ucs2" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_ucs2" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_ucs2" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcsplit_wide_split_string_set_segment_by_index in -lcsplit" >&5 -$as_echo_n "checking for libcsplit_wide_split_string_set_segment_by_index in -lcsplit... " >&6; } -if ${ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_size_to_ucs4 in -luna" >&5 +printf %s "checking for libuna_unicode_character_size_to_ucs4 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_size_to_ucs4+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-lcsplit $LIBS" +LIBS="-luna $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 libcsplit_wide_split_string_set_segment_by_index (); +char libuna_unicode_character_size_to_ucs4 (); int -main () +main (void) { -return libcsplit_wide_split_string_set_segment_by_index (); +return libuna_unicode_character_size_to_ucs4 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index=yes -else - ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_size_to_ucs4=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_size_to_ucs4=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_csplit_libcsplit_wide_split_string_set_segment_by_index" >&5 -$as_echo "$ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index" >&6; } -if test "x$ac_cv_lib_csplit_libcsplit_wide_split_string_set_segment_by_index" = xyes; then : - ac_cv_libcsplit_dummy=yes -else - ac_cv_libcsplit=no -fi - - -fi - - ac_cv_libcsplit_LIBADD="-lcsplit" -fi - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_size_to_ucs4" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_size_to_ucs4" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_size_to_ucs4" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - if test "x$ac_cv_with_libcsplit" != x && test "x$ac_cv_with_libcsplit" != xauto-detect && test "x$ac_cv_libcsplit" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} -as_fn_error 1 "unable to find supported libcsplit in directory: $ac_cv_with_libcsplit -See \`config.log' for more details" "$LINENO" 5; } -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_ucs4 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_ucs4 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_ucs4+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_unicode_character_copy_from_ucs4 (); +int +main (void) +{ +return libuna_unicode_character_copy_from_ucs4 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_ucs4=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_ucs4=no fi - - if test "x$ac_cv_libcsplit" = xyes; then : - -$as_echo "#define HAVE_LIBCSPLIT 1" >>confdefs.h - - +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - if test "x$ac_cv_libcsplit" = xyes; then : - HAVE_LIBCSPLIT=1 - -else - HAVE_LIBCSPLIT=0 - - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_ucs4" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_ucs4" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_ucs4" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_ucs4 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_ucs4 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_ucs4+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "x$ac_cv_libcsplit" != xyes; then : - - ac_cv_libcsplit_CPPFLAGS="-I../libcsplit"; - ac_cv_libcsplit_LIBADD="../libcsplit/libcsplit.la"; - - ac_cv_libcsplit=local - - - -$as_echo "#define HAVE_LOCAL_LIBCSPLIT 1" >>confdefs.h - - HAVE_LOCAL_LIBCSPLIT=1 - - +/* 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 libuna_unicode_character_copy_to_ucs4 (); +int +main (void) +{ +return libuna_unicode_character_copy_to_ucs4 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_ucs4=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_ucs4=no fi - - if test "x$ac_cv_libcsplit" = xlocal; then - HAVE_LOCAL_LIBCSPLIT_TRUE= - HAVE_LOCAL_LIBCSPLIT_FALSE='#' -else - HAVE_LOCAL_LIBCSPLIT_TRUE='#' - HAVE_LOCAL_LIBCSPLIT_FALSE= +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - if test "x$ac_cv_libcsplit_CPPFLAGS" != "x"; then : - LIBCSPLIT_CPPFLAGS=$ac_cv_libcsplit_CPPFLAGS - - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_ucs4" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_ucs4" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_ucs4" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi - if test "x$ac_cv_libcsplit_LIBADD" != "x"; then : - LIBCSPLIT_LIBADD=$ac_cv_libcsplit_LIBADD + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $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 libuna_unicode_character_copy_from_utf7_stream (); +int +main (void) +{ +return libuna_unicode_character_copy_from_utf7_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_utf7_stream=no fi - - if test "x$ac_cv_libcsplit" = xyes; then : - ax_libcsplit_pc_libs_private=-lcsplit - - +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - - if test "x$ac_cv_libcsplit" = xyes; then : - ax_libcsplit_spec_requires=libcsplit - - ax_libcsplit_spec_build_requires=libcsplit-devel - - +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_utf7_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_utf7_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - - -# Check whether --with-libuna was given. -if test "${with_libuna+set}" = set; then : - withval=$with_libuna; ac_cv_with_libuna=$withval -else - ac_cv_with_libuna=auto-detect +/* 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 libuna_unicode_character_copy_to_utf7_stream (); +int +main (void) +{ +return libuna_unicode_character_copy_to_utf7_stream (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_utf7_stream=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libuna in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libuna in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libuna+:} false; then : - $as_echo_n "(cached) " >&6 -else - ac_cv_with_libuna=auto-detect +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_with_libuna" >&5 -$as_echo "$ac_cv_with_libuna" >&6; } - - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libuna" = xno; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_utf7_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop ac_cv_libuna=no -else - ac_cv_libuna=check - if test "x$ac_cv_with_libuna" != x && test "x$ac_cv_with_libuna" != xauto-detect; then : - if test -d "$ac_cv_with_libuna"; then : - CFLAGS="$CFLAGS -I${ac_cv_with_libuna}/include" - LDFLAGS="$LDFLAGS -L${ac_cv_with_libuna}/lib" -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 1 "no such directory: $ac_cv_with_libuna -See \`config.log' for more details" "$LINENO" 5; } - fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : - -pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna" >&5 -$as_echo_n "checking for libuna... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_size_to_utf8 in -luna" >&5 +printf %s "checking for libuna_unicode_character_size_to_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_size_to_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ -if test -n "$libuna_CFLAGS"; then - pkg_cv_libuna_CFLAGS="$libuna_CFLAGS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuna >= 20200711\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libuna >= 20200711") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libuna_CFLAGS=`$PKG_CONFIG --cflags "libuna >= 20200711" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes -fi - else - pkg_failed=untried +/* 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 libuna_unicode_character_size_to_utf8 (); +int +main (void) +{ +return libuna_unicode_character_size_to_utf8 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_size_to_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_size_to_utf8=no fi -if test -n "$libuna_LIBS"; then - pkg_cv_libuna_LIBS="$libuna_LIBS" - elif test -n "$PKG_CONFIG"; then - if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libuna >= 20200711\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libuna >= 20200711") 2>&5 - ac_status=$? - $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 - test $ac_status = 0; }; then - pkg_cv_libuna_LIBS=`$PKG_CONFIG --libs "libuna >= 20200711" 2>/dev/null` - test "x$?" != "x0" && pkg_failed=yes -else - pkg_failed=yes +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext conftest.$ac_ext +LIBS=$ac_check_lib_save_LIBS fi - else - pkg_failed=untried +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_size_to_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_size_to_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_size_to_utf8" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_utf8 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - -if test $pkg_failed = yes; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - -if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then - _pkg_short_errors_supported=yes -else - _pkg_short_errors_supported=no -fi - if test $_pkg_short_errors_supported = yes; then - libuna_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libuna >= 20200711" 2>&1` - else - libuna_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libuna >= 20200711" 2>&1` - fi - # Put the nasty error message in config.log where it belongs - echo "$libuna_PKG_ERRORS" >&5 - - ac_cv_libuna=check -elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libuna=check -else - libuna_CFLAGS=$pkg_cv_libuna_CFLAGS - libuna_LIBS=$pkg_cv_libuna_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libuna=yes +/* 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 libuna_unicode_character_copy_from_utf8 (); +int +main (void) +{ +return libuna_unicode_character_copy_from_utf8 (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_utf8=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 - if test "x$ac_cv_libuna" = xyes; then : - ac_cv_libuna_CPPFLAGS="$pkg_cv_libuna_CFLAGS" - ac_cv_libuna_LIBADD="$pkg_cv_libuna_LIBS" +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_utf8" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop + ac_cv_libuna=no fi -fi + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_utf8 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-luna $LIBS" +cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ - if test "x$ac_cv_libuna" = xcheck; then : - for ac_header in libuna.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libuna.h" "ac_cv_header_libuna_h" "$ac_includes_default" -if test "x$ac_cv_header_libuna_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBUNA_H 1 +/* 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 libuna_unicode_character_copy_to_utf8 (); +int +main (void) +{ +return libuna_unicode_character_copy_to_utf8 (); + ; + return 0; +} _ACEOF - +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_utf8=no fi - -done - - - if test "x$ac_cv_header_libuna_h" = xno; then : +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_una_libuna_unicode_character_copy_to_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_utf8" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop ac_cv_libuna=no -else - ac_cv_libuna=yes +fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_get_version in -luna" >&5 -$as_echo_n "checking for libuna_get_version in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_size_to_utf8_rfc2279 in -luna" >&5 +printf %s "checking for libuna_unicode_character_size_to_utf8_rfc2279 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_size_to_utf8_rfc2279+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30234,41 +35377,40 @@ 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 libuna_get_version (); +char libuna_unicode_character_size_to_utf8_rfc2279 (); int -main () +main (void) { -return libuna_get_version (); +return libuna_unicode_character_size_to_utf8_rfc2279 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_get_version=yes -else - ac_cv_lib_una_libuna_get_version=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_size_to_utf8_rfc2279=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_size_to_utf8_rfc2279=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_una_libuna_get_version" >&5 -$as_echo "$ac_cv_lib_una_libuna_get_version" >&6; } -if test "x$ac_cv_lib_una_libuna_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_size_to_utf8_rfc2279" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_size_to_utf8_rfc2279" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_size_to_utf8_rfc2279" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_size_to_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base16_stream_size_to_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_utf8_rfc2279 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_utf8_rfc2279 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_utf8_rfc2279+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30277,82 +35419,82 @@ 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 libuna_base16_stream_size_to_byte_stream (); +char libuna_unicode_character_copy_from_utf8_rfc2279 (); int -main () +main (void) { -return libuna_base16_stream_size_to_byte_stream (); +return libuna_unicode_character_copy_from_utf8_rfc2279 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream=yes -else - ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_utf8_rfc2279=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_utf8_rfc2279=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_una_libuna_base16_stream_size_to_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base16_stream_size_to_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_utf8_rfc2279" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_utf8_rfc2279" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_utf8_rfc2279" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_copy_to_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base16_stream_copy_to_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_utf8_rfc2279 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_utf8_rfc2279 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_utf8_rfc2279+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $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 libuna_base16_stream_copy_to_byte_stream (); +/* 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 libuna_unicode_character_copy_to_utf8_rfc2279 (); int -main () +main (void) { -return libuna_base16_stream_copy_to_byte_stream (); +return libuna_unicode_character_copy_to_utf8_rfc2279 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream=yes -else - ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_utf8_rfc2279=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_utf8_rfc2279=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_una_libuna_base16_stream_copy_to_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base16_stream_copy_to_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_utf8_rfc2279" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_utf8_rfc2279" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_utf8_rfc2279" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_size_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base16_stream_size_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_size_to_utf16 in -luna" >&5 +printf %s "checking for libuna_unicode_character_size_to_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_size_to_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30361,40 +35503,40 @@ 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 libuna_base16_stream_size_from_byte_stream (); +char libuna_unicode_character_size_to_utf16 (); int -main () +main (void) { -return libuna_base16_stream_size_from_byte_stream (); +return libuna_unicode_character_size_to_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_size_to_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_size_to_utf16=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_una_libuna_base16_stream_size_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base16_stream_size_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_size_to_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_size_to_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_size_to_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base16_stream_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30403,40 +35545,40 @@ 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 libuna_base16_stream_copy_from_byte_stream (); +char libuna_unicode_character_copy_from_utf16 (); int -main () +main (void) { -return libuna_base16_stream_copy_from_byte_stream (); +return libuna_unicode_character_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_utf16=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_una_libuna_base16_stream_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base16_stream_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base16_stream_with_index_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base16_stream_with_index_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_utf16 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30445,41 +35587,40 @@ 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 libuna_base16_stream_with_index_copy_from_byte_stream (); +char libuna_unicode_character_copy_to_utf16 (); int -main () +main (void) { -return libuna_base16_stream_with_index_copy_from_byte_stream (); +return libuna_unicode_character_copy_to_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_utf16=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_una_libuna_base16_stream_with_index_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base16_stream_with_index_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_from_base32_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_quintuplet_copy_from_base32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30488,40 +35629,40 @@ 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 libuna_base32_quintuplet_copy_from_base32_stream (); +char libuna_unicode_character_copy_from_utf16_stream (); int -main () +main (void) { -return libuna_base32_quintuplet_copy_from_base32_stream (); +return libuna_unicode_character_copy_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream=yes -else - ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_utf16_stream=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_una_libuna_base32_quintuplet_copy_from_base32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_base32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_to_base32_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_quintuplet_copy_to_base32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_utf16_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30530,40 +35671,40 @@ 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 libuna_base32_quintuplet_copy_to_base32_stream (); +char libuna_unicode_character_copy_to_utf16_stream (); int -main () +main (void) { -return libuna_base32_quintuplet_copy_to_base32_stream (); +return libuna_unicode_character_copy_to_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream=yes -else - ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_utf16_stream=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_una_libuna_base32_quintuplet_copy_to_base32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_base32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_quintuplet_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30572,40 +35713,40 @@ 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 libuna_base32_quintuplet_copy_from_byte_stream (); +char libuna_unicode_character_copy_from_utf32 (); int -main () +main (void) { -return libuna_base32_quintuplet_copy_from_byte_stream (); +return libuna_unicode_character_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_utf32=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_una_libuna_base32_quintuplet_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_quintuplet_copy_to_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_quintuplet_copy_to_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_utf32 in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30614,41 +35755,40 @@ 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 libuna_base32_quintuplet_copy_to_byte_stream (); +char libuna_unicode_character_copy_to_utf32 (); int -main () +main (void) { -return libuna_base32_quintuplet_copy_to_byte_stream (); +return libuna_unicode_character_copy_to_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream=yes -else - ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_utf32=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_una_libuna_base32_quintuplet_copy_to_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_quintuplet_copy_to_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_size_to_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_stream_size_to_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30657,40 +35797,40 @@ 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 libuna_base32_stream_size_to_byte_stream (); +char libuna_unicode_character_copy_from_utf32_stream (); int -main () +main (void) { -return libuna_base32_stream_size_to_byte_stream (); +return libuna_unicode_character_copy_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream=yes -else - ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_from_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_from_utf32_stream=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_una_libuna_base32_stream_size_to_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_stream_size_to_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_copy_to_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_stream_copy_to_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_unicode_character_copy_to_utf32_stream in -luna" >&5 +printf %s "checking for libuna_unicode_character_copy_to_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_unicode_character_copy_to_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30699,40 +35839,41 @@ 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 libuna_base32_stream_copy_to_byte_stream (); +char libuna_unicode_character_copy_to_utf32_stream (); int -main () +main (void) { -return libuna_base32_stream_copy_to_byte_stream (); +return libuna_unicode_character_copy_to_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream=yes -else - ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_unicode_character_copy_to_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_unicode_character_copy_to_utf32_stream=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_una_libuna_base32_stream_copy_to_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_stream_copy_to_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_unicode_character_copy_to_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_unicode_character_copy_to_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_unicode_character_copy_to_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_size_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_stream_size_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf8_stream_size_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30741,40 +35882,40 @@ 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 libuna_base32_stream_size_from_byte_stream (); +char libuna_utf8_stream_size_from_utf8 (); int -main () +main (void) { -return libuna_base32_stream_size_from_byte_stream (); +return libuna_utf8_stream_size_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_stream_size_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_stream_size_from_utf8=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_una_libuna_base32_stream_size_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_stream_size_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_size_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_stream_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf8_stream_copy_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30783,40 +35924,40 @@ 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 libuna_base32_stream_copy_from_byte_stream (); +char libuna_utf8_stream_copy_from_utf8 (); int -main () +main (void) { -return libuna_base32_stream_copy_from_byte_stream (); +return libuna_utf8_stream_copy_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8=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_una_libuna_base32_stream_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_stream_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base32_stream_with_index_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base32_stream_with_index_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf8_stream_size_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30825,41 +35966,40 @@ 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 libuna_base32_stream_with_index_copy_from_byte_stream (); +char libuna_utf8_stream_size_from_utf16 (); int -main () +main (void) { -return libuna_base32_stream_with_index_copy_from_byte_stream (); +return libuna_utf8_stream_size_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_stream_size_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_stream_size_from_utf16=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_una_libuna_base32_stream_with_index_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base32_stream_with_index_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_size_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_from_base64_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_triplet_copy_from_base64_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf8_stream_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30868,40 +36008,40 @@ 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 libuna_base64_triplet_copy_from_base64_stream (); +char libuna_utf8_stream_copy_from_utf16 (); int -main () +main (void) { -return libuna_base64_triplet_copy_from_base64_stream (); +return libuna_utf8_stream_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream=yes -else - ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16=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_una_libuna_base64_triplet_copy_from_base64_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_from_base64_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_to_base64_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_triplet_copy_to_base64_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf8_stream_size_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30910,40 +36050,40 @@ 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 libuna_base64_triplet_copy_to_base64_stream (); +char libuna_utf8_stream_size_from_utf32 (); int -main () +main (void) { -return libuna_base64_triplet_copy_to_base64_stream (); +return libuna_utf8_stream_size_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream=yes -else - ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_stream_size_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_stream_size_from_utf32=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_una_libuna_base64_triplet_copy_to_base64_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_to_base64_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_size_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_triplet_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf8_stream_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30952,40 +36092,41 @@ 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 libuna_base64_triplet_copy_from_byte_stream (); +char libuna_utf8_stream_copy_from_utf32 (); int -main () +main (void) { -return libuna_base64_triplet_copy_from_byte_stream (); +return libuna_utf8_stream_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32=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_una_libuna_base64_triplet_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_triplet_copy_to_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_triplet_copy_to_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf16_stream_size_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -30994,41 +36135,40 @@ 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 libuna_base64_triplet_copy_to_byte_stream (); +char libuna_utf16_stream_size_from_utf8 (); int -main () +main (void) { -return libuna_base64_triplet_copy_to_byte_stream (); +return libuna_utf16_stream_size_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream=yes -else - ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_stream_size_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_stream_size_from_utf8=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_una_libuna_base64_triplet_copy_to_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_triplet_copy_to_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_size_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_size_to_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_stream_size_to_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf16_stream_copy_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31037,40 +36177,40 @@ 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 libuna_base64_stream_size_to_byte_stream (); +char libuna_utf16_stream_copy_from_utf8 (); int -main () +main (void) { -return libuna_base64_stream_size_to_byte_stream (); +return libuna_utf16_stream_copy_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream=yes -else - ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8=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_una_libuna_base64_stream_size_to_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_stream_size_to_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_copy_to_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_stream_copy_to_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf16_stream_size_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31079,40 +36219,40 @@ 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 libuna_base64_stream_copy_to_byte_stream (); +char libuna_utf16_stream_size_from_utf16 (); int -main () +main (void) { -return libuna_base64_stream_copy_to_byte_stream (); +return libuna_utf16_stream_size_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream=yes -else - ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_stream_size_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_stream_size_from_utf16=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_una_libuna_base64_stream_copy_to_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_stream_copy_to_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_size_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_size_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_stream_size_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf16_stream_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31121,40 +36261,40 @@ 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 libuna_base64_stream_size_from_byte_stream (); +char libuna_utf16_stream_copy_from_utf16 (); int -main () +main (void) { -return libuna_base64_stream_size_from_byte_stream (); +return libuna_utf16_stream_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16=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_una_libuna_base64_stream_size_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_stream_size_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_stream_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf16_stream_size_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31163,40 +36303,40 @@ 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 libuna_base64_stream_copy_from_byte_stream (); +char libuna_utf16_stream_size_from_utf32 (); int -main () +main (void) { -return libuna_base64_stream_copy_from_byte_stream (); +return libuna_utf16_stream_size_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_stream_size_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_stream_size_from_utf32=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_una_libuna_base64_stream_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_stream_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_size_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_base64_stream_with_index_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_base64_stream_with_index_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf16_stream_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31205,41 +36345,41 @@ 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 libuna_base64_stream_with_index_copy_from_byte_stream (); +char libuna_utf16_stream_copy_from_utf32 (); int -main () +main (void) { -return libuna_base64_stream_with_index_copy_from_byte_stream (); +return libuna_utf16_stream_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32=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_una_libuna_base64_stream_with_index_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_base64_stream_with_index_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_byte_stream_size_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_byte_stream_size_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf32_stream_size_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31248,40 +36388,40 @@ 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 libuna_byte_stream_size_from_utf8 (); +char libuna_utf32_stream_size_from_utf8 (); int -main () +main (void) { -return libuna_byte_stream_size_from_utf8 (); +return libuna_utf32_stream_size_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_byte_stream_size_from_utf8=yes -else - ac_cv_lib_una_libuna_byte_stream_size_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_stream_size_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_stream_size_from_utf8=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_una_libuna_byte_stream_size_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_byte_stream_size_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_size_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_byte_stream_copy_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf32_stream_copy_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31290,40 +36430,40 @@ 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 libuna_byte_stream_copy_from_utf8 (); +char libuna_utf32_stream_copy_from_utf8 (); int -main () +main (void) { -return libuna_byte_stream_copy_from_utf8 (); +return libuna_utf32_stream_copy_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_byte_stream_copy_from_utf8=yes -else - ac_cv_lib_una_libuna_byte_stream_copy_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8=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_una_libuna_byte_stream_copy_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_byte_stream_size_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_byte_stream_size_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf32_stream_size_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31332,40 +36472,40 @@ 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 libuna_byte_stream_size_from_utf16 (); +char libuna_utf32_stream_size_from_utf16 (); int -main () +main (void) { -return libuna_byte_stream_size_from_utf16 (); +return libuna_utf32_stream_size_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_byte_stream_size_from_utf16=yes -else - ac_cv_lib_una_libuna_byte_stream_size_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_stream_size_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_stream_size_from_utf16=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_una_libuna_byte_stream_size_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_byte_stream_size_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_size_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_byte_stream_copy_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf32_stream_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31374,40 +36514,40 @@ 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 libuna_byte_stream_copy_from_utf16 (); +char libuna_utf32_stream_copy_from_utf16 (); int -main () +main (void) { -return libuna_byte_stream_copy_from_utf16 (); +return libuna_utf32_stream_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_byte_stream_copy_from_utf16=yes -else - ac_cv_lib_una_libuna_byte_stream_copy_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16=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_una_libuna_byte_stream_copy_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_size_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_byte_stream_size_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_byte_stream_size_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf32_stream_size_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31416,40 +36556,40 @@ 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 libuna_byte_stream_size_from_utf32 (); +char libuna_utf32_stream_size_from_utf32 (); int -main () +main (void) { -return libuna_byte_stream_size_from_utf32 (); +return libuna_utf32_stream_size_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_byte_stream_size_from_utf32=yes -else - ac_cv_lib_una_libuna_byte_stream_size_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_stream_size_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_stream_size_from_utf32=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_una_libuna_byte_stream_size_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_byte_stream_size_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_byte_stream_size_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_size_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_byte_stream_copy_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_byte_stream_copy_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_byte_stream_copy_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf32_stream_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31458,41 +36598,41 @@ 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 libuna_byte_stream_copy_from_utf32 (); +char libuna_utf32_stream_copy_from_utf32 (); int -main () +main (void) { -return libuna_byte_stream_copy_from_utf32 (); +return libuna_utf32_stream_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_byte_stream_copy_from_utf32=yes -else - ac_cv_lib_una_libuna_byte_stream_copy_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32=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_una_libuna_byte_stream_copy_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_byte_stream_copy_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_byte_stream_copy_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_stream_size_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_size_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31501,40 +36641,40 @@ 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 libuna_utf8_stream_size_from_utf8 (); +char libuna_utf8_string_size_from_byte_stream (); int -main () +main (void) { -return libuna_utf8_stream_size_from_utf8 (); +return libuna_utf8_string_size_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_stream_size_from_utf8=yes -else - ac_cv_lib_una_libuna_utf8_stream_size_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream=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_una_libuna_utf8_stream_size_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_stream_copy_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31543,40 +36683,40 @@ 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 libuna_utf8_stream_copy_from_utf8 (); +char libuna_utf8_string_copy_from_byte_stream (); int -main () +main (void) { -return libuna_utf8_stream_copy_from_utf8 (); +return libuna_utf8_string_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8=yes -else - ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream=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_una_libuna_utf8_stream_copy_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_stream_size_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_with_index_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31585,40 +36725,40 @@ 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 libuna_utf8_stream_size_from_utf16 (); +char libuna_utf8_string_with_index_copy_from_byte_stream (); int -main () +main (void) { -return libuna_utf8_stream_size_from_utf16 (); +return libuna_utf8_string_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_stream_size_from_utf16=yes -else - ac_cv_lib_una_libuna_utf8_stream_size_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream=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_una_libuna_utf8_stream_size_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_stream_copy_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_compare_with_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_compare_with_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_compare_with_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31627,40 +36767,40 @@ 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 libuna_utf8_stream_copy_from_utf16 (); +char libuna_utf8_string_compare_with_byte_stream (); int -main () +main (void) { -return libuna_utf8_stream_copy_from_utf16 (); +return libuna_utf8_string_compare_with_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16=yes -else - ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_compare_with_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_compare_with_byte_stream=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_una_libuna_utf8_stream_copy_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_compare_with_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_compare_with_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_compare_with_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_size_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_stream_size_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_stream_size_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_size_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31669,40 +36809,40 @@ 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 libuna_utf8_stream_size_from_utf32 (); +char libuna_utf8_string_size_from_utf7_stream (); int -main () +main (void) { -return libuna_utf8_stream_size_from_utf32 (); +return libuna_utf8_string_size_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_stream_size_from_utf32=yes -else - ac_cv_lib_una_libuna_utf8_stream_size_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream=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_una_libuna_utf8_stream_size_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_stream_size_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_stream_size_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_stream_copy_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_stream_copy_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_copy_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31711,41 +36851,40 @@ 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 libuna_utf8_stream_copy_from_utf32 (); +char libuna_utf8_string_copy_from_utf7_stream (); int -main () +main (void) { -return libuna_utf8_stream_copy_from_utf32 (); +return libuna_utf8_string_copy_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32=yes -else - ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream=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_una_libuna_utf8_stream_copy_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_stream_copy_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_stream_size_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_with_index_copy_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31754,40 +36893,40 @@ 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 libuna_utf16_stream_size_from_utf8 (); +char libuna_utf8_string_with_index_copy_from_utf7_stream (); int -main () +main (void) { -return libuna_utf16_stream_size_from_utf8 (); +return libuna_utf8_string_with_index_copy_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_stream_size_from_utf8=yes -else - ac_cv_lib_una_libuna_utf16_stream_size_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream=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_una_libuna_utf16_stream_size_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_stream_copy_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_compare_with_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_compare_with_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_compare_with_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31796,40 +36935,40 @@ 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 libuna_utf16_stream_copy_from_utf8 (); +char libuna_utf8_string_compare_with_utf7_stream (); int -main () +main (void) { -return libuna_utf16_stream_copy_from_utf8 (); +return libuna_utf8_string_compare_with_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8=yes -else - ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_compare_with_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_compare_with_utf7_stream=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_una_libuna_utf16_stream_copy_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_compare_with_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_compare_with_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_compare_with_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_stream_size_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_size_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31838,40 +36977,40 @@ 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 libuna_utf16_stream_size_from_utf16 (); +char libuna_utf8_string_size_from_utf8_stream (); int -main () +main (void) { -return libuna_utf16_stream_size_from_utf16 (); +return libuna_utf8_string_size_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_stream_size_from_utf16=yes -else - ac_cv_lib_una_libuna_utf16_stream_size_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream=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_una_libuna_utf16_stream_size_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_stream_copy_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_copy_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31880,40 +37019,40 @@ 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 libuna_utf16_stream_copy_from_utf16 (); +char libuna_utf8_string_copy_from_utf8_stream (); int -main () +main (void) { -return libuna_utf16_stream_copy_from_utf16 (); +return libuna_utf8_string_copy_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16=yes -else - ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream=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_una_libuna_utf16_stream_copy_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_size_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_stream_size_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_stream_size_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_with_index_copy_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31922,40 +37061,40 @@ 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 libuna_utf16_stream_size_from_utf32 (); +char libuna_utf8_string_with_index_copy_from_utf8_stream (); int -main () +main (void) { -return libuna_utf16_stream_size_from_utf32 (); +return libuna_utf8_string_with_index_copy_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_stream_size_from_utf32=yes -else - ac_cv_lib_una_libuna_utf16_stream_size_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream=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_una_libuna_utf16_stream_size_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_stream_size_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_stream_size_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_stream_copy_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_stream_copy_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_compare_with_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_compare_with_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_compare_with_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -31964,41 +37103,40 @@ 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 libuna_utf16_stream_copy_from_utf32 (); +char libuna_utf8_string_compare_with_utf8_stream (); int -main () +main (void) { -return libuna_utf16_stream_copy_from_utf32 (); +return libuna_utf8_string_compare_with_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32=yes -else - ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_compare_with_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_compare_with_utf8_stream=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_una_libuna_utf16_stream_copy_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_stream_copy_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_compare_with_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_compare_with_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_compare_with_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_stream_size_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf8_string_size_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_size_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32007,40 +37145,40 @@ 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 libuna_utf32_stream_size_from_utf8 (); +char libuna_utf8_string_size_from_utf16 (); int -main () +main (void) { -return libuna_utf32_stream_size_from_utf8 (); +return libuna_utf8_string_size_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_stream_size_from_utf8=yes -else - ac_cv_lib_una_libuna_utf32_stream_size_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_size_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_size_from_utf16=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_una_libuna_utf32_stream_size_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_size_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_stream_copy_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf8_string_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32049,40 +37187,40 @@ 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 libuna_utf32_stream_copy_from_utf8 (); +char libuna_utf8_string_copy_from_utf16 (); int -main () +main (void) { -return libuna_utf32_stream_copy_from_utf8 (); +return libuna_utf8_string_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8=yes -else - ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_copy_from_utf16=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_una_libuna_utf32_stream_copy_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_stream_size_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf8_string_with_index_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32091,40 +37229,40 @@ 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 libuna_utf32_stream_size_from_utf16 (); +char libuna_utf8_string_with_index_copy_from_utf16 (); int -main () +main (void) { -return libuna_utf32_stream_size_from_utf16 (); +return libuna_utf8_string_with_index_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_stream_size_from_utf16=yes -else - ac_cv_lib_una_libuna_utf32_stream_size_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16=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_una_libuna_utf32_stream_size_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_stream_copy_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_compare_with_utf16 in -luna" >&5 +printf %s "checking for libuna_utf8_string_compare_with_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_compare_with_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32133,40 +37271,40 @@ 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 libuna_utf32_stream_copy_from_utf16 (); +char libuna_utf8_string_compare_with_utf16 (); int -main () +main (void) { -return libuna_utf32_stream_copy_from_utf16 (); +return libuna_utf8_string_compare_with_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16=yes -else - ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_compare_with_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_compare_with_utf16=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_una_libuna_utf32_stream_copy_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_compare_with_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_compare_with_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_compare_with_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_size_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_stream_size_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_stream_size_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_size_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32175,40 +37313,40 @@ 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 libuna_utf32_stream_size_from_utf32 (); +char libuna_utf8_string_size_from_utf16_stream (); int -main () +main (void) { -return libuna_utf32_stream_size_from_utf32 (); +return libuna_utf8_string_size_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_stream_size_from_utf32=yes -else - ac_cv_lib_una_libuna_utf32_stream_size_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream=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_una_libuna_utf32_stream_size_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_stream_size_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_stream_size_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_stream_copy_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_stream_copy_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_copy_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32217,41 +37355,40 @@ 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 libuna_utf32_stream_copy_from_utf32 (); +char libuna_utf8_string_copy_from_utf16_stream (); int -main () +main (void) { -return libuna_utf32_stream_copy_from_utf32 (); +return libuna_utf8_string_copy_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32=yes -else - ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream=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_una_libuna_utf32_stream_copy_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_stream_copy_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_size_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_with_index_copy_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32260,40 +37397,40 @@ 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 libuna_utf8_string_size_from_byte_stream (); +char libuna_utf8_string_with_index_copy_from_utf16_stream (); int -main () +main (void) { -return libuna_utf8_string_size_from_byte_stream (); +return libuna_utf8_string_with_index_copy_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream=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_una_libuna_utf8_string_size_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_compare_with_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_compare_with_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_compare_with_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32302,40 +37439,40 @@ 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 libuna_utf8_string_copy_from_byte_stream (); +char libuna_utf8_string_compare_with_utf16_stream (); int -main () +main (void) { -return libuna_utf8_string_copy_from_byte_stream (); +return libuna_utf8_string_compare_with_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_compare_with_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_compare_with_utf16_stream=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_una_libuna_utf8_string_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_compare_with_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_compare_with_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_compare_with_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_with_index_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf8_string_size_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_size_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32344,40 +37481,40 @@ 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 libuna_utf8_string_with_index_copy_from_byte_stream (); +char libuna_utf8_string_size_from_utf32 (); int -main () +main (void) { -return libuna_utf8_string_with_index_copy_from_byte_stream (); +return libuna_utf8_string_size_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_size_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_size_from_utf32=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_una_libuna_utf8_string_with_index_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_size_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_size_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf8_string_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32386,40 +37523,40 @@ 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 libuna_utf8_string_size_from_utf7_stream (); +char libuna_utf8_string_copy_from_utf32 (); int -main () +main (void) { -return libuna_utf8_string_size_from_utf7_stream (); +return libuna_utf8_string_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_copy_from_utf32=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_una_libuna_utf8_string_size_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_copy_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf8_string_with_index_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32428,40 +37565,40 @@ 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 libuna_utf8_string_copy_from_utf7_stream (); +char libuna_utf8_string_with_index_copy_from_utf32 (); int -main () +main (void) { -return libuna_utf8_string_copy_from_utf7_stream (); +return libuna_utf8_string_with_index_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32=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_una_libuna_utf8_string_copy_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_compare_with_utf32 in -luna" >&5 +printf %s "checking for libuna_utf8_string_compare_with_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_compare_with_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32470,40 +37607,40 @@ 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 libuna_utf8_string_with_index_copy_from_utf7_stream (); +char libuna_utf8_string_compare_with_utf32 (); int -main () +main (void) { -return libuna_utf8_string_with_index_copy_from_utf7_stream (); +return libuna_utf8_string_compare_with_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_compare_with_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_compare_with_utf32=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_una_libuna_utf8_string_with_index_copy_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_compare_with_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_compare_with_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_compare_with_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_size_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_size_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32512,40 +37649,40 @@ 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 libuna_utf8_string_size_from_utf8_stream (); +char libuna_utf8_string_size_from_utf32_stream (); int -main () +main (void) { -return libuna_utf8_string_size_from_utf8_stream (); +return libuna_utf8_string_size_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream=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_una_libuna_utf8_string_size_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf8_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_copy_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_copy_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32554,40 +37691,40 @@ 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 libuna_utf8_string_copy_from_utf8_stream (); +char libuna_utf8_string_copy_from_utf32_stream (); int -main () +main (void) { -return libuna_utf8_string_copy_from_utf8_stream (); +return libuna_utf8_string_copy_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream=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_una_libuna_utf8_string_copy_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf8_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_with_index_copy_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32596,40 +37733,40 @@ 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 libuna_utf8_string_with_index_copy_from_utf8_stream (); +char libuna_utf8_string_with_index_copy_from_utf32_stream (); int -main () +main (void) { -return libuna_utf8_string_with_index_copy_from_utf8_stream (); +return libuna_utf8_string_with_index_copy_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream=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_una_libuna_utf8_string_with_index_copy_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf8_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_size_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_compare_with_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_compare_with_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_compare_with_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32638,40 +37775,40 @@ 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 libuna_utf8_string_size_from_utf16_stream (); +char libuna_utf8_string_compare_with_utf32_stream (); int -main () +main (void) { -return libuna_utf8_string_size_from_utf16_stream (); +return libuna_utf8_string_compare_with_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_compare_with_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_compare_with_utf32_stream=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_una_libuna_utf8_string_size_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_compare_with_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_compare_with_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_compare_with_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_copy_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_size_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32680,40 +37817,40 @@ 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 libuna_utf8_string_copy_from_utf16_stream (); +char libuna_utf8_string_size_from_scsu_stream (); int -main () +main (void) { -return libuna_utf8_string_copy_from_utf16_stream (); +return libuna_utf8_string_size_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream=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_una_libuna_utf8_string_copy_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_copy_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32722,40 +37859,40 @@ 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 libuna_utf8_string_with_index_copy_from_utf16_stream (); +char libuna_utf8_string_copy_from_scsu_stream (); int -main () +main (void) { -return libuna_utf8_string_with_index_copy_from_utf16_stream (); +return libuna_utf8_string_copy_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream=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_una_libuna_utf8_string_with_index_copy_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_size_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf8_string_with_index_copy_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32764,40 +37901,41 @@ 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 libuna_utf8_string_size_from_utf32_stream (); +char libuna_utf8_string_with_index_copy_from_scsu_stream (); int -main () +main (void) { -return libuna_utf8_string_size_from_utf32_stream (); +return libuna_utf8_string_with_index_copy_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream=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_una_libuna_utf8_string_size_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_copy_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_size_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32806,40 +37944,40 @@ 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 libuna_utf8_string_copy_from_utf32_stream (); +char libuna_utf16_string_size_from_byte_stream (); int -main () +main (void) { -return libuna_utf8_string_copy_from_utf32_stream (); +return libuna_utf16_string_size_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream=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_una_libuna_utf8_string_copy_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32848,40 +37986,40 @@ 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 libuna_utf8_string_with_index_copy_from_utf32_stream (); +char libuna_utf16_string_copy_from_byte_stream (); int -main () +main (void) { -return libuna_utf8_string_with_index_copy_from_utf32_stream (); +return libuna_utf16_string_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream=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_una_libuna_utf8_string_with_index_copy_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_size_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_with_index_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32890,40 +38028,40 @@ 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 libuna_utf8_string_size_from_utf16 (); +char libuna_utf16_string_with_index_copy_from_byte_stream (); int -main () +main (void) { -return libuna_utf8_string_size_from_utf16 (); +return libuna_utf16_string_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_size_from_utf16=yes -else - ac_cv_lib_una_libuna_utf8_string_size_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream=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_una_libuna_utf8_string_size_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_copy_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_compare_with_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_compare_with_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_compare_with_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32932,40 +38070,40 @@ 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 libuna_utf8_string_copy_from_utf16 (); +char libuna_utf16_string_compare_with_byte_stream (); int -main () +main (void) { -return libuna_utf8_string_copy_from_utf16 (); +return libuna_utf16_string_compare_with_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_copy_from_utf16=yes -else - ac_cv_lib_una_libuna_utf8_string_copy_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_compare_with_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_compare_with_byte_stream=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_una_libuna_utf8_string_copy_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_compare_with_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_compare_with_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_compare_with_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_size_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -32974,40 +38112,40 @@ 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 libuna_utf8_string_with_index_copy_from_utf16 (); +char libuna_utf16_string_size_from_utf7_stream (); int -main () +main (void) { -return libuna_utf8_string_with_index_copy_from_utf16 (); +return libuna_utf16_string_size_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16=yes -else - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream=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_una_libuna_utf8_string_with_index_copy_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_size_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_size_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_copy_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33016,40 +38154,40 @@ 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 libuna_utf8_string_size_from_utf32 (); +char libuna_utf16_string_copy_from_utf7_stream (); int -main () +main (void) { -return libuna_utf8_string_size_from_utf32 (); +return libuna_utf16_string_copy_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_size_from_utf32=yes -else - ac_cv_lib_una_libuna_utf8_string_size_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream=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_una_libuna_utf8_string_size_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_copy_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_copy_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_with_index_copy_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33058,40 +38196,40 @@ 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 libuna_utf8_string_copy_from_utf32 (); +char libuna_utf16_string_with_index_copy_from_utf7_stream (); int -main () +main (void) { -return libuna_utf8_string_copy_from_utf32 (); +return libuna_utf16_string_with_index_copy_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_copy_from_utf32=yes -else - ac_cv_lib_una_libuna_utf8_string_copy_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream=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_una_libuna_utf8_string_copy_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_with_index_copy_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_compare_with_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_compare_with_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_compare_with_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33100,40 +38238,40 @@ 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 libuna_utf8_string_with_index_copy_from_utf32 (); +char libuna_utf16_string_compare_with_utf7_stream (); int -main () +main (void) { -return libuna_utf8_string_with_index_copy_from_utf32 (); +return libuna_utf16_string_compare_with_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32=yes -else - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_compare_with_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_compare_with_utf7_stream=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_una_libuna_utf8_string_with_index_copy_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_compare_with_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_compare_with_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_compare_with_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_size_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_size_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf16_string_size_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_size_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33142,40 +38280,40 @@ 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 libuna_utf8_string_size_from_scsu_stream (); +char libuna_utf16_string_size_from_utf8 (); int -main () +main (void) { -return libuna_utf8_string_size_from_scsu_stream (); +return libuna_utf16_string_size_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_size_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_size_from_utf8=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_una_libuna_utf8_string_size_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_size_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_size_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_copy_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_copy_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf16_string_copy_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33184,40 +38322,40 @@ 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 libuna_utf8_string_copy_from_scsu_stream (); +char libuna_utf16_string_copy_from_utf8 (); int -main () +main (void) { -return libuna_utf8_string_copy_from_scsu_stream (); +return libuna_utf16_string_copy_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_copy_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_copy_from_utf8=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_una_libuna_utf8_string_copy_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_copy_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf8_string_with_index_copy_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf8_string_with_index_copy_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf16_string_with_index_copy_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33226,41 +38364,40 @@ 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 libuna_utf8_string_with_index_copy_from_scsu_stream (); +char libuna_utf16_string_with_index_copy_from_utf8 (); int -main () +main (void) { -return libuna_utf8_string_with_index_copy_from_scsu_stream (); +return libuna_utf16_string_with_index_copy_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream=yes -else - ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8=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_una_libuna_utf8_string_with_index_copy_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf8_string_with_index_copy_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_size_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_size_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33269,40 +38406,40 @@ 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 libuna_utf16_string_size_from_byte_stream (); +char libuna_utf16_string_size_from_utf8_stream (); int -main () +main (void) { -return libuna_utf16_string_size_from_byte_stream (); +return libuna_utf16_string_size_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream=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_una_libuna_utf16_string_size_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_copy_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33311,40 +38448,40 @@ 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 libuna_utf16_string_copy_from_byte_stream (); +char libuna_utf16_string_copy_from_utf8_stream (); int -main () +main (void) { -return libuna_utf16_string_copy_from_byte_stream (); +return libuna_utf16_string_copy_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream=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_una_libuna_utf16_string_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_with_index_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_with_index_copy_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33353,40 +38490,40 @@ 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 libuna_utf16_string_with_index_copy_from_byte_stream (); +char libuna_utf16_string_with_index_copy_from_utf8_stream (); int -main () +main (void) { -return libuna_utf16_string_with_index_copy_from_byte_stream (); +return libuna_utf16_string_with_index_copy_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream=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_una_libuna_utf16_string_with_index_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_size_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_compare_with_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_compare_with_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_compare_with_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33395,40 +38532,40 @@ 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 libuna_utf16_string_size_from_utf7_stream (); +char libuna_utf16_string_compare_with_utf8_stream (); int -main () +main (void) { -return libuna_utf16_string_size_from_utf7_stream (); +return libuna_utf16_string_compare_with_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_compare_with_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_compare_with_utf8_stream=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_una_libuna_utf16_string_size_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_compare_with_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_compare_with_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_compare_with_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_copy_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_size_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33437,40 +38574,40 @@ 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 libuna_utf16_string_copy_from_utf7_stream (); +char libuna_utf16_string_size_from_utf16_stream (); int -main () +main (void) { -return libuna_utf16_string_copy_from_utf7_stream (); +return libuna_utf16_string_size_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream=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_una_libuna_utf16_string_copy_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_copy_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33479,40 +38616,40 @@ 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 libuna_utf16_string_with_index_copy_from_utf7_stream (); +char libuna_utf16_string_copy_from_utf16_stream (); int -main () +main (void) { -return libuna_utf16_string_with_index_copy_from_utf7_stream (); +return libuna_utf16_string_copy_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream=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_una_libuna_utf16_string_with_index_copy_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_size_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_with_index_copy_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33521,40 +38658,40 @@ 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 libuna_utf16_string_size_from_utf8_stream (); +char libuna_utf16_string_with_index_copy_from_utf16_stream (); int -main () +main (void) { -return libuna_utf16_string_size_from_utf8_stream (); +return libuna_utf16_string_with_index_copy_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream=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_una_libuna_utf16_string_size_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf8_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_copy_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_compare_with_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_compare_with_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_compare_with_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33563,40 +38700,40 @@ 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 libuna_utf16_string_copy_from_utf8_stream (); +char libuna_utf16_string_compare_with_utf16_stream (); int -main () +main (void) { -return libuna_utf16_string_copy_from_utf8_stream (); +return libuna_utf16_string_compare_with_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_compare_with_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_compare_with_utf16_stream=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_una_libuna_utf16_string_copy_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_compare_with_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_compare_with_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_compare_with_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf16_string_size_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_size_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33605,40 +38742,40 @@ 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 libuna_utf16_string_with_index_copy_from_utf8_stream (); +char libuna_utf16_string_size_from_utf32 (); int -main () +main (void) { -return libuna_utf16_string_with_index_copy_from_utf8_stream (); +return libuna_utf16_string_size_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_size_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_size_from_utf32=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_una_libuna_utf16_string_with_index_copy_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_size_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_size_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf16_string_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33647,40 +38784,40 @@ 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 libuna_utf16_string_size_from_utf16_stream (); +char libuna_utf16_string_copy_from_utf32 (); int -main () +main (void) { -return libuna_utf16_string_size_from_utf16_stream (); +return libuna_utf16_string_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_copy_from_utf32=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_una_libuna_utf16_string_size_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_copy_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf32 in -luna" >&5 +printf %s "checking for libuna_utf16_string_with_index_copy_from_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33689,40 +38826,40 @@ 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 libuna_utf16_string_copy_from_utf16_stream (); +char libuna_utf16_string_with_index_copy_from_utf32 (); int -main () +main (void) { -return libuna_utf16_string_copy_from_utf16_stream (); +return libuna_utf16_string_with_index_copy_from_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32=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_una_libuna_utf16_string_copy_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_compare_with_utf32 in -luna" >&5 +printf %s "checking for libuna_utf16_string_compare_with_utf32 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_compare_with_utf32+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33731,40 +38868,40 @@ 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 libuna_utf16_string_with_index_copy_from_utf16_stream (); +char libuna_utf16_string_compare_with_utf32 (); int -main () +main (void) { -return libuna_utf16_string_with_index_copy_from_utf16_stream (); +return libuna_utf16_string_compare_with_utf32 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_compare_with_utf32=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_compare_with_utf32=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_una_libuna_utf16_string_with_index_copy_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_compare_with_utf32" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_compare_with_utf32" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_compare_with_utf32" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_size_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_size_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33773,40 +38910,40 @@ 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 libuna_utf16_string_size_from_utf32_stream (); int -main () +main (void) { return libuna_utf16_string_size_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream=yes -else +else $as_nop ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream=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_una_libuna_utf16_string_size_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_copy_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_copy_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33815,40 +38952,40 @@ 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 libuna_utf16_string_copy_from_utf32_stream (); int -main () +main (void) { return libuna_utf16_string_copy_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream=yes -else +else $as_nop ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream=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_una_libuna_utf16_string_copy_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_with_index_copy_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33857,40 +38994,40 @@ 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 libuna_utf16_string_with_index_copy_from_utf32_stream (); int -main () +main (void) { return libuna_utf16_string_with_index_copy_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream=yes -else +else $as_nop ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream=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_una_libuna_utf16_string_with_index_copy_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_size_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_compare_with_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_compare_with_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_compare_with_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33899,40 +39036,40 @@ 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 libuna_utf16_string_size_from_utf8 (); +char libuna_utf16_string_compare_with_utf32_stream (); int -main () +main (void) { -return libuna_utf16_string_size_from_utf8 (); +return libuna_utf16_string_compare_with_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_size_from_utf8=yes -else - ac_cv_lib_una_libuna_utf16_string_size_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_compare_with_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_compare_with_utf32_stream=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_una_libuna_utf16_string_size_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_compare_with_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_compare_with_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_compare_with_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_copy_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_size_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33941,40 +39078,40 @@ 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 libuna_utf16_string_copy_from_utf8 (); +char libuna_utf16_string_size_from_scsu_stream (); int -main () +main (void) { -return libuna_utf16_string_copy_from_utf8 (); +return libuna_utf16_string_size_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_copy_from_utf8=yes -else - ac_cv_lib_una_libuna_utf16_string_copy_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream=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_una_libuna_utf16_string_copy_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_copy_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -33983,40 +39120,40 @@ 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 libuna_utf16_string_with_index_copy_from_utf8 (); +char libuna_utf16_string_copy_from_scsu_stream (); int -main () +main (void) { -return libuna_utf16_string_with_index_copy_from_utf8 (); +return libuna_utf16_string_copy_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8=yes -else - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream=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_una_libuna_utf16_string_with_index_copy_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_size_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_size_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf16_string_with_index_copy_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34025,40 +39162,41 @@ 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 libuna_utf16_string_size_from_utf32 (); +char libuna_utf16_string_with_index_copy_from_scsu_stream (); int -main () +main (void) { -return libuna_utf16_string_size_from_utf32 (); +return libuna_utf16_string_with_index_copy_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_size_from_utf32=yes -else - ac_cv_lib_una_libuna_utf16_string_size_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream=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_una_libuna_utf16_string_size_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_copy_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_copy_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_size_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34067,40 +39205,40 @@ 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 libuna_utf16_string_copy_from_utf32 (); +char libuna_utf32_string_size_from_byte_stream (); int -main () +main (void) { -return libuna_utf16_string_copy_from_utf32 (); +return libuna_utf32_string_size_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_copy_from_utf32=yes -else - ac_cv_lib_una_libuna_utf16_string_copy_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream=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_una_libuna_utf16_string_copy_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_utf32 in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_with_index_copy_from_utf32 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34109,40 +39247,40 @@ 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 libuna_utf16_string_with_index_copy_from_utf32 (); +char libuna_utf32_string_copy_from_byte_stream (); int -main () +main (void) { -return libuna_utf16_string_with_index_copy_from_utf32 (); +return libuna_utf32_string_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32=yes -else - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream=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_una_libuna_utf16_string_with_index_copy_from_utf32" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_utf32" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_size_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_size_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_with_index_copy_from_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34151,40 +39289,40 @@ 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 libuna_utf16_string_size_from_scsu_stream (); +char libuna_utf32_string_with_index_copy_from_byte_stream (); int -main () +main (void) { -return libuna_utf16_string_size_from_scsu_stream (); +return libuna_utf32_string_with_index_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream=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_una_libuna_utf16_string_size_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_size_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_copy_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_copy_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_compare_with_byte_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_compare_with_byte_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_compare_with_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34193,40 +39331,40 @@ 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 libuna_utf16_string_copy_from_scsu_stream (); +char libuna_utf32_string_compare_with_byte_stream (); int -main () +main (void) { -return libuna_utf16_string_copy_from_scsu_stream (); +return libuna_utf32_string_compare_with_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_compare_with_byte_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_compare_with_byte_stream=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_una_libuna_utf16_string_copy_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_copy_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_compare_with_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_compare_with_byte_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_compare_with_byte_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf16_string_with_index_copy_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf16_string_with_index_copy_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_size_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34235,41 +39373,40 @@ 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 libuna_utf16_string_with_index_copy_from_scsu_stream (); +char libuna_utf32_string_size_from_utf7_stream (); int -main () +main (void) { -return libuna_utf16_string_with_index_copy_from_scsu_stream (); +return libuna_utf32_string_size_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream=yes -else - ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream=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_una_libuna_utf16_string_with_index_copy_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf16_string_with_index_copy_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_size_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_copy_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34278,40 +39415,40 @@ 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 libuna_utf32_string_size_from_byte_stream (); +char libuna_utf32_string_copy_from_utf7_stream (); int -main () +main (void) { -return libuna_utf32_string_size_from_byte_stream (); +return libuna_utf32_string_copy_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream=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_una_libuna_utf32_string_size_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_with_index_copy_from_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34320,40 +39457,40 @@ 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 libuna_utf32_string_copy_from_byte_stream (); +char libuna_utf32_string_with_index_copy_from_utf7_stream (); int -main () +main (void) { -return libuna_utf32_string_copy_from_byte_stream (); +return libuna_utf32_string_with_index_copy_from_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream=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_una_libuna_utf32_string_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_byte_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_with_index_copy_from_byte_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_compare_with_utf7_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_compare_with_utf7_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_compare_with_utf7_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34362,40 +39499,40 @@ 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 libuna_utf32_string_with_index_copy_from_byte_stream (); +char libuna_utf32_string_compare_with_utf7_stream (); int -main () +main (void) { -return libuna_utf32_string_with_index_copy_from_byte_stream (); +return libuna_utf32_string_compare_with_utf7_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_compare_with_utf7_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_compare_with_utf7_stream=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_una_libuna_utf32_string_with_index_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_compare_with_utf7_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_compare_with_utf7_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_compare_with_utf7_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_size_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_size_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34404,40 +39541,40 @@ 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 libuna_utf32_string_size_from_utf7_stream (); +char libuna_utf32_string_size_from_utf8_stream (); int -main () +main (void) { -return libuna_utf32_string_size_from_utf7_stream (); +return libuna_utf32_string_size_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream=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_una_libuna_utf32_string_size_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_copy_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf32_string_size_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_size_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34446,40 +39583,40 @@ 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 libuna_utf32_string_copy_from_utf7_stream (); +char libuna_utf32_string_size_from_utf8 (); int -main () +main (void) { -return libuna_utf32_string_copy_from_utf7_stream (); +return libuna_utf32_string_size_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_size_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_size_from_utf8=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_una_libuna_utf32_string_copy_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_size_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf7_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf7_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf8 in -luna" >&5 +printf %s "checking for libuna_utf32_string_copy_from_utf8 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf8+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34488,82 +39625,80 @@ 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 libuna_utf32_string_with_index_copy_from_utf7_stream (); +char libuna_utf32_string_copy_from_utf8 (); int -main () +main (void) { -return libuna_utf32_string_with_index_copy_from_utf7_stream (); +return libuna_utf32_string_copy_from_utf8 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_copy_from_utf8=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_copy_from_utf8=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_una_libuna_utf32_string_with_index_copy_from_utf7_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf7_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf8" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_size_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for ac_cv_libuna_dummy=yes in -llibuna_utf32_string_with_index_copy_from_utf8" >&5 +printf %s "checking for ac_cv_libuna_dummy=yes in -llibuna_utf32_string_with_index_copy_from_utf8... " >&6; } +if test ${ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-luna $LIBS" +LIBS="-llibuna_utf32_string_with_index_copy_from_utf8 $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 libuna_utf32_string_size_from_utf8_stream (); +char ac_cv_libuna_dummy=yes (); int -main () +main (void) { -return libuna_utf32_string_size_from_utf8_stream (); +return ac_cv_libuna_dummy=yes (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes=yes +else $as_nop + ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes=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_una_libuna_utf32_string_size_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf8_stream" = xyes; then : - ac_cv_libuna_dummy=yes -else +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" >&5 +printf "%s\n" "$ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" >&6; } +if test "x$ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" = xyes +then : ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_copy_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_copy_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34572,40 +39707,40 @@ 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 libuna_utf32_string_copy_from_utf8_stream (); int -main () +main (void) { return libuna_utf32_string_copy_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream=yes -else +else $as_nop ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream=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_una_libuna_utf32_string_copy_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf8_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf8_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_with_index_copy_from_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34614,40 +39749,40 @@ 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 libuna_utf32_string_with_index_copy_from_utf8_stream (); int -main () +main (void) { return libuna_utf32_string_with_index_copy_from_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream=yes -else +else $as_nop ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream=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_una_libuna_utf32_string_with_index_copy_from_utf8_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_size_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_compare_with_utf8_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_compare_with_utf8_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_compare_with_utf8_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34656,40 +39791,40 @@ 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 libuna_utf32_string_size_from_utf16_stream (); +char libuna_utf32_string_compare_with_utf8_stream (); int -main () +main (void) { -return libuna_utf32_string_size_from_utf16_stream (); +return libuna_utf32_string_compare_with_utf8_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_compare_with_utf8_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_compare_with_utf8_stream=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_una_libuna_utf32_string_size_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_compare_with_utf8_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_compare_with_utf8_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_compare_with_utf8_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_copy_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf32_string_size_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_size_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34698,40 +39833,40 @@ 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 libuna_utf32_string_copy_from_utf16_stream (); +char libuna_utf32_string_size_from_utf16 (); int -main () +main (void) { -return libuna_utf32_string_copy_from_utf16_stream (); +return libuna_utf32_string_size_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_size_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_size_from_utf16=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_una_libuna_utf32_string_copy_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_size_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf16_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf16_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf32_string_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34740,40 +39875,40 @@ 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 libuna_utf32_string_with_index_copy_from_utf16_stream (); +char libuna_utf32_string_copy_from_utf16 (); int -main () +main (void) { -return libuna_utf32_string_with_index_copy_from_utf16_stream (); +return libuna_utf32_string_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_copy_from_utf16=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_una_libuna_utf32_string_with_index_copy_from_utf16_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_size_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf16 in -luna" >&5 +printf %s "checking for libuna_utf32_string_with_index_copy_from_utf16 in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34782,40 +39917,40 @@ 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 libuna_utf32_string_size_from_utf32_stream (); +char libuna_utf32_string_with_index_copy_from_utf16 (); int -main () +main (void) { -return libuna_utf32_string_size_from_utf32_stream (); +return libuna_utf32_string_with_index_copy_from_utf16 (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16=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_una_libuna_utf32_string_size_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_copy_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_size_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34824,40 +39959,40 @@ 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 libuna_utf32_string_copy_from_utf32_stream (); +char libuna_utf32_string_size_from_utf16_stream (); int -main () +main (void) { -return libuna_utf32_string_copy_from_utf32_stream (); +return libuna_utf32_string_size_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream=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_una_libuna_utf32_string_copy_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf32_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf32_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_copy_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34866,40 +40001,40 @@ 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 libuna_utf32_string_with_index_copy_from_utf32_stream (); +char libuna_utf32_string_copy_from_utf16_stream (); int -main () +main (void) { -return libuna_utf32_string_with_index_copy_from_utf32_stream (); +return libuna_utf32_string_copy_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream=yes -else - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream=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_una_libuna_utf32_string_with_index_copy_from_utf32_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_size_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_with_index_copy_from_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34908,40 +40043,40 @@ 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 libuna_utf32_string_size_from_utf8 (); +char libuna_utf32_string_with_index_copy_from_utf16_stream (); int -main () +main (void) { -return libuna_utf32_string_size_from_utf8 (); +return libuna_utf32_string_with_index_copy_from_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_size_from_utf8=yes -else - ac_cv_lib_una_libuna_utf32_string_size_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream=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_una_libuna_utf32_string_size_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf8 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_copy_from_utf8 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf8+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_compare_with_utf16_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_compare_with_utf16_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_compare_with_utf16_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -34950,80 +40085,82 @@ 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 libuna_utf32_string_copy_from_utf8 (); +char libuna_utf32_string_compare_with_utf16_stream (); int -main () +main (void) { -return libuna_utf32_string_copy_from_utf8 (); +return libuna_utf32_string_compare_with_utf16_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_copy_from_utf8=yes -else - ac_cv_lib_una_libuna_utf32_string_copy_from_utf8=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_compare_with_utf16_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_compare_with_utf16_stream=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_una_libuna_utf32_string_copy_from_utf8" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf8" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_compare_with_utf16_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_compare_with_utf16_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_compare_with_utf16_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ac_cv_libuna_dummy=yes in -llibuna_utf32_string_with_index_copy_from_utf8" >&5 -$as_echo_n "checking for ac_cv_libuna_dummy=yes in -llibuna_utf32_string_with_index_copy_from_utf8... " >&6; } -if ${ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_size_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS -LIBS="-llibuna_utf32_string_with_index_copy_from_utf8 $LIBS" +LIBS="-luna $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 ac_cv_libuna_dummy=yes (); +char libuna_utf32_string_size_from_utf32_stream (); int -main () +main (void) { -return ac_cv_libuna_dummy=yes (); +return libuna_utf32_string_size_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes=yes -else - ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream=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_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" >&5 -$as_echo "$ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" >&6; } -if test "x$ac_cv_lib_libuna_utf32_string_with_index_copy_from_utf8_ac_cv_libuna_dummy_yes" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf32_stream" = xyes +then : + ac_cv_libuna_dummy=yes +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_size_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_size_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_copy_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35032,40 +40169,40 @@ 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 libuna_utf32_string_size_from_utf16 (); +char libuna_utf32_string_copy_from_utf32_stream (); int -main () +main (void) { -return libuna_utf32_string_size_from_utf16 (); +return libuna_utf32_string_copy_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_size_from_utf16=yes -else - ac_cv_lib_una_libuna_utf32_string_size_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream=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_una_libuna_utf32_string_size_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_copy_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_copy_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_with_index_copy_from_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35074,40 +40211,40 @@ 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 libuna_utf32_string_copy_from_utf16 (); +char libuna_utf32_string_with_index_copy_from_utf32_stream (); int -main () +main (void) { -return libuna_utf32_string_copy_from_utf16 (); +return libuna_utf32_string_with_index_copy_from_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_copy_from_utf16=yes -else - ac_cv_lib_una_libuna_utf32_string_copy_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream=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_una_libuna_utf32_string_copy_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_utf16 in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_with_index_copy_from_utf16 in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_compare_with_utf32_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_compare_with_utf32_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_compare_with_utf32_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35116,40 +40253,40 @@ 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 libuna_utf32_string_with_index_copy_from_utf16 (); +char libuna_utf32_string_compare_with_utf32_stream (); int -main () +main (void) { -return libuna_utf32_string_with_index_copy_from_utf16 (); +return libuna_utf32_string_compare_with_utf32_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16=yes -else - ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16=no +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_una_libuna_utf32_string_compare_with_utf32_stream=yes +else $as_nop + ac_cv_lib_una_libuna_utf32_string_compare_with_utf32_stream=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_una_libuna_utf32_string_with_index_copy_from_utf16" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_utf16" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_compare_with_utf32_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_compare_with_utf32_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_compare_with_utf32_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_size_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_size_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_size_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35158,40 +40295,40 @@ 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 libuna_utf32_string_size_from_scsu_stream (); int -main () +main (void) { return libuna_utf32_string_size_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream=yes -else +else $as_nop ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream=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_una_libuna_utf32_string_size_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_size_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_copy_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_copy_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_copy_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35200,40 +40337,40 @@ 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 libuna_utf32_string_copy_from_scsu_stream (); int -main () +main (void) { return libuna_utf32_string_copy_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream=yes -else +else $as_nop ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream=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_una_libuna_utf32_string_copy_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_copy_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_scsu_stream in -luna" >&5 -$as_echo_n "checking for libuna_utf32_string_with_index_copy_from_scsu_stream in -luna... " >&6; } -if ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libuna_utf32_string_with_index_copy_from_scsu_stream in -luna" >&5 +printf %s "checking for libuna_utf32_string_with_index_copy_from_scsu_stream in -luna... " >&6; } +if test ${ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-luna $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35242,41 +40379,41 @@ 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 libuna_utf32_string_with_index_copy_from_scsu_stream (); int -main () +main (void) { return libuna_utf32_string_with_index_copy_from_scsu_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream=yes -else +else $as_nop ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream=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_una_libuna_utf32_string_with_index_copy_from_scsu_stream" >&5 -$as_echo "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream" >&6; } -if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream" >&5 +printf "%s\n" "$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream" >&6; } +if test "x$ac_cv_lib_una_libuna_utf32_string_with_index_copy_from_scsu_stream" = xyes +then : ac_cv_libuna_dummy=yes -else +else $as_nop ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \`LIBUNA_COMPARE_LESS' is defined" >&5 -$as_echo_n "checking if \`LIBUNA_COMPARE_LESS' is defined... " >&6; } -if ${ac_cv_libuna_defines_compare_less+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`LIBUNA_COMPARE_LESS' is defined" >&5 +printf %s "checking if \`LIBUNA_COMPARE_LESS' is defined... " >&6; } +if test ${ac_cv_libuna_defines_compare_less+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' @@ -35287,7 +40424,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ #include int -main () +main (void) { int test = LIBUNA_COMPARE_LESS; @@ -35296,12 +40433,13 @@ return( 0 ); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_libuna_defines_compare_less=yes -else +else $as_nop ac_cv_libuna_defines_compare_less=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' @@ -35310,18 +40448,20 @@ 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: $ac_cv_libuna_defines_compare_less" >&5 -$as_echo "$ac_cv_libuna_defines_compare_less" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libuna_defines_compare_less" >&5 +printf "%s\n" "$ac_cv_libuna_defines_compare_less" >&6; } - if test "x$ac_cv_libuna_defines_compare_less" != xyes; then : + if test "x$ac_cv_libuna_defines_compare_less" != xyes +then : ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \`LIBUNA_COMPARE_EQUAL' is defined" >&5 -$as_echo_n "checking if \`LIBUNA_COMPARE_EQUAL' is defined... " >&6; } -if ${ac_cv_libuna_defines_compare_equal+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`LIBUNA_COMPARE_EQUAL' is defined" >&5 +printf %s "checking if \`LIBUNA_COMPARE_EQUAL' is defined... " >&6; } +if test ${ac_cv_libuna_defines_compare_equal+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' @@ -35332,7 +40472,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ #include int -main () +main (void) { int test = LIBUNA_COMPARE_EQUAL; @@ -35341,12 +40481,13 @@ return( 0 ); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_libuna_defines_compare_equal=yes -else +else $as_nop ac_cv_libuna_defines_compare_equal=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' @@ -35355,18 +40496,20 @@ 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: $ac_cv_libuna_defines_compare_equal" >&5 -$as_echo "$ac_cv_libuna_defines_compare_equal" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libuna_defines_compare_equal" >&5 +printf "%s\n" "$ac_cv_libuna_defines_compare_equal" >&6; } - if test "x$ac_cv_libuna_defines_compare_less" != xyes; then : + if test "x$ac_cv_libuna_defines_compare_less" != xyes +then : ac_cv_libuna=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking if \`LIBUNA_COMPARE_GREATER' is defined" >&5 -$as_echo_n "checking if \`LIBUNA_COMPARE_GREATER' is defined... " >&6; } -if ${ac_cv_libuna_defines_compare_greater+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`LIBUNA_COMPARE_GREATER' is defined" >&5 +printf %s "checking if \`LIBUNA_COMPARE_GREATER' is defined... " >&6; } +if test ${ac_cv_libuna_defines_compare_greater+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' @@ -35377,7 +40520,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ #include int -main () +main (void) { int test = LIBUNA_COMPARE_GREATER; @@ -35386,12 +40529,61 @@ return( 0 ); return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_libuna_defines_compare_greater=yes -else +else $as_nop + ac_cv_libuna_defines_compare_greater=no +fi +rm -f core conftest.err conftest.$ac_objext conftest.beam \ + conftest$ac_exeext 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 +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libuna_defines_compare_greater" >&5 +printf "%s\n" "$ac_cv_libuna_defines_compare_greater" >&6; } + + if test "x$ac_cv_libuna_defines_compare_less" != xyes +then : + ac_cv_libuna=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking if \`LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE' is defined" >&5 +printf %s "checking if \`LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE' is defined... " >&6; } +if test ${ac_cv_libuna_defines_compare_greater+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 + + cat confdefs.h - <<_ACEOF >conftest.$ac_ext +/* end confdefs.h. */ +#include +int +main (void) +{ +int test = LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE; + +return( 0 ); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_libuna_defines_compare_greater=yes +else $as_nop ac_cv_libuna_defines_compare_greater=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' @@ -35400,10 +40592,11 @@ 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: $ac_cv_libuna_defines_compare_greater" >&5 -$as_echo "$ac_cv_libuna_defines_compare_greater" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libuna_defines_compare_greater" >&5 +printf "%s\n" "$ac_cv_libuna_defines_compare_greater" >&6; } - if test "x$ac_cv_libuna_defines_compare_less" != xyes; then : + if test "x$ac_cv_libuna_defines_utf16_stream_allow_unpaired_surrogate" != xyes +then : ac_cv_libuna=no fi @@ -35411,9 +40604,10 @@ fi fi fi - if test "x$ac_cv_with_libuna" != x && test "x$ac_cv_with_libuna" != xauto-detect && test "x$ac_cv_libuna" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libuna" != x && test "x$ac_cv_with_libuna" != xauto-detect && test "x$ac_cv_libuna" != xyes +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 1 "unable to find supported libuna in directory: $ac_cv_with_libuna See \`config.log' for more details" "$LINENO" 5; } @@ -35421,24 +40615,27 @@ fi fi - if test "x$ac_cv_libuna" = xyes; then : + if test "x$ac_cv_libuna" = xyes +then : -$as_echo "#define HAVE_LIBUNA 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBUNA 1" >>confdefs.h fi - if test "x$ac_cv_libuna" = xyes; then : + if test "x$ac_cv_libuna" = xyes +then : HAVE_LIBUNA=1 -else +else $as_nop HAVE_LIBUNA=0 fi - if test "x$ac_cv_libuna" != xyes; then : + if test "x$ac_cv_libuna" != xyes +then : ac_cv_libuna_CPPFLAGS="-I../libuna"; ac_cv_libuna_LIBADD="../libuna/libuna.la"; @@ -35447,7 +40644,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBUNA 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBUNA 1" >>confdefs.h HAVE_LOCAL_LIBUNA=1 @@ -35462,24 +40659,28 @@ else HAVE_LOCAL_LIBUNA_FALSE= fi - if test "x$ac_cv_libuna_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libuna_CPPFLAGS" != "x" +then : LIBUNA_CPPFLAGS=$ac_cv_libuna_CPPFLAGS fi - if test "x$ac_cv_libuna_LIBADD" != "x"; then : + if test "x$ac_cv_libuna_LIBADD" != "x" +then : LIBUNA_LIBADD=$ac_cv_libuna_LIBADD fi - if test "x$ac_cv_libuna" = xyes; then : + if test "x$ac_cv_libuna" = xyes +then : ax_libuna_pc_libs_private=-luna fi - if test "x$ac_cv_libuna" = xyes; then : + if test "x$ac_cv_libuna" = xyes +then : ax_libuna_spec_requires=libuna ax_libuna_spec_build_requires=libuna-devel @@ -35491,53 +40692,59 @@ fi # Check whether --with-libcfile was given. -if test "${with_libcfile+set}" = set; then : +if test ${with_libcfile+y} +then : withval=$with_libcfile; ac_cv_with_libcfile=$withval -else +else $as_nop ac_cv_with_libcfile=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libcfile+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libcfile in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libcfile+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libcfile=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcfile" >&5 -$as_echo "$ac_cv_with_libcfile" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcfile" >&5 +printf "%s\n" "$ac_cv_with_libcfile" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcfile" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcfile" = xno +then : ac_cv_libcfile=no -else +else $as_nop ac_cv_libcfile=check - if test "x$ac_cv_with_libcfile" != x && test "x$ac_cv_with_libcfile" != xauto-detect; then : - if test -d "$ac_cv_with_libcfile"; then : + if test "x$ac_cv_with_libcfile" != x && test "x$ac_cv_with_libcfile" != xauto-detect +then : + if test -d "$ac_cv_with_libcfile" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libcfile}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcfile}/lib" -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 1 "no such directory: $ac_cv_with_libcfile See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile" >&5 -$as_echo_n "checking for libcfile... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile >= 20160409" >&5 +printf %s "checking for libcfile >= 20160409... " >&6; } if test -n "$libcfile_CFLAGS"; then pkg_cv_libcfile_CFLAGS="$libcfile_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcfile >= 20160409\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcfile >= 20160409\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcfile >= 20160409") 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_libcfile_CFLAGS=`$PKG_CONFIG --cflags "libcfile >= 20160409" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -35551,10 +40758,10 @@ if test -n "$libcfile_LIBS"; then pkg_cv_libcfile_LIBS="$libcfile_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcfile >= 20160409\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcfile >= 20160409\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcfile >= 20160409") 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_libcfile_LIBS=`$PKG_CONFIG --libs "libcfile >= 20160409" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -35568,8 +40775,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 @@ -35577,33 +40784,35 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libcfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcfile >= 20160409" 2>&1` + libcfile_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcfile >= 20160409" 2>&1` else - libcfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcfile >= 20160409" 2>&1` + libcfile_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcfile >= 20160409" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libcfile_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libcfile_PKG_ERRORS" >&5 - ac_cv_libcfile=check + ac_cv_libcfile=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libcfile=check -else - libcfile_CFLAGS=$pkg_cv_libcfile_CFLAGS - libcfile_LIBS=$pkg_cv_libcfile_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libcfile=yes -fi - -fi - if test "x$ac_cv_libcfile" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcfile/features.h defines LIBCFILE_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 -$as_echo_n "checking whether libcfile/features.h defines LIBCFILE_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } -if ${ac_cv_header_libcfile_features_h_have_wide_character_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libcfile=check +else + libcfile_CFLAGS=$pkg_cv_libcfile_CFLAGS + libcfile_LIBS=$pkg_cv_libcfile_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libcfile=yes +fi + +fi + if test "x$ac_cv_libcfile" = xyes && test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcfile/features.h defines LIBCFILE_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 +printf %s "checking whether libcfile/features.h defines LIBCFILE_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } +if test ${ac_cv_header_libcfile_features_h_have_wide_character_type+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' @@ -35614,7 +40823,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ #include int -main () +main (void) { #if !defined( LIBCFILE_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCFILE_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCFILE_HAVE_WIDE_CHARACTER_TYPE not defined @@ -35623,12 +40832,13 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_header_libcfile_features_h_have_wide_character_type=yes -else +else $as_nop ac_cv_header_libcfile_features_h_have_wide_character_type=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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -35636,45 +40846,45 @@ 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: $ac_cv_header_libcfile_features_h_have_wide_character_type" >&5 -$as_echo "$ac_cv_header_libcfile_features_h_have_wide_character_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libcfile_features_h_have_wide_character_type" >&5 +printf "%s\n" "$ac_cv_header_libcfile_features_h_have_wide_character_type" >&6; } - if test "x$ac_cv_header_libcfile_features_h_have_wide_character_type" = xno; then : + if test "x$ac_cv_header_libcfile_features_h_have_wide_character_type" = xno +then : ac_cv_libcfile=no fi fi - if test "x$ac_cv_libcfile" = xyes; then : + if test "x$ac_cv_libcfile" = xyes +then : ac_cv_libcfile_CPPFLAGS="$pkg_cv_libcfile_CFLAGS" ac_cv_libcfile_LIBADD="$pkg_cv_libcfile_LIBS" fi fi - if test "x$ac_cv_libcfile" = xcheck; then : - for ac_header in libcfile.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libcfile.h" "ac_cv_header_libcfile_h" "$ac_includes_default" -if test "x$ac_cv_header_libcfile_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCFILE_H 1 -_ACEOF + if test "x$ac_cv_libcfile" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libcfile.h" "ac_cv_header_libcfile_h" "$ac_includes_default" +if test "x$ac_cv_header_libcfile_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBCFILE_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libcfile_h" = xno; then : + if test "x$ac_cv_header_libcfile_h" = xno +then : ac_cv_libcfile=no -else +else $as_nop ac_cv_libcfile=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_get_version in -lcfile" >&5 -$as_echo_n "checking for libcfile_get_version in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_get_version in -lcfile" >&5 +printf %s "checking for libcfile_get_version in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35683,41 +40893,41 @@ 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 libcfile_get_version (); int -main () +main (void) { return libcfile_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_get_version=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_get_version=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_cfile_libcfile_get_version" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_get_version" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_get_version" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_get_version" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_get_version" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_initialize in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_initialize in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_initialize in -lcfile" >&5 +printf %s "checking for libcfile_file_initialize in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35726,40 +40936,40 @@ 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 libcfile_file_initialize (); int -main () +main (void) { return libcfile_file_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_initialize=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_initialize=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_cfile_libcfile_file_initialize" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_initialize" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_initialize" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_initialize" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_initialize" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_free in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_free in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_free in -lcfile" >&5 +printf %s "checking for libcfile_file_free in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35768,40 +40978,40 @@ 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 libcfile_file_free (); int -main () +main (void) { return libcfile_file_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_free=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_free=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_cfile_libcfile_file_free" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_free" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_free" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_free" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_free" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_open in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open in -lcfile" >&5 +printf %s "checking for libcfile_file_open in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35810,40 +41020,40 @@ 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 libcfile_file_open (); int -main () +main (void) { return libcfile_file_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_open=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_open=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_cfile_libcfile_file_open" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_open" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_open" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_open" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_open" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_with_error_code in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_open_with_error_code in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_open_with_error_code+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_with_error_code in -lcfile" >&5 +printf %s "checking for libcfile_file_open_with_error_code in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_open_with_error_code+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35852,40 +41062,40 @@ 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 libcfile_file_open_with_error_code (); int -main () +main (void) { return libcfile_file_open_with_error_code (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_open_with_error_code=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_open_with_error_code=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_cfile_libcfile_file_open_with_error_code" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_open_with_error_code" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_open_with_error_code" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_open_with_error_code" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_open_with_error_code" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_open_with_error_code" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_close in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_close in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_close+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_close in -lcfile" >&5 +printf %s "checking for libcfile_file_close in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_close+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35894,40 +41104,40 @@ 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 libcfile_file_close (); int -main () +main (void) { return libcfile_file_close (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_close=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_close=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_cfile_libcfile_file_close" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_close" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_close" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_close" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_close" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_close" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_read_buffer in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_read_buffer in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_read_buffer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_read_buffer in -lcfile" >&5 +printf %s "checking for libcfile_file_read_buffer in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_read_buffer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35936,40 +41146,40 @@ 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 libcfile_file_read_buffer (); int -main () +main (void) { return libcfile_file_read_buffer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_read_buffer=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_read_buffer=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_cfile_libcfile_file_read_buffer" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_read_buffer" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_read_buffer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_read_buffer" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_read_buffer" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_read_buffer" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_read_buffer_with_error_code in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_read_buffer_with_error_code in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_read_buffer_with_error_code in -lcfile" >&5 +printf %s "checking for libcfile_file_read_buffer_with_error_code in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -35978,40 +41188,40 @@ 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 libcfile_file_read_buffer_with_error_code (); int -main () +main (void) { return libcfile_file_read_buffer_with_error_code (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code=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_cfile_libcfile_file_read_buffer_with_error_code" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_read_buffer_with_error_code" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_write_buffer in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_write_buffer in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_write_buffer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_write_buffer in -lcfile" >&5 +printf %s "checking for libcfile_file_write_buffer in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_write_buffer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36020,40 +41230,40 @@ 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 libcfile_file_write_buffer (); int -main () +main (void) { return libcfile_file_write_buffer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_write_buffer=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_write_buffer=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_cfile_libcfile_file_write_buffer" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_write_buffer" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_write_buffer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_write_buffer" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_write_buffer" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_write_buffer" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_write_buffer_with_error_code in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_write_buffer_with_error_code in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_write_buffer_with_error_code in -lcfile" >&5 +printf %s "checking for libcfile_file_write_buffer_with_error_code in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36062,40 +41272,40 @@ 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 libcfile_file_write_buffer_with_error_code (); int -main () +main (void) { return libcfile_file_write_buffer_with_error_code (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code=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_cfile_libcfile_file_write_buffer_with_error_code" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_write_buffer_with_error_code" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_seek_offset in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_seek_offset in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_seek_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_seek_offset in -lcfile" >&5 +printf %s "checking for libcfile_file_seek_offset in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_seek_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36104,40 +41314,40 @@ 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 libcfile_file_seek_offset (); int -main () +main (void) { return libcfile_file_seek_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_seek_offset=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_seek_offset=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_cfile_libcfile_file_seek_offset" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_seek_offset" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_seek_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_seek_offset" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_seek_offset" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_seek_offset" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_resize in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_resize in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_resize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_resize in -lcfile" >&5 +printf %s "checking for libcfile_file_resize in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_resize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36146,40 +41356,40 @@ 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 libcfile_file_resize (); int -main () +main (void) { return libcfile_file_resize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_resize=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_resize=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_cfile_libcfile_file_resize" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_resize" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_resize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_resize" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_resize" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_resize" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_is_open in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_is_open in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_is_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_is_open in -lcfile" >&5 +printf %s "checking for libcfile_file_is_open in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_is_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36188,40 +41398,40 @@ 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 libcfile_file_is_open (); int -main () +main (void) { return libcfile_file_is_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_is_open=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_is_open=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_cfile_libcfile_file_is_open" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_is_open" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_is_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_is_open" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_is_open" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_is_open" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_get_offset in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_get_offset in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_get_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_get_offset in -lcfile" >&5 +printf %s "checking for libcfile_file_get_offset in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_get_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36230,40 +41440,40 @@ 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 libcfile_file_get_offset (); int -main () +main (void) { return libcfile_file_get_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_get_offset=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_get_offset=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_cfile_libcfile_file_get_offset" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_get_offset" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_get_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_get_offset" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_get_offset" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_get_offset" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_get_size in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_get_size in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_get_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_get_size in -lcfile" >&5 +printf %s "checking for libcfile_file_get_size in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_get_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36272,40 +41482,40 @@ 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 libcfile_file_get_size (); int -main () +main (void) { return libcfile_file_get_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_get_size=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_get_size=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_cfile_libcfile_file_get_size" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_get_size" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_get_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_get_size" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_get_size" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_get_size" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_is_device in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_is_device in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_is_device+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_is_device in -lcfile" >&5 +printf %s "checking for libcfile_file_is_device in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_is_device+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36314,40 +41524,40 @@ 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 libcfile_file_is_device (); int -main () +main (void) { return libcfile_file_is_device (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_is_device=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_is_device=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_cfile_libcfile_file_is_device" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_is_device" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_is_device" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_is_device" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_is_device" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_is_device" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_io_control_read in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_io_control_read in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_io_control_read+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_io_control_read in -lcfile" >&5 +printf %s "checking for libcfile_file_io_control_read in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_io_control_read+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36356,40 +41566,40 @@ 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 libcfile_file_io_control_read (); int -main () +main (void) { return libcfile_file_io_control_read (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_io_control_read=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_io_control_read=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_cfile_libcfile_file_io_control_read" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_io_control_read" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_io_control_read" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_io_control_read" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_io_control_read" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_io_control_read" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_io_control_read_with_error_code in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_io_control_read_with_error_code in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_io_control_read_with_error_code in -lcfile" >&5 +printf %s "checking for libcfile_file_io_control_read_with_error_code in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36398,42 +41608,43 @@ 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 libcfile_file_io_control_read_with_error_code (); int -main () +main (void) { return libcfile_file_io_control_read_with_error_code (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code=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_cfile_libcfile_file_io_control_read_with_error_code" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_io_control_read_with_error_code" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - if test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_wide in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_open_wide in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_open_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_wide in -lcfile" >&5 +printf %s "checking for libcfile_file_open_wide in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_open_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36442,40 +41653,40 @@ 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 libcfile_file_open_wide (); int -main () +main (void) { return libcfile_file_open_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_open_wide=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_open_wide=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_cfile_libcfile_file_open_wide" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_open_wide" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_open_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_open_wide" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_open_wide" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_open_wide" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_wide_with_error_code in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_open_wide_with_error_code in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_open_wide_with_error_code in -lcfile" >&5 +printf %s "checking for libcfile_file_open_wide_with_error_code in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36484,43 +41695,43 @@ 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 libcfile_file_open_wide_with_error_code (); int -main () +main (void) { return libcfile_file_open_wide_with_error_code (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code=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_cfile_libcfile_file_open_wide_with_error_code" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_open_wide_with_error_code" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_exists in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_exists in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_exists+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_exists in -lcfile" >&5 +printf %s "checking for libcfile_file_exists in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_exists+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36529,40 +41740,40 @@ 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 libcfile_file_exists (); int -main () +main (void) { return libcfile_file_exists (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_exists=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_exists=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_cfile_libcfile_file_exists" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_exists" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_exists" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_exists" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_exists" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_exists" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_remove in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_remove in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_remove+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_remove in -lcfile" >&5 +printf %s "checking for libcfile_file_remove in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_remove+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36571,42 +41782,43 @@ 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 libcfile_file_remove (); int -main () +main (void) { return libcfile_file_remove (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_remove=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_remove=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_cfile_libcfile_file_remove" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_remove" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_remove" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_remove" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_remove" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_remove" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - if test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_exists_wide in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_exists_wide in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_exists_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_exists_wide in -lcfile" >&5 +printf %s "checking for libcfile_file_exists_wide in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_exists_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36615,40 +41827,40 @@ 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 libcfile_file_exists_wide (); int -main () +main (void) { return libcfile_file_exists_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_exists_wide=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_exists_wide=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_cfile_libcfile_file_exists_wide" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_exists_wide" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_exists_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_exists_wide" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_exists_wide" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_exists_wide" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_remove_wide in -lcfile" >&5 -$as_echo_n "checking for libcfile_file_remove_wide in -lcfile... " >&6; } -if ${ac_cv_lib_cfile_libcfile_file_remove_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcfile_file_remove_wide in -lcfile" >&5 +printf %s "checking for libcfile_file_remove_wide in -lcfile... " >&6; } +if test ${ac_cv_lib_cfile_libcfile_file_remove_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcfile $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -36657,32 +41869,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 libcfile_file_remove_wide (); int -main () +main (void) { return libcfile_file_remove_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cfile_libcfile_file_remove_wide=yes -else +else $as_nop ac_cv_lib_cfile_libcfile_file_remove_wide=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_cfile_libcfile_file_remove_wide" >&5 -$as_echo "$ac_cv_lib_cfile_libcfile_file_remove_wide" >&6; } -if test "x$ac_cv_lib_cfile_libcfile_file_remove_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cfile_libcfile_file_remove_wide" >&5 +printf "%s\n" "$ac_cv_lib_cfile_libcfile_file_remove_wide" >&6; } +if test "x$ac_cv_lib_cfile_libcfile_file_remove_wide" = xyes +then : ac_cv_libcfile_dummy=yes -else +else $as_nop ac_cv_libcfile=no fi @@ -36693,9 +41904,10 @@ fi fi fi - if test "x$ac_cv_with_libcfile" != x && test "x$ac_cv_with_libcfile" != xauto-detect && test "x$ac_cv_libcfile" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libcfile" != x && test "x$ac_cv_with_libcfile" != xauto-detect && test "x$ac_cv_libcfile" != xyes +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 1 "unable to find supported libcfile in directory: $ac_cv_with_libcfile See \`config.log' for more details" "$LINENO" 5; } @@ -36703,88 +41915,162 @@ fi fi - if test "x$ac_cv_libcfile" = xyes; then : + if test "x$ac_cv_libcfile" = xyes +then : -$as_echo "#define HAVE_LIBCFILE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCFILE 1" >>confdefs.h fi - if test "x$ac_cv_libcfile" = xyes; then : + if test "x$ac_cv_libcfile" = xyes +then : HAVE_LIBCFILE=1 -else +else $as_nop HAVE_LIBCFILE=0 fi - if test "x$ac_cv_libcfile" != xyes; then : - for ac_header in errno.h stdio.h sys/stat.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + if test "x$ac_cv_libcfile" != xyes +then : + ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" +if test "x$ac_cv_header_errno_h" = xyes +then : + printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default" +if test "x$ac_cv_header_stdio_h" = xyes +then : + printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_stat_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h +fi - for ac_header in cygwin/fs.h fcntl.h linux/fs.h sys/disk.h sys/disklabel.h sys/ioctl.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + + ac_fn_c_check_header_compile "$LINENO" "cygwin/fs.h" "ac_cv_header_cygwin_fs_h" "$ac_includes_default" +if test "x$ac_cv_header_cygwin_fs_h" = xyes +then : + printf "%s\n" "#define HAVE_CYGWIN_FS_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default" +if test "x$ac_cv_header_fcntl_h" = xyes +then : + printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "linux/fs.h" "ac_cv_header_linux_fs_h" "$ac_includes_default" +if test "x$ac_cv_header_linux_fs_h" = xyes +then : + printf "%s\n" "#define HAVE_LINUX_FS_H 1" >>confdefs.h +fi +ac_fn_c_check_header_compile "$LINENO" "sys/disk.h" "ac_cv_header_sys_disk_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_disk_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_DISK_H 1" >>confdefs.h - for ac_func in close fstat ftruncate ioctl lseek open read write -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_header_compile "$LINENO" "sys/disklabel.h" "ac_cv_header_sys_disklabel_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_disklabel_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_DISKLABEL_H 1" >>confdefs.h fi -done +ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_ioctl_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h +fi +ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_unistd_h" = xyes +then : + printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h - if test "x$ac_cv_func_close" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} +fi + + + ac_fn_c_check_func "$LINENO" "close" "ac_cv_func_close" +if test "x$ac_cv_func_close" = xyes +then : + printf "%s\n" "#define HAVE_CLOSE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "fstat" "ac_cv_func_fstat" +if test "x$ac_cv_func_fstat" = xyes +then : + printf "%s\n" "#define HAVE_FSTAT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ftruncate" "ac_cv_func_ftruncate" +if test "x$ac_cv_func_ftruncate" = xyes +then : + printf "%s\n" "#define HAVE_FTRUNCATE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "ioctl" "ac_cv_func_ioctl" +if test "x$ac_cv_func_ioctl" = xyes +then : + printf "%s\n" "#define HAVE_IOCTL 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "lseek" "ac_cv_func_lseek" +if test "x$ac_cv_func_lseek" = xyes +then : + printf "%s\n" "#define HAVE_LSEEK 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "open" "ac_cv_func_open" +if test "x$ac_cv_func_open" = xyes +then : + printf "%s\n" "#define HAVE_OPEN 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "read" "ac_cv_func_read" +if test "x$ac_cv_func_read" = xyes +then : + printf "%s\n" "#define HAVE_READ 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "write" "ac_cv_func_write" +if test "x$ac_cv_func_write" = xyes +then : + printf "%s\n" "#define HAVE_WRITE 1" >>confdefs.h + +fi + + + if test "x$ac_cv_func_close" != xyes +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 1 "Missing function: close See \`config.log' for more details" "$LINENO" 5; } fi - for ac_func in posix_fadvise -do : ac_fn_c_check_func "$LINENO" "posix_fadvise" "ac_cv_func_posix_fadvise" -if test "x$ac_cv_func_posix_fadvise" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_POSIX_FADVISE 1 -_ACEOF +if test "x$ac_cv_func_posix_fadvise" = xyes +then : + printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h fi -done - if test "x$ac_cv_func_posix_fadvise" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether posix_fadvise can be linked" >&5 -$as_echo_n "checking whether posix_fadvise can be linked... " >&6; } + if test "x$ac_cv_func_posix_fadvise" = xyes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether posix_fadvise can be linked" >&5 +printf %s "checking whether posix_fadvise can be linked... " >&6; } SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" @@ -36799,7 +42085,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ #include int -main () +main (void) { #if !defined( POSIX_FADV_SEQUENTIAL ) #define POSIX_FADV_SEQUENTIAL 2 @@ -36809,12 +42095,13 @@ posix_fadvise( 0, 0, 0, POSIX_FADV_SEQUENTIAL ) return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_func_posix_fadvise=yes -else +else $as_nop ac_cv_func_posix_fadvise=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 @@ -36825,40 +42112,45 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS="$SAVE_CFLAGS" - if test "x$ac_cv_func_posix_fadvise" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } + if test "x$ac_cv_func_posix_fadvise" = xyes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } -$as_echo "#define HAVE_POSIX_FADVISE 1" >>confdefs.h +printf "%s\n" "#define HAVE_POSIX_FADVISE 1" >>confdefs.h -else - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } +else $as_nop + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } fi fi - if test "x$ac_cv_func_fstat" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_fstat" != xyes +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 1 "Missing function: fstat See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_func_ftruncate" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_ftruncate" != xyes +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 1 "Missing function: ftruncate See \`config.log' for more details" "$LINENO" 5; } fi - if test x"$ac_cv_enable_winapi" = xno; then : - if test "x$ac_cv_func_ioctl" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test x"$ac_cv_enable_winapi" = xno +then : + if test "x$ac_cv_func_ioctl" != xyes +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 1 "Missing function: ioctl See \`config.log' for more details" "$LINENO" 5; } @@ -36866,62 +42158,69 @@ fi fi - if test "x$ac_cv_func_lseek" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_lseek" != xyes +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 1 "Missing function: lseek See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_func_open" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_open" != xyes +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 1 "Missing function: open See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_func_read" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_read" != xyes +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 1 "Missing function: read See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_func_write" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_write" != xyes +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 1 "Missing function: write See \`config.log' for more details" "$LINENO" 5; } fi - for ac_func in stat unlink -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_func "$LINENO" "stat" "ac_cv_func_stat" +if test "x$ac_cv_func_stat" = xyes +then : + printf "%s\n" "#define HAVE_STAT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "unlink" "ac_cv_func_unlink" +if test "x$ac_cv_func_unlink" = xyes +then : + printf "%s\n" "#define HAVE_UNLINK 1" >>confdefs.h fi -done - if test "x$ac_cv_func_stat" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_stat" != xyes +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 1 "Missing function: stat See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_func_unlink" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_unlink" != xyes +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 1 "Missing function: unlink See \`config.log' for more details" "$LINENO" 5; } @@ -36934,7 +42233,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBCFILE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBCFILE 1" >>confdefs.h HAVE_LOCAL_LIBCFILE=1 @@ -36949,24 +42248,28 @@ else HAVE_LOCAL_LIBCFILE_FALSE= fi - if test "x$ac_cv_libcfile_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libcfile_CPPFLAGS" != "x" +then : LIBCFILE_CPPFLAGS=$ac_cv_libcfile_CPPFLAGS fi - if test "x$ac_cv_libcfile_LIBADD" != "x"; then : + if test "x$ac_cv_libcfile_LIBADD" != "x" +then : LIBCFILE_LIBADD=$ac_cv_libcfile_LIBADD fi - if test "x$ac_cv_libcfile" = xyes; then : + if test "x$ac_cv_libcfile" = xyes +then : ax_libcfile_pc_libs_private=-lcfile fi - if test "x$ac_cv_libcfile" = xyes; then : + if test "x$ac_cv_libcfile" = xyes +then : ax_libcfile_spec_requires=libcfile ax_libcfile_spec_build_requires=libcfile-devel @@ -36978,53 +42281,59 @@ fi # Check whether --with-libcpath was given. -if test "${with_libcpath+set}" = set; then : +if test ${with_libcpath+y} +then : withval=$with_libcpath; ac_cv_with_libcpath=$withval -else +else $as_nop ac_cv_with_libcpath=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libcpath+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libcpath in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libcpath+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libcpath=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcpath" >&5 -$as_echo "$ac_cv_with_libcpath" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libcpath" >&5 +printf "%s\n" "$ac_cv_with_libcpath" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcpath" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libcpath" = xno +then : ac_cv_libcpath=no -else +else $as_nop ac_cv_libcpath=check - if test "x$ac_cv_with_libcpath" != x && test "x$ac_cv_with_libcpath" != xauto-detect; then : - if test -d "$ac_cv_with_libcpath"; then : + if test "x$ac_cv_with_libcpath" != x && test "x$ac_cv_with_libcpath" != xauto-detect +then : + if test -d "$ac_cv_with_libcpath" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libcpath}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libcpath}/lib" -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 1 "no such directory: $ac_cv_with_libcpath See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath" >&5 -$as_echo_n "checking for libcpath... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath >= 20180716" >&5 +printf %s "checking for libcpath >= 20180716... " >&6; } if test -n "$libcpath_CFLAGS"; then pkg_cv_libcpath_CFLAGS="$libcpath_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpath >= 20180716\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpath >= 20180716\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcpath >= 20180716") 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_libcpath_CFLAGS=`$PKG_CONFIG --cflags "libcpath >= 20180716" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -37038,10 +42347,10 @@ if test -n "$libcpath_LIBS"; then pkg_cv_libcpath_LIBS="$libcpath_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpath >= 20180716\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libcpath >= 20180716\""; } >&5 ($PKG_CONFIG --exists --print-errors "libcpath >= 20180716") 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_libcpath_LIBS=`$PKG_CONFIG --libs "libcpath >= 20180716" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -37055,8 +42364,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 @@ -37064,33 +42373,35 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libcpath_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcpath >= 20180716" 2>&1` + libcpath_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libcpath >= 20180716" 2>&1` else - libcpath_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcpath >= 20180716" 2>&1` + libcpath_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libcpath >= 20180716" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libcpath_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libcpath_PKG_ERRORS" >&5 - ac_cv_libcpath=check + ac_cv_libcpath=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libcpath=check -else - libcpath_CFLAGS=$pkg_cv_libcpath_CFLAGS - libcpath_LIBS=$pkg_cv_libcpath_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libcpath=yes -fi - -fi - if test "x$ac_cv_libcpath" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libcpath/features.h defines LIBCPATH_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 -$as_echo_n "checking whether libcpath/features.h defines LIBCPATH_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } -if ${ac_cv_header_libcpath_features_h_have_wide_character_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libcpath=check +else + libcpath_CFLAGS=$pkg_cv_libcpath_CFLAGS + libcpath_LIBS=$pkg_cv_libcpath_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libcpath=yes +fi + +fi + if test "x$ac_cv_libcpath" = xyes && test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libcpath/features.h defines LIBCPATH_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 +printf %s "checking whether libcpath/features.h defines LIBCPATH_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } +if test ${ac_cv_header_libcpath_features_h_have_wide_character_type+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' @@ -37101,7 +42412,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ #include int -main () +main (void) { #if !defined( LIBCPATH_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBCPATH_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBCPATH_HAVE_WIDE_CHARACTER_TYPE not defined @@ -37110,12 +42421,13 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_header_libcpath_features_h_have_wide_character_type=yes -else +else $as_nop ac_cv_header_libcpath_features_h_have_wide_character_type=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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -37123,45 +42435,45 @@ 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: $ac_cv_header_libcpath_features_h_have_wide_character_type" >&5 -$as_echo "$ac_cv_header_libcpath_features_h_have_wide_character_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libcpath_features_h_have_wide_character_type" >&5 +printf "%s\n" "$ac_cv_header_libcpath_features_h_have_wide_character_type" >&6; } - if test "x$ac_cv_header_libcpath_features_h_have_wide_character_type" = xno; then : + if test "x$ac_cv_header_libcpath_features_h_have_wide_character_type" = xno +then : ac_cv_libcpath=no fi fi - if test "x$ac_cv_libcpath" = xyes; then : + if test "x$ac_cv_libcpath" = xyes +then : ac_cv_libcpath_CPPFLAGS="$pkg_cv_libcpath_CFLAGS" ac_cv_libcpath_LIBADD="$pkg_cv_libcpath_LIBS" fi fi - if test "x$ac_cv_libcpath" = xcheck; then : - for ac_header in libcpath.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libcpath.h" "ac_cv_header_libcpath_h" "$ac_includes_default" -if test "x$ac_cv_header_libcpath_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBCPATH_H 1 -_ACEOF + if test "x$ac_cv_libcpath" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libcpath.h" "ac_cv_header_libcpath_h" "$ac_includes_default" +if test "x$ac_cv_header_libcpath_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBCPATH_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libcpath_h" = xno; then : + if test "x$ac_cv_header_libcpath_h" = xno +then : ac_cv_libcpath=no -else +else $as_nop ac_cv_libcpath=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_get_version in -lcpath" >&5 -$as_echo_n "checking for libcpath_get_version in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_get_version in -lcpath" >&5 +printf %s "checking for libcpath_get_version in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37170,41 +42482,41 @@ 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 libcpath_get_version (); int -main () +main (void) { return libcpath_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_get_version=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_get_version=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_cpath_libcpath_get_version" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_get_version" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_get_version" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_get_version" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_get_version" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_change_directory in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_change_directory in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_change_directory+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_change_directory in -lcpath" >&5 +printf %s "checking for libcpath_path_change_directory in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_change_directory+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37213,40 +42525,40 @@ 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 libcpath_path_change_directory (); int -main () +main (void) { return libcpath_path_change_directory (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_change_directory=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_change_directory=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_cpath_libcpath_path_change_directory" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_change_directory" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_change_directory" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_change_directory" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_change_directory" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_change_directory" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_current_working_directory in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_get_current_working_directory in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_get_current_working_directory+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_current_working_directory in -lcpath" >&5 +printf %s "checking for libcpath_path_get_current_working_directory in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_get_current_working_directory+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37255,40 +42567,40 @@ 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 libcpath_path_get_current_working_directory (); int -main () +main (void) { return libcpath_path_get_current_working_directory (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_get_current_working_directory=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_get_current_working_directory=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_cpath_libcpath_path_get_current_working_directory" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_get_current_working_directory" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_get_current_working_directory" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_current_working_directory" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_get_current_working_directory" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_get_current_working_directory" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_full_path in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_get_full_path in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_get_full_path+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_full_path in -lcpath" >&5 +printf %s "checking for libcpath_path_get_full_path in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_get_full_path+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37297,40 +42609,40 @@ 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 libcpath_path_get_full_path (); int -main () +main (void) { return libcpath_path_get_full_path (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_get_full_path=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_get_full_path=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_cpath_libcpath_path_get_full_path" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_get_full_path" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_get_full_path" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_full_path" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_get_full_path" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_get_full_path" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_filename in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_get_sanitized_filename in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_get_sanitized_filename+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_filename in -lcpath" >&5 +printf %s "checking for libcpath_path_get_sanitized_filename in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_get_sanitized_filename+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37339,40 +42651,40 @@ 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 libcpath_path_get_sanitized_filename (); int -main () +main (void) { return libcpath_path_get_sanitized_filename (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_get_sanitized_filename=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_get_sanitized_filename=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_cpath_libcpath_path_get_sanitized_filename" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_sanitized_filename" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_path in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_get_sanitized_path in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_get_sanitized_path+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_path in -lcpath" >&5 +printf %s "checking for libcpath_path_get_sanitized_path in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_get_sanitized_path+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37381,40 +42693,40 @@ 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 libcpath_path_get_sanitized_path (); int -main () +main (void) { return libcpath_path_get_sanitized_path (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_get_sanitized_path=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_get_sanitized_path=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_cpath_libcpath_path_get_sanitized_path" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_get_sanitized_path" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_path" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_sanitized_path" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_get_sanitized_path" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_path" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_join in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_join in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_join+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_join in -lcpath" >&5 +printf %s "checking for libcpath_path_join in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_join+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37423,40 +42735,40 @@ 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 libcpath_path_join (); int -main () +main (void) { return libcpath_path_join (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_join=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_join=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_cpath_libcpath_path_join" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_join" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_join" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_join" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_join" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_join" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_make_directory in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_make_directory in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_make_directory+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_make_directory in -lcpath" >&5 +printf %s "checking for libcpath_path_make_directory in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_make_directory+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37465,42 +42777,43 @@ 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 libcpath_path_make_directory (); int -main () +main (void) { return libcpath_path_make_directory (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_make_directory=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_make_directory=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_cpath_libcpath_path_make_directory" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_make_directory" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_make_directory" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_make_directory" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_make_directory" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_make_directory" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - if test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_change_directory_wide in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_change_directory_wide in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_change_directory_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_change_directory_wide in -lcpath" >&5 +printf %s "checking for libcpath_path_change_directory_wide in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_change_directory_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37509,40 +42822,40 @@ 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 libcpath_path_change_directory_wide (); int -main () +main (void) { return libcpath_path_change_directory_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_change_directory_wide=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_change_directory_wide=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_cpath_libcpath_path_change_directory_wide" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_change_directory_wide" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_change_directory_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_change_directory_wide" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_change_directory_wide" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_change_directory_wide" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_current_working_directory_wide in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_get_current_working_directory_wide in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_current_working_directory_wide in -lcpath" >&5 +printf %s "checking for libcpath_path_get_current_working_directory_wide in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37551,40 +42864,40 @@ 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 libcpath_path_get_current_working_directory_wide (); int -main () +main (void) { return libcpath_path_get_current_working_directory_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide=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_cpath_libcpath_path_get_current_working_directory_wide" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_get_current_working_directory_wide" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_full_path_wide in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_get_full_path_wide in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_get_full_path_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_full_path_wide in -lcpath" >&5 +printf %s "checking for libcpath_path_get_full_path_wide in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_get_full_path_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37593,40 +42906,40 @@ 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 libcpath_path_get_full_path_wide (); int -main () +main (void) { return libcpath_path_get_full_path_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_get_full_path_wide=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_get_full_path_wide=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_cpath_libcpath_path_get_full_path_wide" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_get_full_path_wide" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_get_full_path_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_full_path_wide" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_get_full_path_wide" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_get_full_path_wide" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_filename_wide in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_get_sanitized_filename_wide in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_filename_wide in -lcpath" >&5 +printf %s "checking for libcpath_path_get_sanitized_filename_wide in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37635,40 +42948,40 @@ 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 libcpath_path_get_sanitized_filename_wide (); int -main () +main (void) { return libcpath_path_get_sanitized_filename_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide=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_cpath_libcpath_path_get_sanitized_filename_wide" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_filename_wide" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_path_wide in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_get_sanitized_path_wide in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_get_sanitized_path_wide in -lcpath" >&5 +printf %s "checking for libcpath_path_get_sanitized_path_wide in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37677,40 +42990,40 @@ 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 libcpath_path_get_sanitized_path_wide (); int -main () +main (void) { return libcpath_path_get_sanitized_path_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide=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_cpath_libcpath_path_get_sanitized_path_wide" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_get_sanitized_path_wide" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_join_wide in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_join_wide in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_join_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_join_wide in -lcpath" >&5 +printf %s "checking for libcpath_path_join_wide in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_join_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37719,40 +43032,40 @@ 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 libcpath_path_join_wide (); int -main () +main (void) { return libcpath_path_join_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_join_wide=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_join_wide=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_cpath_libcpath_path_join_wide" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_join_wide" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_join_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_join_wide" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_join_wide" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_join_wide" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_make_directory_wide in -lcpath" >&5 -$as_echo_n "checking for libcpath_path_make_directory_wide in -lcpath... " >&6; } -if ${ac_cv_lib_cpath_libcpath_path_make_directory_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libcpath_path_make_directory_wide in -lcpath" >&5 +printf %s "checking for libcpath_path_make_directory_wide in -lcpath... " >&6; } +if test ${ac_cv_lib_cpath_libcpath_path_make_directory_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lcpath $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -37761,32 +43074,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 libcpath_path_make_directory_wide (); int -main () +main (void) { return libcpath_path_make_directory_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_cpath_libcpath_path_make_directory_wide=yes -else +else $as_nop ac_cv_lib_cpath_libcpath_path_make_directory_wide=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_cpath_libcpath_path_make_directory_wide" >&5 -$as_echo "$ac_cv_lib_cpath_libcpath_path_make_directory_wide" >&6; } -if test "x$ac_cv_lib_cpath_libcpath_path_make_directory_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cpath_libcpath_path_make_directory_wide" >&5 +printf "%s\n" "$ac_cv_lib_cpath_libcpath_path_make_directory_wide" >&6; } +if test "x$ac_cv_lib_cpath_libcpath_path_make_directory_wide" = xyes +then : ac_cv_libcpath_dummy=yes -else +else $as_nop ac_cv_libcpath=no fi @@ -37797,9 +43109,10 @@ fi fi fi - if test "x$ac_cv_with_libcpath" != x && test "x$ac_cv_with_libcpath" != xauto-detect && test "x$ac_cv_libcpath" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libcpath" != x && test "x$ac_cv_with_libcpath" != xauto-detect && test "x$ac_cv_libcpath" != xyes +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 1 "unable to find supported libcpath in directory: $ac_cv_with_libcpath See \`config.log' for more details" "$LINENO" 5; } @@ -37807,82 +43120,91 @@ fi fi - if test "x$ac_cv_libcpath" = xyes; then : + if test "x$ac_cv_libcpath" = xyes +then : -$as_echo "#define HAVE_LIBCPATH 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBCPATH 1" >>confdefs.h fi - if test "x$ac_cv_libcpath" = xyes; then : + if test "x$ac_cv_libcpath" = xyes +then : HAVE_LIBCPATH=1 -else +else $as_nop HAVE_LIBCPATH=0 fi - if test "x$ac_cv_libcpath" != xyes; then : - for ac_header in errno.h sys/stat.h sys/syslimits.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + if test "x$ac_cv_libcpath" != xyes +then : + ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default" +if test "x$ac_cv_header_errno_h" = xyes +then : + printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_stat_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "sys/syslimits.h" "ac_cv_header_sys_syslimits_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_syslimits_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SYSLIMITS_H 1" >>confdefs.h +fi - for ac_func in chdir getcwd -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + + ac_fn_c_check_func "$LINENO" "chdir" "ac_cv_func_chdir" +if test "x$ac_cv_func_chdir" = xyes +then : + printf "%s\n" "#define HAVE_CHDIR 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getcwd" "ac_cv_func_getcwd" +if test "x$ac_cv_func_getcwd" = xyes +then : + printf "%s\n" "#define HAVE_GETCWD 1" >>confdefs.h fi -done - if test "x$ac_cv_func_chdir" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_chdir" != xyes +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 1 "Missing functions: chdir See \`config.log' for more details" "$LINENO" 5; } fi - if test "x$ac_cv_func_getcwd" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_getcwd" != xyes +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 1 "Missing functions: getcwd See \`config.log' for more details" "$LINENO" 5; } fi - for ac_func in mkdir -do : ac_fn_c_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" -if test "x$ac_cv_func_mkdir" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_MKDIR 1 -_ACEOF +if test "x$ac_cv_func_mkdir" = xyes +then : + printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h fi -done - if test "x$ac_cv_func_mkdir" = xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to use mkdir" >&5 -$as_echo_n "checking how to use mkdir... " >&6; } + if test "x$ac_cv_func_mkdir" = xyes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking how to use mkdir" >&5 +printf %s "checking how to use mkdir... " >&6; } SAVE_CFLAGS="$CFLAGS" CFLAGS="$CFLAGS -Wall -Werror" @@ -37898,43 +43220,46 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu #include #include int -main () +main (void) { mkdir( "", 0 ) ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: with additional mode argument" >&5 -$as_echo "with additional mode argument" >&6; } +if ac_fn_c_try_link "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: with additional mode argument" >&5 +printf "%s\n" "with additional mode argument" >&6; } ac_cv_cv_mkdir_mode=yes -else +else $as_nop ac_cv_cv_mkdir_mode=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 - if test "x$ac_cv_cv_mkdir_mode" = xno; then : + if test "x$ac_cv_cv_mkdir_mode" = xno +then : cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include int -main () +main (void) { mkdir( "" ) ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: result: with single argument" >&5 -$as_echo "with single argument" >&6; } +if ac_fn_c_try_link "$LINENO" +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: with single argument" >&5 +printf "%s\n" "with single argument" >&6; } ac_cv_cv_mkdir=yes -else +else $as_nop ac_cv_cv_mkdir=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 @@ -37947,31 +43272,35 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu CFLAGS="$SAVE_CFLAGS" - if test "x$ac_cv_cv_mkdir_mode" = xno && test "x$ac_cv_cv_mkdir" = xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unknown" >&5 -$as_echo "$as_me: WARNING: unknown" >&2;} + if test "x$ac_cv_cv_mkdir_mode" = xno && test "x$ac_cv_cv_mkdir" = xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unknown" >&5 +printf "%s\n" "$as_me: WARNING: unknown" >&2;} ac_cv_func_mkdir=no fi - if test "x$ac_cv_func_mkdir" = xyes; then : + if test "x$ac_cv_func_mkdir" = xyes +then : -$as_echo "#define HAVE_MKDIR 1" >>confdefs.h +printf "%s\n" "#define HAVE_MKDIR 1" >>confdefs.h fi - if test "x$ac_cv_cv_mkdir_mode" = xyes; then : + if test "x$ac_cv_cv_mkdir_mode" = xyes +then : -$as_echo "#define HAVE_MKDIR_MODE 1" >>confdefs.h +printf "%s\n" "#define HAVE_MKDIR_MODE 1" >>confdefs.h fi fi - if test "x$ac_cv_func_mkdir" = xno; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_mkdir" = xno +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 1 "Missing function: mkdir See \`config.log' for more details" "$LINENO" 5; } @@ -37985,7 +43314,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBCPATH 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBCPATH 1" >>confdefs.h HAVE_LOCAL_LIBCPATH=1 @@ -38000,24 +43329,28 @@ else HAVE_LOCAL_LIBCPATH_FALSE= fi - if test "x$ac_cv_libcpath_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libcpath_CPPFLAGS" != "x" +then : LIBCPATH_CPPFLAGS=$ac_cv_libcpath_CPPFLAGS fi - if test "x$ac_cv_libcpath_LIBADD" != "x"; then : + if test "x$ac_cv_libcpath_LIBADD" != "x" +then : LIBCPATH_LIBADD=$ac_cv_libcpath_LIBADD fi - if test "x$ac_cv_libcpath" = xyes; then : + if test "x$ac_cv_libcpath" = xyes +then : ax_libcpath_pc_libs_private=-lcpath fi - if test "x$ac_cv_libcpath" = xyes; then : + if test "x$ac_cv_libcpath" = xyes +then : ax_libcpath_spec_requires=libcpath ax_libcpath_spec_build_requires=libcpath-devel @@ -38029,53 +43362,59 @@ fi # Check whether --with-libbfio was given. -if test "${with_libbfio+set}" = set; then : +if test ${with_libbfio+y} +then : withval=$with_libbfio; ac_cv_with_libbfio=$withval -else +else $as_nop ac_cv_with_libbfio=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libbfio+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libbfio in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libbfio+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libbfio=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libbfio" >&5 -$as_echo "$ac_cv_with_libbfio" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libbfio" >&5 +printf "%s\n" "$ac_cv_with_libbfio" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libbfio" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libbfio" = xno +then : ac_cv_libbfio=no -else +else $as_nop ac_cv_libbfio=check - if test "x$ac_cv_with_libbfio" != x && test "x$ac_cv_with_libbfio" != xauto-detect; then : - if test -d "$ac_cv_with_libbfio"; then : + if test "x$ac_cv_with_libbfio" != x && test "x$ac_cv_with_libbfio" != xauto-detect +then : + if test -d "$ac_cv_with_libbfio" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libbfio}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libbfio}/lib" -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 1 "no such directory: $ac_cv_with_libbfio See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio" >&5 -$as_echo_n "checking for libbfio... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio >= 20201125" >&5 +printf %s "checking for libbfio >= 20201125... " >&6; } if test -n "$libbfio_CFLAGS"; then pkg_cv_libbfio_CFLAGS="$libbfio_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbfio >= 20201125\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbfio >= 20201125\""; } >&5 ($PKG_CONFIG --exists --print-errors "libbfio >= 20201125") 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_libbfio_CFLAGS=`$PKG_CONFIG --cflags "libbfio >= 20201125" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -38089,10 +43428,10 @@ if test -n "$libbfio_LIBS"; then pkg_cv_libbfio_LIBS="$libbfio_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbfio >= 20201125\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libbfio >= 20201125\""; } >&5 ($PKG_CONFIG --exists --print-errors "libbfio >= 20201125") 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_libbfio_LIBS=`$PKG_CONFIG --libs "libbfio >= 20201125" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -38106,8 +43445,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 @@ -38115,33 +43454,35 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libbfio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbfio >= 20201125" 2>&1` + libbfio_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libbfio >= 20201125" 2>&1` else - libbfio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbfio >= 20201125" 2>&1` + libbfio_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libbfio >= 20201125" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libbfio_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libbfio_PKG_ERRORS" >&5 - ac_cv_libbfio=check + ac_cv_libbfio=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libbfio=check -else - libbfio_CFLAGS=$pkg_cv_libbfio_CFLAGS - libbfio_LIBS=$pkg_cv_libbfio_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libbfio=yes -fi - -fi - if test "x$ac_cv_libbfio" = xyes && test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libbfio/features.h defines LIBBFIO_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 -$as_echo_n "checking whether libbfio/features.h defines LIBBFIO_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } -if ${ac_cv_header_libbfio_features_h_have_wide_character_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libbfio=check +else + libbfio_CFLAGS=$pkg_cv_libbfio_CFLAGS + libbfio_LIBS=$pkg_cv_libbfio_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libbfio=yes +fi + +fi + if test "x$ac_cv_libbfio" = xyes && test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether libbfio/features.h defines LIBBFIO_HAVE_WIDE_CHARACTER_TYPE as 1" >&5 +printf %s "checking whether libbfio/features.h defines LIBBFIO_HAVE_WIDE_CHARACTER_TYPE as 1... " >&6; } +if test ${ac_cv_header_libbfio_features_h_have_wide_character_type+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' @@ -38152,7 +43493,7 @@ ac_compiler_gnu=$ac_cv_c_compiler_gnu /* end confdefs.h. */ #include int -main () +main (void) { #if !defined( LIBBFIO_HAVE_WIDE_CHARACTER_TYPE ) || ( LIBBFIO_HAVE_WIDE_CHARACTER_TYPE != 1 ) #error LIBBFIO_HAVE_WIDE_CHARACTER_TYPE not defined @@ -38161,12 +43502,13 @@ main () return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_header_libbfio_features_h_have_wide_character_type=yes -else +else $as_nop ac_cv_header_libbfio_features_h_have_wide_character_type=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 ac_ext=c ac_cpp='$CPP $CPPFLAGS' ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' @@ -38174,45 +43516,45 @@ 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: $ac_cv_header_libbfio_features_h_have_wide_character_type" >&5 -$as_echo "$ac_cv_header_libbfio_features_h_have_wide_character_type" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_libbfio_features_h_have_wide_character_type" >&5 +printf "%s\n" "$ac_cv_header_libbfio_features_h_have_wide_character_type" >&6; } - if test "x$ac_cv_header_libbfio_features_h_have_wide_character_type" = xno; then : + if test "x$ac_cv_header_libbfio_features_h_have_wide_character_type" = xno +then : ac_cv_libbfio=no fi fi - if test "x$ac_cv_libbfio" = xyes; then : + if test "x$ac_cv_libbfio" = xyes +then : ac_cv_libbfio_CPPFLAGS="$pkg_cv_libbfio_CFLAGS" ac_cv_libbfio_LIBADD="$pkg_cv_libbfio_LIBS" fi fi - if test "x$ac_cv_libbfio" = xcheck; then : - for ac_header in libbfio.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libbfio.h" "ac_cv_header_libbfio_h" "$ac_includes_default" -if test "x$ac_cv_header_libbfio_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBBFIO_H 1 -_ACEOF + if test "x$ac_cv_libbfio" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libbfio.h" "ac_cv_header_libbfio_h" "$ac_includes_default" +if test "x$ac_cv_header_libbfio_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBBFIO_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libbfio_h" = xno; then : + if test "x$ac_cv_header_libbfio_h" = xno +then : ac_cv_libbfio=no -else +else $as_nop ac_cv_libbfio=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_get_version in -lbfio" >&5 -$as_echo_n "checking for libbfio_get_version in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_get_version in -lbfio" >&5 +printf %s "checking for libbfio_get_version in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38221,41 +43563,41 @@ 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 libbfio_get_version (); int -main () +main (void) { return libbfio_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_get_version=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_get_version=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_bfio_libbfio_get_version" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_get_version" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_get_version" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_get_version" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_get_version" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_free in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_free in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_free in -lbfio" >&5 +printf %s "checking for libbfio_handle_free in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38263,41 +43605,41 @@ 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 + builtin and then its argument prototype would still apply. */ char libbfio_handle_free (); int -main () +main (void) { return libbfio_handle_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_free=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_free=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_bfio_libbfio_handle_free" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_free" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_free" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_free" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_free" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_open in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_open in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_open in -lbfio" >&5 +printf %s "checking for libbfio_handle_open in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38306,40 +43648,40 @@ 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 libbfio_handle_open (); int -main () +main (void) { return libbfio_handle_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_open=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_open=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_bfio_libbfio_handle_open" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_open" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_open" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_open" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_open" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_close in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_close in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_close+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_close in -lbfio" >&5 +printf %s "checking for libbfio_handle_close in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_close+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38348,40 +43690,40 @@ 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 libbfio_handle_close (); int -main () +main (void) { return libbfio_handle_close (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_close=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_close=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_bfio_libbfio_handle_close" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_close" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_close" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_close" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_close" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_close" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_exists in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_exists in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_exists+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_exists in -lbfio" >&5 +printf %s "checking for libbfio_handle_exists in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_exists+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38390,40 +43732,40 @@ 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 libbfio_handle_exists (); int -main () +main (void) { return libbfio_handle_exists (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_exists=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_exists=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_bfio_libbfio_handle_exists" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_exists" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_exists" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_exists" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_exists" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_exists" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_read_buffer in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_read_buffer in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_read_buffer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_read_buffer in -lbfio" >&5 +printf %s "checking for libbfio_handle_read_buffer in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_read_buffer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38432,40 +43774,40 @@ 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 libbfio_handle_read_buffer (); int -main () +main (void) { return libbfio_handle_read_buffer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_read_buffer=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_read_buffer=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_bfio_libbfio_handle_read_buffer" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_read_buffer" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_read_buffer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_read_buffer" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_read_buffer" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_read_buffer" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_read_buffer_at_offset in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_read_buffer_at_offset in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_read_buffer_at_offset in -lbfio" >&5 +printf %s "checking for libbfio_handle_read_buffer_at_offset in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38474,40 +43816,40 @@ 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 libbfio_handle_read_buffer_at_offset (); int -main () +main (void) { return libbfio_handle_read_buffer_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset=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_bfio_libbfio_handle_read_buffer_at_offset" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_read_buffer_at_offset" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_write_buffer in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_write_buffer in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_write_buffer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_write_buffer in -lbfio" >&5 +printf %s "checking for libbfio_handle_write_buffer in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_write_buffer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38516,40 +43858,40 @@ 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 libbfio_handle_write_buffer (); int -main () +main (void) { return libbfio_handle_write_buffer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_write_buffer=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_write_buffer=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_bfio_libbfio_handle_write_buffer" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_write_buffer" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_write_buffer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_write_buffer" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_write_buffer" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_write_buffer" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_write_buffer_at_offset in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_write_buffer_at_offset in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_write_buffer_at_offset in -lbfio" >&5 +printf %s "checking for libbfio_handle_write_buffer_at_offset in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38558,40 +43900,40 @@ 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 libbfio_handle_write_buffer_at_offset (); int -main () +main (void) { return libbfio_handle_write_buffer_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset=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_bfio_libbfio_handle_write_buffer_at_offset" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_write_buffer_at_offset" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_seek_offset in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_seek_offset in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_seek_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_seek_offset in -lbfio" >&5 +printf %s "checking for libbfio_handle_seek_offset in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_seek_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38600,41 +43942,41 @@ 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 libbfio_handle_seek_offset (); int -main () +main (void) { return libbfio_handle_seek_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_seek_offset=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_seek_offset=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_bfio_libbfio_handle_seek_offset" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_seek_offset" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_seek_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_seek_offset" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_seek_offset" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_seek_offset" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_is_open in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_is_open in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_is_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_is_open in -lbfio" >&5 +printf %s "checking for libbfio_handle_is_open in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_is_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38643,40 +43985,40 @@ 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 libbfio_handle_is_open (); int -main () +main (void) { return libbfio_handle_is_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_is_open=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_is_open=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_bfio_libbfio_handle_is_open" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_is_open" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_is_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_is_open" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_is_open" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_is_open" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_offset in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_get_offset in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_get_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_offset in -lbfio" >&5 +printf %s "checking for libbfio_handle_get_offset in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_get_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38685,40 +44027,40 @@ 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 libbfio_handle_get_offset (); int -main () +main (void) { return libbfio_handle_get_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_get_offset=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_get_offset=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_bfio_libbfio_handle_get_offset" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_get_offset" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_get_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_get_offset" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_get_offset" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_get_offset" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_size in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_get_size in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_get_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_size in -lbfio" >&5 +printf %s "checking for libbfio_handle_get_size in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_get_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38727,40 +44069,40 @@ 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 libbfio_handle_get_size (); int -main () +main (void) { return libbfio_handle_get_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_get_size=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_get_size=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_bfio_libbfio_handle_get_size" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_get_size" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_get_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_get_size" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_get_size" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_get_size" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_set_track_offsets_read in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_set_track_offsets_read in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_set_track_offsets_read in -lbfio" >&5 +printf %s "checking for libbfio_handle_set_track_offsets_read in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38769,40 +44111,40 @@ 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 libbfio_handle_set_track_offsets_read (); int -main () +main (void) { return libbfio_handle_set_track_offsets_read (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read=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_bfio_libbfio_handle_set_track_offsets_read" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_set_track_offsets_read" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_number_of_offsets_read in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_get_number_of_offsets_read in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_number_of_offsets_read in -lbfio" >&5 +printf %s "checking for libbfio_handle_get_number_of_offsets_read in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38811,40 +44153,40 @@ 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 libbfio_handle_get_number_of_offsets_read (); int -main () +main (void) { return libbfio_handle_get_number_of_offsets_read (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read=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_bfio_libbfio_handle_get_number_of_offsets_read" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_get_number_of_offsets_read" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_offset_read in -lbfio" >&5 -$as_echo_n "checking for libbfio_handle_get_offset_read in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_handle_get_offset_read+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_handle_get_offset_read in -lbfio" >&5 +printf %s "checking for libbfio_handle_get_offset_read in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_handle_get_offset_read+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38853,41 +44195,41 @@ 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 libbfio_handle_get_offset_read (); int -main () +main (void) { return libbfio_handle_get_offset_read (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_handle_get_offset_read=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_handle_get_offset_read=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_bfio_libbfio_handle_get_offset_read" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_handle_get_offset_read" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_handle_get_offset_read" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_handle_get_offset_read" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_handle_get_offset_read" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_handle_get_offset_read" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_initialize in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_initialize in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_initialize in -lbfio" >&5 +printf %s "checking for libbfio_file_initialize in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38896,40 +44238,40 @@ 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 libbfio_file_initialize (); int -main () +main (void) { return libbfio_file_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_initialize=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_initialize=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_bfio_libbfio_file_initialize" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_initialize" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_initialize" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_initialize" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_initialize" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_size in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_get_name_size in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_get_name_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_size in -lbfio" >&5 +printf %s "checking for libbfio_file_get_name_size in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_get_name_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38938,40 +44280,40 @@ 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 libbfio_file_get_name_size (); int -main () +main (void) { return libbfio_file_get_name_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_get_name_size=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_get_name_size=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_bfio_libbfio_file_get_name_size" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_get_name_size" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_get_name_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_get_name_size" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_get_name_size" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_get_name_size" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_get_name in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_get_name+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name in -lbfio" >&5 +printf %s "checking for libbfio_file_get_name in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_get_name+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -38980,40 +44322,40 @@ 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 libbfio_file_get_name (); int -main () +main (void) { return libbfio_file_get_name (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_get_name=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_get_name=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_bfio_libbfio_file_get_name" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_get_name" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_get_name" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_get_name" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_get_name" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_get_name" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_set_name in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_set_name in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_set_name+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_set_name in -lbfio" >&5 +printf %s "checking for libbfio_file_set_name in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_set_name+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39022,42 +44364,43 @@ 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 libbfio_file_set_name (); int -main () +main (void) { return libbfio_file_set_name (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_set_name=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_set_name=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_bfio_libbfio_file_set_name" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_set_name" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_set_name" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_set_name" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_set_name" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_set_name" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - if test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_size_wide in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_get_name_size_wide in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_get_name_size_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_size_wide in -lbfio" >&5 +printf %s "checking for libbfio_file_get_name_size_wide in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_get_name_size_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39066,40 +44409,40 @@ 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 libbfio_file_get_name_size_wide (); int -main () +main (void) { return libbfio_file_get_name_size_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_get_name_size_wide=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_get_name_size_wide=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_bfio_libbfio_file_get_name_size_wide" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_get_name_size_wide" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_get_name_size_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_get_name_size_wide" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_get_name_size_wide" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_get_name_size_wide" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_wide in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_get_name_wide in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_get_name_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_get_name_wide in -lbfio" >&5 +printf %s "checking for libbfio_file_get_name_wide in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_get_name_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39108,40 +44451,40 @@ 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 libbfio_file_get_name_wide (); int -main () +main (void) { return libbfio_file_get_name_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_get_name_wide=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_get_name_wide=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_bfio_libbfio_file_get_name_wide" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_get_name_wide" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_get_name_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_get_name_wide" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_get_name_wide" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_get_name_wide" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_set_name_wide in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_set_name_wide in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_set_name_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_set_name_wide in -lbfio" >&5 +printf %s "checking for libbfio_file_set_name_wide in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_set_name_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39150,43 +44493,43 @@ 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 libbfio_file_set_name_wide (); int -main () +main (void) { return libbfio_file_set_name_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_set_name_wide=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_set_name_wide=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_bfio_libbfio_file_set_name_wide" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_set_name_wide" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_set_name_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_set_name_wide" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_set_name_wide" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_set_name_wide" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_initialize in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_initialize in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_initialize in -lbfio" >&5 +printf %s "checking for libbfio_pool_initialize in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39195,40 +44538,40 @@ 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 libbfio_pool_initialize (); int -main () +main (void) { return libbfio_pool_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_initialize=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_initialize=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_bfio_libbfio_pool_initialize" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_initialize" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_initialize" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_initialize" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_initialize" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_free in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_free in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_free in -lbfio" >&5 +printf %s "checking for libbfio_pool_free in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39237,40 +44580,40 @@ 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 libbfio_pool_free (); int -main () +main (void) { return libbfio_pool_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_free=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_free=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_bfio_libbfio_pool_free" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_free" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_free" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_free" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_free" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_clone in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_clone in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_clone in -lbfio" >&5 +printf %s "checking for libbfio_pool_clone in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39279,41 +44622,41 @@ 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 libbfio_pool_clone (); int -main () +main (void) { return libbfio_pool_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_clone=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_clone=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_bfio_libbfio_pool_clone" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_clone" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_clone" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_clone" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_clone" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_number_of_handles in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_get_number_of_handles in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_get_number_of_handles+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_number_of_handles in -lbfio" >&5 +printf %s "checking for libbfio_pool_get_number_of_handles in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_get_number_of_handles+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39322,40 +44665,40 @@ 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 libbfio_pool_get_number_of_handles (); int -main () +main (void) { return libbfio_pool_get_number_of_handles (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_get_number_of_handles=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_get_number_of_handles=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_bfio_libbfio_pool_get_number_of_handles" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_get_number_of_handles" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_get_number_of_handles" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_number_of_handles" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_get_number_of_handles" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_get_number_of_handles" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_handle in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_get_handle in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_get_handle+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_handle in -lbfio" >&5 +printf %s "checking for libbfio_pool_get_handle in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_get_handle+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39364,40 +44707,40 @@ 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 libbfio_pool_get_handle (); int -main () +main (void) { return libbfio_pool_get_handle (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_get_handle=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_get_handle=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_bfio_libbfio_pool_get_handle" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_get_handle" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_get_handle" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_handle" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_get_handle" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_get_handle" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_set_handle in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_set_handle in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_set_handle+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_set_handle in -lbfio" >&5 +printf %s "checking for libbfio_pool_set_handle in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_set_handle+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39406,40 +44749,40 @@ 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 libbfio_pool_set_handle (); int -main () +main (void) { return libbfio_pool_set_handle (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_set_handle=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_set_handle=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_bfio_libbfio_pool_set_handle" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_set_handle" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_set_handle" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_set_handle" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_set_handle" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_set_handle" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_append_handle in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_append_handle in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_append_handle+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_append_handle in -lbfio" >&5 +printf %s "checking for libbfio_pool_append_handle in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_append_handle+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39448,40 +44791,40 @@ 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 libbfio_pool_append_handle (); int -main () +main (void) { return libbfio_pool_append_handle (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_append_handle=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_append_handle=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_bfio_libbfio_pool_append_handle" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_append_handle" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_append_handle" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_append_handle" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_append_handle" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_append_handle" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_remove_handle in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_remove_handle in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_remove_handle+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_remove_handle in -lbfio" >&5 +printf %s "checking for libbfio_pool_remove_handle in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_remove_handle+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39490,40 +44833,40 @@ 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 libbfio_pool_remove_handle (); int -main () +main (void) { return libbfio_pool_remove_handle (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_remove_handle=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_remove_handle=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_bfio_libbfio_pool_remove_handle" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_remove_handle" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_remove_handle" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_remove_handle" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_remove_handle" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_remove_handle" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_maximum_number_of_open_handles in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_get_maximum_number_of_open_handles in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_maximum_number_of_open_handles in -lbfio" >&5 +printf %s "checking for libbfio_pool_get_maximum_number_of_open_handles in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39532,40 +44875,40 @@ 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 libbfio_pool_get_maximum_number_of_open_handles (); int -main () +main (void) { return libbfio_pool_get_maximum_number_of_open_handles (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles=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_bfio_libbfio_pool_get_maximum_number_of_open_handles" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_get_maximum_number_of_open_handles" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_set_maximum_number_of_open_handles in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_set_maximum_number_of_open_handles in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_set_maximum_number_of_open_handles in -lbfio" >&5 +printf %s "checking for libbfio_pool_set_maximum_number_of_open_handles in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39574,41 +44917,41 @@ 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 libbfio_pool_set_maximum_number_of_open_handles (); int -main () +main (void) { return libbfio_pool_set_maximum_number_of_open_handles (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles=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_bfio_libbfio_pool_set_maximum_number_of_open_handles" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_set_maximum_number_of_open_handles" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_open in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_open in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_open in -lbfio" >&5 +printf %s "checking for libbfio_pool_open in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39617,40 +44960,40 @@ 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 libbfio_pool_open (); int -main () +main (void) { return libbfio_pool_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_open=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_open=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_bfio_libbfio_pool_open" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_open" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_open" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_open" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_open" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_reopen in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_reopen in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_reopen+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_reopen in -lbfio" >&5 +printf %s "checking for libbfio_pool_reopen in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_reopen+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39659,40 +45002,40 @@ 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 libbfio_pool_reopen (); int -main () +main (void) { return libbfio_pool_reopen (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_reopen=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_reopen=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_bfio_libbfio_pool_reopen" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_reopen" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_reopen" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_reopen" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_reopen" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_reopen" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_close in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_close in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_close+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_close in -lbfio" >&5 +printf %s "checking for libbfio_pool_close in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_close+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39701,40 +45044,40 @@ 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 libbfio_pool_close (); int -main () +main (void) { return libbfio_pool_close (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_close=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_close=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_bfio_libbfio_pool_close" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_close" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_close" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_close" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_close" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_close" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_close_all in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_close_all in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_close_all+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_close_all in -lbfio" >&5 +printf %s "checking for libbfio_pool_close_all in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_close_all+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39743,40 +45086,40 @@ 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 libbfio_pool_close_all (); int -main () +main (void) { return libbfio_pool_close_all (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_close_all=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_close_all=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_bfio_libbfio_pool_close_all" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_close_all" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_close_all" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_close_all" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_close_all" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_close_all" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_read_buffer in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_read_buffer in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_read_buffer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_read_buffer in -lbfio" >&5 +printf %s "checking for libbfio_pool_read_buffer in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_read_buffer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39785,40 +45128,40 @@ 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 libbfio_pool_read_buffer (); int -main () +main (void) { return libbfio_pool_read_buffer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_read_buffer=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_read_buffer=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_bfio_libbfio_pool_read_buffer" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_read_buffer" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_read_buffer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_read_buffer" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_read_buffer" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_read_buffer" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_read_buffer_at_offset in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_read_buffer_at_offset in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_read_buffer_at_offset in -lbfio" >&5 +printf %s "checking for libbfio_pool_read_buffer_at_offset in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39827,40 +45170,40 @@ 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 libbfio_pool_read_buffer_at_offset (); int -main () +main (void) { return libbfio_pool_read_buffer_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset=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_bfio_libbfio_pool_read_buffer_at_offset" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_read_buffer_at_offset" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_write_buffer in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_write_buffer in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_write_buffer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_write_buffer in -lbfio" >&5 +printf %s "checking for libbfio_pool_write_buffer in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_write_buffer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39869,40 +45212,40 @@ 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 libbfio_pool_write_buffer (); int -main () +main (void) { return libbfio_pool_write_buffer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_write_buffer=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_write_buffer=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_bfio_libbfio_pool_write_buffer" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_write_buffer" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_write_buffer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_write_buffer" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_write_buffer" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_write_buffer" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_write_buffer_at_offset in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_write_buffer_at_offset in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_write_buffer_at_offset in -lbfio" >&5 +printf %s "checking for libbfio_pool_write_buffer_at_offset in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39911,40 +45254,40 @@ 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 libbfio_pool_write_buffer_at_offset (); int -main () +main (void) { return libbfio_pool_write_buffer_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset=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_bfio_libbfio_pool_write_buffer_at_offset" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_write_buffer_at_offset" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_seek_offset in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_seek_offset in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_seek_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_seek_offset in -lbfio" >&5 +printf %s "checking for libbfio_pool_seek_offset in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_seek_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39953,40 +45296,40 @@ 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 libbfio_pool_seek_offset (); int -main () +main (void) { return libbfio_pool_seek_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_seek_offset=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_seek_offset=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_bfio_libbfio_pool_seek_offset" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_seek_offset" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_seek_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_seek_offset" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_seek_offset" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_seek_offset" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_offset in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_get_offset in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_get_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_offset in -lbfio" >&5 +printf %s "checking for libbfio_pool_get_offset in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_get_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -39995,40 +45338,40 @@ 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 libbfio_pool_get_offset (); int -main () +main (void) { return libbfio_pool_get_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_get_offset=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_get_offset=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_bfio_libbfio_pool_get_offset" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_get_offset" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_get_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_offset" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_get_offset" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_get_offset" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_size in -lbfio" >&5 -$as_echo_n "checking for libbfio_pool_get_size in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_pool_get_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_pool_get_size in -lbfio" >&5 +printf %s "checking for libbfio_pool_get_size in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_pool_get_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40037,41 +45380,41 @@ 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 libbfio_pool_get_size (); int -main () +main (void) { return libbfio_pool_get_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_pool_get_size=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_pool_get_size=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_bfio_libbfio_pool_get_size" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_pool_get_size" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_pool_get_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_pool_get_size" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_pool_get_size" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_pool_get_size" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_pool_open in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_pool_open in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_pool_open+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_pool_open in -lbfio" >&5 +printf %s "checking for libbfio_file_pool_open in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_pool_open+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40080,42 +45423,43 @@ 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 libbfio_file_pool_open (); int -main () +main (void) { return libbfio_file_pool_open (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_pool_open=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_pool_open=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_bfio_libbfio_file_pool_open" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_pool_open" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_pool_open" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_pool_open" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_pool_open" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_pool_open" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi - if test "x$ac_cv_enable_wide_character_type" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_pool_open_wide in -lbfio" >&5 -$as_echo_n "checking for libbfio_file_pool_open_wide in -lbfio... " >&6; } -if ${ac_cv_lib_bfio_libbfio_file_pool_open_wide+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "x$ac_cv_enable_wide_character_type" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libbfio_file_pool_open_wide in -lbfio" >&5 +printf %s "checking for libbfio_file_pool_open_wide in -lbfio... " >&6; } +if test ${ac_cv_lib_bfio_libbfio_file_pool_open_wide+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lbfio $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40124,32 +45468,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 libbfio_file_pool_open_wide (); int -main () +main (void) { return libbfio_file_pool_open_wide (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_bfio_libbfio_file_pool_open_wide=yes -else +else $as_nop ac_cv_lib_bfio_libbfio_file_pool_open_wide=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_bfio_libbfio_file_pool_open_wide" >&5 -$as_echo "$ac_cv_lib_bfio_libbfio_file_pool_open_wide" >&6; } -if test "x$ac_cv_lib_bfio_libbfio_file_pool_open_wide" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bfio_libbfio_file_pool_open_wide" >&5 +printf "%s\n" "$ac_cv_lib_bfio_libbfio_file_pool_open_wide" >&6; } +if test "x$ac_cv_lib_bfio_libbfio_file_pool_open_wide" = xyes +then : ac_cv_libbfio_dummy=yes -else +else $as_nop ac_cv_libbfio=no fi @@ -40160,9 +45503,10 @@ fi fi fi - if test "x$ac_cv_with_libbfio" != x && test "x$ac_cv_with_libbfio" != xauto-detect && test "x$ac_cv_libbfio" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libbfio" != x && test "x$ac_cv_with_libbfio" != xauto-detect && test "x$ac_cv_libbfio" != xyes +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 1 "unable to find supported libbfio in directory: $ac_cv_with_libbfio See \`config.log' for more details" "$LINENO" 5; } @@ -40170,24 +45514,27 @@ fi fi - if test "x$ac_cv_libbfio" = xyes; then : + if test "x$ac_cv_libbfio" = xyes +then : -$as_echo "#define HAVE_LIBBFIO 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBBFIO 1" >>confdefs.h fi - if test "x$ac_cv_libbfio" = xyes; then : + if test "x$ac_cv_libbfio" = xyes +then : HAVE_LIBBFIO=1 -else +else $as_nop HAVE_LIBBFIO=0 fi - if test "x$ac_cv_libbfio" != xyes; then : + if test "x$ac_cv_libbfio" != xyes +then : ac_cv_libbfio_CPPFLAGS="-I../libbfio"; ac_cv_libbfio_LIBADD="../libbfio/libbfio.la"; @@ -40196,7 +45543,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBBFIO 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBBFIO 1" >>confdefs.h HAVE_LOCAL_LIBBFIO=1 @@ -40211,24 +45558,28 @@ else HAVE_LOCAL_LIBBFIO_FALSE= fi - if test "x$ac_cv_libbfio_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libbfio_CPPFLAGS" != "x" +then : LIBBFIO_CPPFLAGS=$ac_cv_libbfio_CPPFLAGS fi - if test "x$ac_cv_libbfio_LIBADD" != "x"; then : + if test "x$ac_cv_libbfio_LIBADD" != "x" +then : LIBBFIO_LIBADD=$ac_cv_libbfio_LIBADD fi - if test "x$ac_cv_libbfio" = xyes; then : + if test "x$ac_cv_libbfio" = xyes +then : ax_libbfio_pc_libs_private=-lbfio fi - if test "x$ac_cv_libbfio" = xyes; then : + if test "x$ac_cv_libbfio" = xyes +then : ax_libbfio_spec_requires=libbfio ax_libbfio_spec_build_requires=libbfio-devel @@ -40240,53 +45591,59 @@ fi # Check whether --with-libfcache was given. -if test "${with_libfcache+set}" = set; then : +if test ${with_libfcache+y} +then : withval=$with_libfcache; ac_cv_with_libfcache=$withval -else +else $as_nop ac_cv_with_libfcache=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libfcache+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libfcache in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libfcache+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libfcache=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfcache" >&5 -$as_echo "$ac_cv_with_libfcache" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfcache" >&5 +printf "%s\n" "$ac_cv_with_libfcache" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfcache" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfcache" = xno +then : ac_cv_libfcache=no -else +else $as_nop ac_cv_libfcache=check - if test "x$ac_cv_with_libfcache" != x && test "x$ac_cv_with_libfcache" != xauto-detect; then : - if test -d "$ac_cv_with_libfcache"; then : + if test "x$ac_cv_with_libfcache" != x && test "x$ac_cv_with_libfcache" != xauto-detect +then : + if test -d "$ac_cv_with_libfcache" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libfcache}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfcache}/lib" -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 1 "no such directory: $ac_cv_with_libfcache See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache" >&5 -$as_echo_n "checking for libfcache... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache >= 20191109" >&5 +printf %s "checking for libfcache >= 20191109... " >&6; } if test -n "$libfcache_CFLAGS"; then pkg_cv_libfcache_CFLAGS="$libfcache_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfcache >= 20191109\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfcache >= 20191109\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfcache >= 20191109") 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_libfcache_CFLAGS=`$PKG_CONFIG --cflags "libfcache >= 20191109" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -40300,10 +45657,10 @@ if test -n "$libfcache_LIBS"; then pkg_cv_libfcache_LIBS="$libfcache_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfcache >= 20191109\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfcache >= 20191109\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfcache >= 20191109") 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_libfcache_LIBS=`$PKG_CONFIG --libs "libfcache >= 20191109" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -40317,8 +45674,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 @@ -40326,58 +45683,57 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libfcache_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfcache >= 20191109" 2>&1` + libfcache_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfcache >= 20191109" 2>&1` else - libfcache_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfcache >= 20191109" 2>&1` + libfcache_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfcache >= 20191109" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libfcache_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libfcache_PKG_ERRORS" >&5 - ac_cv_libfcache=check + ac_cv_libfcache=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libfcache=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libfcache=check else - libfcache_CFLAGS=$pkg_cv_libfcache_CFLAGS - libfcache_LIBS=$pkg_cv_libfcache_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libfcache=yes + libfcache_CFLAGS=$pkg_cv_libfcache_CFLAGS + libfcache_LIBS=$pkg_cv_libfcache_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libfcache=yes fi fi - if test "x$ac_cv_libfcache" = xyes; then : + if test "x$ac_cv_libfcache" = xyes +then : ac_cv_libfcache_CPPFLAGS="$pkg_cv_libfcache_CFLAGS" ac_cv_libfcache_LIBADD="$pkg_cv_libfcache_LIBS" fi fi - if test "x$ac_cv_libfcache" = xcheck; then : - for ac_header in libfcache.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libfcache.h" "ac_cv_header_libfcache_h" "$ac_includes_default" -if test "x$ac_cv_header_libfcache_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBFCACHE_H 1 -_ACEOF + if test "x$ac_cv_libfcache" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libfcache.h" "ac_cv_header_libfcache_h" "$ac_includes_default" +if test "x$ac_cv_header_libfcache_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBFCACHE_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libfcache_h" = xno; then : + if test "x$ac_cv_header_libfcache_h" = xno +then : ac_cv_libfcache=no -else +else $as_nop ac_cv_libfcache=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_get_version in -lfcache" >&5 -$as_echo_n "checking for libfcache_get_version in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_get_version in -lfcache" >&5 +printf %s "checking for libfcache_get_version in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40386,41 +45742,41 @@ 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 libfcache_get_version (); int -main () +main (void) { return libfcache_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_get_version=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_get_version=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_fcache_libfcache_get_version" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_get_version" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_get_version" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_get_version" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_get_version" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_initialize in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_initialize in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_initialize in -lfcache" >&5 +printf %s "checking for libfcache_cache_initialize in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40429,40 +45785,40 @@ 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 libfcache_cache_initialize (); int -main () +main (void) { return libfcache_cache_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_initialize=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_initialize=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_fcache_libfcache_cache_initialize" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_initialize" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_initialize" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_initialize" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_free in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_free in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_free in -lfcache" >&5 +printf %s "checking for libfcache_cache_free in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40471,40 +45827,40 @@ 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 libfcache_cache_free (); int -main () +main (void) { return libfcache_cache_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_free=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_free=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_fcache_libfcache_cache_free" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_free" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_free" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_free" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_free" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_clone in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_clone in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_clone in -lfcache" >&5 +printf %s "checking for libfcache_cache_clone in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40513,40 +45869,40 @@ 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 libfcache_cache_clone (); int -main () +main (void) { return libfcache_cache_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_clone=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_clone=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_fcache_libfcache_cache_clone" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_clone" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_clone" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_clone" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_clone" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_clear in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_clear in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_clear+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_clear in -lfcache" >&5 +printf %s "checking for libfcache_cache_clear in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_clear+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40555,40 +45911,40 @@ 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 libfcache_cache_clear (); int -main () +main (void) { return libfcache_cache_clear (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_clear=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_clear=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_fcache_libfcache_cache_clear" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_clear" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_clear" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_clear" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_clear" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_clear" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_number_of_entries in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_get_number_of_entries in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_get_number_of_entries+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_number_of_entries in -lfcache" >&5 +printf %s "checking for libfcache_cache_get_number_of_entries in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_get_number_of_entries+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40597,40 +45953,40 @@ 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 libfcache_cache_get_number_of_entries (); int -main () +main (void) { return libfcache_cache_get_number_of_entries (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_get_number_of_entries=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_get_number_of_entries=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_fcache_libfcache_cache_get_number_of_entries" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_get_number_of_entries" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_get_number_of_entries" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_get_number_of_entries" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_get_number_of_entries" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_get_number_of_entries" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_number_of_cache_values in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_get_number_of_cache_values in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_number_of_cache_values in -lfcache" >&5 +printf %s "checking for libfcache_cache_get_number_of_cache_values in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40639,40 +45995,40 @@ 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 libfcache_cache_get_number_of_cache_values (); int -main () +main (void) { return libfcache_cache_get_number_of_cache_values (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values=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_fcache_libfcache_cache_get_number_of_cache_values" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_get_number_of_cache_values" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_clear_value_by_index in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_clear_value_by_index in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_clear_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_clear_value_by_index in -lfcache" >&5 +printf %s "checking for libfcache_cache_clear_value_by_index in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_clear_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40681,40 +46037,40 @@ 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 libfcache_cache_clear_value_by_index (); int -main () +main (void) { return libfcache_cache_clear_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_clear_value_by_index=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_clear_value_by_index=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_fcache_libfcache_cache_clear_value_by_index" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_clear_value_by_index" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_clear_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_clear_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_clear_value_by_index" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_clear_value_by_index" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_value_by_identifier in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_get_value_by_identifier in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_value_by_identifier in -lfcache" >&5 +printf %s "checking for libfcache_cache_get_value_by_identifier in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40723,40 +46079,40 @@ 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 libfcache_cache_get_value_by_identifier (); int -main () +main (void) { return libfcache_cache_get_value_by_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier=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_fcache_libfcache_cache_get_value_by_identifier" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_get_value_by_identifier" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_value_by_index in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_get_value_by_index in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_get_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_get_value_by_index in -lfcache" >&5 +printf %s "checking for libfcache_cache_get_value_by_index in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_get_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40765,40 +46121,40 @@ 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 libfcache_cache_get_value_by_index (); int -main () +main (void) { return libfcache_cache_get_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_get_value_by_index=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_get_value_by_index=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_fcache_libfcache_cache_get_value_by_index" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_get_value_by_index" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_get_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_get_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_get_value_by_index" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_get_value_by_index" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_set_value_by_identifier in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_set_value_by_identifier in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_set_value_by_identifier in -lfcache" >&5 +printf %s "checking for libfcache_cache_set_value_by_identifier in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40807,40 +46163,40 @@ 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 libfcache_cache_set_value_by_identifier (); int -main () +main (void) { return libfcache_cache_set_value_by_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier=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_fcache_libfcache_cache_set_value_by_identifier" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_set_value_by_identifier" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_set_value_by_index in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_set_value_by_index in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_set_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_set_value_by_index in -lfcache" >&5 +printf %s "checking for libfcache_cache_set_value_by_index in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_set_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40849,41 +46205,41 @@ 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 libfcache_cache_set_value_by_index (); int -main () +main (void) { return libfcache_cache_set_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_set_value_by_index=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_set_value_by_index=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_fcache_libfcache_cache_set_value_by_index" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_set_value_by_index" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_set_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_set_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_set_value_by_index" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_set_value_by_index" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_free in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_value_free in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_value_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_free in -lfcache" >&5 +printf %s "checking for libfcache_cache_value_free in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_value_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40892,40 +46248,40 @@ 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 libfcache_cache_value_free (); int -main () +main (void) { return libfcache_cache_value_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_value_free=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_value_free=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_fcache_libfcache_cache_value_free" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_value_free" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_value_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_free" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_value_free" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_value_free" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_clear in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_value_clear in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_value_clear+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_clear in -lfcache" >&5 +printf %s "checking for libfcache_cache_value_clear in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_value_clear+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40934,40 +46290,40 @@ 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 libfcache_cache_value_clear (); int -main () +main (void) { return libfcache_cache_value_clear (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_value_clear=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_value_clear=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_fcache_libfcache_cache_value_clear" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_value_clear" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_value_clear" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_clear" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_value_clear" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_value_clear" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_get_identifier in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_value_get_identifier in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_value_get_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_get_identifier in -lfcache" >&5 +printf %s "checking for libfcache_cache_value_get_identifier in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_value_get_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -40976,40 +46332,40 @@ 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 libfcache_cache_value_get_identifier (); int -main () +main (void) { return libfcache_cache_value_get_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_value_get_identifier=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_value_get_identifier=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_fcache_libfcache_cache_value_get_identifier" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_value_get_identifier" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_value_get_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_get_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_value_get_identifier" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_value_get_identifier" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_set_identifier in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_value_set_identifier in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_value_set_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_set_identifier in -lfcache" >&5 +printf %s "checking for libfcache_cache_value_set_identifier in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_value_set_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41018,40 +46374,40 @@ 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 libfcache_cache_value_set_identifier (); int -main () +main (void) { return libfcache_cache_value_set_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_value_set_identifier=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_value_set_identifier=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_fcache_libfcache_cache_value_set_identifier" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_value_set_identifier" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_value_set_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_set_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_value_set_identifier" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_value_set_identifier" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_get_value in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_value_get_value in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_value_get_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_get_value in -lfcache" >&5 +printf %s "checking for libfcache_cache_value_get_value in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_value_get_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41060,40 +46416,40 @@ 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 libfcache_cache_value_get_value (); int -main () +main (void) { return libfcache_cache_value_get_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_value_get_value=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_value_get_value=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_fcache_libfcache_cache_value_get_value" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_value_get_value" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_value_get_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_get_value" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_value_get_value" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_value_get_value" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_set_value in -lfcache" >&5 -$as_echo_n "checking for libfcache_cache_value_set_value in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_cache_value_set_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_cache_value_set_value in -lfcache" >&5 +printf %s "checking for libfcache_cache_value_set_value in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_cache_value_set_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41102,41 +46458,41 @@ 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 libfcache_cache_value_set_value (); int -main () +main (void) { return libfcache_cache_value_set_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_cache_value_set_value=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_cache_value_set_value=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_fcache_libfcache_cache_value_set_value" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_cache_value_set_value" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_cache_value_set_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_cache_value_set_value" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_cache_value_set_value" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_cache_value_set_value" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfcache_date_time_get_timestamp in -lfcache" >&5 -$as_echo_n "checking for libfcache_date_time_get_timestamp in -lfcache... " >&6; } -if ${ac_cv_lib_fcache_libfcache_date_time_get_timestamp+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfcache_date_time_get_timestamp in -lfcache" >&5 +printf %s "checking for libfcache_date_time_get_timestamp in -lfcache... " >&6; } +if test ${ac_cv_lib_fcache_libfcache_date_time_get_timestamp+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfcache $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41145,32 +46501,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 libfcache_date_time_get_timestamp (); int -main () +main (void) { return libfcache_date_time_get_timestamp (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fcache_libfcache_date_time_get_timestamp=yes -else +else $as_nop ac_cv_lib_fcache_libfcache_date_time_get_timestamp=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_fcache_libfcache_date_time_get_timestamp" >&5 -$as_echo "$ac_cv_lib_fcache_libfcache_date_time_get_timestamp" >&6; } -if test "x$ac_cv_lib_fcache_libfcache_date_time_get_timestamp" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fcache_libfcache_date_time_get_timestamp" >&5 +printf "%s\n" "$ac_cv_lib_fcache_libfcache_date_time_get_timestamp" >&6; } +if test "x$ac_cv_lib_fcache_libfcache_date_time_get_timestamp" = xyes +then : ac_cv_libfcache_dummy=yes -else +else $as_nop ac_cv_libfcache=no fi @@ -41179,9 +46534,10 @@ fi fi fi - if test "x$ac_cv_with_libfcache" != x && test "x$ac_cv_with_libfcache" != xauto-detect && test "x$ac_cv_libfcache" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libfcache" != x && test "x$ac_cv_with_libfcache" != xauto-detect && test "x$ac_cv_libfcache" != xyes +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 1 "unable to find supported libfcache in directory: $ac_cv_with_libfcache See \`config.log' for more details" "$LINENO" 5; } @@ -41189,36 +46545,40 @@ fi fi - if test "x$ac_cv_libfcache" = xyes; then : + if test "x$ac_cv_libfcache" = xyes +then : -$as_echo "#define HAVE_LIBFCACHE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBFCACHE 1" >>confdefs.h fi - if test "x$ac_cv_libfcache" = xyes; then : + if test "x$ac_cv_libfcache" = xyes +then : HAVE_LIBFCACHE=1 -else +else $as_nop HAVE_LIBFCACHE=0 fi - if test "x$ac_cv_libfcache" != xyes; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 -$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } -if ${ac_cv_struct_tm+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "x$ac_cv_libfcache" != xyes +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 +printf %s "checking whether struct tm is in sys/time.h or time.h... " >&6; } +if test ${ac_cv_struct_tm+y} +then : + printf %s "(cached) " >&6 +else $as_nop cat confdefs.h - <<_ACEOF >conftest.$ac_ext /* end confdefs.h. */ #include #include int -main () +main (void) { struct tm tm; int *p = &tm.tm_sec; @@ -41227,74 +46587,49 @@ struct tm tm; return 0; } _ACEOF -if ac_fn_c_try_compile "$LINENO"; then : +if ac_fn_c_try_compile "$LINENO" +then : ac_cv_struct_tm=time.h -else +else $as_nop ac_cv_struct_tm=sys/time.h 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: $ac_cv_struct_tm" >&5 -$as_echo "$ac_cv_struct_tm" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 +printf "%s\n" "$ac_cv_struct_tm" >&6; } if test $ac_cv_struct_tm = sys/time.h; then -$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h +printf "%s\n" "#define TM_IN_SYS_TIME 1" >>confdefs.h fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 -$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } -if ${ac_cv_header_time+:} false; then : - $as_echo_n "(cached) " >&6 -else - cat confdefs.h - <<_ACEOF >conftest.$ac_ext -/* end confdefs.h. */ -#include -#include -#include + ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_time_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h -int -main () -{ -if ((struct tm *) 0) -return 0; - ; - return 0; -} -_ACEOF -if ac_fn_c_try_compile "$LINENO"; then : - ac_cv_header_time=yes -else - ac_cv_header_time=no -fi -rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 -$as_echo "$ac_cv_header_time" >&6; } -if test $ac_cv_header_time = yes; then -$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h - -fi + ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime" +if test "x$ac_cv_func_clock_gettime" = xyes +then : + printf "%s\n" "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h - for ac_func in clock_gettime time -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "time" "ac_cv_func_time" +if test "x$ac_cv_func_time" = xyes +then : + printf "%s\n" "#define HAVE_TIME 1" >>confdefs.h fi -done - if test "x$ac_cv_func_time" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_time" != xyes +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 1 "Missing function: time See \`config.log' for more details" "$LINENO" 5; } @@ -41307,7 +46642,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBFCACHE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBFCACHE 1" >>confdefs.h HAVE_LOCAL_LIBFCACHE=1 @@ -41322,24 +46657,28 @@ else HAVE_LOCAL_LIBFCACHE_FALSE= fi - if test "x$ac_cv_libfcache_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libfcache_CPPFLAGS" != "x" +then : LIBFCACHE_CPPFLAGS=$ac_cv_libfcache_CPPFLAGS fi - if test "x$ac_cv_libfcache_LIBADD" != "x"; then : + if test "x$ac_cv_libfcache_LIBADD" != "x" +then : LIBFCACHE_LIBADD=$ac_cv_libfcache_LIBADD fi - if test "x$ac_cv_libfcache" = xyes; then : + if test "x$ac_cv_libfcache" = xyes +then : ax_libfcache_pc_libs_private=-lfcache fi - if test "x$ac_cv_libfcache" = xyes; then : + if test "x$ac_cv_libfcache" = xyes +then : ax_libfcache_spec_requires=libfcache ax_libfcache_spec_build_requires=libfcache-devel @@ -41351,53 +46690,59 @@ fi # Check whether --with-libfdata was given. -if test "${with_libfdata+set}" = set; then : +if test ${with_libfdata+y} +then : withval=$with_libfdata; ac_cv_with_libfdata=$withval -else +else $as_nop ac_cv_with_libfdata=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libfdata+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libfdata in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libfdata+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libfdata=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfdata" >&5 -$as_echo "$ac_cv_with_libfdata" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfdata" >&5 +printf "%s\n" "$ac_cv_with_libfdata" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfdata" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfdata" = xno +then : ac_cv_libfdata=no -else +else $as_nop ac_cv_libfdata=check - if test "x$ac_cv_with_libfdata" != x && test "x$ac_cv_with_libfdata" != xauto-detect; then : - if test -d "$ac_cv_with_libfdata"; then : + if test "x$ac_cv_with_libfdata" != x && test "x$ac_cv_with_libfdata" != xauto-detect +then : + if test -d "$ac_cv_with_libfdata" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libfdata}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfdata}/lib" -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 1 "no such directory: $ac_cv_with_libfdata See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata" >&5 -$as_echo_n "checking for libfdata... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata >= 20201129" >&5 +printf %s "checking for libfdata >= 20201129... " >&6; } if test -n "$libfdata_CFLAGS"; then pkg_cv_libfdata_CFLAGS="$libfdata_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdata >= 20201129\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdata >= 20201129\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfdata >= 20201129") 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_libfdata_CFLAGS=`$PKG_CONFIG --cflags "libfdata >= 20201129" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -41411,10 +46756,10 @@ if test -n "$libfdata_LIBS"; then pkg_cv_libfdata_LIBS="$libfdata_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdata >= 20201129\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdata >= 20201129\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfdata >= 20201129") 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_libfdata_LIBS=`$PKG_CONFIG --libs "libfdata >= 20201129" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -41428,8 +46773,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 @@ -41437,58 +46782,57 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libfdata_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfdata >= 20201129" 2>&1` + libfdata_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfdata >= 20201129" 2>&1` else - libfdata_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfdata >= 20201129" 2>&1` + libfdata_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfdata >= 20201129" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libfdata_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libfdata_PKG_ERRORS" >&5 - ac_cv_libfdata=check + ac_cv_libfdata=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libfdata=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libfdata=check else - libfdata_CFLAGS=$pkg_cv_libfdata_CFLAGS - libfdata_LIBS=$pkg_cv_libfdata_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libfdata=yes + libfdata_CFLAGS=$pkg_cv_libfdata_CFLAGS + libfdata_LIBS=$pkg_cv_libfdata_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libfdata=yes fi fi - if test "x$ac_cv_libfdata" = xyes; then : + if test "x$ac_cv_libfdata" = xyes +then : ac_cv_libfdata_CPPFLAGS="$pkg_cv_libfdata_CFLAGS" ac_cv_libfdata_LIBADD="$pkg_cv_libfdata_LIBS" fi fi - if test "x$ac_cv_libfdata" = xcheck; then : - for ac_header in libfdata.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libfdata.h" "ac_cv_header_libfdata_h" "$ac_includes_default" -if test "x$ac_cv_header_libfdata_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBFDATA_H 1 -_ACEOF + if test "x$ac_cv_libfdata" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libfdata.h" "ac_cv_header_libfdata_h" "$ac_includes_default" +if test "x$ac_cv_header_libfdata_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBFDATA_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libfdata_h" = xno; then : + if test "x$ac_cv_header_libfdata_h" = xno +then : ac_cv_libfdata=no -else +else $as_nop ac_cv_libfdata=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_get_version in -lfdata" >&5 -$as_echo_n "checking for libfdata_get_version in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_get_version in -lfdata" >&5 +printf %s "checking for libfdata_get_version in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41497,41 +46841,41 @@ 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 libfdata_get_version (); int -main () +main (void) { return libfdata_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_get_version=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_get_version=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_fdata_libfdata_get_version" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_get_version" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_get_version" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_get_version" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_get_version" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_initialize in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_initialize in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_initialize in -lfdata" >&5 +printf %s "checking for libfdata_area_initialize in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41540,40 +46884,40 @@ 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 libfdata_area_initialize (); int -main () +main (void) { return libfdata_area_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_initialize=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_initialize=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_fdata_libfdata_area_initialize" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_initialize" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_initialize" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_initialize" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_free in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_free in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_free in -lfdata" >&5 +printf %s "checking for libfdata_area_free in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41582,40 +46926,40 @@ 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 libfdata_area_free (); int -main () +main (void) { return libfdata_area_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_free=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_free=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_fdata_libfdata_area_free" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_free" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_free" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_free" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_free" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_clone in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_clone in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_clone in -lfdata" >&5 +printf %s "checking for libfdata_area_clone in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41624,40 +46968,40 @@ 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 libfdata_area_clone (); int -main () +main (void) { return libfdata_area_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_clone=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_clone=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_fdata_libfdata_area_clone" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_clone" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_clone" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_clone" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_clone" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_empty in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_empty in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_empty+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_empty in -lfdata" >&5 +printf %s "checking for libfdata_area_empty in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_empty+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41666,40 +47010,40 @@ 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 libfdata_area_empty (); int -main () +main (void) { return libfdata_area_empty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_empty=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_empty=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_fdata_libfdata_area_empty" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_empty" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_empty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_empty" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_empty" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_empty" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_resize in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_resize in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_resize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_resize in -lfdata" >&5 +printf %s "checking for libfdata_area_resize in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_resize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41708,40 +47052,40 @@ 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 libfdata_area_resize (); int -main () +main (void) { return libfdata_area_resize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_resize=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_resize=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_fdata_libfdata_area_resize" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_resize" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_resize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_resize" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_resize" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_resize" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_number_of_segments in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_get_number_of_segments in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_get_number_of_segments+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_number_of_segments in -lfdata" >&5 +printf %s "checking for libfdata_area_get_number_of_segments in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_get_number_of_segments+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41750,40 +47094,40 @@ 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 libfdata_area_get_number_of_segments (); int -main () +main (void) { return libfdata_area_get_number_of_segments (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_get_number_of_segments=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_get_number_of_segments=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_fdata_libfdata_area_get_number_of_segments" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_get_number_of_segments" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_get_number_of_segments" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_number_of_segments" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_get_number_of_segments" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_get_number_of_segments" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_segment_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_get_segment_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_get_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_segment_by_index in -lfdata" >&5 +printf %s "checking for libfdata_area_get_segment_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_get_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41792,40 +47136,40 @@ 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 libfdata_area_get_segment_by_index (); int -main () +main (void) { return libfdata_area_get_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_get_segment_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_get_segment_by_index=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_fdata_libfdata_area_get_segment_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_get_segment_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_get_segment_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_get_segment_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_get_segment_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_set_segment_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_set_segment_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_set_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_set_segment_by_index in -lfdata" >&5 +printf %s "checking for libfdata_area_set_segment_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_set_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41834,40 +47178,40 @@ 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 libfdata_area_set_segment_by_index (); int -main () +main (void) { return libfdata_area_set_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_set_segment_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_set_segment_by_index=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_fdata_libfdata_area_set_segment_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_set_segment_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_set_segment_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_set_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_set_segment_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_set_segment_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_prepend_segment in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_prepend_segment in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_prepend_segment+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_prepend_segment in -lfdata" >&5 +printf %s "checking for libfdata_area_prepend_segment in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_prepend_segment+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41876,40 +47220,40 @@ 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 libfdata_area_prepend_segment (); int -main () +main (void) { return libfdata_area_prepend_segment (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_prepend_segment=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_prepend_segment=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_fdata_libfdata_area_prepend_segment" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_prepend_segment" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_prepend_segment" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_prepend_segment" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_prepend_segment" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_prepend_segment" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_append_segment in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_append_segment in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_append_segment+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_append_segment in -lfdata" >&5 +printf %s "checking for libfdata_area_append_segment in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_append_segment+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41918,40 +47262,40 @@ 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 libfdata_area_append_segment (); int -main () +main (void) { return libfdata_area_append_segment (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_append_segment=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_append_segment=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_fdata_libfdata_area_append_segment" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_append_segment" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_append_segment" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_append_segment" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_append_segment" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_append_segment" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_element_data_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_get_element_data_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_get_element_data_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_element_data_size in -lfdata" >&5 +printf %s "checking for libfdata_area_get_element_data_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_get_element_data_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -41960,40 +47304,40 @@ 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 libfdata_area_get_element_data_size (); int -main () +main (void) { return libfdata_area_get_element_data_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_get_element_data_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_get_element_data_size=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_fdata_libfdata_area_get_element_data_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_get_element_data_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_get_element_data_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_element_data_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_get_element_data_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_get_element_data_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_element_value_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_get_element_value_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_element_value_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_area_get_element_value_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42002,40 +47346,40 @@ 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 libfdata_area_get_element_value_at_offset (); int -main () +main (void) { return libfdata_area_get_element_value_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset=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_fdata_libfdata_area_get_element_value_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_get_element_value_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_set_element_value_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_set_element_value_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_set_element_value_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_area_set_element_value_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42044,40 +47388,40 @@ 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 libfdata_area_set_element_value_at_offset (); int -main () +main (void) { return libfdata_area_set_element_value_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset=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_fdata_libfdata_area_set_element_value_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_set_element_value_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_area_get_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_area_get_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_area_get_size in -lfdata" >&5 +printf %s "checking for libfdata_area_get_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_area_get_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42086,42 +47430,41 @@ 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 libfdata_area_get_size (); int -main () +main (void) { return libfdata_area_get_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_area_get_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_area_get_size=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_fdata_libfdata_area_get_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_area_get_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_area_get_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_area_get_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_area_get_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_area_get_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_initialize in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_initialize in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_initialize in -lfdata" >&5 +printf %s "checking for libfdata_list_initialize in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42130,40 +47473,40 @@ 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 libfdata_list_initialize (); int -main () +main (void) { return libfdata_list_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_initialize=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_initialize=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_fdata_libfdata_list_initialize" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_initialize" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_initialize" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_initialize" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_free in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_free in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_free in -lfdata" >&5 +printf %s "checking for libfdata_list_free in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42172,40 +47515,40 @@ 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 libfdata_list_free (); int -main () +main (void) { return libfdata_list_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_free=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_free=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_fdata_libfdata_list_free" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_free" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_free" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_free" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_free" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_clone in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_clone in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_clone in -lfdata" >&5 +printf %s "checking for libfdata_list_clone in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42214,40 +47557,40 @@ 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 libfdata_list_clone (); int -main () +main (void) { return libfdata_list_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_clone=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_clone=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_fdata_libfdata_list_clone" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_clone" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_clone" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_clone" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_clone" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_empty in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_empty in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_empty+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_empty in -lfdata" >&5 +printf %s "checking for libfdata_list_empty in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_empty+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42256,40 +47599,40 @@ 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 libfdata_list_empty (); int -main () +main (void) { return libfdata_list_empty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_empty=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_empty=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_fdata_libfdata_list_empty" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_empty" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_empty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_empty" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_empty" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_empty" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_resize in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_resize in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_resize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_resize in -lfdata" >&5 +printf %s "checking for libfdata_list_resize in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_resize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42298,41 +47641,41 @@ 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 libfdata_list_resize (); int -main () +main (void) { return libfdata_list_resize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_resize=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_resize=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_fdata_libfdata_list_resize" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_resize" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_resize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_resize" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_resize" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_resize" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_reverse in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_reverse in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_reverse+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_reverse in -lfdata" >&5 +printf %s "checking for libfdata_list_reverse in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_reverse+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42341,41 +47684,41 @@ 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 libfdata_list_reverse (); int -main () +main (void) { return libfdata_list_reverse (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_reverse=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_reverse=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_fdata_libfdata_list_reverse" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_reverse" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_reverse" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_reverse" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_reverse" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_reverse" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_number_of_elements in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_number_of_elements in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_number_of_elements+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_number_of_elements in -lfdata" >&5 +printf %s "checking for libfdata_list_get_number_of_elements in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_number_of_elements+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42384,40 +47727,40 @@ 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 libfdata_list_get_number_of_elements (); int -main () +main (void) { return libfdata_list_get_number_of_elements (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_number_of_elements=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_number_of_elements=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_fdata_libfdata_list_get_number_of_elements" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_number_of_elements" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_number_of_elements" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_number_of_elements" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_number_of_elements" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_number_of_elements" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_list_element_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_list_element_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_list_element_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_list_element_by_index in -lfdata" >&5 +printf %s "checking for libfdata_list_get_list_element_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_list_element_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42426,40 +47769,40 @@ 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 libfdata_list_get_list_element_by_index (); int -main () +main (void) { return libfdata_list_get_list_element_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_list_element_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_list_element_by_index=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_fdata_libfdata_list_get_list_element_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_list_element_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_list_element_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_list_element_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_list_element_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_list_element_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_element_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_element_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_by_index in -lfdata" >&5 +printf %s "checking for libfdata_list_get_element_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_element_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42468,40 +47811,40 @@ 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 libfdata_list_get_element_by_index (); int -main () +main (void) { return libfdata_list_get_element_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_element_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_element_by_index=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_fdata_libfdata_list_get_element_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_element_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_element_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_element_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_set_element_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_set_element_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_by_index in -lfdata" >&5 +printf %s "checking for libfdata_list_set_element_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_set_element_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42510,40 +47853,40 @@ 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 libfdata_list_set_element_by_index (); int -main () +main (void) { return libfdata_list_set_element_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_set_element_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_set_element_by_index=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_fdata_libfdata_list_set_element_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_set_element_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_set_element_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_element_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_set_element_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_set_element_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_prepend_element in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_prepend_element in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_prepend_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_prepend_element in -lfdata" >&5 +printf %s "checking for libfdata_list_prepend_element in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_prepend_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42552,40 +47895,40 @@ 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 libfdata_list_prepend_element (); int -main () +main (void) { return libfdata_list_prepend_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_prepend_element=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_prepend_element=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_fdata_libfdata_list_prepend_element" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_prepend_element" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_prepend_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_prepend_element" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_prepend_element" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_prepend_element" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_element in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_append_element in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_append_element+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_element in -lfdata" >&5 +printf %s "checking for libfdata_list_append_element in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_append_element+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42594,40 +47937,40 @@ 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 libfdata_list_append_element (); int -main () +main (void) { return libfdata_list_append_element (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_append_element=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_append_element=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_fdata_libfdata_list_append_element" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_append_element" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_append_element" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_append_element" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_append_element" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_append_element" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_list in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_append_list in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_append_list+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_list in -lfdata" >&5 +printf %s "checking for libfdata_list_append_list in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_append_list+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42636,40 +47979,40 @@ 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 libfdata_list_append_list (); int -main () +main (void) { return libfdata_list_append_list (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_append_list=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_append_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 LIBS=$ac_check_lib_save_LIBS fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_append_list" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_append_list" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_append_list" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_append_list" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_append_list" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_append_list" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_is_element_set in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_is_element_set in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_is_element_set+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_is_element_set in -lfdata" >&5 +printf %s "checking for libfdata_list_is_element_set in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_is_element_set+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42678,41 +48021,41 @@ 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 libfdata_list_is_element_set (); int -main () +main (void) { return libfdata_list_is_element_set (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_is_element_set=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_is_element_set=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_fdata_libfdata_list_is_element_set" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_is_element_set" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_is_element_set" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_is_element_set" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_is_element_set" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_is_element_set" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_mapped_range in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_element_mapped_range in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_element_mapped_range+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_mapped_range in -lfdata" >&5 +printf %s "checking for libfdata_list_get_element_mapped_range in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_element_mapped_range+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42721,40 +48064,40 @@ 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 libfdata_list_get_element_mapped_range (); int -main () +main (void) { return libfdata_list_get_element_mapped_range (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_element_mapped_range=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_element_mapped_range=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_fdata_libfdata_list_get_element_mapped_range" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_mapped_range" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_element_mapped_range" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_mapped_range" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_element_mapped_range" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_element_mapped_range" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_mapped_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_mapped_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_mapped_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_mapped_offset in -lfdata" >&5 +printf %s "checking for libfdata_list_get_mapped_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_mapped_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42763,40 +48106,40 @@ 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 libfdata_list_get_mapped_offset (); int -main () +main (void) { return libfdata_list_get_mapped_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_mapped_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_mapped_offset=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_fdata_libfdata_list_get_mapped_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_mapped_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_mapped_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_mapped_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_mapped_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_mapped_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_mapped_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_set_mapped_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_set_mapped_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_mapped_offset in -lfdata" >&5 +printf %s "checking for libfdata_list_set_mapped_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_set_mapped_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42805,41 +48148,41 @@ 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 libfdata_list_set_mapped_offset (); int -main () +main (void) { return libfdata_list_set_mapped_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_set_mapped_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_set_mapped_offset=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_fdata_libfdata_list_set_mapped_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_set_mapped_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_set_mapped_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_mapped_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_set_mapped_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_set_mapped_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_mapped_size_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_mapped_size_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_mapped_size_by_index in -lfdata" >&5 +printf %s "checking for libfdata_list_get_mapped_size_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42848,40 +48191,40 @@ 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 libfdata_list_get_mapped_size_by_index (); int -main () +main (void) { return libfdata_list_get_mapped_size_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index=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_fdata_libfdata_list_get_mapped_size_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_mapped_size_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_mapped_size_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_set_mapped_size_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_mapped_size_by_index in -lfdata" >&5 +printf %s "checking for libfdata_list_set_mapped_size_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42890,40 +48233,40 @@ 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 libfdata_list_set_mapped_size_by_index (); int -main () +main (void) { return libfdata_list_set_mapped_size_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index=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_fdata_libfdata_list_set_mapped_size_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_set_mapped_size_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_by_index_with_mapped_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_element_by_index_with_mapped_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_by_index_with_mapped_size in -lfdata" >&5 +printf %s "checking for libfdata_list_get_element_by_index_with_mapped_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42932,40 +48275,40 @@ 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 libfdata_list_get_element_by_index_with_mapped_size (); int -main () +main (void) { return libfdata_list_get_element_by_index_with_mapped_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size=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_fdata_libfdata_list_get_element_by_index_with_mapped_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_element_by_index_with_mapped_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_by_index_with_mapped_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_set_element_by_index_with_mapped_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_by_index_with_mapped_size in -lfdata" >&5 +printf %s "checking for libfdata_list_set_element_by_index_with_mapped_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -42974,40 +48317,40 @@ 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 libfdata_list_set_element_by_index_with_mapped_size (); int -main () +main (void) { return libfdata_list_set_element_by_index_with_mapped_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size=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_fdata_libfdata_list_set_element_by_index_with_mapped_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_set_element_by_index_with_mapped_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_element_with_mapped_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_append_element_with_mapped_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_append_element_with_mapped_size in -lfdata" >&5 +printf %s "checking for libfdata_list_append_element_with_mapped_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43016,41 +48359,41 @@ 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 libfdata_list_append_element_with_mapped_size (); int -main () +main (void) { return libfdata_list_append_element_with_mapped_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size=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_fdata_libfdata_list_append_element_with_mapped_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_append_element_with_mapped_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_index_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_element_index_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_index_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_list_get_element_index_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43059,40 +48402,40 @@ 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 libfdata_list_get_element_index_at_offset (); int -main () +main (void) { return libfdata_list_get_element_index_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset=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_fdata_libfdata_list_get_element_index_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_element_index_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_list_element_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_list_element_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_list_element_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_list_get_list_element_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43101,40 +48444,40 @@ 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 libfdata_list_get_list_element_at_offset (); int -main () +main (void) { return libfdata_list_get_list_element_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset=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_fdata_libfdata_list_get_list_element_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_list_element_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_element_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_element_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_list_get_element_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_element_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43143,41 +48486,41 @@ 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 libfdata_list_get_element_at_offset (); int -main () +main (void) { return libfdata_list_get_element_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_element_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_element_at_offset=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_fdata_libfdata_list_get_element_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_element_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_element_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_element_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_cache_element_value in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_cache_element_value in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_cache_element_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_cache_element_value in -lfdata" >&5 +printf %s "checking for libfdata_list_cache_element_value in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_cache_element_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43186,40 +48529,40 @@ 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 libfdata_list_cache_element_value (); int -main () +main (void) { return libfdata_list_cache_element_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_cache_element_value=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_cache_element_value=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_fdata_libfdata_list_cache_element_value" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_cache_element_value" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_cache_element_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_cache_element_value" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_cache_element_value" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_cache_element_value" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_value_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_element_value_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_element_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_value_by_index in -lfdata" >&5 +printf %s "checking for libfdata_list_get_element_value_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_element_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43228,40 +48571,40 @@ 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 libfdata_list_get_element_value_by_index (); int -main () +main (void) { return libfdata_list_get_element_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_element_value_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_element_value_by_index=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_fdata_libfdata_list_get_element_value_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_value_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_element_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_element_value_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_element_value_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_value_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_element_value_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_element_value_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_list_get_element_value_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43270,40 +48613,40 @@ 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 libfdata_list_get_element_value_at_offset (); int -main () +main (void) { return libfdata_list_get_element_value_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset=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_fdata_libfdata_list_get_element_value_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_element_value_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_value_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_set_element_value_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_set_element_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_value_by_index in -lfdata" >&5 +printf %s "checking for libfdata_list_set_element_value_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_set_element_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43312,41 +48655,41 @@ 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 libfdata_list_set_element_value_by_index (); int -main () +main (void) { return libfdata_list_set_element_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_set_element_value_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_set_element_value_by_index=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_fdata_libfdata_list_set_element_value_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_set_element_value_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_set_element_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_element_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_set_element_value_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_set_element_value_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_value_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_set_element_value_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_set_element_value_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_list_set_element_value_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43355,40 +48698,40 @@ 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 libfdata_list_set_element_value_at_offset (); int -main () +main (void) { return libfdata_list_set_element_value_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset=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_fdata_libfdata_list_set_element_value_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_set_element_value_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_get_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_get_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_get_size in -lfdata" >&5 +printf %s "checking for libfdata_list_get_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_get_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43397,41 +48740,41 @@ 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 libfdata_list_get_size (); int -main () +main (void) { return libfdata_list_get_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_get_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_get_size=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_fdata_libfdata_list_get_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_get_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_get_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_get_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_get_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_get_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_mapped_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_element_get_mapped_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_element_get_mapped_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_mapped_size in -lfdata" >&5 +printf %s "checking for libfdata_list_element_get_mapped_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_element_get_mapped_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43440,40 +48783,40 @@ 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 libfdata_list_element_get_mapped_size (); int -main () +main (void) { return libfdata_list_element_get_mapped_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_element_get_mapped_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_element_get_mapped_size=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_fdata_libfdata_list_element_get_mapped_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_mapped_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_element_set_mapped_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_element_set_mapped_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_mapped_size in -lfdata" >&5 +printf %s "checking for libfdata_list_element_set_mapped_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_element_set_mapped_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43482,40 +48825,40 @@ 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 libfdata_list_element_set_mapped_size (); int -main () +main (void) { return libfdata_list_element_set_mapped_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_element_set_mapped_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_element_set_mapped_size=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_fdata_libfdata_list_element_set_mapped_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_element_value in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_element_get_element_value in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_element_get_element_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_element_value in -lfdata" >&5 +printf %s "checking for libfdata_list_element_get_element_value in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_element_get_element_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43524,40 +48867,40 @@ 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 libfdata_list_element_get_element_value (); int -main () +main (void) { return libfdata_list_element_get_element_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_element_get_element_value=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_element_get_element_value=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_fdata_libfdata_list_element_get_element_value" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_element_get_element_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_element_get_element_value" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_element_value in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_element_set_element_value in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_element_set_element_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_element_value in -lfdata" >&5 +printf %s "checking for libfdata_list_element_set_element_value in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_element_set_element_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43566,41 +48909,41 @@ 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 libfdata_list_element_set_element_value (); int -main () +main (void) { return libfdata_list_element_set_element_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_element_set_element_value=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_element_set_element_value=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_fdata_libfdata_list_element_set_element_value" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_element_set_element_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_element_set_element_value" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_mapped_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_element_get_mapped_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_element_get_mapped_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_mapped_size in -lfdata" >&5 +printf %s "checking for libfdata_list_element_get_mapped_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_element_get_mapped_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43609,40 +48952,40 @@ 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 libfdata_list_element_get_mapped_size (); int -main () +main (void) { return libfdata_list_element_get_mapped_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_element_get_mapped_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_element_get_mapped_size=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_fdata_libfdata_list_element_get_mapped_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_element_get_mapped_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_mapped_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_element_set_mapped_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_element_set_mapped_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_mapped_size in -lfdata" >&5 +printf %s "checking for libfdata_list_element_set_mapped_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_element_set_mapped_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43651,40 +48994,40 @@ 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 libfdata_list_element_set_mapped_size (); int -main () +main (void) { return libfdata_list_element_set_mapped_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_element_set_mapped_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_element_set_mapped_size=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_fdata_libfdata_list_element_set_mapped_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_element_set_mapped_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_element_value in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_element_get_element_value in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_element_get_element_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_get_element_value in -lfdata" >&5 +printf %s "checking for libfdata_list_element_get_element_value in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_element_get_element_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43693,40 +49036,40 @@ 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 libfdata_list_element_get_element_value (); int -main () +main (void) { return libfdata_list_element_get_element_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_element_get_element_value=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_element_get_element_value=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_fdata_libfdata_list_element_get_element_value" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_element_get_element_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_element_get_element_value" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_element_get_element_value" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_element_value in -lfdata" >&5 -$as_echo_n "checking for libfdata_list_element_set_element_value in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_list_element_set_element_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_list_element_set_element_value in -lfdata" >&5 +printf %s "checking for libfdata_list_element_set_element_value in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_list_element_set_element_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43735,42 +49078,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 libfdata_list_element_set_element_value (); int -main () +main (void) { return libfdata_list_element_set_element_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_list_element_set_element_value=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_list_element_set_element_value=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_fdata_libfdata_list_element_set_element_value" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_list_element_set_element_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_list_element_set_element_value" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_list_element_set_element_value" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_initialize in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_initialize in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_initialize in -lfdata" >&5 +printf %s "checking for libfdata_stream_initialize in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43779,40 +49122,40 @@ 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 libfdata_stream_initialize (); int -main () +main (void) { return libfdata_stream_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_initialize=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_initialize=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_fdata_libfdata_stream_initialize" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_initialize" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_initialize" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_initialize" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_free in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_free in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_free in -lfdata" >&5 +printf %s "checking for libfdata_stream_free in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43821,40 +49164,40 @@ 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 libfdata_stream_free (); int -main () +main (void) { return libfdata_stream_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_free=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_free=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_fdata_libfdata_stream_free" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_free" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_free" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_free" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_free" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_clone in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_clone in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_clone in -lfdata" >&5 +printf %s "checking for libfdata_stream_clone in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43863,41 +49206,41 @@ 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 libfdata_stream_clone (); int -main () +main (void) { return libfdata_stream_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_clone=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_clone=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_fdata_libfdata_stream_clone" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_clone" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_clone" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_clone" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_clone" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_empty in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_empty in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_empty+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_empty in -lfdata" >&5 +printf %s "checking for libfdata_stream_empty in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_empty+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43906,40 +49249,40 @@ 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 libfdata_stream_empty (); int -main () +main (void) { return libfdata_stream_empty (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_empty=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_empty=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_fdata_libfdata_stream_empty" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_empty" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_empty" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_empty" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_empty" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_empty" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_resize in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_resize in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_resize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_resize in -lfdata" >&5 +printf %s "checking for libfdata_stream_resize in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_resize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43948,40 +49291,40 @@ 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 libfdata_stream_resize (); int -main () +main (void) { return libfdata_stream_resize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_resize=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_resize=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_fdata_libfdata_stream_resize" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_resize" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_resize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_resize" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_resize" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_resize" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_reverse in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_reverse in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_reverse+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_reverse in -lfdata" >&5 +printf %s "checking for libfdata_stream_reverse in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_reverse+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -43990,41 +49333,41 @@ 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 libfdata_stream_reverse (); int -main () +main (void) { return libfdata_stream_reverse (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_reverse=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_reverse=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_fdata_libfdata_stream_reverse" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_reverse" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_reverse" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_reverse" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_reverse" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_reverse" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_number_of_segments in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_get_number_of_segments in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_get_number_of_segments+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_number_of_segments in -lfdata" >&5 +printf %s "checking for libfdata_stream_get_number_of_segments in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_get_number_of_segments+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44033,40 +49376,40 @@ 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 libfdata_stream_get_number_of_segments (); int -main () +main (void) { return libfdata_stream_get_number_of_segments (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_get_number_of_segments=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_get_number_of_segments=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_fdata_libfdata_stream_get_number_of_segments" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_get_number_of_segments" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_get_number_of_segments" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_number_of_segments" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_get_number_of_segments" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_get_number_of_segments" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_get_segment_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_get_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_by_index in -lfdata" >&5 +printf %s "checking for libfdata_stream_get_segment_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_get_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44075,40 +49418,40 @@ 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 libfdata_stream_get_segment_by_index (); int -main () +main (void) { return libfdata_stream_get_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_get_segment_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_get_segment_by_index=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_fdata_libfdata_stream_get_segment_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_get_segment_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_get_segment_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_set_segment_by_index in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_set_segment_by_index in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_set_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_set_segment_by_index in -lfdata" >&5 +printf %s "checking for libfdata_stream_set_segment_by_index in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_set_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44117,40 +49460,40 @@ 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 libfdata_stream_set_segment_by_index (); int -main () +main (void) { return libfdata_stream_set_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_set_segment_by_index=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_set_segment_by_index=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_fdata_libfdata_stream_set_segment_by_index" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_set_segment_by_index" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_set_segment_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_set_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_set_segment_by_index" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_set_segment_by_index" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_prepend_segment in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_prepend_segment in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_prepend_segment+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_prepend_segment in -lfdata" >&5 +printf %s "checking for libfdata_stream_prepend_segment in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_prepend_segment+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44159,40 +49502,40 @@ 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 libfdata_stream_prepend_segment (); int -main () +main (void) { return libfdata_stream_prepend_segment (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_prepend_segment=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_prepend_segment=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_fdata_libfdata_stream_prepend_segment" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_prepend_segment" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_prepend_segment" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_prepend_segment" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_prepend_segment" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_prepend_segment" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_append_segment in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_append_segment in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_append_segment+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_append_segment in -lfdata" >&5 +printf %s "checking for libfdata_stream_append_segment in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_append_segment+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44201,40 +49544,40 @@ 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 libfdata_stream_append_segment (); int -main () +main (void) { return libfdata_stream_append_segment (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_append_segment=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_append_segment=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_fdata_libfdata_stream_append_segment" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_append_segment" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_append_segment" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_append_segment" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_append_segment" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_append_segment" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_set_mapped_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_set_mapped_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_set_mapped_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_set_mapped_size in -lfdata" >&5 +printf %s "checking for libfdata_stream_set_mapped_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_set_mapped_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44243,41 +49586,41 @@ 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 libfdata_stream_set_mapped_size (); int -main () +main (void) { return libfdata_stream_set_mapped_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_set_mapped_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_set_mapped_size=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_fdata_libfdata_stream_set_mapped_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_set_mapped_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_set_mapped_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_set_mapped_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_set_mapped_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_set_mapped_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_mapped_range in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_get_segment_mapped_range in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_mapped_range in -lfdata" >&5 +printf %s "checking for libfdata_stream_get_segment_mapped_range in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44286,40 +49629,40 @@ 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 libfdata_stream_get_segment_mapped_range (); int -main () +main (void) { return libfdata_stream_get_segment_mapped_range (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range=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_fdata_libfdata_stream_get_segment_mapped_range" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_mapped_range" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_index_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_get_segment_index_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_index_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_stream_get_segment_index_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44328,40 +49671,40 @@ 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 libfdata_stream_get_segment_index_at_offset (); int -main () +main (void) { return libfdata_stream_get_segment_index_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset=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_fdata_libfdata_stream_get_segment_index_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_index_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_get_segment_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_segment_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_stream_get_segment_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44370,41 +49713,41 @@ 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 libfdata_stream_get_segment_at_offset (); int -main () +main (void) { return libfdata_stream_get_segment_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset=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_fdata_libfdata_stream_get_segment_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_get_segment_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_read_buffer in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_read_buffer in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_read_buffer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_read_buffer in -lfdata" >&5 +printf %s "checking for libfdata_stream_read_buffer in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_read_buffer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44413,40 +49756,40 @@ 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 libfdata_stream_read_buffer (); int -main () +main (void) { return libfdata_stream_read_buffer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_read_buffer=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_read_buffer=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_fdata_libfdata_stream_read_buffer" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_read_buffer" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_read_buffer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_read_buffer" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_read_buffer" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_read_buffer" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_read_buffer_at_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_read_buffer_at_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_read_buffer_at_offset in -lfdata" >&5 +printf %s "checking for libfdata_stream_read_buffer_at_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44455,40 +49798,40 @@ 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 libfdata_stream_read_buffer_at_offset (); int -main () +main (void) { return libfdata_stream_read_buffer_at_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset=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_fdata_libfdata_stream_read_buffer_at_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_read_buffer_at_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_write_buffer in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_write_buffer in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_write_buffer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_write_buffer in -lfdata" >&5 +printf %s "checking for libfdata_stream_write_buffer in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_write_buffer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44497,40 +49840,40 @@ 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 libfdata_stream_write_buffer (); int -main () +main (void) { return libfdata_stream_write_buffer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_write_buffer=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_write_buffer=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_fdata_libfdata_stream_write_buffer" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_write_buffer" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_write_buffer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_write_buffer" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_write_buffer" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_write_buffer" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_seek_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_seek_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_seek_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_seek_offset in -lfdata" >&5 +printf %s "checking for libfdata_stream_seek_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_seek_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44539,40 +49882,40 @@ 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 libfdata_stream_seek_offset (); int -main () +main (void) { return libfdata_stream_seek_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_seek_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_seek_offset=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_fdata_libfdata_stream_seek_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_seek_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_seek_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_seek_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_seek_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_seek_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_offset in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_get_offset in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_get_offset+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_offset in -lfdata" >&5 +printf %s "checking for libfdata_stream_get_offset in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_get_offset+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44581,40 +49924,40 @@ 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 libfdata_stream_get_offset (); int -main () +main (void) { return libfdata_stream_get_offset (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_get_offset=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_get_offset=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_fdata_libfdata_stream_get_offset" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_get_offset" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_get_offset" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_offset" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_get_offset" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_get_offset" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_size in -lfdata" >&5 -$as_echo_n "checking for libfdata_stream_get_size in -lfdata... " >&6; } -if ${ac_cv_lib_fdata_libfdata_stream_get_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdata_stream_get_size in -lfdata" >&5 +printf %s "checking for libfdata_stream_get_size in -lfdata... " >&6; } +if test ${ac_cv_lib_fdata_libfdata_stream_get_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdata $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44623,32 +49966,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 libfdata_stream_get_size (); int -main () +main (void) { return libfdata_stream_get_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdata_libfdata_stream_get_size=yes -else +else $as_nop ac_cv_lib_fdata_libfdata_stream_get_size=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_fdata_libfdata_stream_get_size" >&5 -$as_echo "$ac_cv_lib_fdata_libfdata_stream_get_size" >&6; } -if test "x$ac_cv_lib_fdata_libfdata_stream_get_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdata_libfdata_stream_get_size" >&5 +printf "%s\n" "$ac_cv_lib_fdata_libfdata_stream_get_size" >&6; } +if test "x$ac_cv_lib_fdata_libfdata_stream_get_size" = xyes +then : ac_cv_libfdata_dummy=yes -else +else $as_nop ac_cv_libfdata=no fi @@ -44659,9 +50001,10 @@ fi fi fi - if test "x$ac_cv_with_libfdata" != x && test "x$ac_cv_with_libfdata" != xauto-detect && test "x$ac_cv_libfdata" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libfdata" != x && test "x$ac_cv_with_libfdata" != xauto-detect && test "x$ac_cv_libfdata" != xyes +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 1 "unable to find supported libfdata in directory: $ac_cv_with_libfdata See \`config.log' for more details" "$LINENO" 5; } @@ -44669,24 +50012,27 @@ fi fi - if test "x$ac_cv_libfdata" = xyes; then : + if test "x$ac_cv_libfdata" = xyes +then : -$as_echo "#define HAVE_LIBFDATA 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBFDATA 1" >>confdefs.h fi - if test "x$ac_cv_libfdata" = xyes; then : + if test "x$ac_cv_libfdata" = xyes +then : HAVE_LIBFDATA=1 -else +else $as_nop HAVE_LIBFDATA=0 fi - if test "x$ac_cv_libfdata" != xyes; then : + if test "x$ac_cv_libfdata" != xyes +then : ac_cv_libfdata_CPPFLAGS="-I../libfdata"; ac_cv_libfdata_LIBADD="../libfdata/libfdata.la"; @@ -44695,7 +50041,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBFDATA 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBFDATA 1" >>confdefs.h HAVE_LOCAL_LIBFDATA=1 @@ -44710,24 +50056,28 @@ else HAVE_LOCAL_LIBFDATA_FALSE= fi - if test "x$ac_cv_libfdata_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libfdata_CPPFLAGS" != "x" +then : LIBFDATA_CPPFLAGS=$ac_cv_libfdata_CPPFLAGS fi - if test "x$ac_cv_libfdata_LIBADD" != "x"; then : + if test "x$ac_cv_libfdata_LIBADD" != "x" +then : LIBFDATA_LIBADD=$ac_cv_libfdata_LIBADD fi - if test "x$ac_cv_libfdata" = xyes; then : + if test "x$ac_cv_libfdata" = xyes +then : ax_libfdata_pc_libs_private=-lfdata fi - if test "x$ac_cv_libfdata" = xyes; then : + if test "x$ac_cv_libfdata" = xyes +then : ax_libfdata_spec_requires=libfdata ax_libfdata_spec_build_requires=libfdata-devel @@ -44739,53 +50089,59 @@ fi # Check whether --with-libfdatetime was given. -if test "${with_libfdatetime+set}" = set; then : +if test ${with_libfdatetime+y} +then : withval=$with_libfdatetime; ac_cv_with_libfdatetime=$withval -else +else $as_nop ac_cv_with_libfdatetime=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libfdatetime+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libfdatetime in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libfdatetime+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libfdatetime=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfdatetime" >&5 -$as_echo "$ac_cv_with_libfdatetime" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfdatetime" >&5 +printf "%s\n" "$ac_cv_with_libfdatetime" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfdatetime" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfdatetime" = xno +then : ac_cv_libfdatetime=no -else +else $as_nop ac_cv_libfdatetime=check - if test "x$ac_cv_with_libfdatetime" != x && test "x$ac_cv_with_libfdatetime" != xauto-detect; then : - if test -d "$ac_cv_with_libfdatetime"; then : + if test "x$ac_cv_with_libfdatetime" != x && test "x$ac_cv_with_libfdatetime" != xauto-detect +then : + if test -d "$ac_cv_with_libfdatetime" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libfdatetime}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfdatetime}/lib" -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 1 "no such directory: $ac_cv_with_libfdatetime See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime" >&5 -$as_echo_n "checking for libfdatetime... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime >= 20180910" >&5 +printf %s "checking for libfdatetime >= 20180910... " >&6; } if test -n "$libfdatetime_CFLAGS"; then pkg_cv_libfdatetime_CFLAGS="$libfdatetime_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdatetime >= 20180910\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdatetime >= 20180910\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfdatetime >= 20180910") 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_libfdatetime_CFLAGS=`$PKG_CONFIG --cflags "libfdatetime >= 20180910" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -44799,10 +50155,10 @@ if test -n "$libfdatetime_LIBS"; then pkg_cv_libfdatetime_LIBS="$libfdatetime_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdatetime >= 20180910\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfdatetime >= 20180910\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfdatetime >= 20180910") 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_libfdatetime_LIBS=`$PKG_CONFIG --libs "libfdatetime >= 20180910" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -44816,8 +50172,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 @@ -44825,58 +50181,57 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libfdatetime_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfdatetime >= 20180910" 2>&1` + libfdatetime_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfdatetime >= 20180910" 2>&1` else - libfdatetime_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfdatetime >= 20180910" 2>&1` + libfdatetime_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfdatetime >= 20180910" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libfdatetime_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libfdatetime_PKG_ERRORS" >&5 - ac_cv_libfdatetime=check + ac_cv_libfdatetime=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libfdatetime=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libfdatetime=check else - libfdatetime_CFLAGS=$pkg_cv_libfdatetime_CFLAGS - libfdatetime_LIBS=$pkg_cv_libfdatetime_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libfdatetime=yes + libfdatetime_CFLAGS=$pkg_cv_libfdatetime_CFLAGS + libfdatetime_LIBS=$pkg_cv_libfdatetime_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libfdatetime=yes fi fi - if test "x$ac_cv_libfdatetime" = xyes; then : + if test "x$ac_cv_libfdatetime" = xyes +then : ac_cv_libfdatetime_CPPFLAGS="$pkg_cv_libfdatetime_CFLAGS" ac_cv_libfdatetime_LIBADD="$pkg_cv_libfdatetime_LIBS" fi fi - if test "x$ac_cv_libfdatetime" = xcheck; then : - for ac_header in libfdatetime.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libfdatetime.h" "ac_cv_header_libfdatetime_h" "$ac_includes_default" -if test "x$ac_cv_header_libfdatetime_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBFDATETIME_H 1 -_ACEOF + if test "x$ac_cv_libfdatetime" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libfdatetime.h" "ac_cv_header_libfdatetime_h" "$ac_includes_default" +if test "x$ac_cv_header_libfdatetime_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBFDATETIME_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libfdatetime_h" = xno; then : + if test "x$ac_cv_header_libfdatetime_h" = xno +then : ac_cv_libfdatetime=no -else +else $as_nop ac_cv_libfdatetime=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_get_version in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_get_version in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_get_version in -lfdatetime" >&5 +printf %s "checking for libfdatetime_get_version in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44885,41 +50240,41 @@ 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 libfdatetime_get_version (); int -main () +main (void) { return libfdatetime_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_get_version=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_get_version=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_fdatetime_libfdatetime_get_version" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_get_version" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_get_version" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_get_version" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_get_version" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_initialize in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_initialize in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_initialize in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_initialize in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44928,40 +50283,40 @@ 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 libfdatetime_fat_date_time_initialize (); int -main () +main (void) { return libfdatetime_fat_date_time_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize=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_fdatetime_libfdatetime_fat_date_time_initialize" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_initialize" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_free in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_free in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_free in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_free in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -44970,40 +50325,40 @@ 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 libfdatetime_fat_date_time_free (); int -main () +main (void) { return libfdatetime_fat_date_time_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free=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_fdatetime_libfdatetime_fat_date_time_free" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_free" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_from_byte_stream in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_from_byte_stream in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_from_byte_stream in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_from_byte_stream in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45012,40 +50367,40 @@ 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 libfdatetime_fat_date_time_copy_from_byte_stream (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream=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_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_byte_stream" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_from_32bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_from_32bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_from_32bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_from_32bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45054,40 +50409,40 @@ 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 libfdatetime_fat_date_time_copy_from_32bit (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_from_32bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit=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_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_from_32bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_32bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_to_32bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_32bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_to_32bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45096,40 +50451,40 @@ 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 libfdatetime_fat_date_time_copy_to_32bit (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_to_32bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit=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_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_32bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf8_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf8_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf8_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_to_utf8_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45138,40 +50493,40 @@ 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 libfdatetime_fat_date_time_copy_to_utf8_string (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string=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_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45180,40 +50535,40 @@ 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 libfdatetime_fat_date_time_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index=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_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf16_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf16_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf16_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_to_utf16_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45222,40 +50577,40 @@ 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 libfdatetime_fat_date_time_copy_to_utf16_string (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string=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_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45264,40 +50619,40 @@ 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 libfdatetime_fat_date_time_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index=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_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf32_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf32_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf32_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_to_utf32_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45306,40 +50661,40 @@ 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 libfdatetime_fat_date_time_copy_to_utf32_string (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string=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_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_fat_date_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_fat_date_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_fat_date_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45348,41 +50703,41 @@ 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 libfdatetime_fat_date_time_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfdatetime_fat_date_time_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index=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_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_fat_date_time_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_initialize in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_initialize in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_initialize in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_initialize in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45391,40 +50746,40 @@ 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 libfdatetime_filetime_initialize (); int -main () +main (void) { return libfdatetime_filetime_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_initialize=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_initialize=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_fdatetime_libfdatetime_filetime_initialize" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_initialize" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_initialize" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_initialize" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_free in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_free in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_free in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_free in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45433,40 +50788,40 @@ 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 libfdatetime_filetime_free (); int -main () +main (void) { return libfdatetime_filetime_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_free=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_free=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_fdatetime_libfdatetime_filetime_free" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_free" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_free" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_free" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_free" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_from_byte_stream in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_from_byte_stream in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_from_byte_stream in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_from_byte_stream in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45475,40 +50830,40 @@ 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 libfdatetime_filetime_copy_from_byte_stream (); int -main () +main (void) { return libfdatetime_filetime_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream=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_fdatetime_libfdatetime_filetime_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_byte_stream" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_from_64bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_from_64bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_from_64bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_from_64bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45517,40 +50872,40 @@ 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 libfdatetime_filetime_copy_from_64bit (); int -main () +main (void) { return libfdatetime_filetime_copy_from_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit=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_fdatetime_libfdatetime_filetime_copy_from_64bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_from_64bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_64bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_to_64bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_64bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_to_64bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45559,40 +50914,40 @@ 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 libfdatetime_filetime_copy_to_64bit (); int -main () +main (void) { return libfdatetime_filetime_copy_to_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit=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_fdatetime_libfdatetime_filetime_copy_to_64bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_64bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf8_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_to_utf8_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf8_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_to_utf8_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45601,40 +50956,40 @@ 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 libfdatetime_filetime_copy_to_utf8_string (); int -main () +main (void) { return libfdatetime_filetime_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string=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_fdatetime_libfdatetime_filetime_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf8_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf8_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45643,40 +50998,40 @@ 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 libfdatetime_filetime_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfdatetime_filetime_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index=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_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf16_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_to_utf16_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf16_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_to_utf16_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45685,40 +51040,40 @@ 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 libfdatetime_filetime_copy_to_utf16_string (); int -main () +main (void) { return libfdatetime_filetime_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string=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_fdatetime_libfdatetime_filetime_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf16_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf16_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45727,40 +51082,40 @@ 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 libfdatetime_filetime_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfdatetime_filetime_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index=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_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf32_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_to_utf32_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf32_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_to_utf32_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45769,40 +51124,40 @@ 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 libfdatetime_filetime_copy_to_utf32_string (); int -main () +main (void) { return libfdatetime_filetime_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string=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_fdatetime_libfdatetime_filetime_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf32_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_copy_to_utf32_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45811,40 +51166,40 @@ 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 libfdatetime_filetime_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfdatetime_filetime_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index=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_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_add in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_filetime_add in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_filetime_add+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_filetime_add in -lfdatetime" >&5 +printf %s "checking for libfdatetime_filetime_add in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_filetime_add+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45853,41 +51208,41 @@ 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 libfdatetime_filetime_add (); int -main () +main (void) { return libfdatetime_filetime_add (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_filetime_add=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_filetime_add=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_fdatetime_libfdatetime_filetime_add" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_filetime_add" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_add" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_filetime_add" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_filetime_add" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_filetime_add" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_initialize in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_initialize in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_initialize in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_initialize in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45896,40 +51251,40 @@ 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 libfdatetime_floatingtime_initialize (); int -main () +main (void) { return libfdatetime_floatingtime_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize=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_fdatetime_libfdatetime_floatingtime_initialize" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_initialize" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_free in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_free in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_free in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_free in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45938,40 +51293,40 @@ 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 libfdatetime_floatingtime_free (); int -main () +main (void) { return libfdatetime_floatingtime_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_free=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_free=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_fdatetime_libfdatetime_floatingtime_free" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_free" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_free" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_free" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_free" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_from_byte_stream in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_from_byte_stream in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_from_byte_stream in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_from_byte_stream in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -45980,40 +51335,40 @@ 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 libfdatetime_floatingtime_copy_from_byte_stream (); int -main () +main (void) { return libfdatetime_floatingtime_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream=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_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_byte_stream" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_from_64bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_from_64bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_from_64bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_from_64bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46022,40 +51377,40 @@ 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 libfdatetime_floatingtime_copy_from_64bit (); int -main () +main (void) { return libfdatetime_floatingtime_copy_from_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit=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_fdatetime_libfdatetime_floatingtime_copy_from_64bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_from_64bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_64bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_to_64bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_64bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_to_64bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46064,40 +51419,40 @@ 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 libfdatetime_floatingtime_copy_to_64bit (); int -main () +main (void) { return libfdatetime_floatingtime_copy_to_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit=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_fdatetime_libfdatetime_floatingtime_copy_to_64bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_64bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf8_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf8_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf8_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_to_utf8_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46106,40 +51461,40 @@ 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 libfdatetime_floatingtime_copy_to_utf8_string (); int -main () +main (void) { return libfdatetime_floatingtime_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string=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_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf8_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf8_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46148,40 +51503,40 @@ 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 libfdatetime_floatingtime_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfdatetime_floatingtime_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index=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_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf16_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf16_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf16_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_to_utf16_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46190,40 +51545,40 @@ 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 libfdatetime_floatingtime_copy_to_utf16_string (); int -main () +main (void) { return libfdatetime_floatingtime_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string=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_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf16_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf16_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46232,40 +51587,40 @@ 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 libfdatetime_floatingtime_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfdatetime_floatingtime_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index=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_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf32_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf32_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf32_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_to_utf32_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46274,40 +51629,40 @@ 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 libfdatetime_floatingtime_copy_to_utf32_string (); int -main () +main (void) { return libfdatetime_floatingtime_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string=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_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf32_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_floatingtime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_floatingtime_copy_to_utf32_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_floatingtime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46316,41 +51671,41 @@ 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 libfdatetime_floatingtime_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfdatetime_floatingtime_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index=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_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_floatingtime_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_initialize in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_initialize in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_initialize in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_initialize in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46359,40 +51714,40 @@ 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 libfdatetime_hfs_time_initialize (); int -main () +main (void) { return libfdatetime_hfs_time_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize=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_fdatetime_libfdatetime_hfs_time_initialize" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_initialize" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_free in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_free in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_free in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_free in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46401,40 +51756,40 @@ 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 libfdatetime_hfs_time_free (); int -main () +main (void) { return libfdatetime_hfs_time_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_free=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_free=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_fdatetime_libfdatetime_hfs_time_free" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_free" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_free" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_free" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_free" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_from_byte_stream in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_from_byte_stream in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_from_byte_stream in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_from_byte_stream in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46443,40 +51798,40 @@ 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 libfdatetime_hfs_time_copy_from_byte_stream (); int -main () +main (void) { return libfdatetime_hfs_time_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream=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_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_byte_stream" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_from_32bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_from_32bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_from_32bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_from_32bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46485,40 +51840,40 @@ 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 libfdatetime_hfs_time_copy_from_32bit (); int -main () +main (void) { return libfdatetime_hfs_time_copy_from_32bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit=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_fdatetime_libfdatetime_hfs_time_copy_from_32bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_from_32bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_32bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_to_32bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_32bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_to_32bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46527,40 +51882,40 @@ 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 libfdatetime_hfs_time_copy_to_32bit (); int -main () +main (void) { return libfdatetime_hfs_time_copy_to_32bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit=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_fdatetime_libfdatetime_hfs_time_copy_to_32bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_32bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf8_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf8_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf8_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_to_utf8_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46569,40 +51924,40 @@ 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 libfdatetime_hfs_time_copy_to_utf8_string (); int -main () +main (void) { return libfdatetime_hfs_time_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string=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_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46611,40 +51966,40 @@ 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 libfdatetime_hfs_time_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfdatetime_hfs_time_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index=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_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf16_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf16_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf16_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_to_utf16_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46653,40 +52008,40 @@ 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 libfdatetime_hfs_time_copy_to_utf16_string (); int -main () +main (void) { return libfdatetime_hfs_time_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string=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_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46695,40 +52050,40 @@ 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 libfdatetime_hfs_time_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfdatetime_hfs_time_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index=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_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf32_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf32_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf32_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_to_utf32_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46737,40 +52092,40 @@ 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 libfdatetime_hfs_time_copy_to_utf32_string (); int -main () +main (void) { return libfdatetime_hfs_time_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string=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_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_hfs_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_hfs_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_hfs_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46779,41 +52134,41 @@ 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 libfdatetime_hfs_time_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfdatetime_hfs_time_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index=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_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_hfs_time_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_initialize in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_initialize in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_initialize in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_initialize in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46822,40 +52177,40 @@ 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 libfdatetime_nsf_timedate_initialize (); int -main () +main (void) { return libfdatetime_nsf_timedate_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize=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_fdatetime_libfdatetime_nsf_timedate_initialize" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_initialize" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_free in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_free in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_free in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_free in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46864,40 +52219,40 @@ 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 libfdatetime_nsf_timedate_free (); int -main () +main (void) { return libfdatetime_nsf_timedate_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free=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_fdatetime_libfdatetime_nsf_timedate_free" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_free" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_from_byte_stream in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_from_byte_stream in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_from_byte_stream in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_from_byte_stream in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46906,40 +52261,40 @@ 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 libfdatetime_nsf_timedate_copy_from_byte_stream (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream=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_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_byte_stream" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_from_64bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_from_64bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_from_64bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_from_64bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46948,40 +52303,40 @@ 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 libfdatetime_nsf_timedate_copy_from_64bit (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_from_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit=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_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_from_64bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_64bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_64bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_64bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_to_64bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -46990,40 +52345,40 @@ 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 libfdatetime_nsf_timedate_copy_to_64bit (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_to_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit=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_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_64bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf8_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf8_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf8_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_to_utf8_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47032,40 +52387,40 @@ 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 libfdatetime_nsf_timedate_copy_to_utf8_string (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string=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_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf8_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf8_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47074,40 +52429,40 @@ 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 libfdatetime_nsf_timedate_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index=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_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf16_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf16_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf16_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_to_utf16_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47116,40 +52471,40 @@ 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 libfdatetime_nsf_timedate_copy_to_utf16_string (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string=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_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf16_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf16_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47158,40 +52513,40 @@ 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 libfdatetime_nsf_timedate_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index=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_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf32_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf32_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf32_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_to_utf32_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47200,40 +52555,40 @@ 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 libfdatetime_nsf_timedate_copy_to_utf32_string (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string=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_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf32_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_nsf_timedate_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_nsf_timedate_copy_to_utf32_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_nsf_timedate_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47242,41 +52597,41 @@ 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 libfdatetime_nsf_timedate_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfdatetime_nsf_timedate_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index=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_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_nsf_timedate_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_initialize in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_initialize in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_initialize in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_initialize in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47285,40 +52640,40 @@ 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 libfdatetime_posix_time_initialize (); int -main () +main (void) { return libfdatetime_posix_time_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize=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_fdatetime_libfdatetime_posix_time_initialize" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_initialize" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_free in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_free in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_free in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_free in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47327,40 +52682,40 @@ 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 libfdatetime_posix_time_free (); int -main () +main (void) { return libfdatetime_posix_time_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_free=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_free=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_fdatetime_libfdatetime_posix_time_free" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_free" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_free" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_free" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_free" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_byte_stream in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_from_byte_stream in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_byte_stream in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_from_byte_stream in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47369,40 +52724,40 @@ 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 libfdatetime_posix_time_copy_from_byte_stream (); int -main () +main (void) { return libfdatetime_posix_time_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream=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_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_byte_stream" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_32bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_from_32bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_32bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_from_32bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47411,40 +52766,40 @@ 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 libfdatetime_posix_time_copy_from_32bit (); int -main () +main (void) { return libfdatetime_posix_time_copy_from_32bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit=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_fdatetime_libfdatetime_posix_time_copy_from_32bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_32bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_32bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_to_32bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_32bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_to_32bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47453,40 +52808,40 @@ 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 libfdatetime_posix_time_copy_to_32bit (); int -main () +main (void) { return libfdatetime_posix_time_copy_to_32bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit=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_fdatetime_libfdatetime_posix_time_copy_to_32bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_32bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_64bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_from_64bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_from_64bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_from_64bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47495,40 +52850,40 @@ 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 libfdatetime_posix_time_copy_from_64bit (); int -main () +main (void) { return libfdatetime_posix_time_copy_from_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit=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_fdatetime_libfdatetime_posix_time_copy_from_64bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_from_64bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_64bit in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_to_64bit in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_64bit in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_to_64bit in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47537,40 +52892,40 @@ 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 libfdatetime_posix_time_copy_to_64bit (); int -main () +main (void) { return libfdatetime_posix_time_copy_to_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit=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_fdatetime_libfdatetime_posix_time_copy_to_64bit" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_64bit" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf8_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_to_utf8_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf8_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_to_utf8_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47579,40 +52934,40 @@ 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 libfdatetime_posix_time_copy_to_utf8_string (); int -main () +main (void) { return libfdatetime_posix_time_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string=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_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf8_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47621,40 +52976,40 @@ 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 libfdatetime_posix_time_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfdatetime_posix_time_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index=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_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf16_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_to_utf16_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf16_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_to_utf16_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47663,40 +53018,40 @@ 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 libfdatetime_posix_time_copy_to_utf16_string (); int -main () +main (void) { return libfdatetime_posix_time_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string=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_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf16_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47705,40 +53060,40 @@ 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 libfdatetime_posix_time_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfdatetime_posix_time_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index=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_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf32_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_to_utf32_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf32_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_to_utf32_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47747,40 +53102,40 @@ 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 libfdatetime_posix_time_copy_to_utf32_string (); int -main () +main (void) { return libfdatetime_posix_time_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string=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_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_posix_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_posix_time_copy_to_utf32_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_posix_time_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47789,41 +53144,41 @@ 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 libfdatetime_posix_time_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfdatetime_posix_time_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index=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_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_posix_time_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_initialize in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_initialize in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_initialize in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_initialize in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47832,40 +53187,40 @@ 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 libfdatetime_systemetime_initialize (); int -main () +main (void) { return libfdatetime_systemetime_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize=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_fdatetime_libfdatetime_systemetime_initialize" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_initialize" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_free in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_free in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_free in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_free in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47874,40 +53229,40 @@ 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 libfdatetime_systemetime_free (); int -main () +main (void) { return libfdatetime_systemetime_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_free=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_free=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_fdatetime_libfdatetime_systemetime_free" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_free" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_free" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_free" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_free" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_from_byte_stream in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_copy_from_byte_stream in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_from_byte_stream in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_copy_from_byte_stream in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47916,40 +53271,40 @@ 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 libfdatetime_systemetime_copy_from_byte_stream (); int -main () +main (void) { return libfdatetime_systemetime_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream=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_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_from_byte_stream" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf8_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_copy_to_utf8_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf8_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_copy_to_utf8_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -47958,40 +53313,40 @@ 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 libfdatetime_systemetime_copy_to_utf8_string (); int -main () +main (void) { return libfdatetime_systemetime_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string=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_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf8_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf8_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_copy_to_utf8_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48000,40 +53355,40 @@ 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 libfdatetime_systemetime_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfdatetime_systemetime_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index=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_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf16_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_copy_to_utf16_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf16_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_copy_to_utf16_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48042,40 +53397,40 @@ 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 libfdatetime_systemetime_copy_to_utf16_string (); int -main () +main (void) { return libfdatetime_systemetime_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string=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_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf16_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf16_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_copy_to_utf16_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48084,40 +53439,40 @@ 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 libfdatetime_systemetime_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfdatetime_systemetime_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index=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_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf32_string in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_copy_to_utf32_string in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf32_string in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_copy_to_utf32_string in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48126,40 +53481,40 @@ 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 libfdatetime_systemetime_copy_to_utf32_string (); int -main () +main (void) { return libfdatetime_systemetime_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string=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_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf32_string_with_index in -lfdatetime" >&5 -$as_echo_n "checking for libfdatetime_systemetime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } -if ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfdatetime_systemetime_copy_to_utf32_string_with_index in -lfdatetime" >&5 +printf %s "checking for libfdatetime_systemetime_copy_to_utf32_string_with_index in -lfdatetime... " >&6; } +if test ${ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfdatetime $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48168,32 +53523,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 libfdatetime_systemetime_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfdatetime_systemetime_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index=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_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fdatetime_libfdatetime_systemetime_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfdatetime_dummy=yes -else +else $as_nop ac_cv_libfdatetime=no fi @@ -48202,9 +53556,10 @@ fi fi fi - if test "x$ac_cv_with_libfdatetime" != x && test "x$ac_cv_with_libfdatetime" != xauto-detect && test "x$ac_cv_libfdatetime" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libfdatetime" != x && test "x$ac_cv_with_libfdatetime" != xauto-detect && test "x$ac_cv_libfdatetime" != xyes +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 1 "unable to find supported libfdatetime in directory: $ac_cv_with_libfdatetime See \`config.log' for more details" "$LINENO" 5; } @@ -48212,24 +53567,27 @@ fi fi - if test "x$ac_cv_libfdatetime" = xyes; then : + if test "x$ac_cv_libfdatetime" = xyes +then : -$as_echo "#define HAVE_LIBFDATETIME 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBFDATETIME 1" >>confdefs.h fi - if test "x$ac_cv_libfdatetime" = xyes; then : + if test "x$ac_cv_libfdatetime" = xyes +then : HAVE_LIBFDATETIME=1 -else +else $as_nop HAVE_LIBFDATETIME=0 fi - if test "x$ac_cv_libfdatetime" != xyes; then : + if test "x$ac_cv_libfdatetime" != xyes +then : ac_cv_libfdatetime_CPPFLAGS="-I../libfdatetime"; ac_cv_libfdatetime_LIBADD="../libfdatetime/libfdatetime.la"; @@ -48238,7 +53596,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBFDATETIME 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBFDATETIME 1" >>confdefs.h HAVE_LOCAL_LIBFDATETIME=1 @@ -48253,24 +53611,28 @@ else HAVE_LOCAL_LIBFDATETIME_FALSE= fi - if test "x$ac_cv_libfdatetime_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libfdatetime_CPPFLAGS" != "x" +then : LIBFDATETIME_CPPFLAGS=$ac_cv_libfdatetime_CPPFLAGS fi - if test "x$ac_cv_libfdatetime_LIBADD" != "x"; then : + if test "x$ac_cv_libfdatetime_LIBADD" != "x" +then : LIBFDATETIME_LIBADD=$ac_cv_libfdatetime_LIBADD fi - if test "x$ac_cv_libfdatetime" = xyes; then : + if test "x$ac_cv_libfdatetime" = xyes +then : ax_libfdatetime_pc_libs_private=-lfdatetime fi - if test "x$ac_cv_libfdatetime" = xyes; then : + if test "x$ac_cv_libfdatetime" = xyes +then : ax_libfdatetime_spec_requires=libfdatetime ax_libfdatetime_spec_build_requires=libfdatetime-devel @@ -48282,53 +53644,59 @@ fi # Check whether --with-libfguid was given. -if test "${with_libfguid+set}" = set; then : +if test ${with_libfguid+y} +then : withval=$with_libfguid; ac_cv_with_libfguid=$withval -else +else $as_nop ac_cv_with_libfguid=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libfguid+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libfguid in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libfguid+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libfguid=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfguid" >&5 -$as_echo "$ac_cv_with_libfguid" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfguid" >&5 +printf "%s\n" "$ac_cv_with_libfguid" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfguid" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfguid" = xno +then : ac_cv_libfguid=no -else +else $as_nop ac_cv_libfguid=check - if test "x$ac_cv_with_libfguid" != x && test "x$ac_cv_with_libfguid" != xauto-detect; then : - if test -d "$ac_cv_with_libfguid"; then : + if test "x$ac_cv_with_libfguid" != x && test "x$ac_cv_with_libfguid" != xauto-detect +then : + if test -d "$ac_cv_with_libfguid" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libfguid}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfguid}/lib" -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 1 "no such directory: $ac_cv_with_libfguid See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid" >&5 -$as_echo_n "checking for libfguid... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid >= 20120426" >&5 +printf %s "checking for libfguid >= 20120426... " >&6; } if test -n "$libfguid_CFLAGS"; then pkg_cv_libfguid_CFLAGS="$libfguid_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfguid >= 20120426\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfguid >= 20120426\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfguid >= 20120426") 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_libfguid_CFLAGS=`$PKG_CONFIG --cflags "libfguid >= 20120426" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -48342,10 +53710,10 @@ if test -n "$libfguid_LIBS"; then pkg_cv_libfguid_LIBS="$libfguid_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfguid >= 20120426\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfguid >= 20120426\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfguid >= 20120426") 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_libfguid_LIBS=`$PKG_CONFIG --libs "libfguid >= 20120426" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -48359,8 +53727,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 @@ -48368,58 +53736,57 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libfguid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfguid >= 20120426" 2>&1` + libfguid_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfguid >= 20120426" 2>&1` else - libfguid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfguid >= 20120426" 2>&1` + libfguid_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfguid >= 20120426" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libfguid_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libfguid_PKG_ERRORS" >&5 - ac_cv_libfguid=check + ac_cv_libfguid=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libfguid=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libfguid=check else - libfguid_CFLAGS=$pkg_cv_libfguid_CFLAGS - libfguid_LIBS=$pkg_cv_libfguid_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libfguid=yes + libfguid_CFLAGS=$pkg_cv_libfguid_CFLAGS + libfguid_LIBS=$pkg_cv_libfguid_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libfguid=yes fi fi - if test "x$ac_cv_libfguid" = xyes; then : + if test "x$ac_cv_libfguid" = xyes +then : ac_cv_libfguid_CPPFLAGS="$pkg_cv_libfguid_CFLAGS" ac_cv_libfguid_LIBADD="$pkg_cv_libfguid_LIBS" fi fi - if test "x$ac_cv_libfguid" = xcheck; then : - for ac_header in libfguid.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libfguid.h" "ac_cv_header_libfguid_h" "$ac_includes_default" -if test "x$ac_cv_header_libfguid_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBFGUID_H 1 -_ACEOF + if test "x$ac_cv_libfguid" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libfguid.h" "ac_cv_header_libfguid_h" "$ac_includes_default" +if test "x$ac_cv_header_libfguid_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBFGUID_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libfguid_h" = xno; then : + if test "x$ac_cv_header_libfguid_h" = xno +then : ac_cv_libfguid=no -else +else $as_nop ac_cv_libfguid=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_get_version in -lfguid" >&5 -$as_echo_n "checking for libfguid_get_version in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_get_version in -lfguid" >&5 +printf %s "checking for libfguid_get_version in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48428,41 +53795,41 @@ 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 libfguid_get_version (); int -main () +main (void) { return libfguid_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_get_version=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_get_version=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_fguid_libfguid_get_version" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_get_version" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_get_version" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_get_version" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_get_version" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_initialize in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_initialize in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_initialize in -lfguid" >&5 +printf %s "checking for libfguid_identifier_initialize in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48471,40 +53838,40 @@ 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 libfguid_identifier_initialize (); int -main () +main (void) { return libfguid_identifier_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_initialize=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_initialize=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_fguid_libfguid_identifier_initialize" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_initialize" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_initialize" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_initialize" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_free in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_free in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_free in -lfguid" >&5 +printf %s "checking for libfguid_identifier_free in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48513,40 +53880,40 @@ 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 libfguid_identifier_free (); int -main () +main (void) { return libfguid_identifier_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_free=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_free=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_fguid_libfguid_identifier_free" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_free" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_free" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_free" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_free" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_from_byte_stream in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_copy_from_byte_stream in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_from_byte_stream in -lfguid" >&5 +printf %s "checking for libfguid_identifier_copy_from_byte_stream in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48555,40 +53922,40 @@ 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 libfguid_identifier_copy_from_byte_stream (); int -main () +main (void) { return libfguid_identifier_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream=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_fguid_libfguid_identifier_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_from_byte_stream" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_get_string_size in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_get_string_size in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_get_string_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_get_string_size in -lfguid" >&5 +printf %s "checking for libfguid_identifier_get_string_size in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_get_string_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48597,40 +53964,40 @@ 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 libfguid_identifier_get_string_size (); int -main () +main (void) { return libfguid_identifier_get_string_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_get_string_size=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_get_string_size=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_fguid_libfguid_identifier_get_string_size" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_get_string_size" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_get_string_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_get_string_size" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_get_string_size" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_get_string_size" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf8_string in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_copy_to_utf8_string in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf8_string in -lfguid" >&5 +printf %s "checking for libfguid_identifier_copy_to_utf8_string in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48639,40 +54006,40 @@ 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 libfguid_identifier_copy_to_utf8_string (); int -main () +main (void) { return libfguid_identifier_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string=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_fguid_libfguid_identifier_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf8_string_with_index in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_copy_to_utf8_string_with_index in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf8_string_with_index in -lfguid" >&5 +printf %s "checking for libfguid_identifier_copy_to_utf8_string_with_index in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48681,40 +54048,40 @@ 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 libfguid_identifier_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfguid_identifier_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index=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_fguid_libfguid_identifier_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf16_string in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_copy_to_utf16_string in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf16_string in -lfguid" >&5 +printf %s "checking for libfguid_identifier_copy_to_utf16_string in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48723,40 +54090,40 @@ 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 libfguid_identifier_copy_to_utf16_string (); int -main () +main (void) { return libfguid_identifier_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string=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_fguid_libfguid_identifier_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf16_string_with_index in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_copy_to_utf16_string_with_index in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf16_string_with_index in -lfguid" >&5 +printf %s "checking for libfguid_identifier_copy_to_utf16_string_with_index in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48765,40 +54132,40 @@ 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 libfguid_identifier_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfguid_identifier_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index=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_fguid_libfguid_identifier_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf32_string in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_copy_to_utf32_string in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf32_string in -lfguid" >&5 +printf %s "checking for libfguid_identifier_copy_to_utf32_string in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48807,40 +54174,40 @@ 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 libfguid_identifier_copy_to_utf32_string (); int -main () +main (void) { return libfguid_identifier_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string=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_fguid_libfguid_identifier_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf32_string_with_index in -lfguid" >&5 -$as_echo_n "checking for libfguid_identifier_copy_to_utf32_string_with_index in -lfguid... " >&6; } -if ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfguid_identifier_copy_to_utf32_string_with_index in -lfguid" >&5 +printf %s "checking for libfguid_identifier_copy_to_utf32_string_with_index in -lfguid... " >&6; } +if test ${ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfguid $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -48849,32 +54216,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 libfguid_identifier_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfguid_identifier_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index=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_fguid_libfguid_identifier_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fguid_libfguid_identifier_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfguid_dummy=yes -else +else $as_nop ac_cv_libfguid=no fi @@ -48883,9 +54249,10 @@ fi fi fi - if test "x$ac_cv_with_libfguid" != x && test "x$ac_cv_with_libfguid" != xauto-detect && test "x$ac_cv_libfguid" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libfguid" != x && test "x$ac_cv_with_libfguid" != xauto-detect && test "x$ac_cv_libfguid" != xyes +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 1 "unable to find supported libfguid in directory: $ac_cv_with_libfguid See \`config.log' for more details" "$LINENO" 5; } @@ -48893,24 +54260,27 @@ fi fi - if test "x$ac_cv_libfguid" = xyes; then : + if test "x$ac_cv_libfguid" = xyes +then : -$as_echo "#define HAVE_LIBFGUID 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBFGUID 1" >>confdefs.h fi - if test "x$ac_cv_libfguid" = xyes; then : + if test "x$ac_cv_libfguid" = xyes +then : HAVE_LIBFGUID=1 -else +else $as_nop HAVE_LIBFGUID=0 fi - if test "x$ac_cv_libfguid" != xyes; then : + if test "x$ac_cv_libfguid" != xyes +then : ac_cv_libfguid_CPPFLAGS="-I../libfguid"; ac_cv_libfguid_LIBADD="../libfguid/libfguid.la"; @@ -48919,7 +54289,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBFGUID 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBFGUID 1" >>confdefs.h HAVE_LOCAL_LIBFGUID=1 @@ -48934,24 +54304,28 @@ else HAVE_LOCAL_LIBFGUID_FALSE= fi - if test "x$ac_cv_libfguid_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libfguid_CPPFLAGS" != "x" +then : LIBFGUID_CPPFLAGS=$ac_cv_libfguid_CPPFLAGS fi - if test "x$ac_cv_libfguid_LIBADD" != "x"; then : + if test "x$ac_cv_libfguid_LIBADD" != "x" +then : LIBFGUID_LIBADD=$ac_cv_libfguid_LIBADD fi - if test "x$ac_cv_libfguid" = xyes; then : + if test "x$ac_cv_libfguid" = xyes +then : ax_libfguid_pc_libs_private=-lfguid fi - if test "x$ac_cv_libfguid" = xyes; then : + if test "x$ac_cv_libfguid" = xyes +then : ax_libfguid_spec_requires=libfguid ax_libfguid_spec_build_requires=libfguid-devel @@ -48963,53 +54337,59 @@ fi # Check whether --with-libfvalue was given. -if test "${with_libfvalue+set}" = set; then : +if test ${with_libfvalue+y} +then : withval=$with_libfvalue; ac_cv_with_libfvalue=$withval -else +else $as_nop ac_cv_with_libfvalue=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfvalue in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libfvalue in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libfvalue+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfvalue in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libfvalue in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libfvalue+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libfvalue=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfvalue" >&5 -$as_echo "$ac_cv_with_libfvalue" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfvalue" >&5 +printf "%s\n" "$ac_cv_with_libfvalue" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfvalue" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfvalue" = xno +then : ac_cv_libfvalue=no -else +else $as_nop ac_cv_libfvalue=check - if test "x$ac_cv_with_libfvalue" != x && test "x$ac_cv_with_libfvalue" != xauto-detect; then : - if test -d "$ac_cv_with_libfvalue"; then : + if test "x$ac_cv_with_libfvalue" != x && test "x$ac_cv_with_libfvalue" != xauto-detect +then : + if test -d "$ac_cv_with_libfvalue" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libfvalue}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfvalue}/lib" -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 1 "no such directory: $ac_cv_with_libfvalue See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue" >&5 -$as_echo_n "checking for libfvalue... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue >= 20200711" >&5 +printf %s "checking for libfvalue >= 20200711... " >&6; } if test -n "$libfvalue_CFLAGS"; then pkg_cv_libfvalue_CFLAGS="$libfvalue_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfvalue >= 20200711\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfvalue >= 20200711\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfvalue >= 20200711") 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_libfvalue_CFLAGS=`$PKG_CONFIG --cflags "libfvalue >= 20200711" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -49023,10 +54403,10 @@ if test -n "$libfvalue_LIBS"; then pkg_cv_libfvalue_LIBS="$libfvalue_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfvalue >= 20200711\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfvalue >= 20200711\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfvalue >= 20200711") 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_libfvalue_LIBS=`$PKG_CONFIG --libs "libfvalue >= 20200711" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -49040,8 +54420,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 @@ -49049,58 +54429,57 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libfvalue_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfvalue >= 20200711" 2>&1` + libfvalue_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfvalue >= 20200711" 2>&1` else - libfvalue_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfvalue >= 20200711" 2>&1` + libfvalue_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfvalue >= 20200711" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libfvalue_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libfvalue_PKG_ERRORS" >&5 - ac_cv_libfvalue=check + ac_cv_libfvalue=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libfvalue=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libfvalue=check else - libfvalue_CFLAGS=$pkg_cv_libfvalue_CFLAGS - libfvalue_LIBS=$pkg_cv_libfvalue_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libfvalue=yes + libfvalue_CFLAGS=$pkg_cv_libfvalue_CFLAGS + libfvalue_LIBS=$pkg_cv_libfvalue_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libfvalue=yes fi fi - if test "x$ac_cv_libfvalue" = xyes; then : + if test "x$ac_cv_libfvalue" = xyes +then : ac_cv_libfvalue_CPPFLAGS="$pkg_cv_libfvalue_CFLAGS" ac_cv_libfvalue_LIBADD="$pkg_cv_libfvalue_LIBS" fi fi - if test "x$ac_cv_libfvalue" = xcheck; then : - for ac_header in libfvalue.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libfvalue.h" "ac_cv_header_libfvalue_h" "$ac_includes_default" -if test "x$ac_cv_header_libfvalue_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBFVALUE_H 1 -_ACEOF + if test "x$ac_cv_libfvalue" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libfvalue.h" "ac_cv_header_libfvalue_h" "$ac_includes_default" +if test "x$ac_cv_header_libfvalue_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBFVALUE_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libfvalue_h" = xno; then : + if test "x$ac_cv_header_libfvalue_h" = xno +then : ac_cv_libfvalue=no -else +else $as_nop ac_cv_libfvalue=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_get_version in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_get_version in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_get_version in -lfvalue" >&5 +printf %s "checking for libfvalue_get_version in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49109,41 +54488,41 @@ 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 libfvalue_get_version (); int -main () +main (void) { return libfvalue_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_get_version=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_get_version=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_fvalue_libfvalue_get_version" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_get_version" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_get_version" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_get_version" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_get_version" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_initialize in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_initialize in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_initialize in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_initialize in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49152,40 +54531,40 @@ 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 libfvalue_data_handle_initialize (); int -main () +main (void) { return libfvalue_data_handle_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_initialize=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_initialize=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_fvalue_libfvalue_data_handle_initialize" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_initialize" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_initialize" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_initialize" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_free in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_free in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_free in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_free in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49194,40 +54573,40 @@ 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 libfvalue_data_handle_free (); int -main () +main (void) { return libfvalue_data_handle_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_free=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_free=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_fvalue_libfvalue_data_handle_free" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_free" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_free" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_free" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_free" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_clone in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_clone in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_clone in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_clone in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49236,40 +54615,40 @@ 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 libfvalue_data_handle_clone (); int -main () +main (void) { return libfvalue_data_handle_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_clone=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_clone=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_fvalue_libfvalue_data_handle_clone" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_clone" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_clone" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_clone" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_clone" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_clear in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_clear in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_clear+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_clear in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_clear in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_clear+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49278,41 +54657,41 @@ 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 libfvalue_data_handle_clear (); int -main () +main (void) { return libfvalue_data_handle_clear (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_clear=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_clear=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_fvalue_libfvalue_data_handle_clear" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_clear" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_clear" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_clear" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_clear" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_clear" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_get_data in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_get_data in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_get_data+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_get_data in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_get_data in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_get_data+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49321,40 +54700,40 @@ 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 libfvalue_data_handle_get_data (); int -main () +main (void) { return libfvalue_data_handle_get_data (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_get_data=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_get_data=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_fvalue_libfvalue_data_handle_get_data" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_get_data" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_get_data" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_get_data" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_get_data" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_get_data" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_set_data in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_set_data in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_set_data+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_set_data in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_set_data in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_set_data+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49363,41 +54742,41 @@ 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 libfvalue_data_handle_set_data (); int -main () +main (void) { return libfvalue_data_handle_set_data (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_set_data=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_set_data=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_fvalue_libfvalue_data_handle_set_data" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_set_data" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_set_data" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_set_data" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_set_data" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_set_data" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_get_data_flags in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_get_data_flags in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_get_data_flags in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_get_data_flags in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49406,40 +54785,40 @@ 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 libfvalue_data_handle_get_data_flags (); int -main () +main (void) { return libfvalue_data_handle_get_data_flags (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags=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_fvalue_libfvalue_data_handle_get_data_flags" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_get_data_flags" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_set_data_flags in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_set_data_flags in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_set_data_flags in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_set_data_flags in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49448,41 +54827,41 @@ 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 libfvalue_data_handle_set_data_flags (); int -main () +main (void) { return libfvalue_data_handle_set_data_flags (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags=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_fvalue_libfvalue_data_handle_set_data_flags" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_set_data_flags" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_get_number_of_value_entries in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_get_number_of_value_entries in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_get_number_of_value_entries in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_get_number_of_value_entries in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49491,40 +54870,40 @@ 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 libfvalue_data_handle_get_number_of_value_entries (); int -main () +main (void) { return libfvalue_data_handle_get_number_of_value_entries (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries=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_fvalue_libfvalue_data_handle_get_number_of_value_entries" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_get_number_of_value_entries" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_get_value_entry in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_get_value_entry in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_get_value_entry in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_get_value_entry in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49533,40 +54912,40 @@ 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 libfvalue_data_handle_get_value_entry (); int -main () +main (void) { return libfvalue_data_handle_get_value_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry=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_fvalue_libfvalue_data_handle_get_value_entry" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_get_value_entry" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_set_value_entry in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_set_value_entry in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_set_value_entry in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_set_value_entry in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49575,40 +54954,40 @@ 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 libfvalue_data_handle_set_value_entry (); int -main () +main (void) { return libfvalue_data_handle_set_value_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry=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_fvalue_libfvalue_data_handle_set_value_entry" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_set_value_entry" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_append_value_entry in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_data_handle_append_value_entry in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_data_handle_append_value_entry in -lfvalue" >&5 +printf %s "checking for libfvalue_data_handle_append_value_entry in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49617,41 +54996,41 @@ 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 libfvalue_data_handle_append_value_entry (); int -main () +main (void) { return libfvalue_data_handle_append_value_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry=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_fvalue_libfvalue_data_handle_append_value_entry" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_data_handle_append_value_entry" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_string_size_from_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_string_size_from_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_string_size_from_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_string_size_from_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_string_size_from_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_string_size_from_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49660,41 +55039,41 @@ 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 libfvalue_string_size_from_integer (); int -main () +main (void) { return libfvalue_string_size_from_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_string_size_from_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_string_size_from_integer=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_fvalue_libfvalue_string_size_from_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_string_size_from_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_string_size_from_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_string_size_from_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_string_size_from_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_string_size_from_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_copy_from_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf8_string_copy_from_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_copy_from_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf8_string_copy_from_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49703,40 +55082,40 @@ 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 libfvalue_utf8_string_copy_from_integer (); int -main () +main (void) { return libfvalue_utf8_string_copy_from_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer=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_fvalue_libfvalue_utf8_string_copy_from_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_copy_from_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_with_index_copy_from_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf8_string_with_index_copy_from_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_with_index_copy_from_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf8_string_with_index_copy_from_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49745,40 +55124,40 @@ 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 libfvalue_utf8_string_with_index_copy_from_integer (); int -main () +main (void) { return libfvalue_utf8_string_with_index_copy_from_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer=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_fvalue_libfvalue_utf8_string_with_index_copy_from_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_from_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_copy_to_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf8_string_copy_to_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_copy_to_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf8_string_copy_to_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49787,40 +55166,40 @@ 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 libfvalue_utf8_string_copy_to_integer (); int -main () +main (void) { return libfvalue_utf8_string_copy_to_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer=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_fvalue_libfvalue_utf8_string_copy_to_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_copy_to_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_with_index_copy_to_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf8_string_with_index_copy_to_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_with_index_copy_to_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf8_string_with_index_copy_to_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49829,41 +55208,41 @@ 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 libfvalue_utf8_string_with_index_copy_to_integer (); int -main () +main (void) { return libfvalue_utf8_string_with_index_copy_to_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer=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_fvalue_libfvalue_utf8_string_with_index_copy_to_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_with_index_copy_to_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_copy_from_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf16_string_copy_from_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_copy_from_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf16_string_copy_from_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49872,40 +55251,40 @@ 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 libfvalue_utf16_string_copy_from_integer (); int -main () +main (void) { return libfvalue_utf16_string_copy_from_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer=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_fvalue_libfvalue_utf16_string_copy_from_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_copy_from_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_with_index_copy_from_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf16_string_with_index_copy_from_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_with_index_copy_from_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf16_string_with_index_copy_from_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49914,40 +55293,40 @@ 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 libfvalue_utf16_string_with_index_copy_from_integer (); int -main () +main (void) { return libfvalue_utf16_string_with_index_copy_from_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer=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_fvalue_libfvalue_utf16_string_with_index_copy_from_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_from_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_copy_to_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf16_string_copy_to_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_copy_to_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf16_string_copy_to_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49956,40 +55335,40 @@ 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 libfvalue_utf16_string_copy_to_integer (); int -main () +main (void) { return libfvalue_utf16_string_copy_to_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer=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_fvalue_libfvalue_utf16_string_copy_to_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_copy_to_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_with_index_copy_to_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf16_string_with_index_copy_to_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_with_index_copy_to_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf16_string_with_index_copy_to_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -49998,41 +55377,41 @@ 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 libfvalue_utf16_string_with_index_copy_to_integer (); int -main () +main (void) { return libfvalue_utf16_string_with_index_copy_to_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer=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_fvalue_libfvalue_utf16_string_with_index_copy_to_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_with_index_copy_to_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf32_string_copy_from_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf32_string_copy_from_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf32_string_copy_from_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf32_string_copy_from_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50041,40 +55420,40 @@ 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 libfvalue_utf32_string_copy_from_integer (); int -main () +main (void) { return libfvalue_utf32_string_copy_from_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer=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_fvalue_libfvalue_utf32_string_copy_from_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf32_string_copy_from_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf32_string_with_index_copy_from_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf32_string_with_index_copy_from_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf32_string_with_index_copy_from_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf32_string_with_index_copy_from_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50083,40 +55462,40 @@ 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 libfvalue_utf32_string_with_index_copy_from_integer (); int -main () +main (void) { return libfvalue_utf32_string_with_index_copy_from_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer=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_fvalue_libfvalue_utf32_string_with_index_copy_from_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_from_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf32_string_copy_to_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf32_string_copy_to_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf32_string_copy_to_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf32_string_copy_to_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50125,40 +55504,40 @@ 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 libfvalue_utf32_string_copy_to_integer (); int -main () +main (void) { return libfvalue_utf32_string_copy_to_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer=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_fvalue_libfvalue_utf32_string_copy_to_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf32_string_copy_to_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf32_string_with_index_copy_to_integer in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf32_string_with_index_copy_to_integer in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf32_string_with_index_copy_to_integer in -lfvalue" >&5 +printf %s "checking for libfvalue_utf32_string_with_index_copy_to_integer in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50167,41 +55546,41 @@ 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 libfvalue_utf32_string_with_index_copy_to_integer (); int -main () +main (void) { return libfvalue_utf32_string_with_index_copy_to_integer (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer=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_fvalue_libfvalue_utf32_string_with_index_copy_to_integer" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf32_string_with_index_copy_to_integer" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_split in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf8_string_split in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf8_string_split+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf8_string_split in -lfvalue" >&5 +printf %s "checking for libfvalue_utf8_string_split in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf8_string_split+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50210,41 +55589,41 @@ 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 libfvalue_utf8_string_split (); int -main () +main (void) { return libfvalue_utf8_string_split (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf8_string_split=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf8_string_split=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_fvalue_libfvalue_utf8_string_split" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf8_string_split" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_split" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf8_string_split" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf8_string_split" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf8_string_split" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_split in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_utf16_string_split in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_utf16_string_split+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_utf16_string_split in -lfvalue" >&5 +printf %s "checking for libfvalue_utf16_string_split in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_utf16_string_split+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50253,41 +55632,41 @@ 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 libfvalue_utf16_string_split (); int -main () +main (void) { return libfvalue_utf16_string_split (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_utf16_string_split=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_utf16_string_split=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_fvalue_libfvalue_utf16_string_split" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_utf16_string_split" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_split" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_utf16_string_split" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_utf16_string_split" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_utf16_string_split" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf8_string_free in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_split_utf8_string_free in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_split_utf8_string_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf8_string_free in -lfvalue" >&5 +printf %s "checking for libfvalue_split_utf8_string_free in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_split_utf8_string_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50296,40 +55675,40 @@ 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 libfvalue_split_utf8_string_free (); int -main () +main (void) { return libfvalue_split_utf8_string_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_split_utf8_string_free=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_split_utf8_string_free=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_fvalue_libfvalue_split_utf8_string_free" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_split_utf8_string_free" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_split_utf8_string_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_split_utf8_string_free" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_split_utf8_string_free" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_split_utf8_string_free" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf8_string_get_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_split_utf8_string_get_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf8_string_get_string in -lfvalue" >&5 +printf %s "checking for libfvalue_split_utf8_string_get_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50338,40 +55717,40 @@ 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 libfvalue_split_utf8_string_get_string (); int -main () +main (void) { return libfvalue_split_utf8_string_get_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string=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_fvalue_libfvalue_split_utf8_string_get_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf8_string_get_number_of_segments in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_split_utf8_string_get_number_of_segments in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf8_string_get_number_of_segments in -lfvalue" >&5 +printf %s "checking for libfvalue_split_utf8_string_get_number_of_segments in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50380,40 +55759,40 @@ 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 libfvalue_split_utf8_string_get_number_of_segments (); int -main () +main (void) { return libfvalue_split_utf8_string_get_number_of_segments (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments=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_fvalue_libfvalue_split_utf8_string_get_number_of_segments" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_number_of_segments" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf8_string_get_segment_by_index in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_split_utf8_string_get_segment_by_index in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf8_string_get_segment_by_index in -lfvalue" >&5 +printf %s "checking for libfvalue_split_utf8_string_get_segment_by_index in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50422,41 +55801,41 @@ 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 libfvalue_split_utf8_string_get_segment_by_index (); int -main () +main (void) { return libfvalue_split_utf8_string_get_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index=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_fvalue_libfvalue_split_utf8_string_get_segment_by_index" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_split_utf8_string_get_segment_by_index" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf16_string_free in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_split_utf16_string_free in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_split_utf16_string_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf16_string_free in -lfvalue" >&5 +printf %s "checking for libfvalue_split_utf16_string_free in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_split_utf16_string_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50465,40 +55844,40 @@ 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 libfvalue_split_utf16_string_free (); int -main () +main (void) { return libfvalue_split_utf16_string_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_split_utf16_string_free=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_split_utf16_string_free=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_fvalue_libfvalue_split_utf16_string_free" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_split_utf16_string_free" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_split_utf16_string_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_split_utf16_string_free" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_split_utf16_string_free" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_split_utf16_string_free" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf16_string_get_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_split_utf16_string_get_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf16_string_get_string in -lfvalue" >&5 +printf %s "checking for libfvalue_split_utf16_string_get_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50507,40 +55886,40 @@ 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 libfvalue_split_utf16_string_get_string (); int -main () +main (void) { return libfvalue_split_utf16_string_get_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string=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_fvalue_libfvalue_split_utf16_string_get_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf16_string_get_number_of_segments in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_split_utf16_string_get_number_of_segments in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf16_string_get_number_of_segments in -lfvalue" >&5 +printf %s "checking for libfvalue_split_utf16_string_get_number_of_segments in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50549,40 +55928,40 @@ 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 libfvalue_split_utf16_string_get_number_of_segments (); int -main () +main (void) { return libfvalue_split_utf16_string_get_number_of_segments (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments=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_fvalue_libfvalue_split_utf16_string_get_number_of_segments" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_number_of_segments" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf16_string_get_segment_by_index in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_split_utf16_string_get_segment_by_index in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_split_utf16_string_get_segment_by_index in -lfvalue" >&5 +printf %s "checking for libfvalue_split_utf16_string_get_segment_by_index in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50591,41 +55970,41 @@ 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 libfvalue_split_utf16_string_get_segment_by_index (); int -main () +main (void) { return libfvalue_split_utf16_string_get_segment_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index=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_fvalue_libfvalue_split_utf16_string_get_segment_by_index" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_split_utf16_string_get_segment_by_index" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_initialize in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_initialize in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_initialize in -lfvalue" >&5 +printf %s "checking for libfvalue_table_initialize in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50634,40 +56013,40 @@ 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 libfvalue_table_initialize (); int -main () +main (void) { return libfvalue_table_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_initialize=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_initialize=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_fvalue_libfvalue_table_initialize" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_initialize" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_initialize" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_initialize" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_free in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_free in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_free in -lfvalue" >&5 +printf %s "checking for libfvalue_table_free in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50676,40 +56055,40 @@ 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 libfvalue_table_free (); int -main () +main (void) { return libfvalue_table_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_free=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_free=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_fvalue_libfvalue_table_free" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_free" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_free" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_free" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_free" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_resize in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_resize in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_resize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_resize in -lfvalue" >&5 +printf %s "checking for libfvalue_table_resize in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_resize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50718,40 +56097,40 @@ 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 libfvalue_table_resize (); int -main () +main (void) { return libfvalue_table_resize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_resize=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_resize=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_fvalue_libfvalue_table_resize" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_resize" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_resize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_resize" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_resize" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_resize" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_clone in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_clone in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_clone in -lfvalue" >&5 +printf %s "checking for libfvalue_table_clone in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50760,41 +56139,41 @@ 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 libfvalue_table_clone (); int -main () +main (void) { return libfvalue_table_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_clone=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_clone=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_fvalue_libfvalue_table_clone" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_clone" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_clone" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_clone" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_clone" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_get_number_of_values in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_get_number_of_values in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_get_number_of_values+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_get_number_of_values in -lfvalue" >&5 +printf %s "checking for libfvalue_table_get_number_of_values in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_get_number_of_values+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50803,41 +56182,41 @@ 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 libfvalue_table_get_number_of_values (); int -main () +main (void) { return libfvalue_table_get_number_of_values (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_get_number_of_values=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_get_number_of_values=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_fvalue_libfvalue_table_get_number_of_values" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_get_number_of_values" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_get_number_of_values" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_get_number_of_values" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_get_number_of_values" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_get_number_of_values" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_get_index_by_identifier in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_get_index_by_identifier in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_get_index_by_identifier in -lfvalue" >&5 +printf %s "checking for libfvalue_table_get_index_by_identifier in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50846,41 +56225,41 @@ 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 libfvalue_table_get_index_by_identifier (); int -main () +main (void) { return libfvalue_table_get_index_by_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier=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_fvalue_libfvalue_table_get_index_by_identifier" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_get_index_by_identifier" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_get_value_by_index in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_get_value_by_index in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_get_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_get_value_by_index in -lfvalue" >&5 +printf %s "checking for libfvalue_table_get_value_by_index in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_get_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50889,40 +56268,40 @@ 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 libfvalue_table_get_value_by_index (); int -main () +main (void) { return libfvalue_table_get_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_get_value_by_index=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_get_value_by_index=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_fvalue_libfvalue_table_get_value_by_index" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_get_value_by_index" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_get_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_get_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_get_value_by_index" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_get_value_by_index" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_get_value_by_identifier in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_get_value_by_identifier in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_get_value_by_identifier in -lfvalue" >&5 +printf %s "checking for libfvalue_table_get_value_by_identifier in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50931,40 +56310,40 @@ 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 libfvalue_table_get_value_by_identifier (); int -main () +main (void) { return libfvalue_table_get_value_by_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier=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_fvalue_libfvalue_table_get_value_by_identifier" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_get_value_by_identifier" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_set_value_by_index in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_set_value_by_index in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_set_value_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_set_value_by_index in -lfvalue" >&5 +printf %s "checking for libfvalue_table_set_value_by_index in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_set_value_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -50973,40 +56352,40 @@ 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 libfvalue_table_set_value_by_index (); int -main () +main (void) { return libfvalue_table_set_value_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_set_value_by_index=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_set_value_by_index=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_fvalue_libfvalue_table_set_value_by_index" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_set_value_by_index" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_set_value_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_set_value_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_set_value_by_index" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_set_value_by_index" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_set_value in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_set_value in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_set_value+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_set_value in -lfvalue" >&5 +printf %s "checking for libfvalue_table_set_value in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_set_value+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51015,41 +56394,41 @@ 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 libfvalue_table_set_value (); int -main () +main (void) { return libfvalue_table_set_value (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_set_value=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_set_value=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_fvalue_libfvalue_table_set_value" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_set_value" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_set_value" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_set_value" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_set_value" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_set_value" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_copy_from_utf8_xml_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_table_copy_from_utf8_xml_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_table_copy_from_utf8_xml_string in -lfvalue" >&5 +printf %s "checking for libfvalue_table_copy_from_utf8_xml_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51058,41 +56437,41 @@ 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 libfvalue_table_copy_from_utf8_xml_string (); int -main () +main (void) { return libfvalue_table_copy_from_utf8_xml_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string=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_fvalue_libfvalue_table_copy_from_utf8_xml_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_table_copy_from_utf8_xml_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_initialize in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_initialize in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_initialize in -lfvalue" >&5 +printf %s "checking for libfvalue_value_initialize in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51101,40 +56480,40 @@ 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 libfvalue_value_initialize (); int -main () +main (void) { return libfvalue_value_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_initialize=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_initialize=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_fvalue_libfvalue_value_initialize" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_initialize" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_initialize" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_initialize" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_free in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_free in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_free in -lfvalue" >&5 +printf %s "checking for libfvalue_value_free in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51143,40 +56522,40 @@ 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 libfvalue_value_free (); int -main () +main (void) { return libfvalue_value_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_free=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_free=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_fvalue_libfvalue_value_free" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_free" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_free" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_free" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_free" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_clone in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_clone in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_clone+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_clone in -lfvalue" >&5 +printf %s "checking for libfvalue_value_clone in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_clone+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51185,40 +56564,40 @@ 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 libfvalue_value_clone (); int -main () +main (void) { return libfvalue_value_clone (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_clone=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_clone=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_fvalue_libfvalue_value_clone" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_clone" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_clone" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_clone" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_clone" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_clone" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_clear in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_clear in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_clear+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_clear in -lfvalue" >&5 +printf %s "checking for libfvalue_value_clear in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_clear+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51227,41 +56606,41 @@ 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 libfvalue_value_clear (); int -main () +main (void) { return libfvalue_value_clear (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_clear=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_clear=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_fvalue_libfvalue_value_clear" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_clear" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_clear" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_clear" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_clear" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_clear" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_type in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_type in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_type in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_type in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51270,41 +56649,41 @@ 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 libfvalue_value_get_type (); int -main () +main (void) { return libfvalue_value_get_type (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_type=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_type=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_fvalue_libfvalue_value_get_type" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_type" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_type" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_type" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_type" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_type" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_identifier in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_identifier in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_identifier in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_identifier in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51313,40 +56692,40 @@ 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 libfvalue_value_get_identifier (); int -main () +main (void) { return libfvalue_value_get_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_identifier=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_identifier=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_fvalue_libfvalue_value_get_identifier" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_identifier" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_identifier" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_identifier" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_set_identifier in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_set_identifier in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_set_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_set_identifier in -lfvalue" >&5 +printf %s "checking for libfvalue_value_set_identifier in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_set_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51355,41 +56734,41 @@ 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 libfvalue_value_set_identifier (); int -main () +main (void) { return libfvalue_value_set_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_set_identifier=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_set_identifier=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_fvalue_libfvalue_value_set_identifier" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_set_identifier" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_set_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_set_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_set_identifier" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_set_identifier" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_data_handle in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_data_handle in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_data_handle+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_data_handle in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_data_handle in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_data_handle+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51398,40 +56777,40 @@ 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 libfvalue_value_get_data_handle (); int -main () +main (void) { return libfvalue_value_get_data_handle (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_data_handle=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_data_handle=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_fvalue_libfvalue_value_get_data_handle" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_data_handle" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_data_handle" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_data_handle" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_data_handle" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_data_handle" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_has_data in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_has_data in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_has_data+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_has_data in -lfvalue" >&5 +printf %s "checking for libfvalue_value_has_data in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_has_data+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51440,40 +56819,40 @@ 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 libfvalue_value_has_data (); int -main () +main (void) { return libfvalue_value_has_data (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_has_data=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_has_data=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_fvalue_libfvalue_value_has_data" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_has_data" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_has_data" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_has_data" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_has_data" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_has_data" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_data_size in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_data_size in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_data_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_data_size in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_data_size in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_data_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51482,40 +56861,40 @@ 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 libfvalue_value_get_data_size (); int -main () +main (void) { return libfvalue_value_get_data_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_data_size=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_data_size=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_fvalue_libfvalue_value_get_data_size" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_data_size" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_data_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_data_size" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_data_size" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_data_size" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_data in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_data in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_data+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_data in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_data in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_data+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51524,40 +56903,40 @@ 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 libfvalue_value_get_data (); int -main () +main (void) { return libfvalue_value_get_data (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_data=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_data=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_fvalue_libfvalue_value_get_data" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_data" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_data" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_data" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_data" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_data" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_set_data in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_set_data in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_set_data+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_set_data in -lfvalue" >&5 +printf %s "checking for libfvalue_value_set_data in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_set_data+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51566,40 +56945,40 @@ 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 libfvalue_value_set_data (); int -main () +main (void) { return libfvalue_value_set_data (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_set_data=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_set_data=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_fvalue_libfvalue_value_set_data" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_set_data" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_set_data" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_set_data" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_set_data" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_set_data" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_data in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_data in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_data+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_data in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_data in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_data+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51608,41 +56987,41 @@ 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 libfvalue_value_copy_data (); int -main () +main (void) { return libfvalue_value_copy_data (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_data=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_data=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_fvalue_libfvalue_value_copy_data" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_data" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_data" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_data" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_data" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_data" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_format_flags in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_format_flags in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_format_flags+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_format_flags in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_format_flags in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_format_flags+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51651,40 +57030,40 @@ 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 libfvalue_value_get_format_flags (); int -main () +main (void) { return libfvalue_value_get_format_flags (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_format_flags=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_format_flags=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_fvalue_libfvalue_value_get_format_flags" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_format_flags" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_format_flags" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_format_flags" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_format_flags" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_format_flags" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_set_format_flags in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_set_format_flags in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_set_format_flags+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_set_format_flags in -lfvalue" >&5 +printf %s "checking for libfvalue_value_set_format_flags in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_set_format_flags+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51693,41 +57072,41 @@ 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 libfvalue_value_set_format_flags (); int -main () +main (void) { return libfvalue_value_set_format_flags (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_set_format_flags=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_set_format_flags=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_fvalue_libfvalue_value_set_format_flags" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_set_format_flags" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_set_format_flags" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_set_format_flags" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_set_format_flags" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_set_format_flags" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_number_of_value_entries in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_number_of_value_entries in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_number_of_value_entries in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_number_of_value_entries in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51736,40 +57115,40 @@ 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 libfvalue_value_get_number_of_value_entries (); int -main () +main (void) { return libfvalue_value_get_number_of_value_entries (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries=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_fvalue_libfvalue_value_get_number_of_value_entries" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_number_of_value_entries" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_value_entry in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_value_entry in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_value_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_value_entry in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_value_entry in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_value_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51778,40 +57157,40 @@ 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 libfvalue_value_get_value_entry (); int -main () +main (void) { return libfvalue_value_get_value_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_value_entry=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_value_entry=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_fvalue_libfvalue_value_get_value_entry" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_value_entry" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_value_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_value_entry" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_value_entry" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_value_entry" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_set_value_entry in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_set_value_entry in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_set_value_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_set_value_entry in -lfvalue" >&5 +printf %s "checking for libfvalue_value_set_value_entry in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_set_value_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51820,40 +57199,40 @@ 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 libfvalue_value_set_value_entry (); int -main () +main (void) { return libfvalue_value_set_value_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_set_value_entry=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_set_value_entry=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_fvalue_libfvalue_value_set_value_entry" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_set_value_entry" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_set_value_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_set_value_entry" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_set_value_entry" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_set_value_entry" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_append_value_entry in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_append_value_entry in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_append_value_entry+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_append_value_entry in -lfvalue" >&5 +printf %s "checking for libfvalue_value_append_value_entry in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_append_value_entry+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51862,41 +57241,41 @@ 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 libfvalue_value_append_value_entry (); int -main () +main (void) { return libfvalue_value_append_value_entry (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_append_value_entry=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_append_value_entry=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_fvalue_libfvalue_value_append_value_entry" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_append_value_entry" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_append_value_entry" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_append_value_entry" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_append_value_entry" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_append_value_entry" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_boolean in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_boolean in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_boolean in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_boolean in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51905,40 +57284,40 @@ 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 libfvalue_value_copy_from_boolean (); int -main () +main (void) { return libfvalue_value_copy_from_boolean (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean=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_fvalue_libfvalue_value_copy_from_boolean" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_boolean" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_boolean in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_boolean in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_boolean in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_boolean in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51947,41 +57326,41 @@ 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 libfvalue_value_copy_to_boolean (); int -main () +main (void) { return libfvalue_value_copy_to_boolean (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean=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_fvalue_libfvalue_value_copy_to_boolean" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_boolean" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_8bit in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_8bit in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_8bit in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_8bit in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -51990,40 +57369,40 @@ 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 libfvalue_value_copy_from_8bit (); int -main () +main (void) { return libfvalue_value_copy_from_8bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit=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_fvalue_libfvalue_value_copy_from_8bit" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_8bit" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_8bit in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_8bit in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_8bit in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_8bit in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52032,41 +57411,41 @@ 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 libfvalue_value_copy_to_8bit (); int -main () +main (void) { return libfvalue_value_copy_to_8bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit=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_fvalue_libfvalue_value_copy_to_8bit" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_8bit" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_16bit in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_16bit in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_16bit in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_16bit in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52075,40 +57454,40 @@ 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 libfvalue_value_copy_from_16bit (); int -main () +main (void) { return libfvalue_value_copy_from_16bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit=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_fvalue_libfvalue_value_copy_from_16bit" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_16bit" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_16bit in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_16bit in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_16bit in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_16bit in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52117,41 +57496,41 @@ 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 libfvalue_value_copy_to_16bit (); int -main () +main (void) { return libfvalue_value_copy_to_16bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit=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_fvalue_libfvalue_value_copy_to_16bit" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_16bit" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_32bit in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_32bit in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_32bit in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_32bit in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52160,40 +57539,40 @@ 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 libfvalue_value_copy_from_32bit (); int -main () +main (void) { return libfvalue_value_copy_from_32bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit=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_fvalue_libfvalue_value_copy_from_32bit" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_32bit" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_32bit in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_32bit in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_32bit in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_32bit in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52202,41 +57581,41 @@ 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 libfvalue_value_copy_to_32bit (); int -main () +main (void) { return libfvalue_value_copy_to_32bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit=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_fvalue_libfvalue_value_copy_to_32bit" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_32bit" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_64bit in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_64bit in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_64bit in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_64bit in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52245,40 +57624,40 @@ 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 libfvalue_value_copy_from_64bit (); int -main () +main (void) { return libfvalue_value_copy_from_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit=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_fvalue_libfvalue_value_copy_from_64bit" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_64bit" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_64bit in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_64bit in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_64bit in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_64bit in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52287,41 +57666,41 @@ 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 libfvalue_value_copy_to_64bit (); int -main () +main (void) { return libfvalue_value_copy_to_64bit (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit=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_fvalue_libfvalue_value_copy_to_64bit" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_64bit" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_float in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_float in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_float+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_float in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_float in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_float+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52330,40 +57709,40 @@ 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 libfvalue_value_copy_from_float (); int -main () +main (void) { return libfvalue_value_copy_from_float (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_float=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_float=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_fvalue_libfvalue_value_copy_from_float" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_float" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_float" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_float" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_float" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_float" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_float in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_float in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_float+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_float in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_float in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_float+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52372,41 +57751,41 @@ 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 libfvalue_value_copy_to_float (); int -main () +main (void) { return libfvalue_value_copy_to_float (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_float=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_float=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_fvalue_libfvalue_value_copy_to_float" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_float" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_float" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_float" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_float" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_float" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_double in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_double in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_double+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_double in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_double in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_double+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52415,40 +57794,40 @@ 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 libfvalue_value_copy_from_double (); int -main () +main (void) { return libfvalue_value_copy_from_double (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_double=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_double=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_fvalue_libfvalue_value_copy_from_double" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_double" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_double" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_double" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_double" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_double" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_double in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_double in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_double+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_double in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_double in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_double+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52457,41 +57836,41 @@ 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 libfvalue_value_copy_to_double (); int -main () +main (void) { return libfvalue_value_copy_to_double (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_double=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_double=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_fvalue_libfvalue_value_copy_to_double" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_double" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_double" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_double" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_double" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_double" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_utf8_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_utf8_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_utf8_string in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_utf8_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52500,40 +57879,40 @@ 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 libfvalue_value_copy_from_utf8_string (); int -main () +main (void) { return libfvalue_value_copy_from_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string=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_fvalue_libfvalue_value_copy_from_utf8_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf8_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_utf8_string_size in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_utf8_string_size in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_utf8_string_size in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_utf8_string_size in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52542,40 +57921,40 @@ 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 libfvalue_value_get_utf8_string_size (); int -main () +main (void) { return libfvalue_value_get_utf8_string_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size=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_fvalue_libfvalue_value_get_utf8_string_size" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_utf8_string_size" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf8_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_utf8_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf8_string in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_utf8_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52584,40 +57963,40 @@ 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 libfvalue_value_copy_to_utf8_string (); int -main () +main (void) { return libfvalue_value_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string=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_fvalue_libfvalue_value_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf8_string_with_index in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_utf8_string_with_index in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf8_string_with_index in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_utf8_string_with_index in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52626,41 +58005,41 @@ 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 libfvalue_value_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfvalue_value_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index=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_fvalue_libfvalue_value_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_utf16_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_utf16_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_utf16_string in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_utf16_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52669,40 +58048,40 @@ 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 libfvalue_value_copy_from_utf16_string (); int -main () +main (void) { return libfvalue_value_copy_from_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string=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_fvalue_libfvalue_value_copy_from_utf16_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf16_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_utf16_string_size in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_utf16_string_size in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_utf16_string_size in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_utf16_string_size in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52711,40 +58090,40 @@ 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 libfvalue_value_get_utf16_string_size (); int -main () +main (void) { return libfvalue_value_get_utf16_string_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size=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_fvalue_libfvalue_value_get_utf16_string_size" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_utf16_string_size" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf16_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_utf16_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf16_string in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_utf16_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52753,40 +58132,40 @@ 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 libfvalue_value_copy_to_utf16_string (); int -main () +main (void) { return libfvalue_value_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string=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_fvalue_libfvalue_value_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf16_string_with_index in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_utf16_string_with_index in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf16_string_with_index in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_utf16_string_with_index in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52795,41 +58174,41 @@ 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 libfvalue_value_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfvalue_value_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index=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_fvalue_libfvalue_value_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_utf32_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_from_utf32_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_from_utf32_string in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_from_utf32_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52838,40 +58217,40 @@ 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 libfvalue_value_copy_from_utf32_string (); int -main () +main (void) { return libfvalue_value_copy_from_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string=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_fvalue_libfvalue_value_copy_from_utf32_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_from_utf32_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_utf32_string_size in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_get_utf32_string_size in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_get_utf32_string_size in -lfvalue" >&5 +printf %s "checking for libfvalue_value_get_utf32_string_size in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52880,40 +58259,40 @@ 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 libfvalue_value_get_utf32_string_size (); int -main () +main (void) { return libfvalue_value_get_utf32_string_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size=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_fvalue_libfvalue_value_get_utf32_string_size" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_get_utf32_string_size" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf32_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_utf32_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf32_string in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_utf32_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52922,40 +58301,40 @@ 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 libfvalue_value_copy_to_utf32_string (); int -main () +main (void) { return libfvalue_value_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string=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_fvalue_libfvalue_value_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf32_string_with_index in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_copy_to_utf32_string_with_index in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_copy_to_utf32_string_with_index in -lfvalue" >&5 +printf %s "checking for libfvalue_value_copy_to_utf32_string_with_index in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -52964,41 +58343,41 @@ 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 libfvalue_value_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfvalue_value_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index=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_fvalue_libfvalue_value_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_read_from_file_stream in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_read_from_file_stream in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_read_from_file_stream in -lfvalue" >&5 +printf %s "checking for libfvalue_value_read_from_file_stream in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53007,40 +58386,40 @@ 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 libfvalue_value_read_from_file_stream (); int -main () +main (void) { return libfvalue_value_read_from_file_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream=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_fvalue_libfvalue_value_read_from_file_stream" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_read_from_file_stream" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_write_to_file_stream in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_write_to_file_stream in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_write_to_file_stream in -lfvalue" >&5 +printf %s "checking for libfvalue_value_write_to_file_stream in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53049,41 +58428,41 @@ 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 libfvalue_value_write_to_file_stream (); int -main () +main (void) { return libfvalue_value_write_to_file_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream=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_fvalue_libfvalue_value_write_to_file_stream" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_write_to_file_stream" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_initialize in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_type_initialize in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_type_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_initialize in -lfvalue" >&5 +printf %s "checking for libfvalue_value_type_initialize in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_type_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53092,40 +58471,40 @@ 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 libfvalue_value_type_initialize (); int -main () +main (void) { return libfvalue_value_type_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_type_initialize=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_type_initialize=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_fvalue_libfvalue_value_type_initialize" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_type_initialize" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_type_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_type_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_type_initialize" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_type_initialize" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_initialize_with_data_handle in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_type_initialize_with_data_handle in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_initialize_with_data_handle in -lfvalue" >&5 +printf %s "checking for libfvalue_value_type_initialize_with_data_handle in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53134,41 +58513,41 @@ 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 libfvalue_value_type_initialize_with_data_handle (); int -main () +main (void) { return libfvalue_value_type_initialize_with_data_handle (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle=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_fvalue_libfvalue_value_type_initialize_with_data_handle" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_type_initialize_with_data_handle" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_set_data_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_type_set_data_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_type_set_data_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_set_data_string in -lfvalue" >&5 +printf %s "checking for libfvalue_value_type_set_data_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_type_set_data_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53177,40 +58556,40 @@ 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 libfvalue_value_type_set_data_string (); int -main () +main (void) { return libfvalue_value_type_set_data_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_type_set_data_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_type_set_data_string=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_fvalue_libfvalue_value_type_set_data_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_type_set_data_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_type_set_data_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_type_set_data_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_type_set_data_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_type_set_data_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_append_data_string in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_type_append_data_string in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_type_append_data_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_append_data_string in -lfvalue" >&5 +printf %s "checking for libfvalue_value_type_append_data_string in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_type_append_data_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53219,41 +58598,41 @@ 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 libfvalue_value_type_append_data_string (); int -main () +main (void) { return libfvalue_value_type_append_data_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_type_append_data_string=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_type_append_data_string=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_fvalue_libfvalue_value_type_append_data_string" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_type_append_data_string" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_type_append_data_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_type_append_data_string" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_type_append_data_string" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_type_append_data_string" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_set_data_strings_array in -lfvalue" >&5 -$as_echo_n "checking for libfvalue_value_type_set_data_strings_array in -lfvalue... " >&6; } -if ${ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfvalue_value_type_set_data_strings_array in -lfvalue" >&5 +printf %s "checking for libfvalue_value_type_set_data_strings_array in -lfvalue... " >&6; } +if test ${ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfvalue $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53262,32 +58641,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 libfvalue_value_type_set_data_strings_array (); int -main () +main (void) { return libfvalue_value_type_set_data_strings_array (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array=yes -else +else $as_nop ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array=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_fvalue_libfvalue_value_type_set_data_strings_array" >&5 -$as_echo "$ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array" >&6; } -if test "x$ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array" >&5 +printf "%s\n" "$ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array" >&6; } +if test "x$ac_cv_lib_fvalue_libfvalue_value_type_set_data_strings_array" = xyes +then : ac_cv_libfvalue_dummy=yes -else +else $as_nop ac_cv_libfvalue=no fi @@ -53296,9 +58674,10 @@ fi fi fi - if test "x$ac_cv_with_libfvalue" != x && test "x$ac_cv_with_libfvalue" != xauto-detect && test "x$ac_cv_libfvalue" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libfvalue" != x && test "x$ac_cv_with_libfvalue" != xauto-detect && test "x$ac_cv_libfvalue" != xyes +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 1 "unable to find supported libfvalue in directory: $ac_cv_with_libfvalue See \`config.log' for more details" "$LINENO" 5; } @@ -53306,24 +58685,27 @@ fi fi - if test "x$ac_cv_libfvalue" = xyes; then : + if test "x$ac_cv_libfvalue" = xyes +then : -$as_echo "#define HAVE_LIBFVALUE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBFVALUE 1" >>confdefs.h fi - if test "x$ac_cv_libfvalue" = xyes; then : + if test "x$ac_cv_libfvalue" = xyes +then : HAVE_LIBFVALUE=1 -else +else $as_nop HAVE_LIBFVALUE=0 fi - if test "x$ac_cv_libfvalue" != xyes; then : + if test "x$ac_cv_libfvalue" != xyes +then : ac_cv_libfvalue_CPPFLAGS="-I../libfvalue"; ac_cv_libfvalue_LIBADD="../libfvalue/libfvalue.la"; @@ -53332,7 +58714,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBFVALUE 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBFVALUE 1" >>confdefs.h HAVE_LOCAL_LIBFVALUE=1 @@ -53347,24 +58729,28 @@ else HAVE_LOCAL_LIBFVALUE_FALSE= fi - if test "x$ac_cv_libfvalue_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libfvalue_CPPFLAGS" != "x" +then : LIBFVALUE_CPPFLAGS=$ac_cv_libfvalue_CPPFLAGS fi - if test "x$ac_cv_libfvalue_LIBADD" != "x"; then : + if test "x$ac_cv_libfvalue_LIBADD" != "x" +then : LIBFVALUE_LIBADD=$ac_cv_libfvalue_LIBADD fi - if test "x$ac_cv_libfvalue" = xyes; then : + if test "x$ac_cv_libfvalue" = xyes +then : ax_libfvalue_pc_libs_private=-lfvalue fi - if test "x$ac_cv_libfvalue" = xyes; then : + if test "x$ac_cv_libfvalue" = xyes +then : ax_libfvalue_spec_requires=libfvalue ax_libfvalue_spec_build_requires=libfvalue-devel @@ -53376,53 +58762,59 @@ fi # Check whether --with-libfwnt was given. -if test "${with_libfwnt+set}" = set; then : +if test ${with_libfwnt+y} +then : withval=$with_libfwnt; ac_cv_with_libfwnt=$withval -else +else $as_nop ac_cv_with_libfwnt=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfwnt in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libfwnt in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libfwnt+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfwnt in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libfwnt in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libfwnt+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libfwnt=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfwnt" >&5 -$as_echo "$ac_cv_with_libfwnt" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfwnt" >&5 +printf "%s\n" "$ac_cv_with_libfwnt" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfwnt" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfwnt" = xno +then : ac_cv_libfwnt=no -else +else $as_nop ac_cv_libfwnt=check - if test "x$ac_cv_with_libfwnt" != x && test "x$ac_cv_with_libfwnt" != xauto-detect; then : - if test -d "$ac_cv_with_libfwnt"; then : + if test "x$ac_cv_with_libfwnt" != x && test "x$ac_cv_with_libfwnt" != xauto-detect +then : + if test -d "$ac_cv_with_libfwnt" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libfwnt}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfwnt}/lib" -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 1 "no such directory: $ac_cv_with_libfwnt See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt" >&5 -$as_echo_n "checking for libfwnt... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt >= 20191217" >&5 +printf %s "checking for libfwnt >= 20191217... " >&6; } if test -n "$libfwnt_CFLAGS"; then pkg_cv_libfwnt_CFLAGS="$libfwnt_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfwnt >= 20191217\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfwnt >= 20191217\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfwnt >= 20191217") 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_libfwnt_CFLAGS=`$PKG_CONFIG --cflags "libfwnt >= 20191217" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -53436,10 +58828,10 @@ if test -n "$libfwnt_LIBS"; then pkg_cv_libfwnt_LIBS="$libfwnt_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfwnt >= 20191217\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfwnt >= 20191217\""; } >&5 ($PKG_CONFIG --exists --print-errors "libfwnt >= 20191217") 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_libfwnt_LIBS=`$PKG_CONFIG --libs "libfwnt >= 20191217" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -53453,8 +58845,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 @@ -53462,58 +58854,57 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libfwnt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfwnt >= 20191217" 2>&1` + libfwnt_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfwnt >= 20191217" 2>&1` else - libfwnt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfwnt >= 20191217" 2>&1` + libfwnt_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfwnt >= 20191217" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libfwnt_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libfwnt_PKG_ERRORS" >&5 - ac_cv_libfwnt=check + ac_cv_libfwnt=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libfwnt=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libfwnt=check else - libfwnt_CFLAGS=$pkg_cv_libfwnt_CFLAGS - libfwnt_LIBS=$pkg_cv_libfwnt_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libfwnt=yes + libfwnt_CFLAGS=$pkg_cv_libfwnt_CFLAGS + libfwnt_LIBS=$pkg_cv_libfwnt_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libfwnt=yes fi fi - if test "x$ac_cv_libfwnt" = xyes; then : + if test "x$ac_cv_libfwnt" = xyes +then : ac_cv_libfwnt_CPPFLAGS="$pkg_cv_libfwnt_CFLAGS" ac_cv_libfwnt_LIBADD="$pkg_cv_libfwnt_LIBS" fi fi - if test "x$ac_cv_libfwnt" = xcheck; then : - for ac_header in libfwnt.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libfwnt.h" "ac_cv_header_libfwnt_h" "$ac_includes_default" -if test "x$ac_cv_header_libfwnt_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBFWNT_H 1 -_ACEOF + if test "x$ac_cv_libfwnt" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libfwnt.h" "ac_cv_header_libfwnt_h" "$ac_includes_default" +if test "x$ac_cv_header_libfwnt_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBFWNT_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libfwnt_h" = xno; then : + if test "x$ac_cv_header_libfwnt_h" = xno +then : ac_cv_libfwnt=no -else +else $as_nop ac_cv_libfwnt=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_get_version in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_get_version in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_get_version in -lfwnt" >&5 +printf %s "checking for libfwnt_get_version in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53522,41 +58913,41 @@ 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 libfwnt_get_version (); int -main () +main (void) { return libfwnt_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_get_version=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_get_version=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_fwnt_libfwnt_get_version" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_get_version" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_get_version" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_get_version" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_get_version" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_initialize in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_descriptor_initialize in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_initialize in -lfwnt" >&5 +printf %s "checking for libfwnt_security_descriptor_initialize in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53565,40 +58956,40 @@ 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 libfwnt_security_descriptor_initialize (); int -main () +main (void) { return libfwnt_security_descriptor_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize=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_fwnt_libfwnt_security_descriptor_initialize" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_initialize" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_free in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_descriptor_free in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_descriptor_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_free in -lfwnt" >&5 +printf %s "checking for libfwnt_security_descriptor_free in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_descriptor_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53607,41 +58998,41 @@ 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 libfwnt_security_descriptor_free (); int -main () +main (void) { return libfwnt_security_descriptor_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_descriptor_free=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_descriptor_free=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_fwnt_libfwnt_security_descriptor_free" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_descriptor_free" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_descriptor_free" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_descriptor_free" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_free" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_copy_from_byte_stream in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_descriptor_copy_from_byte_stream in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_copy_from_byte_stream in -lfwnt" >&5 +printf %s "checking for libfwnt_security_descriptor_copy_from_byte_stream in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53650,40 +59041,40 @@ 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 libfwnt_security_descriptor_copy_from_byte_stream (); int -main () +main (void) { return libfwnt_security_descriptor_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream=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_fwnt_libfwnt_security_descriptor_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_copy_from_byte_stream" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_get_owner in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_descriptor_get_owner in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_get_owner in -lfwnt" >&5 +printf %s "checking for libfwnt_security_descriptor_get_owner in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53692,40 +59083,40 @@ 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 libfwnt_security_descriptor_get_owner (); int -main () +main (void) { return libfwnt_security_descriptor_get_owner (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner=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_fwnt_libfwnt_security_descriptor_get_owner" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_owner" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_get_group in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_descriptor_get_group in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_get_group in -lfwnt" >&5 +printf %s "checking for libfwnt_security_descriptor_get_group in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53734,40 +59125,40 @@ 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 libfwnt_security_descriptor_get_group (); int -main () +main (void) { return libfwnt_security_descriptor_get_group (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group=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_fwnt_libfwnt_security_descriptor_get_group" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_group" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_get_discretionary_acl in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_descriptor_get_discretionary_acl in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_get_discretionary_acl in -lfwnt" >&5 +printf %s "checking for libfwnt_security_descriptor_get_discretionary_acl in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53776,40 +59167,40 @@ 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 libfwnt_security_descriptor_get_discretionary_acl (); int -main () +main (void) { return libfwnt_security_descriptor_get_discretionary_acl (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl=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_fwnt_libfwnt_security_descriptor_get_discretionary_acl" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_discretionary_acl" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_get_system_acl in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_descriptor_get_system_acl in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_descriptor_get_system_acl in -lfwnt" >&5 +printf %s "checking for libfwnt_security_descriptor_get_system_acl in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53818,41 +59209,41 @@ 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 libfwnt_security_descriptor_get_system_acl (); int -main () +main (void) { return libfwnt_security_descriptor_get_system_acl (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl=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_fwnt_libfwnt_security_descriptor_get_system_acl" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_descriptor_get_system_acl" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_initialize in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_initialize in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_initialize in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_initialize in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53861,40 +59252,40 @@ 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 libfwnt_security_identifier_initialize (); int -main () +main (void) { return libfwnt_security_identifier_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_initialize=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_initialize=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_fwnt_libfwnt_security_identifier_initialize" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_initialize" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_initialize" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_initialize" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_free in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_free in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_free in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_free in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53903,41 +59294,41 @@ 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 libfwnt_security_identifier_free (); int -main () +main (void) { return libfwnt_security_identifier_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_free=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_free=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_fwnt_libfwnt_security_identifier_free" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_free" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_free" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_free" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_free" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_from_byte_stream in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_copy_from_byte_stream in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_from_byte_stream in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_copy_from_byte_stream in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53946,40 +59337,40 @@ 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 libfwnt_security_identifier_copy_from_byte_stream (); int -main () +main (void) { return libfwnt_security_identifier_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream=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_fwnt_libfwnt_security_identifier_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_from_byte_stream" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_get_string_size in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_get_string_size in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_get_string_size in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_get_string_size in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -53988,40 +59379,40 @@ 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 libfwnt_security_identifier_get_string_size (); int -main () +main (void) { return libfwnt_security_identifier_get_string_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size=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_fwnt_libfwnt_security_identifier_get_string_size" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_get_string_size" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf8_string in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_copy_to_utf8_string in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf8_string in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_copy_to_utf8_string in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54030,40 +59421,40 @@ 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 libfwnt_security_identifier_copy_to_utf8_string (); int -main () +main (void) { return libfwnt_security_identifier_copy_to_utf8_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string=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_fwnt_libfwnt_security_identifier_copy_to_utf8_string" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf8_string_with_index in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_copy_to_utf8_string_with_index in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf8_string_with_index in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_copy_to_utf8_string_with_index in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54072,40 +59463,40 @@ 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 libfwnt_security_identifier_copy_to_utf8_string_with_index (); int -main () +main (void) { return libfwnt_security_identifier_copy_to_utf8_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index=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_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf8_string_with_index" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf16_string in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_copy_to_utf16_string in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf16_string in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_copy_to_utf16_string in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54114,40 +59505,40 @@ 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 libfwnt_security_identifier_copy_to_utf16_string (); int -main () +main (void) { return libfwnt_security_identifier_copy_to_utf16_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string=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_fwnt_libfwnt_security_identifier_copy_to_utf16_string" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf16_string_with_index in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_copy_to_utf16_string_with_index in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf16_string_with_index in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_copy_to_utf16_string_with_index in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54156,40 +59547,40 @@ 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 libfwnt_security_identifier_copy_to_utf16_string_with_index (); int -main () +main (void) { return libfwnt_security_identifier_copy_to_utf16_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index=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_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf16_string_with_index" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf32_string in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_copy_to_utf32_string in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf32_string in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_copy_to_utf32_string in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54198,40 +59589,40 @@ 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 libfwnt_security_identifier_copy_to_utf32_string (); int -main () +main (void) { return libfwnt_security_identifier_copy_to_utf32_string (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string=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_fwnt_libfwnt_security_identifier_copy_to_utf32_string" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf32_string_with_index in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_security_identifier_copy_to_utf32_string_with_index in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_security_identifier_copy_to_utf32_string_with_index in -lfwnt" >&5 +printf %s "checking for libfwnt_security_identifier_copy_to_utf32_string_with_index in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54240,41 +59631,41 @@ 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 libfwnt_security_identifier_copy_to_utf32_string_with_index (); int -main () +main (void) { return libfwnt_security_identifier_copy_to_utf32_string_with_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index=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_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_security_identifier_copy_to_utf32_string_with_index" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_list_free in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_access_control_list_free in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_access_control_list_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_list_free in -lfwnt" >&5 +printf %s "checking for libfwnt_access_control_list_free in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_access_control_list_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54283,41 +59674,41 @@ 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 libfwnt_access_control_list_free (); int -main () +main (void) { return libfwnt_access_control_list_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_access_control_list_free=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_access_control_list_free=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_fwnt_libfwnt_access_control_list_free" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_access_control_list_free" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_access_control_list_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_access_control_list_free" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_access_control_list_free" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_access_control_list_free" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_list_get_number_of_entries in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_access_control_list_get_number_of_entries in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_list_get_number_of_entries in -lfwnt" >&5 +printf %s "checking for libfwnt_access_control_list_get_number_of_entries in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54326,40 +59717,40 @@ 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 libfwnt_access_control_list_get_number_of_entries (); int -main () +main (void) { return libfwnt_access_control_list_get_number_of_entries (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries=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_fwnt_libfwnt_access_control_list_get_number_of_entries" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_access_control_list_get_number_of_entries" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_list_get_entry_by_index in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_access_control_list_get_entry_by_index in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_list_get_entry_by_index in -lfwnt" >&5 +printf %s "checking for libfwnt_access_control_list_get_entry_by_index in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54368,41 +59759,41 @@ 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 libfwnt_access_control_list_get_entry_by_index (); int -main () +main (void) { return libfwnt_access_control_list_get_entry_by_index (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index=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_fwnt_libfwnt_access_control_list_get_entry_by_index" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_access_control_list_get_entry_by_index" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_free in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_access_control_entry_free in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_access_control_entry_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_free in -lfwnt" >&5 +printf %s "checking for libfwnt_access_control_entry_free in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_access_control_entry_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54411,41 +59802,41 @@ 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 libfwnt_access_control_entry_free (); int -main () +main (void) { return libfwnt_access_control_entry_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_access_control_entry_free=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_access_control_entry_free=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_fwnt_libfwnt_access_control_entry_free" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_access_control_entry_free" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_access_control_entry_free" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_access_control_entry_free" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_free" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_get_type in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_access_control_entry_get_type in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_get_type in -lfwnt" >&5 +printf %s "checking for libfwnt_access_control_entry_get_type in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54454,40 +59845,40 @@ 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 libfwnt_access_control_entry_get_type (); int -main () +main (void) { return libfwnt_access_control_entry_get_type (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type=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_fwnt_libfwnt_access_control_entry_get_type" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_type" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_get_flags in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_access_control_entry_get_flags in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_get_flags in -lfwnt" >&5 +printf %s "checking for libfwnt_access_control_entry_get_flags in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54496,40 +59887,40 @@ 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 libfwnt_access_control_entry_get_flags (); int -main () +main (void) { return libfwnt_access_control_entry_get_flags (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags=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_fwnt_libfwnt_access_control_entry_get_flags" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_flags" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_get_access_mask in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_access_control_entry_get_access_mask in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_get_access_mask in -lfwnt" >&5 +printf %s "checking for libfwnt_access_control_entry_get_access_mask in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54538,40 +59929,40 @@ 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 libfwnt_access_control_entry_get_access_mask (); int -main () +main (void) { return libfwnt_access_control_entry_get_access_mask (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask=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_fwnt_libfwnt_access_control_entry_get_access_mask" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_access_mask" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_get_security_identifier in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_access_control_entry_get_security_identifier in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_access_control_entry_get_security_identifier in -lfwnt" >&5 +printf %s "checking for libfwnt_access_control_entry_get_security_identifier in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54580,41 +59971,41 @@ 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 libfwnt_access_control_entry_get_security_identifier (); int -main () +main (void) { return libfwnt_access_control_entry_get_security_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier=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_fwnt_libfwnt_access_control_entry_get_security_identifier" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_access_control_entry_get_security_identifier" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_lznt1_decompress in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_lznt1_decompress in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_lznt1_decompress+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_lznt1_decompress in -lfwnt" >&5 +printf %s "checking for libfwnt_lznt1_decompress in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_lznt1_decompress+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54623,41 +60014,41 @@ 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 libfwnt_lznt1_decompress (); int -main () +main (void) { return libfwnt_lznt1_decompress (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_lznt1_decompress=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_lznt1_decompress=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_fwnt_libfwnt_lznt1_decompress" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_lznt1_decompress" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_lznt1_decompress" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_lznt1_decompress" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_lznt1_decompress" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_lznt1_decompress" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_lzx_decompress in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_lzx_decompress in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_lzx_decompress+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_lzx_decompress in -lfwnt" >&5 +printf %s "checking for libfwnt_lzx_decompress in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_lzx_decompress+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54666,41 +60057,41 @@ 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 libfwnt_lzx_decompress (); int -main () +main (void) { return libfwnt_lzx_decompress (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_lzx_decompress=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_lzx_decompress=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_fwnt_libfwnt_lzx_decompress" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_lzx_decompress" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_lzx_decompress" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_lzx_decompress" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_lzx_decompress" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_lzx_decompress" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_lzxpress_decompress in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_lzxpress_decompress in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_lzxpress_decompress+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_lzxpress_decompress in -lfwnt" >&5 +printf %s "checking for libfwnt_lzxpress_decompress in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_lzxpress_decompress+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54709,40 +60100,40 @@ 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 libfwnt_lzxpress_decompress (); int -main () +main (void) { return libfwnt_lzxpress_decompress (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_lzxpress_decompress=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_lzxpress_decompress=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_fwnt_libfwnt_lzxpress_decompress" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_lzxpress_decompress" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_lzxpress_decompress" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_lzxpress_decompress" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_lzxpress_decompress" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_lzxpress_decompress" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfwnt_lzxpress_huffman_decompress in -lfwnt" >&5 -$as_echo_n "checking for libfwnt_lzxpress_huffman_decompress in -lfwnt... " >&6; } -if ${ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfwnt_lzxpress_huffman_decompress in -lfwnt" >&5 +printf %s "checking for libfwnt_lzxpress_huffman_decompress in -lfwnt... " >&6; } +if test ${ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfwnt $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -54751,32 +60142,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 libfwnt_lzxpress_huffman_decompress (); int -main () +main (void) { return libfwnt_lzxpress_huffman_decompress (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress=yes -else +else $as_nop ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress=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_fwnt_libfwnt_lzxpress_huffman_decompress" >&5 -$as_echo "$ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress" >&6; } -if test "x$ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress" >&5 +printf "%s\n" "$ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress" >&6; } +if test "x$ac_cv_lib_fwnt_libfwnt_lzxpress_huffman_decompress" = xyes +then : ac_cv_libfwnt_dummy=yes -else +else $as_nop ac_cv_libfwnt=no fi @@ -54785,9 +60175,10 @@ fi fi fi - if test "x$ac_cv_with_libfwnt" != x && test "x$ac_cv_with_libfwnt" != xauto-detect && test "x$ac_cv_libfwnt" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libfwnt" != x && test "x$ac_cv_with_libfwnt" != xauto-detect && test "x$ac_cv_libfwnt" != xyes +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 1 "unable to find supported libfwnt in directory: $ac_cv_with_libfwnt See \`config.log' for more details" "$LINENO" 5; } @@ -54795,24 +60186,27 @@ fi fi - if test "x$ac_cv_libfwnt" = xyes; then : + if test "x$ac_cv_libfwnt" = xyes +then : -$as_echo "#define HAVE_LIBFWNT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBFWNT 1" >>confdefs.h fi - if test "x$ac_cv_libfwnt" = xyes; then : + if test "x$ac_cv_libfwnt" = xyes +then : HAVE_LIBFWNT=1 -else +else $as_nop HAVE_LIBFWNT=0 fi - if test "x$ac_cv_libfwnt" != xyes; then : + if test "x$ac_cv_libfwnt" != xyes +then : ac_cv_libfwnt_CPPFLAGS="-I../libfwnt"; ac_cv_libfwnt_LIBADD="../libfwnt/libfwnt.la"; @@ -54821,7 +60215,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBFWNT 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBFWNT 1" >>confdefs.h HAVE_LOCAL_LIBFWNT=1 @@ -54836,24 +60230,28 @@ else HAVE_LOCAL_LIBFWNT_FALSE= fi - if test "x$ac_cv_libfwnt_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libfwnt_CPPFLAGS" != "x" +then : LIBFWNT_CPPFLAGS=$ac_cv_libfwnt_CPPFLAGS fi - if test "x$ac_cv_libfwnt_LIBADD" != "x"; then : + if test "x$ac_cv_libfwnt_LIBADD" != "x" +then : LIBFWNT_LIBADD=$ac_cv_libfwnt_LIBADD fi - if test "x$ac_cv_libfwnt" = xyes; then : + if test "x$ac_cv_libfwnt" = xyes +then : ax_libfwnt_pc_libs_private=-lfwnt fi - if test "x$ac_cv_libfwnt" = xyes; then : + if test "x$ac_cv_libfwnt" = xyes +then : ax_libfwnt_spec_requires=libfwnt ax_libfwnt_spec_build_requires=libfwnt-devel @@ -54862,162 +60260,175 @@ fi fi - for ac_func in bindtextdomain -do : ac_fn_c_check_func "$LINENO" "bindtextdomain" "ac_cv_func_bindtextdomain" -if test "x$ac_cv_func_bindtextdomain" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_BINDTEXTDOMAIN 1 -_ACEOF +if test "x$ac_cv_func_bindtextdomain" = xyes +then : + printf "%s\n" "#define HAVE_BINDTEXTDOMAIN 1" >>confdefs.h fi -done # Check whether --with-pyprefix was given. -if test "${with_pyprefix+set}" = set; then : +if test ${with_pyprefix+y} +then : withval=$with_pyprefix; ac_cv_with_pyprefix=$withval -else +else $as_nop ac_cv_with_pyprefix=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use use \`python-config --prefix' to determine the prefix of pythondir instead of --prefix" >&5 -$as_echo_n "checking whether to use use \`python-config --prefix' to determine the prefix of pythondir instead of --prefix... " >&6; } -if ${ac_cv_with_pyprefix+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use use \`python-config --prefix' to determine the prefix of pythondir instead of --prefix" >&5 +printf %s "checking whether to use use \`python-config --prefix' to determine the prefix of pythondir instead of --prefix... " >&6; } +if test ${ac_cv_with_pyprefix+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_pyprefix=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pyprefix" >&5 -$as_echo "$ac_cv_with_pyprefix" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pyprefix" >&5 +printf "%s\n" "$ac_cv_with_pyprefix" >&6; } # Check whether --enable-python was given. -if test "${enable_python+set}" = set; then : +if test ${enable_python+y} +then : enableval=$enable_python; ac_cv_enable_python=$enableval -else +else $as_nop ac_cv_enable_python=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python bindings" >&5 -$as_echo_n "checking whether to enable build Python bindings... " >&6; } -if ${ac_cv_enable_python+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python bindings" >&5 +printf %s "checking whether to enable build Python bindings... " >&6; } +if test ${ac_cv_enable_python+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_python=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python" >&5 -$as_echo "$ac_cv_enable_python" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python" >&5 +printf "%s\n" "$ac_cv_enable_python" >&6; } # Check whether --with-pythondir was given. -if test "${with_pythondir+set}" = set; then : +if test ${with_pythondir+y} +then : withval=$with_pythondir; ac_cv_with_pythondir=$withval -else +else $as_nop ac_cv_with_pythondir=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python directory (pythondir)" >&5 -$as_echo_n "checking whether to use use to specify the Python directory (pythondir)... " >&6; } -if ${ac_cv_with_pythondir+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python directory (pythondir)" >&5 +printf %s "checking whether to use use to specify the Python directory (pythondir)... " >&6; } +if test ${ac_cv_with_pythondir+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_pythondir=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir" >&5 -$as_echo "$ac_cv_with_pythondir" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir" >&5 +printf "%s\n" "$ac_cv_with_pythondir" >&6; } # Check whether --enable-python2 was given. -if test "${enable_python2+set}" = set; then : +if test ${enable_python2+y} +then : enableval=$enable_python2; ac_cv_enable_python2=$enableval -else +else $as_nop ac_cv_enable_python2=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python 2 bindings" >&5 -$as_echo_n "checking whether to enable build Python 2 bindings... " >&6; } -if ${ac_cv_enable_python2+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python 2 bindings" >&5 +printf %s "checking whether to enable build Python 2 bindings... " >&6; } +if test ${ac_cv_enable_python2+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_python2=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python2" >&5 -$as_echo "$ac_cv_enable_python2" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python2" >&5 +printf "%s\n" "$ac_cv_enable_python2" >&6; } # Check whether --with-pythondir2 was given. -if test "${with_pythondir2+set}" = set; then : +if test ${with_pythondir2+y} +then : withval=$with_pythondir2; ac_cv_with_pythondir2=$withval -else +else $as_nop ac_cv_with_pythondir2=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python 2 directory (pythondir2)" >&5 -$as_echo_n "checking whether to use use to specify the Python 2 directory (pythondir2)... " >&6; } -if ${ac_cv_with_pythondir2+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python 2 directory (pythondir2)" >&5 +printf %s "checking whether to use use to specify the Python 2 directory (pythondir2)... " >&6; } +if test ${ac_cv_with_pythondir2+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_pythondir2=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir2" >&5 -$as_echo "$ac_cv_with_pythondir2" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir2" >&5 +printf "%s\n" "$ac_cv_with_pythondir2" >&6; } # Check whether --enable-python3 was given. -if test "${enable_python3+set}" = set; then : +if test ${enable_python3+y} +then : enableval=$enable_python3; ac_cv_enable_python3=$enableval -else +else $as_nop ac_cv_enable_python3=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python 3 bindings" >&5 -$as_echo_n "checking whether to enable build Python 3 bindings... " >&6; } -if ${ac_cv_enable_python3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to enable build Python 3 bindings" >&5 +printf %s "checking whether to enable build Python 3 bindings... " >&6; } +if test ${ac_cv_enable_python3+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_enable_python3=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python3" >&5 -$as_echo "$ac_cv_enable_python3" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_enable_python3" >&5 +printf "%s\n" "$ac_cv_enable_python3" >&6; } # Check whether --with-pythondir3 was given. -if test "${with_pythondir3+set}" = set; then : +if test ${with_pythondir3+y} +then : withval=$with_pythondir3; ac_cv_with_pythondir3=$withval -else +else $as_nop ac_cv_with_pythondir3=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python 3 directory (pythondir3)" >&5 -$as_echo_n "checking whether to use use to specify the Python 3 directory (pythondir3)... " >&6; } -if ${ac_cv_with_pythondir3+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use use to specify the Python 3 directory (pythondir3)" >&5 +printf %s "checking whether to use use to specify the Python 3 directory (pythondir3)... " >&6; } +if test ${ac_cv_with_pythondir3+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_pythondir3=no fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir3" >&5 -$as_echo "$ac_cv_with_pythondir3" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_pythondir3" >&5 +printf "%s\n" "$ac_cv_with_pythondir3" >&6; } - if test "x${ac_cv_enable_python}" != xno; then : - if test "x${PYTHON_VERSION}" != x; then : + if test "x${ac_cv_enable_python}" != xno +then : + if test "x${PYTHON_VERSION}" != x +then : ax_python_progs="python${PYTHON_VERSION}" -else - ax_python_progs="python python3 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5" +else $as_nop + ax_python_progs="python python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5" fi for ac_prog in $ax_python_progs 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_PYTHON+:} 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_PYTHON+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$PYTHON"; then ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. else @@ -55025,11 +60436,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_PYTHON="$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 @@ -55040,40 +60455,43 @@ fi fi PYTHON=$ac_cv_prog_PYTHON if test -n "$PYTHON"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 -$as_echo "$PYTHON" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5 +printf "%s\n" "$PYTHON" >&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 "$PYTHON" && break done - if test "x${PYTHON}" != x; then : - ax_prog_python_version=`${PYTHON} -c "import sys; sys.stdout.write(sys.version[:3])" 2>/dev/null`; + if test "x${PYTHON}" != x +then : + ax_prog_python_version=`${PYTHON} -c "import sys; sys.stdout.write('%d.%d' % (sys.version_info[0], sys.version_info[1]))" 2>/dev/null`; ax_prog_python_platform=`${PYTHON} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; PYTHON_PLATFORM=$ax_prog_python_platform -else +else $as_nop as_fn_error $? "Unable to find python" "$LINENO" 5 fi PYTHON=$PYTHON - if test "x${PYTHON_CONFIG}" = x && test "x${PYTHON_VERSION}" != x; then : + if test "x${PYTHON_CONFIG}" = x && test "x${PYTHON_VERSION}" != x +then : for ac_prog in python${PYTHON_VERSION}-config 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_PYTHON_CONFIG+:} 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_PYTHON_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$PYTHON_CONFIG"; then ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test. else @@ -55081,11 +60499,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_PYTHON_CONFIG="$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 @@ -55096,11 +60518,11 @@ fi fi PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG if test -n "$PYTHON_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 -$as_echo "$PYTHON_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 +printf "%s\n" "$PYTHON_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 @@ -55109,16 +60531,18 @@ done fi - if test "x${PYTHON_CONFIG}" = x; then : - for ac_prog in python-config python3-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config python2-config python2.7-config python2.6-config python2.5-config + if test "x${PYTHON_CONFIG}" = x +then : + for ac_prog in python-config python3-config python3.11-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config python2-config python2.7-config python2.6-config python2.5-config 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_PYTHON_CONFIG+:} 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_PYTHON_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$PYTHON_CONFIG"; then ac_cv_prog_PYTHON_CONFIG="$PYTHON_CONFIG" # Let the user override the test. else @@ -55126,11 +60550,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_PYTHON_CONFIG="$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 @@ -55141,11 +60569,11 @@ fi fi PYTHON_CONFIG=$ac_cv_prog_PYTHON_CONFIG if test -n "$PYTHON_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 -$as_echo "$PYTHON_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_CONFIG" >&5 +printf "%s\n" "$PYTHON_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 @@ -55154,7 +60582,8 @@ done fi - if test "x${PYTHON_CONFIG}" = x; then : + if test "x${PYTHON_CONFIG}" = x +then : as_fn_error $? "Unable to find python-config" "$LINENO" 5 fi @@ -55162,20 +60591,21 @@ fi - if test "x${PYTHON_CONFIG}" != x; then : + if test "x${PYTHON_CONFIG}" != x +then : PYTHON_INCLUDES=`${PYTHON_CONFIG} --includes 2>/dev/null`; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 -$as_echo_n "checking for Python includes... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5 -$as_echo "$PYTHON_INCLUDES" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python includes" >&5 +printf %s "checking for Python includes... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_INCLUDES" >&5 +printf "%s\n" "$PYTHON_INCLUDES" >&6; } PYTHON_LDFLAGS=`${PYTHON_CONFIG} --ldflags 2>/dev/null`; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python libraries" >&5 -$as_echo_n "checking for Python libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 -$as_echo "$PYTHON_LDFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python libraries" >&5 +printf %s "checking for Python libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON_LDFLAGS" >&5 +printf "%s\n" "$PYTHON_LDFLAGS" >&6; } case $host_os in #( cygwin*) : @@ -55189,28 +60619,27 @@ esac BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON_INCLUDES}" - for ac_header in Python.h + for ac_header in Python.h do : - ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" -if test "x$ac_cv_header_Python_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PYTHON_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" +if test "x$ac_cv_header_Python_h" = xyes +then : + printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h ac_cv_header_python_h=yes -else +else $as_nop ac_cv_header_python_h=no fi done - CPPFLAGS="${BACKUP_CPPFLAGS}" fi - if test "x${ac_cv_header_python_h}" != xyes; then : + if test "x${ac_cv_header_python_h}" != xyes +then : ac_cv_enable_python=no -else +else $as_nop ac_cv_enable_python=${ax_prog_python_version} PYTHON_CPPFLAGS=$PYTHON_INCLUDES @@ -55218,18 +60647,20 @@ else PYTHON_LDFLAGS=$PYTHON_LDFLAGS - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python_prefix="\${prefix}" -else +else $as_nop ax_python_prefix=`${PYTHON_CONFIG} --prefix 2>/dev/null` fi PYTHON_PREFIX=$ax_python_prefix - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python_exec_prefix="\${exec_prefix}" -else +else $as_nop ax_python_exec_prefix=`${PYTHON_CONFIG} --exec-prefix 2>/dev/null` fi @@ -55238,13 +60669,15 @@ fi ax_python_pythondir_suffix=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; - if test "x${ac_cv_with_pythondir}" = x || test "x${ac_cv_with_pythondir}" = xno; then : - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pythondir}" = x || test "x${ac_cv_with_pythondir}" = xno +then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python_pythondir="${ax_python_prefix}/${ax_python_pythondir_suffix}" -else +else $as_nop ax_python_pythondir=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib()) " 2>/dev/null` fi -else +else $as_nop ax_python_pythondir=$ac_cv_with_pythondir fi @@ -55254,9 +60687,10 @@ fi ax_python_pyexecdir_suffix=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python_library_dir=`${PYTHON} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(True)) " 2>/dev/null`; - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python_pyexecdir="${ax_python_exec_prefix}/${ax_python_pyexecdir_suffix}" -else +else $as_nop ax_python_pyexecdir=$ax_python_library_dir fi @@ -55273,17 +60707,19 @@ fi fi - if test "x${ac_cv_enable_python2}" != xno; then : + if test "x${ac_cv_enable_python2}" != xno +then : ax_python2_progs="python2 python2.7 python2.6 python2.5" for ac_prog in $ax_python2_progs 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_PYTHON2+:} 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_PYTHON2+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$PYTHON2"; then ac_cv_prog_PYTHON2="$PYTHON2" # Let the user override the test. else @@ -55291,11 +60727,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_PYTHON2="$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 @@ -55306,19 +60746,20 @@ fi fi PYTHON2=$ac_cv_prog_PYTHON2 if test -n "$PYTHON2"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5 -$as_echo "$PYTHON2" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON2" >&5 +printf "%s\n" "$PYTHON2" >&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 "$PYTHON2" && break done - if test "x${PYTHON2}" != x; then : - ax_prog_python2_version=`${PYTHON2} -c "import sys; sys.stdout.write(sys.version[:3])" 2>/dev/null`; + if test "x${PYTHON2}" != x +then : + ax_prog_python2_version=`${PYTHON2} -c "import sys; sys.stdout.write('%d.%d' % (sys.version_info[0], sys.version_info[1]))" 2>/dev/null`; PYTHON2_VERSION=$ax_prog_python2_version @@ -55326,23 +60767,25 @@ done PYTHON2_PLATFORM=$ax_prog_python2_platform -else +else $as_nop as_fn_error $? "Unable to find python2" "$LINENO" 5 fi PYTHON2=$PYTHON2 - if test "x${PYTHON2_CONFIG}" = x; then : + if test "x${PYTHON2_CONFIG}" = x +then : for ac_prog in python2-config python2.7-config python2.6-config python2.5-config 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_PYTHON2_CONFIG+:} 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_PYTHON2_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$PYTHON2_CONFIG"; then ac_cv_prog_PYTHON2_CONFIG="$PYTHON2_CONFIG" # Let the user override the test. else @@ -55350,11 +60793,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_PYTHON2_CONFIG="$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 @@ -55365,11 +60812,11 @@ fi fi PYTHON2_CONFIG=$ac_cv_prog_PYTHON2_CONFIG if test -n "$PYTHON2_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_CONFIG" >&5 -$as_echo "$PYTHON2_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_CONFIG" >&5 +printf "%s\n" "$PYTHON2_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 @@ -55378,7 +60825,8 @@ done fi - if test "x${PYTHON2_CONFIG}" = x; then : + if test "x${PYTHON2_CONFIG}" = x +then : as_fn_error $? "Unable to find python2-config" "$LINENO" 5 fi @@ -55386,20 +60834,21 @@ fi - if test "x${PYTHON2_CONFIG}" != x; then : + if test "x${PYTHON2_CONFIG}" != x +then : PYTHON2_INCLUDES=`${PYTHON2_CONFIG} --includes 2>/dev/null`; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python verison 2 includes" >&5 -$as_echo_n "checking for Python verison 2 includes... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_INCLUDES" >&5 -$as_echo "$PYTHON2_INCLUDES" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python verison 2 includes" >&5 +printf %s "checking for Python verison 2 includes... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_INCLUDES" >&5 +printf "%s\n" "$PYTHON2_INCLUDES" >&6; } PYTHON2_LDFLAGS=`${PYTHON2_CONFIG} --ldflags 2>/dev/null`; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 2 libraries" >&5 -$as_echo_n "checking for Python 2 libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_LDFLAGS" >&5 -$as_echo "$PYTHON2_LDFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python 2 libraries" >&5 +printf %s "checking for Python 2 libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON2_LDFLAGS" >&5 +printf "%s\n" "$PYTHON2_LDFLAGS" >&6; } case $host_os in #( cygwin*) : @@ -55413,28 +60862,27 @@ esac BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON2_INCLUDES}" - for ac_header in Python.h + for ac_header in Python.h do : - ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" -if test "x$ac_cv_header_Python_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PYTHON_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" +if test "x$ac_cv_header_Python_h" = xyes +then : + printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h ac_cv_header_python2_h=yes -else +else $as_nop ac_cv_header_python2_h=no fi done - CPPFLAGS="${BACKUP_CPPFLAGS}" fi - if test "x${ac_cv_header_python2_h}" != xyes; then : + if test "x${ac_cv_header_python2_h}" != xyes +then : ac_cv_enable_python2=no -else +else $as_nop ac_cv_enable_python2=$PYTHON2_VERSION PYTHON2_CPPFLAGS=$PYTHON2_INCLUDES @@ -55442,18 +60890,20 @@ else PYTHON2_LDFLAGS=$PYTHON2_LDFLAGS - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python2_prefix="\${prefix}" -else +else $as_nop ax_python2_prefix=`${PYTHON2_CONFIG} --prefix 2>/dev/null` fi PYTHON2_PREFIX=$ax_python2_prefix - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python2_exec_prefix="\${exec_prefix}" -else +else $as_nop ax_python2_exec_prefix=`${PYTHON2_CONFIG} --exec-prefix 2>/dev/null` fi @@ -55462,13 +60912,15 @@ fi ax_python2_pythondir_suffix=`${PYTHON2} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; - if test "x${ac_cv_with_pythondir2}" = x || test "x${ac_cv_with_pythondir2}" = xno; then : - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pythondir2}" = x || test "x${ac_cv_with_pythondir2}" = xno +then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python2_pythondir="${ax_python_prefix}/${ax_python2_pythondir_suffix}" -else +else $as_nop ax_python2_pythondir=`${PYTHON2} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib()) " 2>/dev/null` fi -else +else $as_nop ax_python2_pythondir=$ac_cv_with_pythondir2 fi @@ -55478,9 +60930,10 @@ fi ax_python2_pyexecdir_suffix=`${PYTHON2} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python2_library_dir=`${PYTHON2} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(True)) " 2>/dev/null`; - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python2_pyexecdir="${ax_python2_exec_prefix}/${ax_python2_pyexecdir_suffix}" -else +else $as_nop ax_python2_pyexecdir=$ax_python2_library_dir fi @@ -55497,17 +60950,19 @@ fi fi - if test "x${ac_cv_enable_python3}" != xno; then : - ax_python3_progs="python3 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0" + if test "x${ac_cv_enable_python3}" != xno +then : + ax_python3_progs="python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0" for ac_prog in $ax_python3_progs 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_PYTHON3+:} 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_PYTHON3+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$PYTHON3"; then ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test. else @@ -55515,11 +60970,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_PYTHON3="$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 @@ -55530,19 +60989,20 @@ fi fi PYTHON3=$ac_cv_prog_PYTHON3 if test -n "$PYTHON3"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 -$as_echo "$PYTHON3" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5 +printf "%s\n" "$PYTHON3" >&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 "$PYTHON3" && break done - if test "x${PYTHON3}" != x; then : - ax_prog_python3_version=`${PYTHON3} -c "import sys; sys.stdout.write(sys.version[:3])" 2>/dev/null`; + if test "x${PYTHON3}" != x +then : + ax_prog_python3_version=`${PYTHON3} -c "import sys; sys.stdout.write('%d.%d' % (sys.version_info[0], sys.version_info[1]))" 2>/dev/null`; PYTHON3_VERSION=$ax_prog_python3_version @@ -55550,23 +61010,25 @@ done PYTHON3_PLATFORM=$ax_prog_python3_platform -else +else $as_nop as_fn_error $? "Unable to find python3" "$LINENO" 5 fi PYTHON3=$PYTHON3 - if test "x${PYTHON3_CONFIG}" = x; then : - for ac_prog in python3-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config + if test "x${PYTHON3_CONFIG}" = x +then : + for ac_prog in python3-config python3.11-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config 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_PYTHON3_CONFIG+:} 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_PYTHON3_CONFIG+y} +then : + printf %s "(cached) " >&6 +else $as_nop if test -n "$PYTHON3_CONFIG"; then ac_cv_prog_PYTHON3_CONFIG="$PYTHON3_CONFIG" # Let the user override the test. else @@ -55574,11 +61036,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_PYTHON3_CONFIG="$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 @@ -55589,11 +61055,11 @@ fi fi PYTHON3_CONFIG=$ac_cv_prog_PYTHON3_CONFIG if test -n "$PYTHON3_CONFIG"; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5 -$as_echo "$PYTHON3_CONFIG" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_CONFIG" >&5 +printf "%s\n" "$PYTHON3_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 @@ -55602,7 +61068,8 @@ done fi - if test "x${PYTHON3_CONFIG}" = x; then : + if test "x${PYTHON3_CONFIG}" = x +then : as_fn_error $? "Unable to find python3-config" "$LINENO" 5 fi @@ -55610,20 +61077,21 @@ fi - if test "x${PYTHON3_CONFIG}" != x; then : + if test "x${PYTHON3_CONFIG}" != x +then : PYTHON3_INCLUDES=`${PYTHON3_CONFIG} --includes 2>/dev/null`; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python verison 3 includes" >&5 -$as_echo_n "checking for Python verison 3 includes... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_INCLUDES" >&5 -$as_echo "$PYTHON3_INCLUDES" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python verison 3 includes" >&5 +printf %s "checking for Python verison 3 includes... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_INCLUDES" >&5 +printf "%s\n" "$PYTHON3_INCLUDES" >&6; } PYTHON3_LDFLAGS=`${PYTHON3_CONFIG} --ldflags 2>/dev/null`; - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python 3 libraries" >&5 -$as_echo_n "checking for Python 3 libraries... " >&6; } - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_LDFLAGS" >&5 -$as_echo "$PYTHON3_LDFLAGS" >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for Python 3 libraries" >&5 +printf %s "checking for Python 3 libraries... " >&6; } + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PYTHON3_LDFLAGS" >&5 +printf "%s\n" "$PYTHON3_LDFLAGS" >&6; } case $host_os in #( cygwin*) : @@ -55637,28 +61105,27 @@ esac BACKUP_CPPFLAGS="${CPPFLAGS}" CPPFLAGS="${CPPFLAGS} ${PYTHON3_INCLUDES}" - for ac_header in Python.h + for ac_header in Python.h do : - ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" -if test "x$ac_cv_header_Python_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_PYTHON_H 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default" +if test "x$ac_cv_header_Python_h" = xyes +then : + printf "%s\n" "#define HAVE_PYTHON_H 1" >>confdefs.h ac_cv_header_python3_h=yes -else +else $as_nop ac_cv_header_python3_h=no fi done - CPPFLAGS="${BACKUP_CPPFLAGS}" fi - if test "x${ac_cv_header_python3_h}" != xyes; then : + if test "x${ac_cv_header_python3_h}" != xyes +then : ac_cv_enable_python3=no -else +else $as_nop ac_cv_enable_python3=$PYTHON3_VERSION PYTHON3_CPPFLAGS=$PYTHON3_INCLUDES @@ -55666,18 +61133,20 @@ else PYTHON3_LDFLAGS=$PYTHON3_LDFLAGS - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python3_prefix="\${prefix}" -else +else $as_nop ax_python3_prefix=`${PYTHON3_CONFIG} --prefix 2>/dev/null` fi PYTHON3_PREFIX=$ax_python3_prefix - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python3_exec_prefix="\${exec_prefix}" -else +else $as_nop ax_python3_exec_prefix=`${PYTHON3_CONFIG} --exec-prefix 2>/dev/null` fi @@ -55686,13 +61155,15 @@ fi ax_python3_pythondir_suffix=`${PYTHON3} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(0, 0, prefix=''))" 2>/dev/null`; - if test "x${ac_cv_with_pythondir3}" = x || test "x${ac_cv_with_pythondir3}" = xno; then : - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pythondir3}" = x || test "x${ac_cv_with_pythondir3}" = xno +then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python3_pythondir="${ax_python_prefix}/${ax_python3_pythondir_suffix}" -else +else $as_nop ax_python3_pythondir=`${PYTHON3} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib()) " 2>/dev/null` fi -else +else $as_nop ax_python3_pythondir=$ac_cv_with_pythondir3 fi @@ -55702,9 +61173,10 @@ fi ax_python3_pyexecdir_suffix=`${PYTHON3} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(1, 0, prefix=''))" 2>/dev/null`; ax_python3_library_dir=`${PYTHON3} -c "import sys; import distutils.sysconfig; sys.stdout.write(distutils.sysconfig.get_python_lib(True)) " 2>/dev/null`; - if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno; then : + if test "x${ac_cv_with_pyprefix}" = x || test "x${ac_cv_with_pyprefix}" = xno +then : ax_python3_pyexecdir="${ax_python3_exec_prefix}/${ax_python3_pyexecdir_suffix}" -else +else $as_nop ax_python3_pyexecdir=$ax_python3_library_dir fi @@ -55757,15 +61229,20 @@ else fi - if test "x${ac_cv_enable_python}" = xno; then : - if test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno; then : - if test "x${ac_cv_enable_python2}" != xno; then : + if test "x${ac_cv_enable_python}" = xno +then : + if test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno +then : + if test "x${ac_cv_enable_python2}" != xno +then : ac_cv_enable_python=${ac_cv_enable_python2} -else +else $as_nop ac_cv_enable_python="" fi - if test "x${ac_cv_enable_python3}" != xno; then : - if test "x${ac_cv_enable_python}" != x; then : + if test "x${ac_cv_enable_python3}" != xno +then : + if test "x${ac_cv_enable_python}" != x +then : ac_cv_enable_python="${ac_cv_enable_python}, " fi ac_cv_enable_python="${ac_cv_enable_python}${ac_cv_enable_python3}" @@ -55776,24 +61253,26 @@ fi fi -if test "x${ac_cv_enable_python}" != xno || test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno; then : - for ac_header in stdarg.h varargs.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +if test "x${ac_cv_enable_python}" != xno || test "x${ac_cv_enable_python2}" != xno || test "x${ac_cv_enable_python3}" != xno +then : + ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes +then : + printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" +if test "x$ac_cv_header_varargs_h" = xyes +then : + printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h -done +fi - if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes +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 1 "Missing headers: stdarg.h and varargs.h See \`config.log' for more details" "$LINENO" 5; } @@ -55804,55 +61283,61 @@ fi # Check whether --with-libfmapi was given. -if test "${with_libfmapi+set}" = set; then : +if test ${with_libfmapi+y} +then : withval=$with_libfmapi; ac_cv_with_libfmapi=$withval -else +else $as_nop ac_cv_with_libfmapi=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfmapi in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libfmapi in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libfmapi+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libfmapi in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libfmapi in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libfmapi+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libfmapi=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfmapi" >&5 -$as_echo "$ac_cv_with_libfmapi" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libfmapi" >&5 +printf "%s\n" "$ac_cv_with_libfmapi" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfmapi" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libfmapi" = xno +then : ac_cv_libfmapi=no -else +else $as_nop ac_cv_libfmapi=check - if test "x$ac_cv_with_libfmapi" != x && test "x$ac_cv_with_libfmapi" != xauto-detect; then : - if test -d "$ac_cv_with_libfmapi"; then : + if test "x$ac_cv_with_libfmapi" != x && test "x$ac_cv_with_libfmapi" != xauto-detect +then : + if test -d "$ac_cv_with_libfmapi" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libfmapi}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libfmapi}/lib" -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 1 "no such directory: $ac_cv_with_libfmapi See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi" >&5 -$as_echo_n "checking for libfmapi... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi >= 20230404" >&5 +printf %s "checking for libfmapi >= 20230404... " >&6; } if test -n "$libfmapi_CFLAGS"; then pkg_cv_libfmapi_CFLAGS="$libfmapi_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfmapi >= 20180714\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libfmapi >= 20180714") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfmapi >= 20230404\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libfmapi >= 20230404") 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_libfmapi_CFLAGS=`$PKG_CONFIG --cflags "libfmapi >= 20180714" 2>/dev/null` + pkg_cv_libfmapi_CFLAGS=`$PKG_CONFIG --cflags "libfmapi >= 20230404" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -55864,12 +61349,12 @@ if test -n "$libfmapi_LIBS"; then pkg_cv_libfmapi_LIBS="$libfmapi_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfmapi >= 20180714\""; } >&5 - ($PKG_CONFIG --exists --print-errors "libfmapi >= 20180714") 2>&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libfmapi >= 20230404\""; } >&5 + ($PKG_CONFIG --exists --print-errors "libfmapi >= 20230404") 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_libfmapi_LIBS=`$PKG_CONFIG --libs "libfmapi >= 20180714" 2>/dev/null` + pkg_cv_libfmapi_LIBS=`$PKG_CONFIG --libs "libfmapi >= 20230404" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes else pkg_failed=yes @@ -55881,8 +61366,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 @@ -55890,58 +61375,57 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libfmapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfmapi >= 20180714" 2>&1` + libfmapi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libfmapi >= 20230404" 2>&1` else - libfmapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfmapi >= 20180714" 2>&1` + libfmapi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libfmapi >= 20230404" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libfmapi_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libfmapi_PKG_ERRORS" >&5 - ac_cv_libfmapi=check + ac_cv_libfmapi=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libfmapi=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libfmapi=check else - libfmapi_CFLAGS=$pkg_cv_libfmapi_CFLAGS - libfmapi_LIBS=$pkg_cv_libfmapi_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libfmapi=yes + libfmapi_CFLAGS=$pkg_cv_libfmapi_CFLAGS + libfmapi_LIBS=$pkg_cv_libfmapi_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libfmapi=yes fi fi - if test "x$ac_cv_libfmapi" = xyes; then : + if test "x$ac_cv_libfmapi" = xyes +then : ac_cv_libfmapi_CPPFLAGS="$pkg_cv_libfmapi_CFLAGS" ac_cv_libfmapi_LIBADD="$pkg_cv_libfmapi_LIBS" fi fi - if test "x$ac_cv_libfmapi" = xcheck; then : - for ac_header in libfmapi.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libfmapi.h" "ac_cv_header_libfmapi_h" "$ac_includes_default" -if test "x$ac_cv_header_libfmapi_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBFMAPI_H 1 -_ACEOF + if test "x$ac_cv_libfmapi" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libfmapi.h" "ac_cv_header_libfmapi_h" "$ac_includes_default" +if test "x$ac_cv_header_libfmapi_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBFMAPI_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libfmapi_h" = xno; then : + if test "x$ac_cv_header_libfmapi_h" = xno +then : ac_cv_libfmapi=no -else +else $as_nop ac_cv_libfmapi=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_get_version in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_get_version in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_get_version in -lfmapi" >&5 +printf %s "checking for libfmapi_get_version in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -55950,41 +61434,41 @@ 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 libfmapi_get_version (); int -main () +main (void) { return libfmapi_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_get_version=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_get_version=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_fmapi_libfmapi_get_version" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_get_version" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_get_version" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_get_version" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_get_version" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_entry_identifier_initialize in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_entry_identifier_initialize in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_entry_identifier_initialize in -lfmapi" >&5 +printf %s "checking for libfmapi_entry_identifier_initialize in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -55993,40 +61477,40 @@ 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 libfmapi_entry_identifier_initialize (); int -main () +main (void) { return libfmapi_entry_identifier_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize=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_fmapi_libfmapi_entry_identifier_initialize" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_entry_identifier_initialize" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_entry_identifier_free in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_entry_identifier_free in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_entry_identifier_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_entry_identifier_free in -lfmapi" >&5 +printf %s "checking for libfmapi_entry_identifier_free in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_entry_identifier_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56035,40 +61519,40 @@ 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 libfmapi_entry_identifier_free (); int -main () +main (void) { return libfmapi_entry_identifier_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_entry_identifier_free=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_entry_identifier_free=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_fmapi_libfmapi_entry_identifier_free" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_entry_identifier_free" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_entry_identifier_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_entry_identifier_free" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_entry_identifier_free" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_entry_identifier_free" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_entry_identifier_copy_from_byte_stream in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_entry_identifier_copy_from_byte_stream in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_entry_identifier_copy_from_byte_stream in -lfmapi" >&5 +printf %s "checking for libfmapi_entry_identifier_copy_from_byte_stream in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56077,40 +61561,40 @@ 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 libfmapi_entry_identifier_copy_from_byte_stream (); int -main () +main (void) { return libfmapi_entry_identifier_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream=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_fmapi_libfmapi_entry_identifier_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_entry_identifier_copy_from_byte_stream" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_entry_identifier_get_service_provider_identifier in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_entry_identifier_get_service_provider_identifier in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_entry_identifier_get_service_provider_identifier in -lfmapi" >&5 +printf %s "checking for libfmapi_entry_identifier_get_service_provider_identifier in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56119,41 +61603,41 @@ 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 libfmapi_entry_identifier_get_service_provider_identifier (); int -main () +main (void) { return libfmapi_entry_identifier_get_service_provider_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier=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_fmapi_libfmapi_entry_identifier_get_service_provider_identifier" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_entry_identifier_get_service_provider_identifier" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_initialize in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_initialize in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_initialize in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_initialize in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56162,40 +61646,40 @@ 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 libfmapi_one_off_entry_identifier_initialize (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_initialize (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize=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_fmapi_libfmapi_one_off_entry_identifier_initialize" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_initialize" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_free in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_free in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_free in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_free in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56204,40 +61688,40 @@ 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 libfmapi_one_off_entry_identifier_free (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_free (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free=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_fmapi_libfmapi_one_off_entry_identifier_free" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_free" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_copy_from_byte_stream in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_copy_from_byte_stream in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_copy_from_byte_stream in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_copy_from_byte_stream in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56246,40 +61730,40 @@ 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 libfmapi_one_off_entry_identifier_copy_from_byte_stream (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_copy_from_byte_stream (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream=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_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_copy_from_byte_stream" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_version in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_version in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_version in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_version in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56288,40 +61772,40 @@ 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 libfmapi_one_off_entry_identifier_get_version (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version=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_fmapi_libfmapi_one_off_entry_identifier_get_version" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_version" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_flags in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_flags in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_flags in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_flags in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56330,40 +61814,40 @@ 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 libfmapi_one_off_entry_identifier_get_flags (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_flags (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags=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_fmapi_libfmapi_one_off_entry_identifier_get_flags" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_flags" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_display_name_size in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf8_display_name_size in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_display_name_size in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf8_display_name_size in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56372,40 +61856,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf8_display_name_size (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf8_display_name_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size=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_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name_size" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_display_name in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf8_display_name in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_display_name in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf8_display_name in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56414,40 +61898,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf8_display_name (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf8_display_name (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name=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_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_display_name" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_display_name_size in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf16_display_name_size in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_display_name_size in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf16_display_name_size in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56456,40 +61940,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf16_display_name_size (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf16_display_name_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size=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_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name_size" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_display_name in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf16_display_name in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_display_name in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf16_display_name in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56498,40 +61982,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf16_display_name (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf16_display_name (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name=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_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_display_name" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_address_type_size in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf8_address_type_size in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_address_type_size in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf8_address_type_size in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56540,40 +62024,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf8_address_type_size (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf8_address_type_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size=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_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type_size" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_address_type in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf8_address_type in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_address_type in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf8_address_type in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56582,40 +62066,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf8_address_type (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf8_address_type (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type=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_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_address_type" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_address_type_size in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf16_address_type_size in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_address_type_size in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf16_address_type_size in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56624,40 +62108,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf16_address_type_size (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf16_address_type_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size=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_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type_size" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_address_type in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf16_address_type in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_address_type in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf16_address_type in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56666,40 +62150,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf16_address_type (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf16_address_type (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type=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_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_address_type" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_email_address_size in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf8_email_address_size in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_email_address_size in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf8_email_address_size in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56708,40 +62192,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf8_email_address_size (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf8_email_address_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size=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_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address_size" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_email_address in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf8_email_address in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf8_email_address in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf8_email_address in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56750,40 +62234,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf8_email_address (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf8_email_address (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address=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_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf8_email_address" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_email_address_size in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf16_email_address_size in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_email_address_size in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf16_email_address_size in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56792,40 +62276,40 @@ 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 libfmapi_one_off_entry_identifier_get_utf16_email_address_size (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf16_email_address_size (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size=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_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address_size" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_email_address in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_one_off_entry_identifier_get_utf16_email_address in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_one_off_entry_identifier_get_utf16_email_address in -lfmapi" >&5 +printf %s "checking for libfmapi_one_off_entry_identifier_get_utf16_email_address in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56834,41 +62318,41 @@ 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 libfmapi_one_off_entry_identifier_get_utf16_email_address (); int -main () +main (void) { return libfmapi_one_off_entry_identifier_get_utf16_email_address (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address=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_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_one_off_entry_identifier_get_utf16_email_address" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_class_identifier_public_strings in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_class_identifier_public_strings in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_class_identifier_public_strings in -lfmapi" >&5 +printf %s "checking for libfmapi_class_identifier_public_strings in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56877,32 +62361,116 @@ 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 libfmapi_class_identifier_public_strings (); int -main () +main (void) { return libfmapi_class_identifier_public_strings (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings=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_fmapi_libfmapi_class_identifier_public_strings" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_class_identifier_public_strings" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop + ac_cv_libfmapi=no +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_lzfu_get_uncompressed_data_size in -lfmapi" >&5 +printf %s "checking for libfmapi_lzfu_get_uncompressed_data_size in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_lzfu_get_uncompressed_data_size+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfmapi $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 libfmapi_lzfu_get_uncompressed_data_size (); +int +main (void) +{ +return libfmapi_lzfu_get_uncompressed_data_size (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_fmapi_libfmapi_lzfu_get_uncompressed_data_size=yes +else $as_nop + ac_cv_lib_fmapi_libfmapi_lzfu_get_uncompressed_data_size=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_fmapi_libfmapi_lzfu_get_uncompressed_data_size" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_lzfu_get_uncompressed_data_size" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_lzfu_get_uncompressed_data_size" = xyes +then : + ac_cv_libfmapi_dummy=yes +else $as_nop + ac_cv_libfmapi=no +fi + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_lzfu_decompress in -lfmapi" >&5 +printf %s "checking for libfmapi_lzfu_decompress in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_lzfu_decompress+y} +then : + printf %s "(cached) " >&6 +else $as_nop + ac_check_lib_save_LIBS=$LIBS +LIBS="-lfmapi $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 libfmapi_lzfu_decompress (); +int +main (void) +{ +return libfmapi_lzfu_decompress (); + ; + return 0; +} +_ACEOF +if ac_fn_c_try_link "$LINENO" +then : + ac_cv_lib_fmapi_libfmapi_lzfu_decompress=yes +else $as_nop + ac_cv_lib_fmapi_libfmapi_lzfu_decompress=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_fmapi_libfmapi_lzfu_decompress" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_lzfu_decompress" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_lzfu_decompress" = xyes +then : + ac_cv_libfmapi_dummy=yes +else $as_nop ac_cv_libfmapi=no fi @@ -56911,9 +62479,10 @@ fi fi fi - if test "x$ac_cv_with_libfmapi" != x && test "x$ac_cv_with_libfmapi" != xauto-detect && test "x$ac_cv_libfmapi" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libfmapi" != x && test "x$ac_cv_with_libfmapi" != xauto-detect && test "x$ac_cv_libfmapi" != xyes +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 1 "unable to find supported libfmapi in directory: $ac_cv_with_libfmapi See \`config.log' for more details" "$LINENO" 5; } @@ -56921,12 +62490,14 @@ fi fi - if test "x$ac_cv_libfmapi" = xyes && test "x$ac_cv_enable_debug_output" != xno; then : - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_property_identifier_get_identifier in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_property_identifier_get_identifier in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + if test "x$ac_cv_libfmapi" = xyes && test "x$ac_cv_enable_debug_output" != xno +then : + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_property_identifier_get_identifier in -lfmapi" >&5 +printf %s "checking for libfmapi_property_identifier_get_identifier in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56935,40 +62506,40 @@ 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 libfmapi_property_identifier_get_identifier (); int -main () +main (void) { return libfmapi_property_identifier_get_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier=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_fmapi_libfmapi_property_identifier_get_identifier" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_property_identifier_get_identifier" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_property_identifier_get_description in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_property_identifier_get_description in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_property_identifier_get_description+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_property_identifier_get_description in -lfmapi" >&5 +printf %s "checking for libfmapi_property_identifier_get_description in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_property_identifier_get_description+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -56977,41 +62548,41 @@ 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 libfmapi_property_identifier_get_description (); int -main () +main (void) { return libfmapi_property_identifier_get_description (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_property_identifier_get_description=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_property_identifier_get_description=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_fmapi_libfmapi_property_identifier_get_description" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_property_identifier_get_description" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_property_identifier_get_description" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_property_identifier_get_description" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_property_identifier_get_description" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_property_identifier_get_description" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_value_type_get_identifier in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_value_type_get_identifier in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_value_type_get_identifier+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_value_type_get_identifier in -lfmapi" >&5 +printf %s "checking for libfmapi_value_type_get_identifier in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_value_type_get_identifier+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -57020,40 +62591,40 @@ 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 libfmapi_value_type_get_identifier (); int -main () +main (void) { return libfmapi_value_type_get_identifier (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_value_type_get_identifier=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_value_type_get_identifier=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_fmapi_libfmapi_value_type_get_identifier" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_value_type_get_identifier" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_value_type_get_identifier" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_value_type_get_identifier" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_value_type_get_identifier" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_value_type_get_identifier" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libfmapi_value_type_get_description in -lfmapi" >&5 -$as_echo_n "checking for libfmapi_value_type_get_description in -lfmapi... " >&6; } -if ${ac_cv_lib_fmapi_libfmapi_value_type_get_description+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libfmapi_value_type_get_description in -lfmapi" >&5 +printf %s "checking for libfmapi_value_type_get_description in -lfmapi... " >&6; } +if test ${ac_cv_lib_fmapi_libfmapi_value_type_get_description+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lfmapi $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -57062,56 +62633,58 @@ 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 libfmapi_value_type_get_description (); int -main () +main (void) { return libfmapi_value_type_get_description (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_fmapi_libfmapi_value_type_get_description=yes -else +else $as_nop ac_cv_lib_fmapi_libfmapi_value_type_get_description=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_fmapi_libfmapi_value_type_get_description" >&5 -$as_echo "$ac_cv_lib_fmapi_libfmapi_value_type_get_description" >&6; } -if test "x$ac_cv_lib_fmapi_libfmapi_value_type_get_description" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_fmapi_libfmapi_value_type_get_description" >&5 +printf "%s\n" "$ac_cv_lib_fmapi_libfmapi_value_type_get_description" >&6; } +if test "x$ac_cv_lib_fmapi_libfmapi_value_type_get_description" = xyes +then : ac_cv_libfmapi_dummy=yes -else +else $as_nop ac_cv_libfmapi=no fi fi - if test "x$ac_cv_libfmapi" = xyes; then : + if test "x$ac_cv_libfmapi" = xyes +then : -$as_echo "#define HAVE_LIBFMAPI 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBFMAPI 1" >>confdefs.h fi - if test "x$ac_cv_libfmapi" = xyes; then : + if test "x$ac_cv_libfmapi" = xyes +then : HAVE_LIBFMAPI=1 -else +else $as_nop HAVE_LIBFMAPI=0 fi - if test "x$ac_cv_libfmapi" != xyes; then : + if test "x$ac_cv_libfmapi" != xyes +then : ac_cv_libfmapi_CPPFLAGS="-I../libfmapi"; ac_cv_libfmapi_LIBADD="../libfmapi/libfmapi.la"; @@ -57120,7 +62693,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBFMAPI 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBFMAPI 1" >>confdefs.h HAVE_LOCAL_LIBFMAPI=1 @@ -57135,24 +62708,28 @@ else HAVE_LOCAL_LIBFMAPI_FALSE= fi - if test "x$ac_cv_libfmapi_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libfmapi_CPPFLAGS" != "x" +then : LIBFMAPI_CPPFLAGS=$ac_cv_libfmapi_CPPFLAGS fi - if test "x$ac_cv_libfmapi_LIBADD" != "x"; then : + if test "x$ac_cv_libfmapi_LIBADD" != "x" +then : LIBFMAPI_LIBADD=$ac_cv_libfmapi_LIBADD fi - if test "x$ac_cv_libfmapi" = xyes; then : + if test "x$ac_cv_libfmapi" = xyes +then : ax_libfmapi_pc_libs_private=-lfmapi fi - if test "x$ac_cv_libfmapi" = xyes; then : + if test "x$ac_cv_libfmapi" = xyes +then : ax_libfmapi_spec_requires=libfmapi ax_libfmapi_spec_build_requires=libfmapi-devel @@ -57164,53 +62741,59 @@ fi # Check whether --with-libmapidb was given. -if test "${with_libmapidb+set}" = set; then : +if test ${with_libmapidb+y} +then : withval=$with_libmapidb; ac_cv_with_libmapidb=$withval -else +else $as_nop ac_cv_with_libmapidb=auto-detect fi - { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use search for libmapidb in includedir and libdir or in the specified DIR, or no if to use local version" >&5 -$as_echo_n "checking whether to use search for libmapidb in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } -if ${ac_cv_with_libmapidb+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether to use search for libmapidb in includedir and libdir or in the specified DIR, or no if to use local version" >&5 +printf %s "checking whether to use search for libmapidb in includedir and libdir or in the specified DIR, or no if to use local version... " >&6; } +if test ${ac_cv_with_libmapidb+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_cv_with_libmapidb=auto-detect fi -{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libmapidb" >&5 -$as_echo "$ac_cv_with_libmapidb" >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_with_libmapidb" >&5 +printf "%s\n" "$ac_cv_with_libmapidb" >&6; } - if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libmapidb" = xno; then : + if test "x$ac_cv_enable_shared_libs" = xno || test "x$ac_cv_with_libmapidb" = xno +then : ac_cv_libmapidb=no -else +else $as_nop ac_cv_libmapidb=check - if test "x$ac_cv_with_libmapidb" != x && test "x$ac_cv_with_libmapidb" != xauto-detect; then : - if test -d "$ac_cv_with_libmapidb"; then : + if test "x$ac_cv_with_libmapidb" != x && test "x$ac_cv_with_libmapidb" != xauto-detect +then : + if test -d "$ac_cv_with_libmapidb" +then : CFLAGS="$CFLAGS -I${ac_cv_with_libmapidb}/include" LDFLAGS="$LDFLAGS -L${ac_cv_with_libmapidb}/lib" -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 1 "no such directory: $ac_cv_with_libmapidb See \`config.log' for more details" "$LINENO" 5; } fi -else - if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"; then : +else $as_nop + if test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x" +then : pkg_failed=no -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmapidb" >&5 -$as_echo_n "checking for libmapidb... " >&6; } +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmapidb >= 20120425" >&5 +printf %s "checking for libmapidb >= 20120425... " >&6; } if test -n "$libmapidb_CFLAGS"; then pkg_cv_libmapidb_CFLAGS="$libmapidb_CFLAGS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmapidb >= 20120425\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmapidb >= 20120425\""; } >&5 ($PKG_CONFIG --exists --print-errors "libmapidb >= 20120425") 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_libmapidb_CFLAGS=`$PKG_CONFIG --cflags "libmapidb >= 20120425" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -57224,10 +62807,10 @@ if test -n "$libmapidb_LIBS"; then pkg_cv_libmapidb_LIBS="$libmapidb_LIBS" elif test -n "$PKG_CONFIG"; then if test -n "$PKG_CONFIG" && \ - { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmapidb >= 20120425\""; } >&5 + { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmapidb >= 20120425\""; } >&5 ($PKG_CONFIG --exists --print-errors "libmapidb >= 20120425") 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_libmapidb_LIBS=`$PKG_CONFIG --libs "libmapidb >= 20120425" 2>/dev/null` test "x$?" != "x0" && pkg_failed=yes @@ -57241,8 +62824,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 @@ -57250,58 +62833,57 @@ else _pkg_short_errors_supported=no fi if test $_pkg_short_errors_supported = yes; then - libmapidb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmapidb >= 20120425" 2>&1` + libmapidb_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmapidb >= 20120425" 2>&1` else - libmapidb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmapidb >= 20120425" 2>&1` + libmapidb_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmapidb >= 20120425" 2>&1` fi - # Put the nasty error message in config.log where it belongs - echo "$libmapidb_PKG_ERRORS" >&5 + # Put the nasty error message in config.log where it belongs + echo "$libmapidb_PKG_ERRORS" >&5 - ac_cv_libmapidb=check + ac_cv_libmapidb=check elif test $pkg_failed = untried; then - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 -$as_echo "no" >&6; } - ac_cv_libmapidb=check + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5 +printf "%s\n" "no" >&6; } + ac_cv_libmapidb=check else - libmapidb_CFLAGS=$pkg_cv_libmapidb_CFLAGS - libmapidb_LIBS=$pkg_cv_libmapidb_LIBS - { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 -$as_echo "yes" >&6; } - ac_cv_libmapidb=yes + libmapidb_CFLAGS=$pkg_cv_libmapidb_CFLAGS + libmapidb_LIBS=$pkg_cv_libmapidb_LIBS + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5 +printf "%s\n" "yes" >&6; } + ac_cv_libmapidb=yes fi fi - if test "x$ac_cv_libmapidb" = xyes; then : + if test "x$ac_cv_libmapidb" = xyes +then : ac_cv_libmapidb_CPPFLAGS="$pkg_cv_libmapidb_CFLAGS" ac_cv_libmapidb_LIBADD="$pkg_cv_libmapidb_LIBS" fi fi - if test "x$ac_cv_libmapidb" = xcheck; then : - for ac_header in libmapidb.h -do : - ac_fn_c_check_header_mongrel "$LINENO" "libmapidb.h" "ac_cv_header_libmapidb_h" "$ac_includes_default" -if test "x$ac_cv_header_libmapidb_h" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBMAPIDB_H 1 -_ACEOF + if test "x$ac_cv_libmapidb" = xcheck +then : + ac_fn_c_check_header_compile "$LINENO" "libmapidb.h" "ac_cv_header_libmapidb_h" "$ac_includes_default" +if test "x$ac_cv_header_libmapidb_h" = xyes +then : + printf "%s\n" "#define HAVE_LIBMAPIDB_H 1" >>confdefs.h fi -done - - if test "x$ac_cv_header_libmapidb_h" = xno; then : + if test "x$ac_cv_header_libmapidb_h" = xno +then : ac_cv_libmapidb=no -else +else $as_nop ac_cv_libmapidb=yes - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmapidb_get_version in -lmapidb" >&5 -$as_echo_n "checking for libmapidb_get_version in -lmapidb... " >&6; } -if ${ac_cv_lib_mapidb_libmapidb_get_version+:} false; then : - $as_echo_n "(cached) " >&6 -else + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for libmapidb_get_version in -lmapidb" >&5 +printf %s "checking for libmapidb_get_version in -lmapidb... " >&6; } +if test ${ac_cv_lib_mapidb_libmapidb_get_version+y} +then : + printf %s "(cached) " >&6 +else $as_nop ac_check_lib_save_LIBS=$LIBS LIBS="-lmapidb $LIBS" cat confdefs.h - <<_ACEOF >conftest.$ac_ext @@ -57310,32 +62892,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 libmapidb_get_version (); int -main () +main (void) { return libmapidb_get_version (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_mapidb_libmapidb_get_version=yes -else +else $as_nop ac_cv_lib_mapidb_libmapidb_get_version=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_mapidb_libmapidb_get_version" >&5 -$as_echo "$ac_cv_lib_mapidb_libmapidb_get_version" >&6; } -if test "x$ac_cv_lib_mapidb_libmapidb_get_version" = xyes; then : +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mapidb_libmapidb_get_version" >&5 +printf "%s\n" "$ac_cv_lib_mapidb_libmapidb_get_version" >&6; } +if test "x$ac_cv_lib_mapidb_libmapidb_get_version" = xyes +then : ac_cv_libmapidb_dummy=yes -else +else $as_nop ac_cv_libmapidb=no fi @@ -57345,9 +62926,10 @@ fi fi fi - if test "x$ac_cv_with_libmapidb" != x && test "x$ac_cv_with_libmapidb" != xauto-detect && test "x$ac_cv_libmapidb" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_with_libmapidb" != x && test "x$ac_cv_with_libmapidb" != xauto-detect && test "x$ac_cv_libmapidb" != xyes +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 1 "unable to find supported libmapidb in directory: $ac_cv_with_libmapidb See \`config.log' for more details" "$LINENO" 5; } @@ -57355,24 +62937,27 @@ fi fi - if test "x$ac_cv_libmapidb" = xyes; then : + if test "x$ac_cv_libmapidb" = xyes +then : -$as_echo "#define HAVE_LIBMAPIDB 1" >>confdefs.h +printf "%s\n" "#define HAVE_LIBMAPIDB 1" >>confdefs.h fi - if test "x$ac_cv_libmapidb" = xyes; then : + if test "x$ac_cv_libmapidb" = xyes +then : HAVE_LIBMAPIDB=1 -else +else $as_nop HAVE_LIBMAPIDB=0 fi - if test "x$ac_cv_libmapidb" != xyes; then : + if test "x$ac_cv_libmapidb" != xyes +then : ac_cv_libmapidb_CPPFLAGS="-I../libmapidb"; ac_cv_libmapidb_LIBADD="../libmapidb/libmapidb.la"; @@ -57380,7 +62965,7 @@ fi -$as_echo "#define HAVE_LOCAL_LIBMAPIDB 1" >>confdefs.h +printf "%s\n" "#define HAVE_LOCAL_LIBMAPIDB 1" >>confdefs.h HAVE_LOCAL_LIBMAPIDB=1 @@ -57395,24 +62980,28 @@ else HAVE_LOCAL_LIBMAPIDB_FALSE= fi - if test "x$ac_cv_libmapidb_CPPFLAGS" != "x"; then : + if test "x$ac_cv_libmapidb_CPPFLAGS" != "x" +then : LIBMAPIDB_CPPFLAGS=$ac_cv_libmapidb_CPPFLAGS fi - if test "x$ac_cv_libmapidb_LIBADD" != "x"; then : + if test "x$ac_cv_libmapidb_LIBADD" != "x" +then : LIBMAPIDB_LIBADD=$ac_cv_libmapidb_LIBADD fi - if test "x$ac_cv_libmapidb" = xyes; then : + if test "x$ac_cv_libmapidb" = xyes +then : ax_libmapidb_pc_libs_private=-lmapidb fi - if test "x$ac_cv_libmapidb" = xyes; then : + if test "x$ac_cv_libmapidb" = xyes +then : ax_libmapidb_spec_requires=libmapidb ax_libmapidb_spec_build_requires=libmapidb-devel @@ -57421,69 +63010,85 @@ fi fi -for ac_header in signal.h sys/signal.h unistd.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF +ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" +if test "x$ac_cv_header_signal_h" = xyes +then : + printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "sys/signal.h" "ac_cv_header_sys_signal_h" "$ac_includes_default" +if test "x$ac_cv_header_sys_signal_h" = xyes +then : + printf "%s\n" "#define HAVE_SYS_SIGNAL_H 1" >>confdefs.h -done +fi +ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default" +if test "x$ac_cv_header_unistd_h" = xyes +then : + printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h +fi - for ac_func in close getopt setvbuf -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF + + ac_fn_c_check_func "$LINENO" "close" "ac_cv_func_close" +if test "x$ac_cv_func_close" = xyes +then : + printf "%s\n" "#define HAVE_CLOSE 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" +if test "x$ac_cv_func_getopt" = xyes +then : + printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "setvbuf" "ac_cv_func_setvbuf" +if test "x$ac_cv_func_setvbuf" = xyes +then : + printf "%s\n" "#define HAVE_SETVBUF 1" >>confdefs.h fi -done - if test "x$ac_cv_func_close" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_func_close" != xyes +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 1 "Missing function: close See \`config.log' for more details" "$LINENO" 5; } fi - for ac_header in stdarg.h varargs.h -do : - as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` -ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" -if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 -_ACEOF + ac_fn_c_check_header_compile "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default" +if test "x$ac_cv_header_stdarg_h" = xyes +then : + printf "%s\n" "#define HAVE_STDARG_H 1" >>confdefs.h fi +ac_fn_c_check_header_compile "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default" +if test "x$ac_cv_header_varargs_h" = xyes +then : + printf "%s\n" "#define HAVE_VARARGS_H 1" >>confdefs.h -done +fi - if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes; then : - { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 -$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} + if test "x$ac_cv_header_stdarg_h" != xyes && test "x$ac_cv_header_varargs_h" != xyes +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 1 "Missing headers: stdarg.h and varargs.h See \`config.log' for more details" "$LINENO" 5; } fi -if test "x$enable_shared" = xyes && test "x$ac_cv_enable_static_executables" = xno; then : +if test "x$enable_shared" = xyes && test "x$ac_cv_enable_static_executables" = xno +then : case $host in #( *cygwin* | *mingw* | *msys*) : -$as_echo "#define HAVE_DLLMAIN 1" >>confdefs.h +printf "%s\n" "#define HAVE_DLLMAIN 1" >>confdefs.h HAVE_DLLMAIN=1 @@ -57501,37 +63106,58 @@ esac fi -for ac_header in dlfcn.h -do : - ac_fn_c_check_header_mongrel "$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 +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 -done + ac_fn_c_check_func "$LINENO" "fmemopen" "ac_cv_func_fmemopen" +if test "x$ac_cv_func_fmemopen" = xyes +then : + printf "%s\n" "#define HAVE_FMEMOPEN 1" >>confdefs.h - for ac_func in fmemopen getopt mkstemp setenv tzset unlink -do : - as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` -ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" -if eval test \"x\$"$as_ac_var"\" = x"yes"; then : - cat >>confdefs.h <<_ACEOF -#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 -_ACEOF +fi +ac_fn_c_check_func "$LINENO" "getopt" "ac_cv_func_getopt" +if test "x$ac_cv_func_getopt" = xyes +then : + printf "%s\n" "#define HAVE_GETOPT 1" >>confdefs.h fi -done +ac_fn_c_check_func "$LINENO" "mkstemp" "ac_cv_func_mkstemp" +if test "x$ac_cv_func_mkstemp" = xyes +then : + printf "%s\n" "#define HAVE_MKSTEMP 1" >>confdefs.h +fi +ac_fn_c_check_func "$LINENO" "setenv" "ac_cv_func_setenv" +if test "x$ac_cv_func_setenv" = xyes +then : + printf "%s\n" "#define HAVE_SETENV 1" >>confdefs.h - { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 -$as_echo_n "checking for dlsym in -ldl... " >&6; } -if ${ac_cv_lib_dl_dlsym+:} false; then : - $as_echo_n "(cached) " >&6 -else +fi +ac_fn_c_check_func "$LINENO" "tzset" "ac_cv_func_tzset" +if test "x$ac_cv_func_tzset" = xyes +then : + printf "%s\n" "#define HAVE_TZSET 1" >>confdefs.h + +fi +ac_fn_c_check_func "$LINENO" "unlink" "ac_cv_func_unlink" +if test "x$ac_cv_func_unlink" = xyes +then : + printf "%s\n" "#define HAVE_UNLINK 1" >>confdefs.h + +fi + + + { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for dlsym in -ldl" >&5 +printf %s "checking for dlsym in -ldl... " >&6; } +if test ${ac_cv_lib_dl_dlsym+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 @@ -57540,42 +63166,40 @@ 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 dlsym (); int -main () +main (void) { return dlsym (); ; return 0; } _ACEOF -if ac_fn_c_try_link "$LINENO"; then : +if ac_fn_c_try_link "$LINENO" +then : ac_cv_lib_dl_dlsym=yes -else +else $as_nop ac_cv_lib_dl_dlsym=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_dlsym" >&5 -$as_echo "$ac_cv_lib_dl_dlsym" >&6; } -if test "x$ac_cv_lib_dl_dlsym" = xyes; then : - cat >>confdefs.h <<_ACEOF -#define HAVE_LIBDL 1 -_ACEOF +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlsym" >&5 +printf "%s\n" "$ac_cv_lib_dl_dlsym" >&6; } +if test "x$ac_cv_lib_dl_dlsym" = xyes +then : + printf "%s\n" "#define HAVE_LIBDL 1" >>confdefs.h LIBS="-ldl $LIBS" fi - if test "x$lt_cv_prog_gnu_ld" = xyes && test "x$ac_cv_lib_dl_dlsym" = xyes; then : + if test "x$lt_cv_prog_gnu_ld" = xyes && test "x$ac_cv_lib_dl_dlsym" = xyes +then : -$as_echo "#define HAVE_GNU_DL_DLSYM 1" >>confdefs.h +printf "%s\n" "#define HAVE_GNU_DL_DLSYM 1" >>confdefs.h fi @@ -57594,13 +63218,15 @@ fi CFLAGS="$CFLAGS -Wall"; -if test "x$ac_cv_libcerror" = xyes || test "x$ac_cv_libcthreads" = xyes || test "x$ac_cv_libcdata" = xyes || test "x$ac_cv_libclocale" = xyes || test "x$ac_cv_libcnotify" = xyes || test "x$ac_cv_libcsplit" = xyes || test "x$ac_cv_libuna" = xyes || test "x$ac_cv_libcfile" = xyes || test "x$ac_cv_libcpath" = xyes || test "x$ac_cv_libbfio" = xyes || test "x$ac_cv_libfcache" = xyes || test "x$ac_cv_libfdata" = xyes || test "x$ac_cv_libfdatetime" = xyes || test "x$ac_cv_libfguid" = xyes || test "x$ac_cv_libfvalue" = xyes || test "x$ac_cv_libfwnt" = xyes; then : +if test "x$ac_cv_libcerror" = xyes || test "x$ac_cv_libcthreads" = xyes || test "x$ac_cv_libcdata" = xyes || test "x$ac_cv_libclocale" = xyes || test "x$ac_cv_libcnotify" = xyes || test "x$ac_cv_libcsplit" = xyes || test "x$ac_cv_libuna" = xyes || test "x$ac_cv_libcfile" = xyes || test "x$ac_cv_libcpath" = xyes || test "x$ac_cv_libbfio" = xyes || test "x$ac_cv_libfcache" = xyes || test "x$ac_cv_libfdata" = xyes || test "x$ac_cv_libfdatetime" = xyes || test "x$ac_cv_libfguid" = xyes || test "x$ac_cv_libfvalue" = xyes || test "x$ac_cv_libfwnt" = xyes +then : libesedb_spec_requires=Requires: fi -if test "x$ac_cv_libfmapi" = xyes || test "x$ac_cv_libmapidb" = xyes; then : +if test "x$ac_cv_libfmapi" = xyes || test "x$ac_cv_libmapidb" = xyes +then : libesedb_spec_tools_build_requires=BuildRequires: @@ -57726,8 +63352,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) ;; #( @@ -57757,15 +63383,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 @@ -57779,8 +63405,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 @@ -57797,7 +63423,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" @@ -57808,14 +63434,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='#' @@ -57832,6 +63458,10 @@ 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__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then + as_fn_error $? "conditional \"am__fastdepCC\" was never defined. +Usually this means the macro was only invoked conditionally." "$LINENO" 5 +fi if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. Usually this means the macro was only invoked conditionally." "$LINENO" 5 @@ -57933,8 +63563,8 @@ fi 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 @@ -57957,14 +63587,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 ;; #( @@ -57974,46 +63606,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 || @@ -58022,13 +63654,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 #(( @@ -58037,8 +63662,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 @@ -58050,30 +63679,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] @@ -58086,13 +63695,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. @@ -58119,18 +63729,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 @@ -58142,12 +63754,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` @@ -58178,7 +63791,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 @@ -58200,6 +63813,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*) @@ -58213,6 +63830,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 @@ -58254,7 +63877,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" @@ -58263,7 +63886,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 @@ -58325,8 +63948,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 libesedb $as_me 20210424, which was -generated by GNU Autoconf 2.69. Invocation command line was +This file was extended by libesedb $as_me 20230824, which was +generated by GNU Autoconf 2.71. Invocation command line was CONFIG_FILES = $CONFIG_FILES CONFIG_HEADERS = $CONFIG_HEADERS @@ -58388,14 +64011,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="\\ -libesedb config.status 20210424 -configured by $0, generated by GNU Autoconf 2.69, +libesedb config.status 20230824 +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." @@ -58435,15 +64060,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'" @@ -58451,7 +64076,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;; @@ -58460,7 +64085,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=: ;; @@ -58488,7 +64113,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 "\$@" @@ -58502,7 +64127,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 @@ -58520,11 +64145,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"`' @@ -58557,12 +64182,14 @@ lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_q lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' +FILECMD='`$ECHO "$FILECMD" | $SED "$delay_single_quote_subst"`' deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' +lt_ar_flags='`$ECHO "$lt_ar_flags" | $SED "$delay_single_quote_subst"`' AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' @@ -58740,13 +64367,13 @@ LN_S \ lt_SP2NL \ lt_NL2SP \ reload_flag \ +FILECMD \ deplibs_check_method \ file_magic_cmd \ file_magic_glob \ want_nocaseglob \ sharedlib_from_linklib_cmd \ AR \ -AR_FLAGS \ archiver_list_spec \ STRIP \ RANLIB \ @@ -58895,9 +64522,8 @@ fi # Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. + OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" @@ -58967,9 +64593,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 @@ -59305,7 +64931,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 @@ -59313,17 +64939,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 @@ -59340,7 +64966,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 @@ -59364,9 +64990,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/ ;; @@ -59428,8 +65054,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=' @@ -59473,9 +65099,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" @@ -59491,20 +65117,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 @@ -59524,7 +65150,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 @@ -59544,8 +65170,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 @@ -59571,7 +65197,7 @@ esac for am_mf do # Strip MF so we end up with the name of the file. - am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` + 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 @@ -59583,7 +65209,7 @@ $as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ X"$am_mf" : 'X\(//\)[^/]' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X"$am_mf" | +printf "%s\n" X"$am_mf" | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/ q @@ -59605,7 +65231,7 @@ $as_echo X"$am_mf" | $as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ X"$am_mf" : 'X\(//\)$' \| \ X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || -$as_echo X/"$am_mf" | +printf "%s\n" X/"$am_mf" | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/ q @@ -59630,8 +65256,8 @@ $as_echo X/"$am_mf" | (exit $ac_status); } || am_rc=$? done if test $am_rc -ne 0; then - { { $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 $? "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 @@ -59699,6 +65325,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 @@ -59708,10 +65338,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 @@ -59791,6 +65417,9 @@ to_host_file_cmd=$lt_cv_to_host_file_cmd # convert \$build files to toolchain format. to_tool_file_cmd=$lt_cv_to_tool_file_cmd +# A file(cmd) program that detects file types. +FILECMD=$lt_FILECMD + # Method to check whether dependent libraries are shared objects. deplibs_check_method=$lt_deplibs_check_method @@ -59809,8 +65438,11 @@ sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd # The archiver. AR=$lt_AR +# Flags to create an archive (by configure). +lt_ar_flags=$lt_ar_flags + # Flags to create an archive. -AR_FLAGS=$lt_AR_FLAGS +AR_FLAGS=\${ARFLAGS-"\$lt_ar_flags"} # How to feed a file listing to the archiver. archiver_list_spec=$lt_archiver_list_spec @@ -60192,6 +65824,7 @@ _LT_EOF esac + ltmain=$ac_aux_dir/ltmain.sh @@ -60199,7 +65832,7 @@ ltmain=$ac_aux_dir/ltmain.sh # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ + $SED '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || @@ -60370,7 +66003,7 @@ _LT_EOF case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. @@ -60386,7 +66019,8 @@ _LT_EOF if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + gt_tab=`printf '\t'` + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration @@ -60396,14 +66030,11 @@ _LT_EOF if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' + ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) @@ -60507,12 +66138,12 @@ if test "$no_create" != yes; then $ac_cs_success || as_fn_exit 1 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 -{ $as_echo "$as_me:${as_lineno-$LINENO}: +{ printf "%s\n" "$as_me:${as_lineno-$LINENO}: Building: libcerror support: $ac_cv_libcerror libcthreads support: $ac_cv_libcthreads @@ -60541,7 +66172,7 @@ Features: Verbose output: $ac_cv_enable_verbose_output Debug output: $ac_cv_enable_debug_output " >&5 -$as_echo "$as_me: +printf "%s\n" "$as_me: Building: libcerror support: $ac_cv_libcerror libcthreads support: $ac_cv_libcthreads @@ -60571,3 +66202,4 @@ Features: Debug output: $ac_cv_enable_debug_output " >&6;}; + diff --git a/libesedb-sys/libesedb-20210424/configure.ac b/libesedb-sys/libesedb-20230824/configure.ac similarity index 98% rename from libesedb-sys/libesedb-20210424/configure.ac rename to libesedb-sys/libesedb-20230824/configure.ac index 3bd2a00..020d877 100644 --- a/libesedb-sys/libesedb-20210424/configure.ac +++ b/libesedb-sys/libesedb-20230824/configure.ac @@ -1,8 +1,8 @@ -AC_PREREQ( 2.59 ) +AC_PREREQ([2.71]) AC_INIT( [libesedb], - [20210424], + [20230824], [joachim.metz@gmail.com]) AC_CONFIG_SRCDIR( @@ -16,7 +16,7 @@ dnl Check for host type AC_CANONICAL_HOST dnl Check for libtool DLL support -AC_LIBTOOL_WIN32_DLL +LT_INIT([win32-dll]) dnl Checks for programs AC_PROG_CC @@ -26,7 +26,6 @@ AC_PROG_MAKE_SET AC_PROG_INSTALL dnl Check for libtool -AC_PROG_LIBTOOL AC_SUBST(LIBTOOL_DEPS) dnl Check for pkg-config @@ -34,7 +33,7 @@ AC_PATH_PROG(PKGCONFIG,[pkg-config]) dnl Support of internationalization (i18n) AM_GNU_GETTEXT([external]) -AM_GNU_GETTEXT_VERSION([0.18.1]) +AM_GNU_GETTEXT_VERSION([0.21]) dnl Check for compiler language support AC_C_CONST diff --git a/libesedb-sys/libesedb-20210424/depcomp b/libesedb-sys/libesedb-20230824/depcomp similarity index 99% rename from libesedb-sys/libesedb-20210424/depcomp rename to libesedb-sys/libesedb-20230824/depcomp index 6b39162..715e343 100644 --- a/libesedb-sys/libesedb-20210424/depcomp +++ b/libesedb-sys/libesedb-20230824/depcomp @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1999-2020 Free Software Foundation, Inc. +# Copyright (C) 1999-2021 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/libesedb-sys/libesedb-20230824/dpkg/changelog b/libesedb-sys/libesedb-20230824/dpkg/changelog new file mode 100644 index 0000000..900c857 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/dpkg/changelog @@ -0,0 +1,5 @@ +libesedb (20230824-1) unstable; urgency=low + + * Auto-generated + + -- Joachim Metz Sat, 30 Sep 2023 02:46:42 +1000 diff --git a/libesedb-sys/libesedb-20210424/dpkg/changelog.in b/libesedb-sys/libesedb-20230824/dpkg/changelog.in similarity index 100% rename from libesedb-sys/libesedb-20210424/dpkg/changelog.in rename to libesedb-sys/libesedb-20230824/dpkg/changelog.in diff --git a/libesedb-sys/libesedb-20230824/dpkg/compat b/libesedb-sys/libesedb-20230824/dpkg/compat new file mode 100644 index 0000000..f599e28 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/dpkg/compat @@ -0,0 +1 @@ +10 diff --git a/libesedb-sys/libesedb-20210424/dpkg/control b/libesedb-sys/libesedb-20230824/dpkg/control similarity index 76% rename from libesedb-sys/libesedb-20210424/dpkg/control rename to libesedb-sys/libesedb-20230824/dpkg/control index 715aad7..9cd27e9 100644 --- a/libesedb-sys/libesedb-20210424/dpkg/control +++ b/libesedb-sys/libesedb-20230824/dpkg/control @@ -1,7 +1,7 @@ Source: libesedb Priority: extra Maintainer: Joachim Metz -Build-Depends: debhelper (>= 9), dh-autoreconf, pkg-config, python-dev, python-setuptools, python3-dev, python3-setuptools +Build-Depends: debhelper (>= 9), dh-autoreconf, dh-python, pkg-config, python3-dev, python3-setuptools Standards-Version: 4.1.4 Section: libs Homepage: https://github.com/libyal/libesedb @@ -46,23 +46,6 @@ Depends: libesedb-tools (= ${binary:Version}), ${misc:Depends} Description: Debugging symbols for libesedb-tools Debugging symbols for libesedb-tools. -Package: libesedb-python -Section: python -Architecture: any -Depends: libesedb (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} -Conflicts: python-libesedb -Replaces: python-libesedb -Suggests: libesedb-python-dbg -Description: Python 2 bindings for libesedb - Python 2 bindings for libesedb. - -Package: libesedb-python-dbg -Section: debug -Architecture: any -Depends: libesedb-python (= ${binary:Version}), ${misc:Depends} -Description: Debugging symbols for libesedb-python - Debugging symbols for libesedb-python. - Package: libesedb-python3 Section: python Architecture: any diff --git a/libesedb-sys/libesedb-20210424/dpkg/copyright b/libesedb-sys/libesedb-20230824/dpkg/copyright similarity index 94% rename from libesedb-sys/libesedb-20210424/dpkg/copyright rename to libesedb-sys/libesedb-20230824/dpkg/copyright index 040282b..f2a40a8 100644 --- a/libesedb-sys/libesedb-20210424/dpkg/copyright +++ b/libesedb-sys/libesedb-20230824/dpkg/copyright @@ -3,7 +3,7 @@ Upstream-Name: libesedb Source: https://github.com/libyal/libesedb Files: * -Copyright: 2009-2021, Joachim Metz +Copyright: 2009-2023, Joachim Metz License: LGPL-3.0+ License: LGPL-3.0+ diff --git a/libesedb-sys/libesedb-20210424/dpkg/libesedb-dev.install b/libesedb-sys/libesedb-20230824/dpkg/libesedb-dev.install similarity index 100% rename from libesedb-sys/libesedb-20210424/dpkg/libesedb-dev.install rename to libesedb-sys/libesedb-20230824/dpkg/libesedb-dev.install diff --git a/libesedb-sys/libesedb-20210424/dpkg/libesedb-python3.install b/libesedb-sys/libesedb-20230824/dpkg/libesedb-python3.install similarity index 100% rename from libesedb-sys/libesedb-20210424/dpkg/libesedb-python3.install rename to libesedb-sys/libesedb-20230824/dpkg/libesedb-python3.install diff --git a/libesedb-sys/libesedb-20210424/dpkg/libesedb-tools.install b/libesedb-sys/libesedb-20230824/dpkg/libesedb-tools.install similarity index 100% rename from libesedb-sys/libesedb-20210424/dpkg/libesedb-tools.install rename to libesedb-sys/libesedb-20230824/dpkg/libesedb-tools.install diff --git a/libesedb-sys/libesedb-20210424/dpkg/libesedb.install b/libesedb-sys/libesedb-20230824/dpkg/libesedb.install similarity index 100% rename from libesedb-sys/libesedb-20210424/dpkg/libesedb.install rename to libesedb-sys/libesedb-20230824/dpkg/libesedb.install diff --git a/libesedb-sys/libesedb-20210424/dpkg/rules b/libesedb-sys/libesedb-20230824/dpkg/rules similarity index 73% rename from libesedb-sys/libesedb-20210424/dpkg/rules rename to libesedb-sys/libesedb-20230824/dpkg/rules index 0dfa217..ca5e2d0 100644 --- a/libesedb-sys/libesedb-20210424/dpkg/rules +++ b/libesedb-sys/libesedb-20230824/dpkg/rules @@ -7,22 +7,25 @@ export SKIP_PYTHON_TESTS=1 %: - dh $@ --with=autoreconf + dh $@ --buildsystem=autoconf --with=autoreconf,python3 .PHONY: override_dh_auto_configure override_dh_auto_configure: - dh_auto_configure -- --enable-python2 --enable-python3 CFLAGS="-g" + dh_auto_configure -- --enable-python3 CFLAGS="-g" .PHONY: override_dh_install override_dh_install: dh_install --fail-missing -X.la -X/pyesedb.a +.PHONY: override_dh_missing +override_dh_missing: + dh_missing -X.la -X/pyesedb.a --fail-missing + .PHONY: override_dh_strip override_dh_strip: ifeq (,$(filter nostrip,$(DEB_BUILD_OPTIONS))) dh_strip -plibesedb --dbg-package=libesedb-dbg dh_strip -plibesedb-tools --dbg-package=libesedb-tools-dbg - dh_strip -plibesedb-python --dbg-package=libesedb-python-dbg dh_strip -plibesedb-python3 --dbg-package=libesedb-python3-dbg endif diff --git a/libesedb-sys/libesedb-20210424/dpkg/source/format b/libesedb-sys/libesedb-20230824/dpkg/source/format similarity index 100% rename from libesedb-sys/libesedb-20210424/dpkg/source/format rename to libesedb-sys/libesedb-20230824/dpkg/source/format diff --git a/libesedb-sys/libesedb-20210424/esedbtools/Makefile.am b/libesedb-sys/libesedb-20230824/esedbtools/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/esedbtools/Makefile.am rename to libesedb-sys/libesedb-20230824/esedbtools/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/esedbtools/Makefile.in b/libesedb-sys/libesedb-20230824/esedbtools/Makefile.in similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/Makefile.in rename to libesedb-sys/libesedb-20230824/esedbtools/Makefile.in index c2bd8fd..4c29879 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/Makefile.in +++ b/libesedb-sys/libesedb-20230824/esedbtools/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -92,25 +92,26 @@ bin_PROGRAMS = esedbexport$(EXEEXT) esedbinfo$(EXEEXT) subdir = esedbtools ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -209,8 +210,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -227,6 +226,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -242,8 +243,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -361,8 +364,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -569,6 +572,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -876,7 +880,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/esedbtools/database_types.c b/libesedb-sys/libesedb-20230824/esedbtools/database_types.c similarity index 98% rename from libesedb-sys/libesedb-20210424/esedbtools/database_types.c rename to libesedb-sys/libesedb-20230824/esedbtools/database_types.c index 7f59f89..51e1895 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/database_types.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/database_types.c @@ -1,7 +1,7 @@ /* * Database types * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/database_types.h b/libesedb-sys/libesedb-20230824/esedbtools/database_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/database_types.h rename to libesedb-sys/libesedb-20230824/esedbtools/database_types.h index 816289c..8eede75 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/database_types.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/database_types.h @@ -1,7 +1,7 @@ /* * Database types * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbexport.c b/libesedb-sys/libesedb-20230824/esedbtools/esedbexport.c similarity index 99% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbexport.c rename to libesedb-sys/libesedb-20230824/esedbtools/esedbexport.c index 117b75c..b06ac88 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbexport.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbexport.c @@ -1,7 +1,7 @@ /* * Extracts tables from an Extensible Storage Engine (ESE) Database (EDB) file * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbinfo.c b/libesedb-sys/libesedb-20230824/esedbtools/esedbinfo.c similarity index 98% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbinfo.c rename to libesedb-sys/libesedb-20230824/esedbtools/esedbinfo.c index b9f86ee..7a81303 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbinfo.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbinfo.c @@ -1,7 +1,7 @@ /* * Shows information obtained from an Extensible Storage Engine (ESE) Database (EDB) file * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_getopt.c b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_getopt.c similarity index 98% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_getopt.c rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_getopt.c index 012a717..98974ae 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_getopt.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_getopt.c @@ -1,7 +1,7 @@ /* * GetOpt functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_getopt.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_getopt.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_getopt.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_getopt.h index 3cbc475..6e45588 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_getopt.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_getopt.h @@ -1,7 +1,7 @@ /* * GetOpt functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_i18n.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_i18n.h similarity index 94% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_i18n.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_i18n.h index a7ddea0..d5d3e58 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_i18n.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_i18n.h @@ -1,7 +1,7 @@ /* * Internationalization (i18n) functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libbfio.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libbfio.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libbfio.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libbfio.h index 7a088e1..f0b4fac 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libbfio.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libbfio.h @@ -1,7 +1,7 @@ /* * The libbfio header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcdata.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcdata.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcdata.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcdata.h index 7e06649..e5af024 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcdata.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcdata.h @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcerror.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcerror.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcerror.h index 44c1698..6e868aa 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcerror.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcfile.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcfile.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcfile.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcfile.h index a11077e..f8cff11 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcfile.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcfile.h @@ -1,7 +1,7 @@ /* * The libcfile header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libclocale.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libclocale.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libclocale.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libclocale.h index e37b1c4..f8e3c0c 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libclocale.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libclocale.h @@ -1,7 +1,7 @@ /* * The libclocale header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcnotify.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcnotify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcnotify.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcnotify.h index c5f0a7d..4b2232b 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcnotify.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcnotify.h @@ -1,7 +1,7 @@ /* * The libcnotify header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcpath.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcpath.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcpath.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcpath.h index 465bed2..1912220 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libcpath.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libcpath.h @@ -1,7 +1,7 @@ /* * The libcpath header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libesedb.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libesedb.h similarity index 93% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libesedb.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libesedb.h index cefe95e..db78a6b 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libesedb.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libesedb.h @@ -1,7 +1,7 @@ /* * The libesedb header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfdatetime.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfdatetime.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfdatetime.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfdatetime.h index 3ba8acb..b96eef1 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfdatetime.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfdatetime.h @@ -1,7 +1,7 @@ /* * The libfdatetime header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfguid.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfguid.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfguid.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfguid.h index 87709fe..c52bcba 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfguid.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfguid.h @@ -1,7 +1,7 @@ /* * The libfguid header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfmapi.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfmapi.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfmapi.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfmapi.h index 1528de0..69d7508 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfmapi.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfmapi.h @@ -1,7 +1,7 @@ /* * The libfmapi header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfvalue.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfvalue.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfvalue.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfvalue.h index acd53a7..bc4c5a3 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfvalue.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfvalue.h @@ -1,7 +1,7 @@ /* * The libfvalue header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfwnt.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfwnt.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfwnt.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfwnt.h index e9e8664..793e160 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libfwnt.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libfwnt.h @@ -1,7 +1,7 @@ /* * The libfwnt header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libuna.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libuna.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libuna.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libuna.h index e36f50e..26594e4 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_libuna.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_libuna.h @@ -1,7 +1,7 @@ /* * The libuna header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_output.c b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_output.c similarity index 97% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_output.c rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_output.c index b121591..1f1b212 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_output.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_output.c @@ -1,7 +1,7 @@ /* * Common output functions for the esedbtools * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -107,7 +107,7 @@ void esedboutput_copyright_fprint( */ fprintf( stream, - _( "Copyright (C) 2009-2021, %s.\n" ), + _( "Copyright (C) 2009-2023, %s.\n" ), _( "Joachim Metz" ) ); fprintf( diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_output.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_output.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_output.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_output.h index 6c1bc5a..d73099c 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_output.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_output.h @@ -1,7 +1,7 @@ /* * Common output functions for the esedbtools * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_signal.c b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_signal.c similarity index 98% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_signal.c rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_signal.c index 0e3948f..e1c638d 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_signal.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_signal.c @@ -1,7 +1,7 @@ /* * Signal handling functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_signal.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_signal.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_signal.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_signal.h index 4641bd3..a59aaaa 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_signal.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_signal.h @@ -1,7 +1,7 @@ /* * Signal handling functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_system_string.c b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_system_string.c similarity index 97% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_system_string.c rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_system_string.c index bf9e3a1..7faa82b 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_system_string.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_system_string.c @@ -1,7 +1,7 @@ /* * Character string functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_system_string.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_system_string.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_system_string.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_system_string.h index ecc619f..c13cfa8 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_system_string.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_system_string.h @@ -1,7 +1,7 @@ /* * System character string functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_unused.h b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/esedbtools_unused.h rename to libesedb-sys/libesedb-20230824/esedbtools/esedbtools_unused.h index d7efab7..c565658 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/esedbtools_unused.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/esedbtools_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/exchange.c b/libesedb-sys/libesedb-20230824/esedbtools/exchange.c similarity index 100% rename from libesedb-sys/libesedb-20210424/esedbtools/exchange.c rename to libesedb-sys/libesedb-20230824/esedbtools/exchange.c diff --git a/libesedb-sys/libesedb-20210424/esedbtools/exchange.h b/libesedb-sys/libesedb-20230824/esedbtools/exchange.h similarity index 100% rename from libesedb-sys/libesedb-20210424/esedbtools/exchange.h rename to libesedb-sys/libesedb-20230824/esedbtools/exchange.h diff --git a/libesedb-sys/libesedb-20210424/esedbtools/export.c b/libesedb-sys/libesedb-20230824/esedbtools/export.c similarity index 100% rename from libesedb-sys/libesedb-20210424/esedbtools/export.c rename to libesedb-sys/libesedb-20230824/esedbtools/export.c diff --git a/libesedb-sys/libesedb-20210424/esedbtools/export.h b/libesedb-sys/libesedb-20230824/esedbtools/export.h similarity index 100% rename from libesedb-sys/libesedb-20210424/esedbtools/export.h rename to libesedb-sys/libesedb-20230824/esedbtools/export.h diff --git a/libesedb-sys/libesedb-20210424/esedbtools/export_handle.c b/libesedb-sys/libesedb-20230824/esedbtools/export_handle.c similarity index 99% rename from libesedb-sys/libesedb-20210424/esedbtools/export_handle.c rename to libesedb-sys/libesedb-20230824/esedbtools/export_handle.c index f01eac8..e13d758 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/export_handle.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/export_handle.c @@ -1,7 +1,7 @@ /* * Export handle * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/export_handle.h b/libesedb-sys/libesedb-20230824/esedbtools/export_handle.h similarity index 98% rename from libesedb-sys/libesedb-20210424/esedbtools/export_handle.h rename to libesedb-sys/libesedb-20230824/esedbtools/export_handle.h index 4b3461e..7074cbf 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/export_handle.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/export_handle.h @@ -1,7 +1,7 @@ /* * Export handle * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/info_handle.c b/libesedb-sys/libesedb-20230824/esedbtools/info_handle.c similarity index 99% rename from libesedb-sys/libesedb-20210424/esedbtools/info_handle.c rename to libesedb-sys/libesedb-20230824/esedbtools/info_handle.c index 118fe7a..2642350 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/info_handle.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/info_handle.c @@ -1,7 +1,7 @@ /* * Info handle * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/info_handle.h b/libesedb-sys/libesedb-20230824/esedbtools/info_handle.h similarity index 97% rename from libesedb-sys/libesedb-20210424/esedbtools/info_handle.h rename to libesedb-sys/libesedb-20230824/esedbtools/info_handle.h index c4f567c..4831c2e 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/info_handle.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/info_handle.h @@ -1,7 +1,7 @@ /* * Info handle * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/log_handle.c b/libesedb-sys/libesedb-20230824/esedbtools/log_handle.c similarity index 98% rename from libesedb-sys/libesedb-20210424/esedbtools/log_handle.c rename to libesedb-sys/libesedb-20230824/esedbtools/log_handle.c index 893b2b7..71d6e43 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/log_handle.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/log_handle.c @@ -1,7 +1,7 @@ /* * Log handle * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/log_handle.h b/libesedb-sys/libesedb-20230824/esedbtools/log_handle.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/log_handle.h rename to libesedb-sys/libesedb-20230824/esedbtools/log_handle.h index d271caf..7b71fb7 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/log_handle.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/log_handle.h @@ -1,7 +1,7 @@ /* * Log handle * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/srumdb.c b/libesedb-sys/libesedb-20230824/esedbtools/srumdb.c similarity index 99% rename from libesedb-sys/libesedb-20210424/esedbtools/srumdb.c rename to libesedb-sys/libesedb-20230824/esedbtools/srumdb.c index 3d0eada..225570a 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/srumdb.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/srumdb.c @@ -1,7 +1,7 @@ /* * System Resource Usage Monitor (SRUM) database export functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/srumdb.h b/libesedb-sys/libesedb-20230824/esedbtools/srumdb.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/srumdb.h rename to libesedb-sys/libesedb-20230824/esedbtools/srumdb.h index 435f995..3485cc3 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/srumdb.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/srumdb.h @@ -1,7 +1,7 @@ /* * System Resource Usage Monitor (SRUM) database export functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/webcache.c b/libesedb-sys/libesedb-20230824/esedbtools/webcache.c similarity index 99% rename from libesedb-sys/libesedb-20210424/esedbtools/webcache.c rename to libesedb-sys/libesedb-20230824/esedbtools/webcache.c index 33d7327..c72c310 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/webcache.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/webcache.c @@ -1,7 +1,7 @@ /* * MSIE web cache database export functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/webcache.h b/libesedb-sys/libesedb-20230824/esedbtools/webcache.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/webcache.h rename to libesedb-sys/libesedb-20230824/esedbtools/webcache.h index 9923e71..c27de09 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/webcache.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/webcache.h @@ -1,7 +1,7 @@ /* * MSIE web cache database export functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/windows_search.c b/libesedb-sys/libesedb-20230824/esedbtools/windows_search.c similarity index 99% rename from libesedb-sys/libesedb-20210424/esedbtools/windows_search.c rename to libesedb-sys/libesedb-20230824/esedbtools/windows_search.c index 3b829ec..a5e5cc5 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/windows_search.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/windows_search.c @@ -1,7 +1,7 @@ /* * Windows Search database export functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/windows_search.h b/libesedb-sys/libesedb-20230824/esedbtools/windows_search.h similarity index 97% rename from libesedb-sys/libesedb-20210424/esedbtools/windows_search.h rename to libesedb-sys/libesedb-20230824/esedbtools/windows_search.h index d278877..208183c 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/windows_search.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/windows_search.h @@ -1,7 +1,7 @@ /* * Windows Search database export functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/windows_search_compression.c b/libesedb-sys/libesedb-20230824/esedbtools/windows_search_compression.c similarity index 99% rename from libesedb-sys/libesedb-20210424/esedbtools/windows_search_compression.c rename to libesedb-sys/libesedb-20230824/esedbtools/windows_search_compression.c index 3614605..fa30afc 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/windows_search_compression.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/windows_search_compression.c @@ -1,7 +1,7 @@ /* * Windows Search database compression functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/windows_search_compression.h b/libesedb-sys/libesedb-20230824/esedbtools/windows_search_compression.h similarity index 95% rename from libesedb-sys/libesedb-20210424/esedbtools/windows_search_compression.h rename to libesedb-sys/libesedb-20230824/esedbtools/windows_search_compression.h index eb219a3..da330b8 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/windows_search_compression.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/windows_search_compression.h @@ -1,7 +1,7 @@ /* * Windows Search database compression functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/windows_security.c b/libesedb-sys/libesedb-20230824/esedbtools/windows_security.c similarity index 99% rename from libesedb-sys/libesedb-20210424/esedbtools/windows_security.c rename to libesedb-sys/libesedb-20230824/esedbtools/windows_security.c index 2895cb2..a47fc59 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/windows_security.c +++ b/libesedb-sys/libesedb-20230824/esedbtools/windows_security.c @@ -1,7 +1,7 @@ /* * Windows Security database export functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/esedbtools/windows_security.h b/libesedb-sys/libesedb-20230824/esedbtools/windows_security.h similarity index 96% rename from libesedb-sys/libesedb-20210424/esedbtools/windows_security.h rename to libesedb-sys/libesedb-20230824/esedbtools/windows_security.h index b0be4a0..538aab6 100644 --- a/libesedb-sys/libesedb-20210424/esedbtools/windows_security.h +++ b/libesedb-sys/libesedb-20230824/esedbtools/windows_security.h @@ -1,7 +1,7 @@ /* * Windows Security database export functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/Makefile.am b/libesedb-sys/libesedb-20230824/include/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/include/Makefile.am rename to libesedb-sys/libesedb-20230824/include/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/include/Makefile.in b/libesedb-sys/libesedb-20230824/include/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/include/Makefile.in rename to libesedb-sys/libesedb-20230824/include/Makefile.in index 226757a..7abfcc6 100644 --- a/libesedb-sys/libesedb-20210424/include/Makefile.in +++ b/libesedb-sys/libesedb-20230824/include/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = include ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(include_HEADERS) \ @@ -184,8 +185,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/libesedb.h.in DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -202,6 +201,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -217,8 +218,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -336,8 +339,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -544,6 +547,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -706,7 +710,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/include/libesedb.h b/libesedb-sys/libesedb-20230824/include/libesedb.h similarity index 99% rename from libesedb-sys/libesedb-20210424/include/libesedb.h rename to libesedb-sys/libesedb-20230824/include/libesedb.h index 4a3da6f..9321acb 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb.h +++ b/libesedb-sys/libesedb-20230824/include/libesedb.h @@ -1,7 +1,7 @@ /* * Library to access the Extensible Storage Engine (ESE) Database File (EDB) format * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb.h.in b/libesedb-sys/libesedb-20230824/include/libesedb.h.in similarity index 99% rename from libesedb-sys/libesedb-20210424/include/libesedb.h.in rename to libesedb-sys/libesedb-20230824/include/libesedb.h.in index 4a3da6f..9321acb 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb.h.in +++ b/libesedb-sys/libesedb-20230824/include/libesedb.h.in @@ -1,7 +1,7 @@ /* * Library to access the Extensible Storage Engine (ESE) Database File (EDB) format * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/codepage.h b/libesedb-sys/libesedb-20230824/include/libesedb/codepage.h similarity index 98% rename from libesedb-sys/libesedb-20210424/include/libesedb/codepage.h rename to libesedb-sys/libesedb-20230824/include/libesedb/codepage.h index cd00f53..c77b4f5 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/codepage.h +++ b/libesedb-sys/libesedb-20230824/include/libesedb/codepage.h @@ -1,7 +1,7 @@ /* * Codepage definitions for libesedb * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/definitions.h b/libesedb-sys/libesedb-20230824/include/libesedb/definitions.h similarity index 95% rename from libesedb-sys/libesedb-20210424/include/libesedb/definitions.h rename to libesedb-sys/libesedb-20230824/include/libesedb/definitions.h index d1dd000..332f525 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/definitions.h +++ b/libesedb-sys/libesedb-20230824/include/libesedb/definitions.h @@ -1,7 +1,7 @@ /* * Definitions for libesedb * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -24,11 +24,11 @@ #include -#define LIBESEDB_VERSION 20210424 +#define LIBESEDB_VERSION 20230824 /* The version string */ -#define LIBESEDB_VERSION_STRING "20210424" +#define LIBESEDB_VERSION_STRING "20230824" /* The access flags definitions * bit 1 set to 1 for read access diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/definitions.h.in b/libesedb-sys/libesedb-20230824/include/libesedb/definitions.h.in similarity index 97% rename from libesedb-sys/libesedb-20210424/include/libesedb/definitions.h.in rename to libesedb-sys/libesedb-20230824/include/libesedb/definitions.h.in index 622301f..3640106 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/definitions.h.in +++ b/libesedb-sys/libesedb-20230824/include/libesedb/definitions.h.in @@ -1,7 +1,7 @@ /* * Definitions for libesedb * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/error.h b/libesedb-sys/libesedb-20230824/include/libesedb/error.h similarity index 99% rename from libesedb-sys/libesedb-20210424/include/libesedb/error.h rename to libesedb-sys/libesedb-20230824/include/libesedb/error.h index ae24c48..13950a3 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/error.h +++ b/libesedb-sys/libesedb-20230824/include/libesedb/error.h @@ -1,7 +1,7 @@ /* * The error code definitions for libesedb * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/extern.h b/libesedb-sys/libesedb-20230824/include/libesedb/extern.h similarity index 95% rename from libesedb-sys/libesedb-20210424/include/libesedb/extern.h rename to libesedb-sys/libesedb-20230824/include/libesedb/extern.h index 75ac3d4..154da3c 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/extern.h +++ b/libesedb-sys/libesedb-20230824/include/libesedb/extern.h @@ -4,7 +4,7 @@ * This header should be included in header files that export or import * library functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/features.h b/libesedb-sys/libesedb-20230824/include/libesedb/features.h similarity index 95% rename from libesedb-sys/libesedb-20210424/include/libesedb/features.h rename to libesedb-sys/libesedb-20230824/include/libesedb/features.h index d1389dd..6d9f413 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/features.h +++ b/libesedb-sys/libesedb-20230824/include/libesedb/features.h @@ -1,7 +1,7 @@ /* * Features of libesedb * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/features.h.in b/libesedb-sys/libesedb-20230824/include/libesedb/features.h.in similarity index 95% rename from libesedb-sys/libesedb-20210424/include/libesedb/features.h.in rename to libesedb-sys/libesedb-20230824/include/libesedb/features.h.in index bcfdf41..b7bc127 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/features.h.in +++ b/libesedb-sys/libesedb-20230824/include/libesedb/features.h.in @@ -1,7 +1,7 @@ /* * Features of libesedb * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/types.h b/libesedb-sys/libesedb-20230824/include/libesedb/types.h similarity index 98% rename from libesedb-sys/libesedb-20210424/include/libesedb/types.h rename to libesedb-sys/libesedb-20230824/include/libesedb/types.h index dd7174a..2dbcee2 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/types.h +++ b/libesedb-sys/libesedb-20230824/include/libesedb/types.h @@ -1,7 +1,7 @@ /* * Type definitions for libesedb * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/include/libesedb/types.h.in b/libesedb-sys/libesedb-20230824/include/libesedb/types.h.in similarity index 98% rename from libesedb-sys/libesedb-20210424/include/libesedb/types.h.in rename to libesedb-sys/libesedb-20230824/include/libesedb/types.h.in index bdd172f..e4c401c 100644 --- a/libesedb-sys/libesedb-20210424/include/libesedb/types.h.in +++ b/libesedb-sys/libesedb-20230824/include/libesedb/types.h.in @@ -1,7 +1,7 @@ /* * Type definitions for libesedb * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/install-sh b/libesedb-sys/libesedb-20230824/install-sh similarity index 80% rename from libesedb-sys/libesedb-20210424/install-sh rename to libesedb-sys/libesedb-20230824/install-sh index 20d8b2e..ec298b5 100644 --- a/libesedb-sys/libesedb-20210424/install-sh +++ b/libesedb-sys/libesedb-20230824/install-sh @@ -1,7 +1,7 @@ #!/bin/sh # install - install a program, script, or datafile -scriptversion=2018-03-11.20; # UTC +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 @@ -69,6 +69,11 @@ 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= @@ -99,18 +104,28 @@ Options: --version display version info and exit. -c (ignored) - -C install only if different (preserve the last data modification time) + -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 @@ -137,8 +152,13 @@ while test $# -ne 0; do -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 @@ -255,6 +275,10 @@ do 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 @@ -301,22 +325,6 @@ do if test $dstdir_status != 0; then case $posix_mkdir in '') - # Create intermediate dirs using mode 755 as modified by the umask. - # This is like FreeBSD 'install' as of 1997-10-28. - umask=`umask` - case $stripcmd.$umask in - # Optimize common cases. - *[2367][2367]) mkdir_umask=$umask;; - .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;; - - *[0-7]) - mkdir_umask=`expr $umask + 22 \ - - $umask % 100 % 40 + $umask % 20 \ - - $umask % 10 % 4 + $umask % 2 - `;; - *) mkdir_umask=$umask,go-w;; - esac - # With -d, create the new directory with the user-specified mode. # Otherwise, rely on $mkdir_umask. if test -n "$dir_arg"; then @@ -326,52 +334,49 @@ do fi posix_mkdir=false - case $umask in - *[123567][0-7][0-7]) - # POSIX mkdir -p sets u+wx bits regardless of umask, which - # is incompatible with FreeBSD 'install' when (umask & 300) != 0. - ;; - *) - # Note that $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' feature. - 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;; + # 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 @@ -382,7 +387,7 @@ do then : else - # The umask is ridiculous, or mkdir does not conform to POSIX, + # 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. @@ -411,7 +416,7 @@ do prefixes= else if $posix_mkdir; then - (umask=$mkdir_umask && + (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 @@ -488,6 +493,13 @@ do 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 || @@ -502,9 +514,9 @@ do # file should still install successfully. { test ! -f "$dst" || - $doit $rmcmd -f "$dst" 2>/dev/null || + $doit $rmcmd "$dst" 2>/dev/null || { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null && - { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; } + { $doit $rmcmd "$rmtmp" 2>/dev/null; :; } } || { echo "$0: cannot unlink or rename $dst" >&2 (exit 1); exit 1 diff --git a/libesedb-sys/libesedb-20210424/libbfio/Makefile.am b/libesedb-sys/libesedb-20230824/libbfio/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libbfio/Makefile.am rename to libesedb-sys/libesedb-20230824/libbfio/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libbfio/Makefile.in b/libesedb-sys/libesedb-20230824/libbfio/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/Makefile.in rename to libesedb-sys/libesedb-20230824/libbfio/Makefile.in index 8a5675e..2679671 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libbfio/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libbfio ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -219,8 +220,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -237,6 +236,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -252,8 +253,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -371,8 +374,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -579,6 +582,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -782,7 +786,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_codepage.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_codepage.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_codepage.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_codepage.h index ea909df..226e7bf 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_codepage.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_codepage.h @@ -1,7 +1,7 @@ /* * Codepage functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_definitions.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_definitions.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_definitions.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_definitions.h index 024a948..5a51040 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_definitions.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -33,11 +33,11 @@ * for local use of libbfio */ #else -#define LIBBFIO_VERSION 20201229 +#define LIBBFIO_VERSION 20221025 /* The libbfio version string */ -#define LIBBFIO_VERSION_STRING "20201229" +#define LIBBFIO_VERSION_STRING "20221025" /* The library flags definitions */ diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_error.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_error.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_error.c index e35700f..db7bcf3 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_error.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_error.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_error.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_error.h index 2eb18f9..0cea5e1 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_error.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_extern.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_extern.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_extern.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_extern.h index 92dde0b..de5dc57 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_extern.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file.c index a06f861..5074f7f 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file.c @@ -1,7 +1,7 @@ /* * File functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file.h index ca44a5e..126be01 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file.h @@ -1,7 +1,7 @@ /* * File functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_io_handle.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_io_handle.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file_io_handle.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file_io_handle.c index 128c571..785154e 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_io_handle.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_io_handle.c @@ -1,7 +1,7 @@ /* * File IO handle functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -416,13 +416,14 @@ int libbfio_file_io_handle_set_name( return( -1 ); } - if( name_length == 0 ) + if( ( name_length == 0 ) + || ( name_length > ( (size_t) SSIZE_MAX - 1 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, - "%s: invalid name length is zero.", + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid name length value out of bounds.", function ); return( -1 ); @@ -458,8 +459,8 @@ int libbfio_file_io_handle_set_name( memory_free( file_io_handle->name ); - file_io_handle->name = NULL; - file_io_handle->name_size = 0; + file_io_handle->name = NULL; + file_io_handle->name_size = 0; } if( libbfio_system_string_size_from_narrow_string( name, @@ -476,13 +477,14 @@ int libbfio_file_io_handle_set_name( goto on_error; } - if( file_io_handle->name_size > ( (size_t) SSIZE_MAX / sizeof( system_character_t ) ) ) + if( ( file_io_handle->name_size == 0 ) + || ( file_io_handle->name_size > ( (size_t) SSIZE_MAX / sizeof( system_character_t ) ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: invalid file IO handle - name size value exceeds maximum.", + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid file IO handle - name size value out of bounds.", function ); goto on_error; @@ -650,13 +652,14 @@ int libbfio_file_io_handle_set_name_wide( return( -1 ); } - if( name_length == 0 ) + if( ( name_length == 0 ) + || ( name_length > ( (size_t) SSIZE_MAX - 1 ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS, - "%s: invalid name length is zero.", + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid name length value out of bounds.", function ); return( -1 ); @@ -692,8 +695,8 @@ int libbfio_file_io_handle_set_name_wide( memory_free( file_io_handle->name ); - file_io_handle->name = NULL; - file_io_handle->name_size = 0; + file_io_handle->name = NULL; + file_io_handle->name_size = 0; } if( libbfio_system_string_size_from_wide_string( name, @@ -710,13 +713,14 @@ int libbfio_file_io_handle_set_name_wide( goto on_error; } - if( file_io_handle->name_size > ( (size_t) SSIZE_MAX / sizeof( system_character_t ) ) ) + if( ( file_io_handle->name_size == 0 ) + || ( file_io_handle->name_size > ( (size_t) SSIZE_MAX / sizeof( system_character_t ) ) ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: invalid file IO handle - name size value exceeds maximum.", + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid file IO handle - name size value out of bounds.", function ); goto on_error; diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_io_handle.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_io_handle.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file_io_handle.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file_io_handle.h index d1de803..a46f8b3 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_io_handle.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_io_handle.h @@ -1,7 +1,7 @@ /* * File IO handle functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_pool.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_pool.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file_pool.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file_pool.c index 5be920b..92d5c8c 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_pool.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_pool.c @@ -1,7 +1,7 @@ /* * File pool functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_pool.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_pool.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file_pool.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file_pool.h index 0056203..caa1efd 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_pool.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_pool.h @@ -1,7 +1,7 @@ /* * File pool functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range.c index 07abe49..e963618 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range.c @@ -1,7 +1,7 @@ /* * File range functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range.h index c8e64cf..46d21fa 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range.h @@ -1,7 +1,7 @@ /* * File range functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range_io_handle.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range_io_handle.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range_io_handle.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range_io_handle.c index 151de11..33ccaaa 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range_io_handle.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range_io_handle.c @@ -1,7 +1,7 @@ /* * File range IO handle functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range_io_handle.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range_io_handle.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range_io_handle.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range_io_handle.h index 9f2b242..9118175 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_file_range_io_handle.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_file_range_io_handle.h @@ -1,7 +1,7 @@ /* * File range IO handle functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_handle.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_handle.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_handle.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_handle.c index a105c07..41bcfbe 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_handle.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_handle.c @@ -1,7 +1,7 @@ /* * The handle functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -2565,6 +2565,7 @@ int libbfio_handle_get_number_of_offsets_read( { libbfio_internal_handle_t *internal_handle = NULL; static char *function = "libbfio_handle_get_number_of_offsets_read"; + int result = 1; if( handle == NULL ) { @@ -2606,7 +2607,7 @@ int libbfio_handle_get_number_of_offsets_read( "%s: unable to retrieve number of read offsets.", function ); - goto on_error; + result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( @@ -2623,15 +2624,7 @@ int libbfio_handle_get_number_of_offsets_read( return( -1 ); } #endif - return( 1 ); - -on_error: -#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) - libcthreads_read_write_lock_release_for_read( - internal_handle->read_write_lock, - NULL ); -#endif - return( -1 ); + return( result ); } /* Retrieves the information of an offset read @@ -2645,8 +2638,9 @@ int libbfio_handle_get_offset_read( libcerror_error_t **error ) { libbfio_internal_handle_t *internal_handle = NULL; - static char *function = "libbfio_handle_get_offset_read"; intptr_t *value = NULL; + static char *function = "libbfio_handle_get_offset_read"; + int result = 1; if( handle == NULL ) { @@ -2692,7 +2686,7 @@ int libbfio_handle_get_offset_read( function, index ); - goto on_error; + result = -1; } #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) if( libcthreads_read_write_lock_release_for_read( @@ -2709,14 +2703,6 @@ int libbfio_handle_get_offset_read( return( -1 ); } #endif - return( 1 ); - -on_error: -#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBBFIO ) - libcthreads_read_write_lock_release_for_read( - internal_handle->read_write_lock, - NULL ); -#endif - return( -1 ); + return( result ); } diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_handle.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_handle.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_handle.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_handle.h index 73254db..269e010 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_handle.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_handle.h @@ -1,7 +1,7 @@ /* * The handle functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcdata.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcdata.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_libcdata.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_libcdata.h index 72a6ea3..4b97aa5 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcdata.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcdata.h @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcerror.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_libcerror.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_libcerror.h index 96d5914..65b3a10 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcfile.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcfile.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_libcfile.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_libcfile.h index b00f9f7..92815d3 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcfile.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcfile.h @@ -1,7 +1,7 @@ /* * The internal libcfile header * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libclocale.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libclocale.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_libclocale.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_libclocale.h index ab93a9d..d8abf2f 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libclocale.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libclocale.h @@ -1,7 +1,7 @@ /* * The libclocale header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcpath.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcpath.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_libcpath.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_libcpath.h index 4f9b268..0935ee5 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcpath.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcpath.h @@ -1,7 +1,7 @@ /* * The internal libcpath header * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcthreads.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcthreads.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_libcthreads.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_libcthreads.h index 98a2427..286ca1b 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libcthreads.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libcthreads.h @@ -1,7 +1,7 @@ /* * The libcthreads header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libuna.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libuna.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_libuna.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_libuna.h index 43f4853..c9e84a2 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_libuna.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_libuna.h @@ -1,7 +1,7 @@ /* * The libuna header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range.c index d884dd8..c9f8e14 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range.c @@ -1,7 +1,7 @@ /* * Memory range functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range.h index 5db287f..c5f40dd 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range.h @@ -1,7 +1,7 @@ /* * Memory range functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range_io_handle.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range_io_handle.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range_io_handle.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range_io_handle.c index 679e287..70f5e92 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range_io_handle.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range_io_handle.c @@ -1,7 +1,7 @@ /* * Memory range IO handle functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range_io_handle.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range_io_handle.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range_io_handle.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range_io_handle.h index ae36176..3aa7050 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_memory_range_io_handle.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_memory_range_io_handle.h @@ -1,7 +1,7 @@ /* * Memory range IO handle functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_pool.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_pool.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_pool.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_pool.c index d4c51f3..f60f48d 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_pool.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_pool.c @@ -1,7 +1,7 @@ /* * The internal pool functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -667,9 +667,10 @@ int libbfio_internal_pool_append_handle_to_last_used_list( const libbfio_handle_t *handle, libcerror_error_t **error ) { - libbfio_internal_handle_t *internal_handle = NULL; - libcdata_list_element_t *last_used_list_element = NULL; - static char *function = "libbfio_internal_pool_append_handle_to_last_used_list"; + libbfio_internal_handle_t *internal_handle = NULL; + libcdata_list_element_t *last_used_list_element = NULL; + libcdata_list_element_t *safe_last_used_list_element = NULL; + static char *function = "libbfio_internal_pool_append_handle_to_last_used_list"; if( internal_pool == NULL ) { @@ -721,13 +722,13 @@ int libbfio_internal_pool_append_handle_to_last_used_list( "%s: unable to retrieve last list element from last used list.", function ); - return( -1 ); + goto on_error; } } if( last_used_list_element == NULL ) { if( libcdata_list_element_initialize( - &last_used_list_element, + &safe_last_used_list_element, error ) != 1 ) { libcerror_error_set( @@ -737,9 +738,11 @@ int libbfio_internal_pool_append_handle_to_last_used_list( "%s: unable to create last used list element.", function ); - return( -1 ); + goto on_error; } internal_pool->number_of_open_handles++; + + last_used_list_element = safe_last_used_list_element; } else { @@ -757,7 +760,7 @@ int libbfio_internal_pool_append_handle_to_last_used_list( "%s: unable to retrieve value from last used list element.", function ); - return( -1 ); + goto on_error; } if( libcdata_list_remove_element( internal_pool->last_used_list, @@ -771,8 +774,12 @@ int libbfio_internal_pool_append_handle_to_last_used_list( "%s: unable to remove last list element from last used list.", function ); - return( -1 ); + goto on_error; } + safe_last_used_list_element = last_used_list_element; + + internal_handle->pool_last_used_list_element = NULL; + if( internal_handle != NULL ) { if( libbfio_handle_close( @@ -786,15 +793,8 @@ int libbfio_internal_pool_append_handle_to_last_used_list( "%s: unable to close handle.", function ); - libcdata_list_element_free( - &last_used_list_element, - NULL, - NULL ); - - return( -1 ); + goto on_error; } - internal_handle->pool_last_used_list_element = NULL; - /* Make sure the truncate flag is removed from the handle */ internal_handle->access_flags &= ~( LIBBFIO_ACCESS_FLAG_TRUNCATE ); @@ -811,13 +811,11 @@ int libbfio_internal_pool_append_handle_to_last_used_list( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set value int last used list element.", + "%s: unable to set value in last used list element.", function ); - return( -1 ); + goto on_error; } - internal_handle->pool_last_used_list_element = last_used_list_element; - if( libcdata_list_prepend_element( internal_pool->last_used_list, last_used_list_element, @@ -830,14 +828,21 @@ int libbfio_internal_pool_append_handle_to_last_used_list( "%s: unable to prepend last used list element to list.", function ); + goto on_error; + } + internal_handle->pool_last_used_list_element = last_used_list_element; + + return( 1 ); + +on_error: + if( safe_last_used_list_element != NULL ) + { libcdata_list_element_free( - &last_used_list_element, + &safe_last_used_list_element, NULL, NULL ); - - return( -1 ); } - return( 1 ); + return( -1 ); } /* Moves the handle to the front of the last used list @@ -900,11 +905,9 @@ int libbfio_internal_pool_move_handle_to_front_of_last_used_list( "%s: unable to retrieve first list element from last used list.", function ); - return( -1 ); + goto on_error; } - last_used_list_element = internal_handle->pool_last_used_list_element; - - if( last_used_list_element == NULL ) + if( internal_handle->pool_last_used_list_element == NULL ) { libcerror_error_set( error, @@ -913,9 +916,9 @@ int libbfio_internal_pool_move_handle_to_front_of_last_used_list( "%s: missing last used list element.", function ); - return( -1 ); + goto on_error; } - if( last_used_list_element != first_list_element ) + if( internal_handle->pool_last_used_list_element != first_list_element ) { if( libcdata_list_remove_element( internal_pool->last_used_list, @@ -929,8 +932,10 @@ int libbfio_internal_pool_move_handle_to_front_of_last_used_list( "%s: unable to remove last used list element from list.", function ); - return( -1 ); + goto on_error; } + internal_handle->pool_last_used_list_element = NULL; + if( libcdata_list_prepend_element( internal_pool->last_used_list, last_used_list_element, @@ -943,17 +948,21 @@ int libbfio_internal_pool_move_handle_to_front_of_last_used_list( "%s: unable to prepend last used list element to list.", function ); - internal_handle->pool_last_used_list_element = NULL; - - libcdata_list_element_free( - &last_used_list_element, - NULL, - NULL ); - - return( -1 ); + goto on_error; } + internal_handle->pool_last_used_list_element = last_used_list_element; } return( 1 ); + +on_error: + if( last_used_list_element != NULL ) + { + libcdata_list_element_free( + &last_used_list_element, + NULL, + NULL ); + } + return( -1 ); } /* Removes a handle from the last used list @@ -1055,6 +1064,20 @@ int libbfio_internal_pool_remove_handle_from_last_used_list( return( -1 ); } + if( libcdata_list_element_free( + &last_used_list_element, + NULL, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, + "%s: unable to free last used list element.", + function ); + + return( -1 ); + } } return( 1 ); } @@ -1873,10 +1896,11 @@ int libbfio_pool_set_maximum_number_of_open_handles( int maximum_number_of_open_handles, libcerror_error_t **error ) { - libbfio_internal_handle_t *internal_handle = NULL; - libbfio_internal_pool_t *internal_pool = NULL; - libcdata_list_element_t *last_used_list_element = NULL; - static char *function = "libbfio_pool_set_maximum_number_of_open_handles"; + libbfio_internal_handle_t *internal_handle = NULL; + libbfio_internal_pool_t *internal_pool = NULL; + libcdata_list_element_t *last_used_list_element = NULL; + libcdata_list_element_t *safe_last_used_list_element = NULL; + static char *function = "libbfio_pool_set_maximum_number_of_open_handles"; if( pool == NULL ) { @@ -1975,6 +1999,10 @@ int libbfio_pool_set_maximum_number_of_open_handles( goto on_error; } + safe_last_used_list_element = last_used_list_element; + + internal_handle->pool_last_used_list_element = NULL; + if( libbfio_handle_close( (libbfio_handle_t *) internal_handle, error ) != 0 ) @@ -1990,14 +2018,12 @@ int libbfio_pool_set_maximum_number_of_open_handles( } internal_pool->number_of_open_handles--; - internal_handle->pool_last_used_list_element = NULL; - /* Make sure the truncate flag is removed from the handle */ internal_handle->access_flags &= ~( LIBBFIO_ACCESS_FLAG_TRUNCATE ); if( libcdata_list_element_free( - &last_used_list_element, + &safe_last_used_list_element, NULL, error ) != 1 ) { @@ -2029,10 +2055,10 @@ int libbfio_pool_set_maximum_number_of_open_handles( return( 1 ); on_error: - if( last_used_list_element != NULL ) + if( safe_last_used_list_element != NULL ) { libcdata_list_element_free( - &last_used_list_element, + &safe_last_used_list_element, NULL, NULL ); } @@ -2320,10 +2346,11 @@ int libbfio_internal_pool_close( int entry, libcerror_error_t **error ) { - libbfio_handle_t *handle = NULL; - libbfio_internal_handle_t *internal_handle = NULL; - libcdata_list_element_t *last_used_list_element = NULL; - static char *function = "libbfio_internal_pool_close"; + libbfio_handle_t *handle = NULL; + libbfio_internal_handle_t *internal_handle = NULL; + libcdata_list_element_t *last_used_list_element = NULL; + libcdata_list_element_t *safe_last_used_list_element = NULL; + static char *function = "libbfio_internal_pool_close"; if( internal_pool == NULL ) { @@ -2410,10 +2437,12 @@ int libbfio_internal_pool_close( goto on_error; } + safe_last_used_list_element = last_used_list_element; + internal_handle->pool_last_used_list_element = NULL; if( libcdata_list_element_free( - &last_used_list_element, + &safe_last_used_list_element, NULL, error ) != 1 ) { @@ -2449,10 +2478,10 @@ int libbfio_internal_pool_close( return( 0 ); on_error: - if( last_used_list_element != NULL ) + if( safe_last_used_list_element != NULL ) { libcdata_list_element_free( - &last_used_list_element, + &safe_last_used_list_element, NULL, NULL ); } diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_pool.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_pool.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_pool.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_pool.h index ea6eb06..6d6849f 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_pool.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_pool.h @@ -1,7 +1,7 @@ /* * The internal pool functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_support.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_support.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_support.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_support.c index 6d14cd2..58f865d 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_support.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_support.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_support.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_support.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_support.h index 63e2075..4da26a3 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_support.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_system_string.c b/libesedb-sys/libesedb-20230824/libbfio/libbfio_system_string.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_system_string.c rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_system_string.c index 86f61b4..dde15ad 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_system_string.c +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_system_string.c @@ -1,7 +1,7 @@ /* * System string functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_system_string.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_system_string.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_system_string.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_system_string.h index 5e435ea..94be3ce 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_system_string.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_system_string.h @@ -1,7 +1,7 @@ /* * System string functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_types.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_types.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_types.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_types.h index a708af0..6eeaa73 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_types.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libbfio/libbfio_unused.h b/libesedb-sys/libesedb-20230824/libbfio/libbfio_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libbfio/libbfio_unused.h rename to libesedb-sys/libesedb-20230824/libbfio/libbfio_unused.h index c2fd222..6a54bfb 100644 --- a/libesedb-sys/libesedb-20210424/libbfio/libbfio_unused.h +++ b/libesedb-sys/libesedb-20230824/libbfio/libbfio_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/Makefile.am b/libesedb-sys/libesedb-20230824/libcdata/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libcdata/Makefile.am rename to libesedb-sys/libesedb-20230824/libcdata/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libcdata/Makefile.in b/libesedb-sys/libesedb-20230824/libcdata/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libcdata/Makefile.in rename to libesedb-sys/libesedb-20230824/libcdata/Makefile.in index f9dd514..1794c33 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libcdata/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libcdata ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -215,8 +216,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -233,6 +232,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -248,8 +249,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -367,8 +370,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -575,6 +578,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -763,7 +767,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_array.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_array.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_array.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_array.c index 7269c55..da0f57a 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_array.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_array.c @@ -1,7 +1,7 @@ /* * Array functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -1663,7 +1663,9 @@ int libcdata_array_append_entry( * Duplicate entries are allowed by default and inserted after the last duplicate entry. * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES * - * entry_index is set when the entry was successfully inserted + * entry_index is set to the index of the entry when the entry was successfully inserted + * or to the index of the existing entry when the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES + * is set and an existing entry was found. * * Returns 1 if successful, 0 if the entry already exists or -1 on error */ @@ -1679,7 +1681,7 @@ int libcdata_array_insert_entry( libcerror_error_t **error ) { libcdata_internal_array_t *internal_array = NULL; - static char *function = "libcdata_tree_node_insert_node"; + static char *function = "libcdata_array_insert_entry"; int compare_result = 0; int entry_iterator = 0; int result = 0; @@ -1862,7 +1864,7 @@ int libcdata_array_insert_entry( goto on_error; } #endif - if( result == 1 ) + if( result != -1 ) { *entry_index = safe_entry_index; } diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_array.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_array.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_array.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_array.h index 79cca37..15ba2a0 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_array.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_array.h @@ -1,7 +1,7 @@ /* * Array functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_btree.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_btree.c index 2d3104e..0f662c8 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree.c @@ -1,7 +1,7 @@ /* * Balanced tree type functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_btree.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_btree.h index a72ed1c..70e70d9 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree.h @@ -1,7 +1,7 @@ /* * Balanced tree type functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_node.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_node.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_node.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_node.c index 49caf16..1a113c9 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_node.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_node.c @@ -1,7 +1,7 @@ /* * Balanced tree node functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_node.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_node.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_node.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_node.h index 4e8a7eb..a943c26 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_node.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_node.h @@ -1,7 +1,7 @@ /* * Balanced tree node functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_values_list.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_values_list.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_values_list.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_values_list.c index 6ab6d6e..60ef713 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_values_list.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_values_list.c @@ -1,7 +1,7 @@ /* * Balanced tree values list functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_values_list.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_values_list.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_values_list.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_values_list.h index 7d8d734..82aef34 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_btree_values_list.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_btree_values_list.h @@ -1,7 +1,7 @@ /* * Balanced tree values list functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_definitions.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_definitions.h similarity index 93% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_definitions.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_definitions.h index 2783f4f..bd6fd66 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_definitions.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -35,11 +35,11 @@ */ #else -#define LIBCDATA_VERSION 20200509 +#define LIBCDATA_VERSION 20230108 /* The libcdata version string */ -#define LIBCDATA_VERSION_STRING "20200509" +#define LIBCDATA_VERSION_STRING "20230108" /* The comparison function definitions */ diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_error.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_error.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_error.c index 751255b..93709c0 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_error.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_error.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_error.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_error.h index 65214ef..87eb15a 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_error.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_extern.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_extern.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_extern.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_extern.h index 3f7de79..c65a7f8 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_extern.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBCDATA_EXTERN_VARIABLE extern +#else #define LIBCDATA_EXTERN_VARIABLE LIBCDATA_EXTERN +#endif #else #define LIBCDATA_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_libcerror.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_libcerror.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_libcerror.h index 389ce97..6dc21be 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_libcthreads.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_libcthreads.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_libcthreads.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_libcthreads.h index c29e4d8..54631d5 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_libcthreads.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_libcthreads.h @@ -1,7 +1,7 @@ /* * The libcthreads header wrapper * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_list.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_list.c similarity index 92% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_list.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_list.c index 97025d1..7dacb03 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_list.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_list.c @@ -1,7 +1,7 @@ /* * List functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -2106,18 +2106,66 @@ int libcdata_list_insert_element( uint8_t insert_flags, libcerror_error_t **error ) { - libcdata_internal_list_t *internal_list = NULL; - libcdata_list_element_t *list_element = NULL; - libcdata_list_element_t *next_element = NULL; - libcdata_list_element_t *previous_element = NULL; - intptr_t *value_to_insert = NULL; - static char *function = "libcdata_list_insert_element"; - int element_index = 0; - int result = 1; + libcdata_list_element_t *existing_element = NULL; + static char *function = "libcdata_list_insert_element"; + int result = 0; + + result = libcdata_list_insert_element_with_existing( + list, + element_to_insert, + value_compare_function, + insert_flags, + &existing_element, + error ); + + if( result == -1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, + "%s: unable to insert element into list.", + function ); + + return( -1 ); + } + return( result ); +} + +/* Inserts a list element into the list + * + * Uses the value_compare_function to determine the order of the entries + * The value_compare_function should return LIBCDATA_COMPARE_LESS, + * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error + * + * Duplicate entries are allowed by default and inserted after the last duplicate value. + * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES + * + * Returns 1 if successful, 0 if the list element already exists or -1 on error + */ +int libcdata_list_insert_element_with_existing( + libcdata_list_t *list, + libcdata_list_element_t *element_to_insert, + int (*value_compare_function)( + intptr_t *first_value, + intptr_t *second_value, + libcerror_error_t **error ), + uint8_t insert_flags, + libcdata_list_element_t **existing_element, + libcerror_error_t **error ) +{ + libcdata_internal_list_t *internal_list = NULL; + libcdata_list_element_t *next_element = NULL; + libcdata_list_element_t *previous_element = NULL; + libcdata_list_element_t *safe_existing_element = NULL; + intptr_t *value_to_insert = NULL; + static char *function = "libcdata_list_insert_element_with_existing"; + int element_index = 0; + int result = 1; #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) - libcdata_list_element_t *backup_first_element = NULL; - libcdata_list_element_t *backup_last_element = NULL; + libcdata_list_element_t *backup_first_element = NULL; + libcdata_list_element_t *backup_last_element = NULL; #endif if( list == NULL ) @@ -2217,6 +2265,19 @@ int libcdata_list_insert_element( return( -1 ); } + if( existing_element == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid existing element.", + function ); + + return( -1 ); + } + *existing_element = NULL; + if( libcdata_list_element_get_elements( element_to_insert, &previous_element, @@ -2274,7 +2335,8 @@ int libcdata_list_insert_element( } backup_first_element = internal_list->first_element; backup_last_element = internal_list->last_element; -#endif + +#endif /* defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) */ result = libcdata_internal_list_insert_element_find_element( internal_list, @@ -2282,7 +2344,7 @@ int libcdata_list_insert_element( value_compare_function, insert_flags, &element_index, - &list_element, + &safe_existing_element, error ); if( result == -1 ) @@ -2296,12 +2358,16 @@ int libcdata_list_insert_element( result = -1; } - else if( result == 1 ) + else if( result == 0 ) + { + *existing_element = safe_existing_element; + } + else { - if( list_element != NULL ) + if( safe_existing_element != NULL ) { if( libcdata_list_element_get_elements( - list_element, + safe_existing_element, &previous_element, &next_element, error ) != 1 ) @@ -2321,7 +2387,7 @@ int libcdata_list_insert_element( { if( libcdata_internal_list_insert_element_before_element( internal_list, - list_element, + safe_existing_element, element_to_insert, error ) != 1 ) { @@ -2354,6 +2420,7 @@ int libcdata_list_insert_element( return( result ); #if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) + on_error: if( result == 1 ) { @@ -2363,10 +2430,10 @@ int libcdata_list_insert_element( NULL, NULL ); - if( list_element != NULL ) + if( safe_existing_element != NULL ) { libcdata_list_element_set_elements( - list_element, + safe_existing_element, previous_element, next_element, NULL ); @@ -2384,7 +2451,8 @@ int libcdata_list_insert_element( internal_list->number_of_elements -= 1; } return( -1 ); -#endif + +#endif /* defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) */ } /* Inserts a value to the list @@ -2410,9 +2478,73 @@ int libcdata_list_insert_value( uint8_t insert_flags, libcerror_error_t **error ) { - libcdata_list_element_t *element = NULL; - static char *function = "libcdata_list_insert_value"; - int result = 1; + intptr_t *existing_value = NULL; + static char *function = "libcdata_list_insert_value"; + int result = 0; + + result = libcdata_list_insert_value_with_existing( + list, + value, + value_compare_function, + insert_flags, + &existing_value, + error ); + + if( result == -1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, + "%s: unable to insert value into list.", + function ); + + return( -1 ); + } + return( result ); +} + +/* Inserts a value to the list + * + * Creates a new list element + * + * Uses the value_compare_function to determine the order of the entries + * The value_compare_function should return LIBCDATA_COMPARE_LESS, + * LIBCDATA_COMPARE_EQUAL, LIBCDATA_COMPARE_GREATER if successful or -1 on error + * + * Duplicate entries are allowed by default and inserted after the last duplicate value. + * Only allowing unique entries can be enforced by setting the flag LIBCDATA_INSERT_FLAG_UNIQUE_ENTRIES + * + * Returns 1 if successful, 0 if the list element already exists or -1 on error + */ +int libcdata_list_insert_value_with_existing( + libcdata_list_t *list, + intptr_t *value, + int (*value_compare_function)( + intptr_t *first_value, + intptr_t *second_value, + libcerror_error_t **error ), + uint8_t insert_flags, + intptr_t **existing_value, + libcerror_error_t **error ) +{ + libcdata_list_element_t *element = NULL; + libcdata_list_element_t *existing_element = NULL; + static char *function = "libcdata_list_insert_value_with_existing"; + int result = 1; + + if( existing_value == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid existing value.", + function ); + + return( -1 ); + } + *existing_value = NULL; if( libcdata_list_element_initialize( &element, @@ -2441,11 +2573,12 @@ int libcdata_list_insert_value( goto on_error; } - result = libcdata_list_insert_element( + result = libcdata_list_insert_element_with_existing( list, element, value_compare_function, insert_flags, + &existing_element, error ); if( result == -1 ) @@ -2475,6 +2608,20 @@ int libcdata_list_insert_value( goto on_error; } + if( libcdata_list_element_get_value( + existing_element, + existing_value, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve value from existing list element.", + function ); + + goto on_error; + } } return( result ); diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_list.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_list.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_list.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_list.h index a3bb8fb..b6239a6 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_list.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_list.h @@ -1,7 +1,7 @@ /* * List functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -186,6 +186,18 @@ int libcdata_list_insert_element( uint8_t insert_flags, libcerror_error_t **error ); +LIBCDATA_EXTERN \ +int libcdata_list_insert_element_with_existing( + libcdata_list_t *list, + libcdata_list_element_t *element_to_insert, + int (*value_compare_function)( + intptr_t *first, + intptr_t *second, + libcerror_error_t **error ), + uint8_t insert_flags, + libcdata_list_element_t **existing_element, + libcerror_error_t **error ); + LIBCDATA_EXTERN \ int libcdata_list_insert_value( libcdata_list_t *list, @@ -197,6 +209,18 @@ int libcdata_list_insert_value( uint8_t insert_flags, libcerror_error_t **error ); +LIBCDATA_EXTERN \ +int libcdata_list_insert_value_with_existing( + libcdata_list_t *list, + intptr_t *value, + int (*value_compare_function)( + intptr_t *first, + intptr_t *second, + libcerror_error_t **error ), + uint8_t insert_flags, + intptr_t **existing_value, + libcerror_error_t **error ); + LIBCDATA_EXTERN \ int libcdata_list_remove_element( libcdata_list_t *list, diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_list_element.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_list_element.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_list_element.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_list_element.c index 49dba02..0d1b569 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_list_element.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_list_element.c @@ -1,7 +1,7 @@ /* * List element functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_list_element.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_list_element.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_list_element.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_list_element.h index 9a1f688..07efc2e 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_list_element.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_list_element.h @@ -1,7 +1,7 @@ /* * List element functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list.c index e1a1f05..7ffb26b 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list.c @@ -1,7 +1,7 @@ /* * Range list * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -4443,8 +4443,9 @@ int libcdata_range_list_get_range_at_offset( return( -1 ); } -/* Determines if a certain range is present - * Returns 1 if present, 0 if not present or -1 on error +/* Determines if a certain range is present in the list + * This function does not check for partial overlapping ranges + * Returns 1 if a range is present, 0 if not or -1 on error */ int libcdata_range_list_range_is_present( libcdata_range_list_t *range_list, @@ -4484,7 +4485,163 @@ int libcdata_range_list_range_is_present( return( -1 ); } - if( range_size > (size_t) SSIZE_MAX ) + if( range_size > (uint64_t) INT64_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid size value exceeds maximum.", + function ); + + return( -1 ); + } + range_end = range_start + range_size; + + if( range_end < range_start ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid range end value out of bounds.", + function ); + + return( -1 ); + } +#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) + if( libcthreads_read_write_lock_grab_for_read( + internal_range_list->read_write_lock, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to grab read/write lock for reading.", + function ); + + return( -1 ); + } +#endif +/* TODO add optimization using current element */ + list_element = internal_range_list->first_element; + + for( element_index = 0; + element_index < internal_range_list->number_of_elements; + element_index++ ) + { + if( libcdata_list_element_get_value( + list_element, + (intptr_t **) &range_list_value, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve value from list element: %d.", + function, + element_index ); + + goto on_error; + } + if( range_end < range_list_value->start ) + { + break; + } + if( ( range_start >= range_list_value->start ) + && ( range_end <= range_list_value->end ) ) + { + result = 1; + + break; + } + if( libcdata_list_element_get_next_element( + list_element, + &list_element, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve next element from list element: %d.", + function, + element_index ); + + goto on_error; + } + } +#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) + if( libcthreads_read_write_lock_release_for_read( + internal_range_list->read_write_lock, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to release read/write lock for reading.", + function ); + + return( -1 ); + } +#endif + return( result ); + +on_error: +#if defined( HAVE_MULTI_THREAD_SUPPORT ) && !defined( HAVE_LOCAL_LIBCDATA ) + libcthreads_read_write_lock_release_for_read( + internal_range_list->read_write_lock, + NULL ); +#endif + return( -1 ); +} + +/* Determines if a certain range is present in the list + * This function does not check for partial overlapping ranges + * Returns 1 if a range is present, 0 if not or -1 on error + */ +int libcdata_range_list_range_has_overlapping_range( + libcdata_range_list_t *range_list, + uint64_t range_start, + uint64_t range_size, + libcerror_error_t **error ) +{ + libcdata_internal_range_list_t *internal_range_list = NULL; + libcdata_list_element_t *list_element = NULL; + libcdata_range_list_value_t *range_list_value = NULL; + static char *function = "libcdata_range_list_range_has_overlapping_range"; + uint64_t range_end = 0; + int element_index = 0; + int result = 0; + + if( range_list == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid range list.", + function ); + + return( -1 ); + } + internal_range_list = (libcdata_internal_range_list_t *) range_list; + + if( range_start > (uint64_t) INT64_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid range start value exceeds maximum.", + function ); + + return( -1 ); + } + if( range_size > (uint64_t) INT64_MAX ) { libcerror_error_set( error, @@ -4550,6 +4707,13 @@ int libcdata_range_list_range_is_present( break; } if( ( range_start >= range_list_value->start ) + && ( range_start < range_list_value->end ) ) + { + result = 1; + + break; + } + if( ( range_end > range_list_value->start ) && ( range_end <= range_list_value->end ) ) { result = 1; diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list.h index ff3514b..7183033 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list.h @@ -1,7 +1,7 @@ /* * Range list * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -360,6 +360,13 @@ int libcdata_range_list_range_is_present( uint64_t range_size, libcerror_error_t **error ); +LIBCDATA_EXTERN \ +int libcdata_range_list_range_has_overlapping_range( + libcdata_range_list_t *range_list, + uint64_t range_start, + uint64_t range_size, + libcerror_error_t **error ); + LIBCDATA_EXTERN \ int libcdata_range_list_get_spanning_range( libcdata_range_list_t *range_list, diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list_value.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list_value.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list_value.c index 9fef775..fea73bb 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list_value.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list_value.c @@ -1,7 +1,7 @@ /* * Range list value * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list_value.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list_value.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list_value.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list_value.h index 00fb355..b66b453 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_range_list_value.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_range_list_value.h @@ -1,7 +1,7 @@ /* * Range list value * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_support.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_support.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_support.c index 736ca13..6df4e1b 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_support.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_support.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_support.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_support.h index cbe17b0..6c93ee6 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_support.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_tree_node.c b/libesedb-sys/libesedb-20230824/libcdata/libcdata_tree_node.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_tree_node.c rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_tree_node.c index e8af5df..b37da15 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_tree_node.c +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_tree_node.c @@ -1,7 +1,7 @@ /* * Tree functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_tree_node.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_tree_node.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_tree_node.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_tree_node.h index ef246de..2c2c7cd 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_tree_node.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_tree_node.h @@ -1,7 +1,7 @@ /* * Tree functions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_types.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_types.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_types.h index 62b3981..c3bcdc0 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_types.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcdata/libcdata_unused.h b/libesedb-sys/libesedb-20230824/libcdata/libcdata_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcdata/libcdata_unused.h rename to libesedb-sys/libesedb-20230824/libcdata/libcdata_unused.h index 085819c..b426097 100644 --- a/libesedb-sys/libesedb-20210424/libcdata/libcdata_unused.h +++ b/libesedb-sys/libesedb-20230824/libcdata/libcdata_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2006-2020, Joachim Metz + * Copyright (C) 2006-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcerror/Makefile.am b/libesedb-sys/libesedb-20230824/libcerror/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libcerror/Makefile.am rename to libesedb-sys/libesedb-20230824/libcerror/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libcerror/Makefile.in b/libesedb-sys/libesedb-20230824/libcerror/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libcerror/Makefile.in rename to libesedb-sys/libesedb-20230824/libcerror/Makefile.in index 1df4005..57e4ee9 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libcerror/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libcerror ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -194,8 +195,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -212,6 +211,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -227,8 +228,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -346,8 +349,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -554,6 +557,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -721,7 +725,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_definitions.h b/libesedb-sys/libesedb-20230824/libcerror/libcerror_definitions.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_definitions.h rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_definitions.h index 62583e4..343780c 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_definitions.h +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -35,11 +35,11 @@ */ #else -#define LIBCERROR_VERSION 20201121 +#define LIBCERROR_VERSION 20220101 /* The libcerror version string */ -#define LIBCERROR_VERSION_STRING "20201121" +#define LIBCERROR_VERSION_STRING "20220101" /* The error domains */ diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_error.c b/libesedb-sys/libesedb-20230824/libcerror/libcerror_error.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_error.c rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_error.c index c49bfc5..30ead67 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_error.c +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_error.h b/libesedb-sys/libesedb-20230824/libcerror/libcerror_error.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_error.h rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_error.h index e528317..143da1c 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_error.h +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_extern.h b/libesedb-sys/libesedb-20230824/libcerror/libcerror_extern.h similarity index 91% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_extern.h rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_extern.h index 3a864e6..b1d0696 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_extern.h +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,7 @@ #include -#if defined( __CYGWIN__ ) +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) #define LIBCERROR_EXTERN_VARIABLE extern #else #define LIBCERROR_EXTERN_VARIABLE LIBCERROR_EXTERN diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_support.c b/libesedb-sys/libesedb-20230824/libcerror/libcerror_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_support.c rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_support.c index f80a6df..1250bb2 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_support.c +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_support.h b/libesedb-sys/libesedb-20230824/libcerror/libcerror_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_support.h rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_support.h index f8fba33..d2307e2 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_support.h +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_system.c b/libesedb-sys/libesedb-20230824/libcerror/libcerror_system.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_system.c rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_system.c index 24b3a87..38dcc93 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_system.c +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_system.c @@ -1,7 +1,7 @@ /* * System functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_system.h b/libesedb-sys/libesedb-20230824/libcerror/libcerror_system.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_system.h rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_system.h index 51bfff0..4940f2a 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_system.h +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_system.h @@ -1,7 +1,7 @@ /* * System functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_types.h b/libesedb-sys/libesedb-20230824/libcerror/libcerror_types.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_types.h rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_types.h index 9f9fcf4..65a187b 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_types.h +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcerror/libcerror_unused.h b/libesedb-sys/libesedb-20230824/libcerror/libcerror_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcerror/libcerror_unused.h rename to libesedb-sys/libesedb-20230824/libcerror/libcerror_unused.h index 2390ef4..b965f0c 100644 --- a/libesedb-sys/libesedb-20210424/libcerror/libcerror_unused.h +++ b/libesedb-sys/libesedb-20230824/libcerror/libcerror_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/Makefile.am b/libesedb-sys/libesedb-20230824/libcfile/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libcfile/Makefile.am rename to libesedb-sys/libesedb-20230824/libcfile/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libcfile/Makefile.in b/libesedb-sys/libesedb-20230824/libcfile/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libcfile/Makefile.in rename to libesedb-sys/libesedb-20230824/libcfile/Makefile.in index d351e1a..8d77fbc 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libcfile/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libcfile ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -201,8 +202,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -219,6 +218,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -234,8 +235,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -353,8 +356,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -561,6 +564,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -742,7 +746,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_definitions.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_definitions.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_definitions.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_definitions.h index 1fb39a2..d869996 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_definitions.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -35,11 +35,11 @@ */ #else -#define LIBCFILE_VERSION 20201229 +#define LIBCFILE_VERSION 20210616 /* The libcfile version string */ -#define LIBCFILE_VERSION_STRING "20201229" +#define LIBCFILE_VERSION_STRING "20210616" /* The file access flags * bit 1 set to 1 for read access diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_error.c b/libesedb-sys/libesedb-20230824/libcfile/libcfile_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_error.c rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_error.c index 2e596ec..cdae4b1 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_error.c +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_error.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_error.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_error.h index c96cec6..2004092 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_error.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_extern.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_extern.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_extern.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_extern.h index 7b5e246..030734a 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_extern.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_file.c b/libesedb-sys/libesedb-20230824/libcfile/libcfile_file.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_file.c rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_file.c index 4307a35..45e3fc8 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_file.c +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_file.c @@ -1,7 +1,7 @@ /* * File functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_file.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_file.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_file.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_file.h index 33be863..826d0d4 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_file.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_file.h @@ -1,7 +1,7 @@ /* * File functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_libcerror.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_libcerror.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_libcerror.h index daa5c15..576211e 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_libclocale.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_libclocale.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_libclocale.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_libclocale.h index 9fd1bdb..6858451 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_libclocale.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_libclocale.h @@ -1,7 +1,7 @@ /* * The libclocale header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_libcnotify.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_libcnotify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_libcnotify.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_libcnotify.h index 0459b23..82ff205 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_libcnotify.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_libcnotify.h @@ -1,7 +1,7 @@ /* * The libcnotify header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_libuna.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_libuna.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_libuna.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_libuna.h index 72832e9..fc75742 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_libuna.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_libuna.h @@ -1,7 +1,7 @@ /* * The libuna header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_notify.c b/libesedb-sys/libesedb-20230824/libcfile/libcfile_notify.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_notify.c rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_notify.c index 05f134e..ceca205 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_notify.c +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_notify.c @@ -1,7 +1,7 @@ /* * Notification functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_notify.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_notify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_notify.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_notify.h index d91aedd..64332fe 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_notify.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_notify.h @@ -1,7 +1,7 @@ /* * Notification functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_support.c b/libesedb-sys/libesedb-20230824/libcfile/libcfile_support.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_support.c rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_support.c index 559263c..56e383e 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_support.c +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_support.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_support.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_support.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_support.h index 3961b49..0ab3ff8 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_support.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_system_string.c b/libesedb-sys/libesedb-20230824/libcfile/libcfile_system_string.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_system_string.c rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_system_string.c index a4644a0..0f9e704 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_system_string.c +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_system_string.c @@ -1,7 +1,7 @@ /* * System string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_system_string.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_system_string.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_system_string.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_system_string.h index 97fa3f2..3dfed99 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_system_string.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_system_string.h @@ -1,7 +1,7 @@ /* * System string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_types.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_types.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_types.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_types.h index 9cfd61f..d73b1a0 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_types.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_unused.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_unused.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_unused.h index 54beec1..f1f6d19 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_unused.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_winapi.c b/libesedb-sys/libesedb-20230824/libcfile/libcfile_winapi.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_winapi.c rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_winapi.c index e0a31a8..26c7cc8 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_winapi.c +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_winapi.c @@ -1,7 +1,7 @@ /* * WINAPI fallback functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcfile/libcfile_winapi.h b/libesedb-sys/libesedb-20230824/libcfile/libcfile_winapi.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcfile/libcfile_winapi.h rename to libesedb-sys/libesedb-20230824/libcfile/libcfile_winapi.h index 3bc8c72..4b4ea04 100644 --- a/libesedb-sys/libesedb-20210424/libcfile/libcfile_winapi.h +++ b/libesedb-sys/libesedb-20230824/libcfile/libcfile_winapi.h @@ -1,7 +1,7 @@ /* * WINAPI fallback functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2021, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/Makefile.am b/libesedb-sys/libesedb-20230824/libclocale/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libclocale/Makefile.am rename to libesedb-sys/libesedb-20230824/libclocale/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libclocale/Makefile.in b/libesedb-sys/libesedb-20230824/libclocale/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libclocale/Makefile.in rename to libesedb-sys/libesedb-20230824/libclocale/Makefile.in index c71636b..bba879e 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libclocale/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libclocale ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -198,8 +199,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -216,6 +215,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -231,8 +232,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -350,8 +353,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -558,6 +561,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -729,7 +733,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_codepage.c b/libesedb-sys/libesedb-20230824/libclocale/libclocale_codepage.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_codepage.c rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_codepage.c index 73a65e9..ba30786 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_codepage.c +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_codepage.c @@ -1,7 +1,7 @@ /* * Codepage functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_codepage.h b/libesedb-sys/libesedb-20230824/libclocale/libclocale_codepage.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_codepage.h rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_codepage.h index 27e2e24..7a69a96 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_codepage.h +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_codepage.h @@ -1,7 +1,7 @@ /* * Codepage functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_definitions.h b/libesedb-sys/libesedb-20230824/libclocale/libclocale_definitions.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_definitions.h rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_definitions.h index 6d3b21a..300637a 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_definitions.h +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -34,11 +34,11 @@ */ #else -#define LIBCLOCALE_VERSION 20200913 +#define LIBCLOCALE_VERSION 20221218 /* The libclocale version string */ -#define LIBCLOCALE_VERSION_STRING "20200913" +#define LIBCLOCALE_VERSION_STRING "20221218" /* The codepage feature flag definitions */ diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_extern.h b/libesedb-sys/libesedb-20230824/libclocale/libclocale_extern.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_extern.h rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_extern.h index 7f461b5..bda9ea3 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_extern.h +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBCLOCALE_EXTERN_VARIABLE extern +#else #define LIBCLOCALE_EXTERN_VARIABLE LIBCLOCALE_EXTERN +#endif #else #define LIBCLOCALE_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_libcerror.h b/libesedb-sys/libesedb-20230824/libclocale/libclocale_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_libcerror.h rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_libcerror.h index a3c7628..ea30528 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_libcerror.h @@ -1,7 +1,7 @@ /* * The internal libcerror header * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_locale.c b/libesedb-sys/libesedb-20230824/libclocale/libclocale_locale.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_locale.c rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_locale.c index be43a67..68df5d2 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_locale.c +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_locale.c @@ -1,7 +1,7 @@ /* * Locale functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_locale.h b/libesedb-sys/libesedb-20230824/libclocale/libclocale_locale.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_locale.h rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_locale.h index b993292..64f510c 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_locale.h +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_locale.h @@ -1,7 +1,7 @@ /* * Locale functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_support.c b/libesedb-sys/libesedb-20230824/libclocale/libclocale_support.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_support.c rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_support.c index f115f6f..f5e29c2 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_support.c +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -22,7 +22,7 @@ #include #include -#if defined( HAVE_LIBINTL_H ) +#if defined( HAVE_LIBINTL_H ) && defined( ENABLE_NLS ) #include #endif diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_support.h b/libesedb-sys/libesedb-20230824/libclocale/libclocale_support.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_support.h rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_support.h index 33ca57b..303c5fc 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_support.h +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_unused.h b/libesedb-sys/libesedb-20230824/libclocale/libclocale_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_unused.h rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_unused.h index 3a197cc..628e115 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_unused.h +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_wide_string.c b/libesedb-sys/libesedb-20230824/libclocale/libclocale_wide_string.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_wide_string.c rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_wide_string.c index 0e36d33..0390ac1 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_wide_string.c +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_wide_string.c @@ -1,7 +1,7 @@ /* * Wide character string functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libclocale/libclocale_wide_string.h b/libesedb-sys/libesedb-20230824/libclocale/libclocale_wide_string.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libclocale/libclocale_wide_string.h rename to libesedb-sys/libesedb-20230824/libclocale/libclocale_wide_string.h index 26ef0e1..4dc979d 100644 --- a/libesedb-sys/libesedb-20210424/libclocale/libclocale_wide_string.h +++ b/libesedb-sys/libesedb-20230824/libclocale/libclocale_wide_string.h @@ -1,7 +1,7 @@ /* * Wide character string functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/Makefile.am b/libesedb-sys/libesedb-20230824/libcnotify/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libcnotify/Makefile.am rename to libesedb-sys/libesedb-20230824/libcnotify/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libcnotify/Makefile.in b/libesedb-sys/libesedb-20230824/libcnotify/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libcnotify/Makefile.in rename to libesedb-sys/libesedb-20230824/libcnotify/Makefile.in index b19b2d6..a72f093 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libcnotify/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libcnotify ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -197,8 +198,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -215,6 +214,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -230,8 +231,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -349,8 +352,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -557,6 +560,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -727,7 +731,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_definitions.h b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_definitions.h similarity index 90% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_definitions.h rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_definitions.h index a9b5f3a..dbd24bb 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_definitions.h +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -35,11 +35,11 @@ */ #else -#define LIBCNOTIFY_VERSION 20200913 +#define LIBCNOTIFY_VERSION 20220108 /* The libcnotify version string */ -#define LIBCNOTIFY_VERSION_STRING "20200913" +#define LIBCNOTIFY_VERSION_STRING "20220108" /* The print data flags */ diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_extern.h b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_extern.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_extern.h rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_extern.h index 2a2fc9b..e1591dc 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_extern.h +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBCNOTIFY_EXTERN_VARIABLE extern +#else #define LIBCNOTIFY_EXTERN_VARIABLE LIBCNOTIFY_EXTERN +#endif #else #define LIBCNOTIFY_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_libcerror.h b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_libcerror.h rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_libcerror.h index 2a47b31..a9cee4e 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_libcerror.h @@ -1,7 +1,7 @@ /* * The internal libcerror header * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_print.c b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_print.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_print.c rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_print.c index 9d2b465..fc8905b 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_print.c +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_print.c @@ -1,7 +1,7 @@ /* * Notification print functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_print.h b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_print.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_print.h rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_print.h index c33253d..22f4ed0 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_print.h +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_print.h @@ -1,7 +1,7 @@ /* * Notification print functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_stream.c b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_stream.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_stream.c rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_stream.c index 32b34f0..e21935e 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_stream.c +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_stream.c @@ -1,7 +1,7 @@ /* * Notification stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_stream.h b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_stream.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_stream.h rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_stream.h index c89cb07..6abf8d7 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_stream.h +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_stream.h @@ -1,7 +1,7 @@ /* * Notification stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_support.c b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_support.c rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_support.c index 1ca2228..944bc9b 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_support.c +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_support.h b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_support.h rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_support.h index c4d503a..1cba159 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_support.h +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_unused.h b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_unused.h rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_unused.h index 8619d9b..25671d8 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_unused.h +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_verbose.c b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_verbose.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_verbose.c rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_verbose.c index f3382e9..e90bbaa 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_verbose.c +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_verbose.c @@ -1,7 +1,7 @@ /* * Verbose functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_verbose.h b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_verbose.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcnotify/libcnotify_verbose.h rename to libesedb-sys/libesedb-20230824/libcnotify/libcnotify_verbose.h index 49f8f56..e8beed3 100644 --- a/libesedb-sys/libesedb-20210424/libcnotify/libcnotify_verbose.h +++ b/libesedb-sys/libesedb-20230824/libcnotify/libcnotify_verbose.h @@ -1,7 +1,7 @@ /* * Verbose functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/Makefile.am b/libesedb-sys/libesedb-20230824/libcpath/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libcpath/Makefile.am rename to libesedb-sys/libesedb-20230824/libcpath/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libcpath/Makefile.in b/libesedb-sys/libesedb-20230824/libcpath/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libcpath/Makefile.in rename to libesedb-sys/libesedb-20230824/libcpath/Makefile.in index 886338f..8ea2e96 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libcpath/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libcpath ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -195,8 +196,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -213,6 +212,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -228,8 +229,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -347,8 +350,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -555,6 +558,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -731,7 +735,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_definitions.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_definitions.h similarity index 92% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_definitions.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_definitions.h index bdd8df8..32b6bd2 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_definitions.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -35,11 +35,11 @@ */ #else -#define LIBCPATH_VERSION 20200623 +#define LIBCPATH_VERSION 20220108 /* The libcpath version string */ -#define LIBCPATH_VERSION_STRING "20200623" +#define LIBCPATH_VERSION_STRING "20220108" #if defined( WINAPI ) #define LIBCPATH_SEPARATOR '\\' diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_error.c b/libesedb-sys/libesedb-20230824/libcpath/libcpath_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_error.c rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_error.c index d76c9ff..42c2b91 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_error.c +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_error.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_error.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_error.h index 2d9aded..ae0500c 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_error.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_extern.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_extern.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_extern.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_extern.h index 80da4ff..52ff46a 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_extern.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBCPATH_EXTERN_VARIABLE extern +#else #define LIBCPATH_EXTERN_VARIABLE LIBCPATH_EXTERN +#endif #else #define LIBCPATH_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_libcerror.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_libcerror.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_libcerror.h index 12b814a..f1c2ab3 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_libclocale.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_libclocale.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_libclocale.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_libclocale.h index e872d81..7888513 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_libclocale.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_libclocale.h @@ -1,7 +1,7 @@ /* * The libclocale header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_libcsplit.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_libcsplit.h similarity index 89% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_libcsplit.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_libcsplit.h index d950f49..95af38e 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_libcsplit.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_libcsplit.h @@ -1,7 +1,7 @@ /* * The internal libcsplit header * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -46,7 +46,7 @@ #include -#endif +#endif /* defined( HAVE_LOCAL_LIBCSPLIT ) */ -#endif +#endif /* !defined( _LIBCPATH_LIBCSPLIT_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_libuna.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_libuna.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_libuna.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_libuna.h index 5a5c4a6..f82e8f7 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_libuna.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_libuna.h @@ -1,7 +1,7 @@ /* * The libuna header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_path.c b/libesedb-sys/libesedb-20230824/libcpath/libcpath_path.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_path.c rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_path.c index 82de07c..9f0332e 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_path.c +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_path.c @@ -1,7 +1,7 @@ /* * Path functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_path.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_path.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_path.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_path.h index 8dba40f..78d829f 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_path.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_path.h @@ -1,7 +1,7 @@ /* * Path functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_support.c b/libesedb-sys/libesedb-20230824/libcpath/libcpath_support.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_support.c rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_support.c index cc1267a..33678de 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_support.c +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_support.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_support.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_support.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_support.h index a4800c0..8b5a7d9 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_support.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_system_string.c b/libesedb-sys/libesedb-20230824/libcpath/libcpath_system_string.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_system_string.c rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_system_string.c index 1af6426..86b9537 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_system_string.c +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_system_string.c @@ -1,7 +1,7 @@ /* * System string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_system_string.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_system_string.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_system_string.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_system_string.h index bca49f2..2aa74cb 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_system_string.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_system_string.h @@ -1,7 +1,7 @@ /* * System string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcpath/libcpath_unused.h b/libesedb-sys/libesedb-20230824/libcpath/libcpath_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcpath/libcpath_unused.h rename to libesedb-sys/libesedb-20230824/libcpath/libcpath_unused.h index ee87ae2..ceb6b09 100644 --- a/libesedb-sys/libesedb-20210424/libcpath/libcpath_unused.h +++ b/libesedb-sys/libesedb-20230824/libcpath/libcpath_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/Makefile.am b/libesedb-sys/libesedb-20230824/libcsplit/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libcsplit/Makefile.am rename to libesedb-sys/libesedb-20230824/libcsplit/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libcsplit/Makefile.in b/libesedb-sys/libesedb-20230824/libcsplit/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libcsplit/Makefile.in rename to libesedb-sys/libesedb-20230824/libcsplit/Makefile.in index 1edd9aa..3fc5d5b 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libcsplit/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libcsplit ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -205,8 +206,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -223,6 +222,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -238,8 +239,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -357,8 +360,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -565,6 +568,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -740,7 +744,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_definitions.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_definitions.h similarity index 89% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_definitions.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_definitions.h index a87244a..93aa8e4 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_definitions.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -35,11 +35,11 @@ */ #else -#define LIBCSPLIT_VERSION 20200703 +#define LIBCSPLIT_VERSION 20220109 /* The libcsplit version string */ -#define LIBCSPLIT_VERSION_STRING "20200703" +#define LIBCSPLIT_VERSION_STRING "20220109" #endif /* !defined( HAVE_LOCAL_LIBCSPLIT ) */ diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_error.c b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_error.c rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_error.c index 9bf0f3a..2f781e7 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_error.c +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_error.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_error.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_error.h index 3382659..bc836be 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_error.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_extern.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_extern.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_extern.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_extern.h index 53d7f0a..a8d876b 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_extern.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBCSPLIT_EXTERN_VARIABLE extern +#else #define LIBCSPLIT_EXTERN_VARIABLE LIBCSPLIT_EXTERN +#endif #else #define LIBCSPLIT_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_libcerror.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_libcerror.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_libcerror.h index bc1c008..35e5d4d 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_split_string.c b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_split_string.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_split_string.c rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_split_string.c index 4b06363..a0de993 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_split_string.c +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_split_string.c @@ -1,7 +1,7 @@ /* * Split narrow string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_split_string.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_split_string.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_split_string.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_split_string.h index 8a5251b..344c051 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_split_string.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_split_string.h @@ -1,7 +1,7 @@ /* * Split narrow string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_string.c b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_string.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_string.c rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_string.c index d97e4d6..46cadb7 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_string.c +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_string.c @@ -1,7 +1,7 @@ /* * Narrow character string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_string.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_string.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_string.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_string.h index 8a182f7..225ec67 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_narrow_string.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_narrow_string.h @@ -1,7 +1,7 @@ /* * Narrow character string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_support.c b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_support.c rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_support.c index 3fc08fa..09a7485 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_support.c +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_support.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_support.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_support.h index 4d59baf..2ac2e2d 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_support.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_types.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_types.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_types.h index 6603beb..4834bf3 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_types.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_unused.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_unused.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_unused.h index c8aae8a..4d2f35d 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_unused.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_split_string.c b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_split_string.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_split_string.c rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_split_string.c index 89157df..910c6c7 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_split_string.c +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_split_string.c @@ -1,7 +1,7 @@ /* * Split wide string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_split_string.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_split_string.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_split_string.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_split_string.h index 872ee5e..a49f137 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_split_string.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_split_string.h @@ -1,7 +1,7 @@ /* * Split wide string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_string.c b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_string.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_string.c rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_string.c index 254cdd3..784769f 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_string.c +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_string.c @@ -1,7 +1,7 @@ /* * Wide character string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_string.h b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_string.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_string.h rename to libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_string.h index dcdf6b0..3f7a671 100644 --- a/libesedb-sys/libesedb-20210424/libcsplit/libcsplit_wide_string.h +++ b/libesedb-sys/libesedb-20230824/libcsplit/libcsplit_wide_string.h @@ -1,7 +1,7 @@ /* * Wide character string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/Makefile.am b/libesedb-sys/libesedb-20230824/libcthreads/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libcthreads/Makefile.am rename to libesedb-sys/libesedb-20230824/libcthreads/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libcthreads/Makefile.in b/libesedb-sys/libesedb-20230824/libcthreads/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libcthreads/Makefile.in rename to libesedb-sys/libesedb-20230824/libcthreads/Makefile.in index b58e730..4f77f33 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libcthreads/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libcthreads ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -219,8 +220,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -237,6 +236,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -252,8 +253,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -371,8 +374,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -579,6 +582,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -765,7 +769,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_condition.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_condition.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_condition.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_condition.c index b126d36..f4e2661 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_condition.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_condition.c @@ -1,7 +1,7 @@ /* * Condition functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif @@ -559,11 +559,12 @@ int libcthreads_condition_wait( #if defined( WINAPI ) DWORD error_code = 0; - DWORD wait_status = 0; #if ( WINVER >= 0x0600 ) BOOL result = 0; -#else + +#elif ( WINVER >= 0x0400 ) + DWORD wait_status = 0; int is_last_waiting_thread = 0; #endif @@ -603,7 +604,7 @@ int libcthreads_condition_wait( &( internal_mutex->critical_section ), INFINITE ); - if( wait_status == WAIT_FAILED ) + if( result == 0 ) { error_code = GetLastError(); diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_condition.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_condition.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_condition.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_condition.h index 628501e..6a30677 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_condition.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_condition.h @@ -1,7 +1,7 @@ /* * Condition functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_definitions.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_definitions.h similarity index 92% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_definitions.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_definitions.h index f402003..021b55f 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_definitions.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -35,11 +35,11 @@ */ #else -#define LIBCTHREADS_VERSION 20200508 +#define LIBCTHREADS_VERSION 20220102 /* The libcthreads version string */ -#define LIBCTHREADS_VERSION_STRING "20200508" +#define LIBCTHREADS_VERSION_STRING "20220102" /* The comparison function definitions */ diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_error.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_error.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_error.c index 9790f70..7ba92fe 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_error.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_error.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_error.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_error.h index f1337c5..ea99100 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_error.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_extern.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_extern.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_extern.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_extern.h index 942e214..0f25394 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_extern.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBCTHREADS_EXTERN_VARIABLE extern +#else #define LIBCTHREADS_EXTERN_VARIABLE LIBCTHREADS_EXTERN +#endif #else #define LIBCTHREADS_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_libcerror.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_libcerror.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_libcerror.h index 11574e2..55ba76d 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_lock.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_lock.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_lock.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_lock.c index c7dffe4..e5dd6ea 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_lock.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_lock.c @@ -1,7 +1,7 @@ /* * Lock functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_lock.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_lock.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_lock.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_lock.h index ee1863a..2c7506c 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_lock.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_lock.h @@ -1,7 +1,7 @@ /* * Lock functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_mutex.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_mutex.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_mutex.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_mutex.c index 4c3a1d9..9e8e752 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_mutex.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_mutex.c @@ -1,7 +1,7 @@ /* * Mutex functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_mutex.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_mutex.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_mutex.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_mutex.h index 1f9a980..f3a3def 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_mutex.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_mutex.h @@ -1,7 +1,7 @@ /* * Mutex functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_queue.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_queue.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_queue.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_queue.c index 29b2d69..6115002 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_queue.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_queue.c @@ -1,7 +1,7 @@ /* * Queue functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_queue.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_queue.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_queue.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_queue.h index d8ee8e4..6c4a515 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_queue.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_queue.h @@ -1,7 +1,7 @@ /* * Queue functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_read_write_lock.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_read_write_lock.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_read_write_lock.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_read_write_lock.c index 7dc976e..f591a07 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_read_write_lock.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_read_write_lock.c @@ -1,7 +1,7 @@ /* * Read/Write lock functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_read_write_lock.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_read_write_lock.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_read_write_lock.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_read_write_lock.h index 4f17d19..c929ab0 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_read_write_lock.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_read_write_lock.h @@ -1,7 +1,7 @@ /* * Read/Write lock functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_repeating_thread.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_repeating_thread.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_repeating_thread.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_repeating_thread.c index ae977a5..4496998 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_repeating_thread.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_repeating_thread.c @@ -1,7 +1,7 @@ /* * Repeating thread functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #include #endif diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_repeating_thread.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_repeating_thread.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_repeating_thread.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_repeating_thread.h index 6999cd1..48c0469 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_repeating_thread.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_repeating_thread.h @@ -1,7 +1,7 @@ /* * Repeating thread functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_support.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_support.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_support.c index a7ebbb0..8c6ad44 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_support.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_support.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_support.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_support.h index 33c95d8..6c44535 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_support.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread.c index 0d36355..b387d12 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread.c @@ -1,7 +1,7 @@ /* * Thread functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #include #endif diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread.h index 43eb966..bbaa093 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread.h @@ -1,7 +1,7 @@ /* * Thread functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_attributes.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_attributes.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_attributes.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_attributes.c index 86f0f6b..8d3d888 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_attributes.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_attributes.c @@ -1,7 +1,7 @@ /* * Thread attributes functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_attributes.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_attributes.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_attributes.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_attributes.h index 5b8542a..a7a90fc 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_attributes.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_attributes.h @@ -1,7 +1,7 @@ /* * Thread attributes functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_pool.c b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_pool.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_pool.c rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_pool.c index e32be9e..2dfd2b0 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_pool.c +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_pool.c @@ -1,7 +1,7 @@ /* * Thread pool functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_pool.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_pool.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_pool.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_pool.h index 5baaa70..219d81b 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_thread_pool.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_thread_pool.h @@ -1,7 +1,7 @@ /* * Thread pool functions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include #include -#if defined( WINAPI ) && ( WINVER >= 0x0602 ) +#if defined( _MSC_VER ) && defined( WINAPI ) && ( WINVER >= 0x0602 ) #include #endif diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_types.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_types.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_types.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_types.h index 5e975b5..0cfe0d6 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_types.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_unused.h b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libcthreads/libcthreads_unused.h rename to libesedb-sys/libesedb-20230824/libcthreads/libcthreads_unused.h index 595c127..9a90d02 100644 --- a/libesedb-sys/libesedb-20210424/libcthreads/libcthreads_unused.h +++ b/libesedb-sys/libesedb-20230824/libcthreads/libcthreads_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2012-2020, Joachim Metz + * Copyright (C) 2012-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb.pc.in b/libesedb-sys/libesedb-20230824/libesedb.pc.in similarity index 100% rename from libesedb-sys/libesedb-20210424/libesedb.pc.in rename to libesedb-sys/libesedb-20230824/libesedb.pc.in diff --git a/libesedb-sys/libesedb-20210424/libesedb.spec b/libesedb-sys/libesedb-20230824/libesedb.spec similarity index 68% rename from libesedb-sys/libesedb-20210424/libesedb.spec rename to libesedb-sys/libesedb-20230824/libesedb.spec index ceb0ea5..7c48caa 100644 --- a/libesedb-sys/libesedb-20210424/libesedb.spec +++ b/libesedb-sys/libesedb-20230824/libesedb.spec @@ -1,12 +1,11 @@ Name: libesedb -Version: 20210424 +Version: 20230824 Release: 1 Summary: Library to access the Extensible Storage Engine (ESE) Database File (EDB) format Group: System Environment/Libraries -License: LGPLv3+ +License: LGPL-3.0-or-later Source: %{name}-%{version}.tar.gz URL: https://github.com/libyal/libesedb -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: gcc @@ -29,17 +28,6 @@ Requires: libesedb = %{version}-%{release} %description -n libesedb-devel Header files and libraries for developing applications for libesedb. -%package -n libesedb-python2 -Obsoletes: libesedb-python < %{version} -Provides: libesedb-python = %{version} -Summary: Python 2 bindings for libesedb -Group: System Environment/Libraries -Requires: libesedb = %{version}-%{release} python2 -BuildRequires: python2-devel - -%description -n libesedb-python2 -Python 2 bindings for libesedb - %package -n libesedb-python3 Summary: Python 3 bindings for libesedb Group: System Environment/Libraries @@ -62,7 +50,7 @@ Several tools for reading Extensible Storage Engine (ESE) Database Files (EDB) %setup -q %build -%configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python2 --enable-python3 +%configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python3 make %{?_smp_mflags} %install @@ -77,51 +65,36 @@ rm -rf %{buildroot} %postun -p /sbin/ldconfig %files -n libesedb -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README -%attr(755,root,root) %{_libdir}/*.so.* +%{_libdir}/*.so.* %files -n libesedb-static -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README -%attr(755,root,root) %{_libdir}/*.a +%{_libdir}/*.a %files -n libesedb-devel -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README -%{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/libesedb.pc %{_includedir}/* %{_mandir}/man3/* -%files -n libesedb-python2 -%defattr(644,root,root,755) -%license COPYING COPYING.LESSER -%doc AUTHORS README -%{_libdir}/python2*/site-packages/*.a -%{_libdir}/python2*/site-packages/*.la -%{_libdir}/python2*/site-packages/*.so - %files -n libesedb-python3 -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README %{_libdir}/python3*/site-packages/*.a -%{_libdir}/python3*/site-packages/*.la %{_libdir}/python3*/site-packages/*.so %files -n libesedb-tools -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README -%attr(755,root,root) %{_bindir}/* +%{_bindir}/* %{_mandir}/man1/* %changelog -* Sat Apr 24 2021 Joachim Metz 20210424-1 +* Sat Sep 30 2023 Joachim Metz 20230824-1 - Auto-generated diff --git a/libesedb-sys/libesedb-20210424/libesedb.spec.in b/libesedb-sys/libesedb-20230824/libesedb.spec.in similarity index 78% rename from libesedb-sys/libesedb-20210424/libesedb.spec.in rename to libesedb-sys/libesedb-20230824/libesedb.spec.in index 3541b2a..a479981 100644 --- a/libesedb-sys/libesedb-20210424/libesedb.spec.in +++ b/libesedb-sys/libesedb-20230824/libesedb.spec.in @@ -3,10 +3,9 @@ Version: @VERSION@ Release: 1 Summary: Library to access the Extensible Storage Engine (ESE) Database File (EDB) format Group: System Environment/Libraries -License: LGPLv3+ +License: LGPL-3.0-or-later Source: %{name}-%{version}.tar.gz URL: https://github.com/libyal/libesedb -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @libesedb_spec_requires@ @ax_libbfio_spec_requires@ @ax_libcdata_spec_requires@ @ax_libcerror_spec_requires@ @ax_libcfile_spec_requires@ @ax_libclocale_spec_requires@ @ax_libcnotify_spec_requires@ @ax_libcpath_spec_requires@ @ax_libcsplit_spec_requires@ @ax_libcthreads_spec_requires@ @ax_libfcache_spec_requires@ @ax_libfdata_spec_requires@ @ax_libfdatetime_spec_requires@ @ax_libfguid_spec_requires@ @ax_libfvalue_spec_requires@ @ax_libfwnt_spec_requires@ @ax_libuna_spec_requires@ BuildRequires: gcc @ax_libbfio_spec_build_requires@ @ax_libcdata_spec_build_requires@ @ax_libcerror_spec_build_requires@ @ax_libcfile_spec_build_requires@ @ax_libclocale_spec_build_requires@ @ax_libcnotify_spec_build_requires@ @ax_libcpath_spec_build_requires@ @ax_libcsplit_spec_build_requires@ @ax_libcthreads_spec_build_requires@ @ax_libfcache_spec_build_requires@ @ax_libfdata_spec_build_requires@ @ax_libfdatetime_spec_build_requires@ @ax_libfguid_spec_build_requires@ @ax_libfvalue_spec_build_requires@ @ax_libfwnt_spec_build_requires@ @ax_libuna_spec_build_requires@ @@ -29,17 +28,6 @@ Requires: libesedb = %{version}-%{release} %description -n libesedb-devel Header files and libraries for developing applications for libesedb. -%package -n libesedb-python2 -Obsoletes: libesedb-python < %{version} -Provides: libesedb-python = %{version} -Summary: Python 2 bindings for libesedb -Group: System Environment/Libraries -Requires: libesedb = %{version}-%{release} python2 -BuildRequires: python2-devel - -%description -n libesedb-python2 -Python 2 bindings for libesedb - %package -n libesedb-python3 Summary: Python 3 bindings for libesedb Group: System Environment/Libraries @@ -62,7 +50,7 @@ Several tools for reading Extensible Storage Engine (ESE) Database Files (EDB) %setup -q %build -%configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python2 --enable-python3 +%configure --prefix=/usr --libdir=%{_libdir} --mandir=%{_mandir} --enable-python3 make %{?_smp_mflags} %install @@ -77,48 +65,33 @@ rm -rf %{buildroot} %postun -p /sbin/ldconfig %files -n libesedb -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README -%attr(755,root,root) %{_libdir}/*.so.* +%{_libdir}/*.so.* %files -n libesedb-static -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README -%attr(755,root,root) %{_libdir}/*.a +%{_libdir}/*.a %files -n libesedb-devel -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README -%{_libdir}/*.la %{_libdir}/*.so %{_libdir}/pkgconfig/libesedb.pc %{_includedir}/* %{_mandir}/man3/* -%files -n libesedb-python2 -%defattr(644,root,root,755) -%license COPYING COPYING.LESSER -%doc AUTHORS README -%{_libdir}/python2*/site-packages/*.a -%{_libdir}/python2*/site-packages/*.la -%{_libdir}/python2*/site-packages/*.so - %files -n libesedb-python3 -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README %{_libdir}/python3*/site-packages/*.a -%{_libdir}/python3*/site-packages/*.la %{_libdir}/python3*/site-packages/*.so %files -n libesedb-tools -%defattr(644,root,root,755) %license COPYING COPYING.LESSER %doc AUTHORS README -%attr(755,root,root) %{_bindir}/* +%{_bindir}/* %{_mandir}/man1/* %changelog diff --git a/libesedb-sys/libesedb-20210424/libesedb/Makefile.am b/libesedb-sys/libesedb-20230824/libesedb/Makefile.am similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/Makefile.am rename to libesedb-sys/libesedb-20230824/libesedb/Makefile.am index cc0e011..e88add1 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/Makefile.am +++ b/libesedb-sys/libesedb-20230824/libesedb/Makefile.am @@ -27,6 +27,9 @@ libesedb_la_SOURCES = \ esedb_page.h \ esedb_page_values.h \ libesedb.c \ + libesedb_block_descriptor.c libesedb_block_descriptor.h \ + libesedb_block_tree.c libesedb_block_tree.h \ + libesedb_block_tree_node.c libesedb_block_tree_node.h \ libesedb_catalog.c libesedb_catalog.h \ libesedb_catalog_definition.c libesedb_catalog_definition.h \ libesedb_checksum.c libesedb_checksum.h \ diff --git a/libesedb-sys/libesedb-20210424/libesedb/Makefile.in b/libesedb-sys/libesedb-20230824/libesedb/Makefile.in similarity index 94% rename from libesedb-sys/libesedb-20210424/libesedb/Makefile.in rename to libesedb-sys/libesedb-20230824/libesedb/Makefile.in index 14a05d5..de7957c 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libesedb/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libesedb ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -147,9 +148,10 @@ am__uninstall_files_from_dir = { \ am__installdirs = "$(DESTDIR)$(libdir)" LTLIBRARIES = $(lib_LTLIBRARIES) libesedb_la_DEPENDENCIES = -am_libesedb_la_OBJECTS = libesedb.lo libesedb_catalog.lo \ - libesedb_catalog_definition.lo libesedb_checksum.lo \ - libesedb_codepage.lo libesedb_column.lo \ +am_libesedb_la_OBJECTS = libesedb.lo libesedb_block_descriptor.lo \ + libesedb_block_tree.lo libesedb_block_tree_node.lo \ + libesedb_catalog.lo libesedb_catalog_definition.lo \ + libesedb_checksum.lo libesedb_codepage.lo libesedb_column.lo \ libesedb_column_type.lo libesedb_compression.lo \ libesedb_data_definition.lo libesedb_data_segment.lo \ libesedb_database.lo libesedb_debug.lo libesedb_error.lo \ @@ -188,6 +190,9 @@ DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles am__depfiles_remade = ./$(DEPDIR)/libesedb.Plo \ + ./$(DEPDIR)/libesedb_block_descriptor.Plo \ + ./$(DEPDIR)/libesedb_block_tree.Plo \ + ./$(DEPDIR)/libesedb_block_tree_node.Plo \ ./$(DEPDIR)/libesedb_catalog.Plo \ ./$(DEPDIR)/libesedb_catalog_definition.Plo \ ./$(DEPDIR)/libesedb_checksum.Plo \ @@ -265,8 +270,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(srcdir)/libesedb.rc.in \ $(srcdir)/libesedb_definitions.h.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) @@ -284,6 +287,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -299,8 +304,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -418,8 +425,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -626,6 +633,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -662,6 +670,9 @@ libesedb_la_SOURCES = \ esedb_page.h \ esedb_page_values.h \ libesedb.c \ + libesedb_block_descriptor.c libesedb_block_descriptor.h \ + libesedb_block_tree.c libesedb_block_tree.h \ + libesedb_block_tree_node.c libesedb_block_tree_node.h \ libesedb_catalog.c libesedb_catalog.h \ libesedb_catalog_definition.c libesedb_catalog_definition.h \ libesedb_checksum.c libesedb_checksum.h \ @@ -824,6 +835,9 @@ distclean-compile: -rm -f *.tab.c @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libesedb.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libesedb_block_descriptor.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libesedb_block_tree.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libesedb_block_tree_node.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libesedb_catalog.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libesedb_catalog_definition.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libesedb_checksum.Plo@am__quote@ # am--include-marker @@ -946,7 +960,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -1068,6 +1081,9 @@ installcheck-am: maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libesedb.Plo + -rm -f ./$(DEPDIR)/libesedb_block_descriptor.Plo + -rm -f ./$(DEPDIR)/libesedb_block_tree.Plo + -rm -f ./$(DEPDIR)/libesedb_block_tree_node.Plo -rm -f ./$(DEPDIR)/libesedb_catalog.Plo -rm -f ./$(DEPDIR)/libesedb_catalog_definition.Plo -rm -f ./$(DEPDIR)/libesedb_checksum.Plo diff --git a/libesedb-sys/libesedb-20210424/libesedb/esedb_file_header.h b/libesedb-sys/libesedb-20230824/libesedb/esedb_file_header.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/esedb_file_header.h rename to libesedb-sys/libesedb-20230824/libesedb/esedb_file_header.h index 12e05d5..6a2257e 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/esedb_file_header.h +++ b/libesedb-sys/libesedb-20230824/libesedb/esedb_file_header.h @@ -1,7 +1,7 @@ /* * The file header definition of an Extensible Storage Engine (ESE) Database File (EDB) * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/esedb_page.h b/libesedb-sys/libesedb-20230824/libesedb/esedb_page.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/esedb_page.h rename to libesedb-sys/libesedb-20230824/libesedb/esedb_page.h index a3c8e28..9993963 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/esedb_page.h +++ b/libesedb-sys/libesedb-20230824/libesedb/esedb_page.h @@ -1,7 +1,7 @@ /* * The page definition of an Extensible Storage Engine (ESE) Database File (EDB) * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/esedb_page_values.h b/libesedb-sys/libesedb-20230824/libesedb/esedb_page_values.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/esedb_page_values.h rename to libesedb-sys/libesedb-20230824/libesedb/esedb_page_values.h index c42c5e8..65d03cb 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/esedb_page_values.h +++ b/libesedb-sys/libesedb-20230824/libesedb/esedb_page_values.h @@ -1,7 +1,7 @@ /* * The page values definition of an Extensible Storage Engine (ESE) Database File (EDB) * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb.c index 4a1a8b0..3e09633 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb.c @@ -1,7 +1,7 @@ /* * Library to access the Extensible Storage Engine (ESE) Database File (EDB) format * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb.rc b/libesedb-sys/libesedb-20230824/libesedb/libesedb.rc similarity index 85% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb.rc rename to libesedb-sys/libesedb-20230824/libesedb/libesedb.rc index 3aafd2f..3f45f6f 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb.rc +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb.rc @@ -22,12 +22,12 @@ BEGIN BLOCK "040904E4" BEGIN VALUE "FileDescription", "Library to access the Extensible Storage Engine (ESE) Database File (EDB) format\0" - VALUE "FileVersion", "20210424" "\0" + VALUE "FileVersion", "20230824" "\0" VALUE "InternalName", "libesedb.dll\0" - VALUE "LegalCopyright", "(C) 2009-2021, Joachim Metz \0" + VALUE "LegalCopyright", "(C) 2009-2023, Joachim Metz \0" VALUE "OriginalFilename", "libesedb.dll\0" VALUE "ProductName", "libesedb\0" - VALUE "ProductVersion", "20210424" "\0" + VALUE "ProductVersion", "20230824" "\0" VALUE "Comments", "For more information visit https://github.com/libyal/libesedb/\0" END END diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb.rc.in b/libesedb-sys/libesedb-20230824/libesedb/libesedb.rc.in similarity index 94% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb.rc.in rename to libesedb-sys/libesedb-20230824/libesedb/libesedb.rc.in index 5696bcd..8019b4d 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb.rc.in +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb.rc.in @@ -24,7 +24,7 @@ BEGIN VALUE "FileDescription", "Library to access the Extensible Storage Engine (ESE) Database File (EDB) format\0" VALUE "FileVersion", "@VERSION@" "\0" VALUE "InternalName", "libesedb.dll\0" - VALUE "LegalCopyright", "(C) 2009-2021, Joachim Metz \0" + VALUE "LegalCopyright", "(C) 2009-2023, Joachim Metz \0" VALUE "OriginalFilename", "libesedb.dll\0" VALUE "ProductName", "libesedb\0" VALUE "ProductVersion", "@VERSION@" "\0" diff --git a/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_descriptor.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_descriptor.c new file mode 100644 index 0000000..6989e9b --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_descriptor.c @@ -0,0 +1,131 @@ +/* + * Block descriptor functions + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include +#include + +#include "libesedb_block_descriptor.h" +#include "libesedb_libcerror.h" + +/* Creates a block descriptor + * Make sure the value block_descriptor is referencing, is set to NULL + * Returns 1 if successful or -1 on error + */ +int libesedb_block_descriptor_initialize( + libesedb_block_descriptor_t **block_descriptor, + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_descriptor_initialize"; + + if( block_descriptor == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block descriptor.", + function ); + + return( -1 ); + } + if( *block_descriptor != NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, + "%s: invalid block descriptor value already set.", + function ); + + return( -1 ); + } + *block_descriptor = memory_allocate_structure( + libesedb_block_descriptor_t ); + + if( *block_descriptor == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_MEMORY, + LIBCERROR_MEMORY_ERROR_INSUFFICIENT, + "%s: unable to create block descriptor.", + function ); + + goto on_error; + } + if( memory_set( + *block_descriptor, + 0, + sizeof( libesedb_block_descriptor_t ) ) == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_MEMORY, + LIBCERROR_MEMORY_ERROR_SET_FAILED, + "%s: unable to clear block descriptor.", + function ); + + goto on_error; + } + return( 1 ); + +on_error: + if( *block_descriptor != NULL ) + { + memory_free( + *block_descriptor ); + + *block_descriptor = NULL; + } + return( -1 ); +} + +/* Frees a block descriptor + * Returns 1 if successful or -1 on error + */ +int libesedb_block_descriptor_free( + libesedb_block_descriptor_t **block_descriptor, + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_descriptor_free"; + + if( block_descriptor == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block descriptor.", + function ); + + return( -1 ); + } + if( *block_descriptor != NULL ) + { + memory_free( + *block_descriptor ); + + *block_descriptor = NULL; + } + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_descriptor.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_descriptor.h new file mode 100644 index 0000000..38e98ca --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_descriptor.h @@ -0,0 +1,56 @@ +/* + * Block descriptor functions + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBESEDB_BLOCK_DESCRIPTOR_H ) +#define _LIBESEDB_BLOCK_DESCRIPTOR_H + +#include +#include + +#include "libesedb_libcerror.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +typedef struct libesedb_block_descriptor libesedb_block_descriptor_t; + +struct libesedb_block_descriptor +{ + /* The page number + */ + uint32_t page_number; +}; + +int libesedb_block_descriptor_initialize( + libesedb_block_descriptor_t **block_descriptor, + libcerror_error_t **error ); + +int libesedb_block_descriptor_free( + libesedb_block_descriptor_t **block_descriptor, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBESEDB_BLOCK_DESCRIPTOR_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree.c new file mode 100644 index 0000000..ae35344 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree.c @@ -0,0 +1,474 @@ +/* + * Block tree functions + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include +#include + +#include "libesedb_block_descriptor.h" +#include "libesedb_block_tree.h" +#include "libesedb_block_tree_node.h" +#include "libesedb_definitions.h" +#include "libesedb_libcdata.h" +#include "libesedb_libcerror.h" +#include "libesedb_libcnotify.h" +#include "libesedb_unused.h" + +/* Creates a block tree + * Make sure the value block_tree is referencing, is set to NULL + * Returns 1 if successful or -1 on error + */ +int libesedb_block_tree_initialize( + libesedb_block_tree_t **block_tree, + size64_t size, + size64_t leaf_value_size, + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_tree_initialize"; + + if( block_tree == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree.", + function ); + + return( -1 ); + } + if( *block_tree != NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, + "%s: invalid block tree value already set.", + function ); + + return( -1 ); + } + *block_tree = memory_allocate_structure( + libesedb_block_tree_t ); + + if( *block_tree == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_MEMORY, + LIBCERROR_MEMORY_ERROR_INSUFFICIENT, + "%s: unable to create block tree.", + function ); + + goto on_error; + } + if( memory_set( + *block_tree, + 0, + sizeof( libesedb_block_tree_t ) ) == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_MEMORY, + LIBCERROR_MEMORY_ERROR_SET_FAILED, + "%s: unable to clear block tree.", + function ); + + memory_free( + *block_tree ); + + *block_tree = NULL; + + return( -1 ); + } + if( libesedb_block_tree_node_initialize( + &( ( *block_tree )->root_node ), + 0, + size, + leaf_value_size, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, + "%s: unable to create root node.", + function ); + + goto on_error; + } + ( *block_tree )->leaf_value_size = leaf_value_size; + + return( 1 ); + +on_error: + if( *block_tree != NULL ) + { + memory_free( + *block_tree ); + + *block_tree = NULL; + } + return( -1 ); +} + +/* Frees a block tree + * Returns 1 if successful or -1 on error + */ +int libesedb_block_tree_free( + libesedb_block_tree_t **block_tree, + int (*value_free_function)( + intptr_t **value, + libcerror_error_t **error ), + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_tree_free"; + int result = 1; + + if( block_tree == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree.", + function ); + + return( -1 ); + } + if( *block_tree != NULL ) + { + if( ( *block_tree )->root_node != NULL ) + { + if( libesedb_block_tree_node_free( + &( ( *block_tree )->root_node ), + value_free_function, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, + "%s: unable to free root node.", + function ); + + result = -1; + } + } + memory_free( + *block_tree ); + + *block_tree = NULL; + } + return( result ); +} + +/* Retrieves the block descriptor for a specific offset + * Returns 1 if successful, 0 if not available or -1 on error + */ +int libesedb_block_tree_get_block_descriptor_by_offset( + libesedb_block_tree_t *block_tree, + off64_t offset, + libesedb_block_descriptor_t **block_descriptor, + off64_t *block_offset, + libcerror_error_t **error ) +{ + libesedb_block_descriptor_t *safe_block_descriptor = NULL; + libesedb_block_tree_node_t *block_tree_node = NULL; + static char *function = "libesedb_block_tree_get_block_descriptor_by_offset"; + off64_t safe_block_offset = 0; + + if( block_tree == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree.", + function ); + + return( -1 ); + } + if( block_descriptor == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block descriptor.", + function ); + + return( -1 ); + } + if( block_offset == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block offset.", + function ); + + return( -1 ); + } + block_tree_node = block_tree->root_node; + + while( block_tree_node->is_leaf_node == 0 ) + { + if( libesedb_block_tree_node_get_sub_node_at_offset( + block_tree_node, + offset, + &block_tree_node, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve sub node at offset: %" PRIi64 " (0x%08" PRIx64 ").", + function, + offset, + offset ); + + return( -1 ); + } + if( block_tree_node == NULL ) + { + return( 0 ); + } + } + if( libesedb_block_tree_node_get_leaf_value_at_offset( + block_tree_node, + offset, + &safe_block_descriptor, + &safe_block_offset, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve leaf value at offset: %" PRIi64 " (0x%08" PRIx64 ").", + function, + offset, + offset ); + + return( -1 ); + } + *block_descriptor = safe_block_descriptor; + *block_offset = safe_block_offset; + + if( safe_block_descriptor == NULL ) + { + return( 0 ); + } + return( 1 ); +} + +/* Inserts the block descriptor for a specific offset + * Returns 1 if successful, 0 if already set or -1 on error + */ +int libesedb_block_tree_insert_block_descriptor_by_offset( + libesedb_block_tree_t *block_tree, + off64_t offset, + libesedb_block_descriptor_t *block_descriptor, + int *leaf_value_index, + libesedb_block_tree_node_t **leaf_block_tree_node, + libesedb_block_descriptor_t **existing_block_descriptor, + libcerror_error_t **error ) +{ + libesedb_block_descriptor_t *safe_block_descriptor = NULL; + libesedb_block_tree_node_t *block_tree_node = NULL; + libesedb_block_tree_node_t *safe_block_tree_node = NULL; + libesedb_block_tree_node_t *sub_block_tree_node = NULL; + static char *function = "libesedb_block_tree_insert_block_descriptor_by_offset"; + off64_t block_offset = 0; + off64_t sub_node_index = 0; + off64_t sub_node_offset = 0; + + if( block_tree == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree.", + function ); + + return( -1 ); + } + if( leaf_value_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid leaf value index.", + function ); + + return( -1 ); + } + if( leaf_block_tree_node == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid leaf block tree node.", + function ); + + return( -1 ); + } + if( existing_block_descriptor == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid existing block descriptor.", + function ); + + return( -1 ); + } + safe_block_tree_node = block_tree->root_node; + + while( safe_block_tree_node->is_leaf_node == 0 ) + { + if( libesedb_block_tree_node_get_sub_node_at_offset( + safe_block_tree_node, + offset, + &block_tree_node, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve sub node at offset: %" PRIi64 " (0x%08" PRIx64 ").", + function, + offset, + offset ); + + goto on_error; + } + if( block_tree_node == NULL ) + { + sub_node_offset = offset - safe_block_tree_node->start_offset; + + sub_node_index = sub_node_offset / safe_block_tree_node->sub_node_size; + sub_node_offset = safe_block_tree_node->start_offset + ( sub_node_index * safe_block_tree_node->sub_node_size ); + + if( libesedb_block_tree_node_initialize( + &sub_block_tree_node, + sub_node_offset, + safe_block_tree_node->sub_node_size, + block_tree->leaf_value_size, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, + "%s: unable to create sub node.", + function ); + + goto on_error; + } + if( libesedb_block_tree_node_set_sub_node_at_offset( + safe_block_tree_node, + offset, + sub_block_tree_node, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to set sub node at offset: %" PRIi64 " (0x%08" PRIx64 ").", + function, + offset, + offset ); + + goto on_error; + } + block_tree_node = sub_block_tree_node; + sub_block_tree_node = NULL; + } + safe_block_tree_node = block_tree_node; + } + *leaf_block_tree_node = safe_block_tree_node; + + if( libesedb_block_tree_node_get_leaf_value_at_offset( + safe_block_tree_node, + offset, + &safe_block_descriptor, + &block_offset, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve leaf value at offset: %" PRIi64 " (0x%08" PRIx64 ").", + function, + offset, + offset ); + + goto on_error; + } + if( safe_block_descriptor != NULL ) + { + *existing_block_descriptor = safe_block_descriptor; + + return( 0 ); + } + if( libesedb_block_tree_node_set_leaf_value_at_offset( + safe_block_tree_node, + offset, + block_descriptor, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set leaf value at offset: %" PRIi64 " (0x%08" PRIx64 ").", + function, + offset, + offset ); + + goto on_error; + } + *leaf_value_index = (int) ( offset / block_tree->leaf_value_size ); + + return( 1 ); + +on_error: + if( sub_block_tree_node != NULL ) + { + libesedb_block_tree_node_free( + &sub_block_tree_node, + NULL, + NULL ); + } + return( -1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree.h new file mode 100644 index 0000000..2a0abe8 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree.h @@ -0,0 +1,83 @@ +/* + * Block tree functions + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBESEDB_BLOCK_TREE_H ) +#define _LIBESEDB_BLOCK_TREE_H + +#include +#include + +#include "libesedb_block_descriptor.h" +#include "libesedb_block_tree_node.h" +#include "libesedb_libcerror.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +typedef struct libesedb_block_tree libesedb_block_tree_t; + +struct libesedb_block_tree +{ + /* The block tree root node + */ + libesedb_block_tree_node_t *root_node; + + /* The leaf value size + */ + size64_t leaf_value_size; +}; + +int libesedb_block_tree_initialize( + libesedb_block_tree_t **block_tree, + size64_t size, + size64_t leaf_value_size, + libcerror_error_t **error ); + +int libesedb_block_tree_free( + libesedb_block_tree_t **block_tree, + int (*value_free_function)( + intptr_t **value, + libcerror_error_t **error ), + libcerror_error_t **error ); + +int libesedb_block_tree_get_block_descriptor_by_offset( + libesedb_block_tree_t *block_tree, + off64_t offset, + libesedb_block_descriptor_t **block_descriptor, + off64_t *block_offset, + libcerror_error_t **error ); + +int libesedb_block_tree_insert_block_descriptor_by_offset( + libesedb_block_tree_t *block_tree, + off64_t offset, + libesedb_block_descriptor_t *block_descriptor, + int *leaf_value_index, + libesedb_block_tree_node_t **leaf_block_tree_node, + libesedb_block_descriptor_t **existing_block_descriptor, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBESEDB_BLOCK_TREE_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree_node.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree_node.c new file mode 100644 index 0000000..2463c66 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree_node.c @@ -0,0 +1,613 @@ +/* + * Block tree node functions + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include +#include + +#include "libesedb_block_tree_node.h" +#include "libesedb_definitions.h" +#include "libesedb_libcerror.h" + +/* Creates a block tree node + * Make sure the value block_tree_node is referencing, is set to NULL + * Returns 1 if successful or -1 on error + */ +int libesedb_block_tree_node_initialize( + libesedb_block_tree_node_t **block_tree_node, + off64_t offset, + size64_t size, + size64_t leaf_value_size, + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_tree_node_initialize"; + size64_t sub_node_size = 0; + + if( block_tree_node == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node.", + function ); + + return( -1 ); + } + if( *block_tree_node != NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, + "%s: invalid block tree node value already set.", + function ); + + return( -1 ); + } + if( offset < 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid offset value out of bounds.", + function ); + + return( -1 ); + } + if( ( size == 0 ) + || ( size > (size64_t) ( INT64_MAX - offset ) ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid size value out of bounds.", + function ); + + return( -1 ); + } + if( leaf_value_size == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid leaf value size value out of bounds.", + function ); + + return( -1 ); + } + *block_tree_node = memory_allocate_structure( + libesedb_block_tree_node_t ); + + if( *block_tree_node == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_MEMORY, + LIBCERROR_MEMORY_ERROR_INSUFFICIENT, + "%s: unable to create block tree node.", + function ); + + goto on_error; + } + if( memory_set( + *block_tree_node, + 0, + sizeof( libesedb_block_tree_node_t ) ) == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_MEMORY, + LIBCERROR_MEMORY_ERROR_SET_FAILED, + "%s: unable to clear block tree node.", + function ); + + memory_free( + *block_tree_node ); + + *block_tree_node = NULL; + + return( -1 ); + } + if( libcdata_array_initialize( + &( ( *block_tree_node )->sub_nodes_array ), + LIBESEDB_BLOCK_TREE_NUMBER_OF_SUB_NODES, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, + "%s: unable to create sub nodes array.", + function ); + + goto on_error; + } + sub_node_size = leaf_value_size; + + while( ( size / sub_node_size ) > LIBESEDB_BLOCK_TREE_NUMBER_OF_SUB_NODES ) + { + sub_node_size *= LIBESEDB_BLOCK_TREE_NUMBER_OF_SUB_NODES; + } + ( *block_tree_node )->start_offset = offset; + ( *block_tree_node )->end_offset = offset + size; + ( *block_tree_node )->size = size; + ( *block_tree_node )->sub_node_size = sub_node_size; + + if( sub_node_size == leaf_value_size ) + { + ( *block_tree_node )->is_leaf_node = 1; + } + return( 1 ); + +on_error: + if( *block_tree_node != NULL ) + { + memory_free( + *block_tree_node ); + + *block_tree_node = NULL; + } + return( -1 ); +} + +/* Frees a block tree node + * Returns 1 if successful or -1 on error + */ +int libesedb_block_tree_node_free( + libesedb_block_tree_node_t **block_tree_node, + int (*value_free_function)( + intptr_t **value, + libcerror_error_t **error ), + libcerror_error_t **error ) +{ + libesedb_block_tree_node_t *sub_block_tree_node = NULL; + static char *function = "libesedb_block_tree_node_free"; + int result = 1; + int sub_node_index = 0; + + if( block_tree_node == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node.", + function ); + + return( -1 ); + } + if( *block_tree_node != NULL ) + { + if( ( *block_tree_node )->is_leaf_node != 0 ) + { + if( libcdata_array_free( + &( ( *block_tree_node )->sub_nodes_array ), + value_free_function, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, + "%s: unable to free sub nodes array.", + function ); + + result = -1; + } + } + else + { + for( sub_node_index = 0; + sub_node_index < LIBESEDB_BLOCK_TREE_NUMBER_OF_SUB_NODES; + sub_node_index++ ) + { + if( libcdata_array_get_entry_by_index( + ( *block_tree_node )->sub_nodes_array, + sub_node_index, + (intptr_t **) &sub_block_tree_node, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve sub node: %d.", + function, + sub_node_index ); + + result = -1; + } + if( libesedb_block_tree_node_free( + &sub_block_tree_node, + value_free_function, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, + "%s: unable to free sub node: %d.", + function, + sub_node_index ); + + result = -1; + } + } + if( libcdata_array_free( + &( ( *block_tree_node )->sub_nodes_array ), + NULL, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, + "%s: unable to free sub nodes array.", + function ); + + result = -1; + } + } + memory_free( + *block_tree_node ); + + *block_tree_node = NULL; + } + return( result ); +} + +/* Retrieves the sub node for a specific offset + * Returns 1 if successful or -1 on error + */ +int libesedb_block_tree_node_get_sub_node_at_offset( + libesedb_block_tree_node_t *block_tree_node, + off64_t offset, + libesedb_block_tree_node_t **sub_block_tree_node, + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_tree_node_get_sub_node_at_offset"; + off64_t sub_node_index = 0; + + if( block_tree_node == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node.", + function ); + + return( -1 ); + } + if( block_tree_node->is_leaf_node != 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node - not a branch node.", + function ); + + return( -1 ); + } + if( ( offset < block_tree_node->start_offset ) + || ( offset >= block_tree_node->end_offset ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid offset value out of bounds.", + function ); + + return( -1 ); + } + sub_node_index = ( offset - block_tree_node->start_offset ) / block_tree_node->sub_node_size; + + if( ( sub_node_index < 0 ) + || ( sub_node_index > (off64_t) INT_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid sub node index value out of bounds.", + function ); + + return( -1 ); + } + if( libcdata_array_get_entry_by_index( + block_tree_node->sub_nodes_array, + (int) sub_node_index, + (intptr_t **) sub_block_tree_node, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve sub node: %" PRIi64 ".", + function, + sub_node_index ); + + return( -1 ); + } + return( 1 ); +} + +/* Sets the sub node for a specific offset + * Returns 1 if successful or -1 on error + */ +int libesedb_block_tree_node_set_sub_node_at_offset( + libesedb_block_tree_node_t *block_tree_node, + off64_t offset, + libesedb_block_tree_node_t *sub_block_tree_node, + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_tree_node_set_sub_node_at_offset"; + off64_t sub_node_index = 0; + + if( block_tree_node == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node.", + function ); + + return( -1 ); + } + if( block_tree_node->is_leaf_node != 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node - not a branch node.", + function ); + + return( -1 ); + } + if( ( offset < block_tree_node->start_offset ) + || ( offset >= block_tree_node->end_offset ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid offset value out of bounds.", + function ); + + return( -1 ); + } + sub_node_index = ( offset - block_tree_node->start_offset ) / block_tree_node->sub_node_size; + + if( ( sub_node_index < 0 ) + || ( sub_node_index > (off64_t) INT_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid sub node index value out of bounds.", + function ); + + return( -1 ); + } + if( libcdata_array_set_entry_by_index( + block_tree_node->sub_nodes_array, + (int) sub_node_index, + (intptr_t *) sub_block_tree_node, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set sub node: %" PRIi64 ".", + function, + sub_node_index ); + + return( -1 ); + } + return( 1 ); +} + +/* Retrieves the leaf value for a specific offset + * Returns 1 if successful or -1 on error + */ +int libesedb_block_tree_node_get_leaf_value_at_offset( + libesedb_block_tree_node_t *block_tree_node, + off64_t offset, + libesedb_block_descriptor_t **block_descriptor, + off64_t *block_offset, + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_tree_node_get_leaf_value_at_offset"; + off64_t leaf_value_index = 0; + off64_t safe_block_offset = 0; + + if( block_tree_node == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node.", + function ); + + return( -1 ); + } + if( block_tree_node->is_leaf_node == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node - not a leaf node.", + function ); + + return( -1 ); + } + if( ( offset < block_tree_node->start_offset ) + || ( offset >= block_tree_node->end_offset ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid offset value out of bounds.", + function ); + + return( -1 ); + } + if( block_offset == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block offset.", + function ); + + return( -1 ); + } + safe_block_offset = offset - block_tree_node->start_offset; + + leaf_value_index = safe_block_offset / block_tree_node->sub_node_size; + + if( ( leaf_value_index < 0 ) + || ( leaf_value_index > (off64_t) INT_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid leaf value index value out of bounds.", + function ); + + return( -1 ); + } + if( libcdata_array_get_entry_by_index( + block_tree_node->sub_nodes_array, + (int) leaf_value_index, + (intptr_t **) block_descriptor, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve leaf value: %" PRIi64 ".", + function, + leaf_value_index ); + + return( -1 ); + } + *block_offset = safe_block_offset - ( leaf_value_index * block_tree_node->sub_node_size ); + + return( 1 ); +} + +/* Sets the leaf value for a specific offset + * Returns 1 if successful or -1 on error + */ +int libesedb_block_tree_node_set_leaf_value_at_offset( + libesedb_block_tree_node_t *block_tree_node, + off64_t offset, + libesedb_block_descriptor_t *block_descriptor, + libcerror_error_t **error ) +{ + static char *function = "libesedb_block_tree_node_set_leaf_value_at_offset"; + off64_t leaf_value_index = 0; + + if( block_tree_node == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node.", + function ); + + return( -1 ); + } + if( block_tree_node->is_leaf_node == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid block tree node - not a leaf node.", + function ); + + return( -1 ); + } + if( ( offset < block_tree_node->start_offset ) + || ( offset >= block_tree_node->end_offset ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid offset value out of bounds.", + function ); + + return( -1 ); + } + leaf_value_index = ( offset - block_tree_node->start_offset ) / block_tree_node->sub_node_size; + + if( ( leaf_value_index < 0 ) + || ( leaf_value_index > (off64_t) INT_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid leaf value index value out of bounds.", + function ); + + return( -1 ); + } + if( libcdata_array_set_entry_by_index( + block_tree_node->sub_nodes_array, + (int) leaf_value_index, + (intptr_t *) block_descriptor, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set leaf value: %" PRIi64 ".", + function, + leaf_value_index ); + + return( -1 ); + } + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree_node.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree_node.h new file mode 100644 index 0000000..4a2815b --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_block_tree_node.h @@ -0,0 +1,109 @@ +/* + * Block tree node functions + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBESEDB_BLOCK_TREE_NODE_H ) +#define _LIBESEDB_BLOCK_TREE_NODE_H + +#include +#include + +#include "libesedb_block_descriptor.h" +#include "libesedb_libcerror.h" +#include "libesedb_libcdata.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +typedef struct libesedb_block_tree_node libesedb_block_tree_node_t; + +struct libesedb_block_tree_node +{ + /* The (range) start offset + */ + off64_t start_offset; + + /* The (range) end offset + */ + off64_t end_offset; + + /* The (range) size + */ + off64_t size; + + /* The sub node size + */ + size64_t sub_node_size; + + /* Sub branch or leaf nodes array + */ + libcdata_array_t *sub_nodes_array; + + /* Value to indicate the node is a leaf node + */ + uint8_t is_leaf_node; +}; + +int libesedb_block_tree_node_initialize( + libesedb_block_tree_node_t **block_tree_node, + off64_t offset, + size64_t size, + size64_t leaf_value_size, + libcerror_error_t **error ); + +int libesedb_block_tree_node_free( + libesedb_block_tree_node_t **block_tree_node, + int (*value_free_function)( + intptr_t **value, + libcerror_error_t **error ), + libcerror_error_t **error ); + +int libesedb_block_tree_node_get_sub_node_at_offset( + libesedb_block_tree_node_t *block_tree_node, + off64_t offset, + libesedb_block_tree_node_t **sub_block_tree_node, + libcerror_error_t **error ); + +int libesedb_block_tree_node_set_sub_node_at_offset( + libesedb_block_tree_node_t *block_tree_node, + off64_t offset, + libesedb_block_tree_node_t *sub_block_tree_node, + libcerror_error_t **error ); + +int libesedb_block_tree_node_get_leaf_value_at_offset( + libesedb_block_tree_node_t *block_tree_node, + off64_t offset, + libesedb_block_descriptor_t **block_descriptor, + off64_t *block_offset, + libcerror_error_t **error ); + +int libesedb_block_tree_node_set_leaf_value_at_offset( + libesedb_block_tree_node_t *block_tree_node, + off64_t offset, + libesedb_block_descriptor_t *block_descriptor, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBESEDB_BLOCK_TREE_NODE_H ) */ + diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog.c similarity index 93% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog.c index 0663732..ad39cab 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog.c @@ -1,7 +1,7 @@ /* * Catalog functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -23,6 +23,8 @@ #include #include +#include "libesedb_block_descriptor.h" +#include "libesedb_block_tree.h" #include "libesedb_data_definition.h" #include "libesedb_debug.h" #include "libesedb_definitions.h" @@ -74,6 +76,17 @@ int libesedb_catalog_initialize( return( -1 ); } + if( io_handle == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid IO handle.", + function ); + + return( -1 ); + } *catalog = memory_allocate_structure( libesedb_catalog_t ); @@ -127,6 +140,21 @@ int libesedb_catalog_initialize( goto on_error; } + if( libesedb_block_tree_initialize( + &( ( *catalog )->page_block_tree ), + io_handle->file_size, + io_handle->page_size, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, + "%s: unable to create page block tree.", + function ); + + goto on_error; + } if( libcdata_array_initialize( &( ( *catalog )->table_definition_array ), 0, @@ -146,6 +174,13 @@ int libesedb_catalog_initialize( on_error: if( *catalog != NULL ) { + if( ( *catalog )->page_block_tree != NULL ) + { + libesedb_block_tree_free( + &( ( *catalog )->page_block_tree ), + (int (*)(intptr_t **, libcerror_error_t **)) &libesedb_block_descriptor_free, + NULL ); + } if( ( *catalog )->page_tree != NULL ) { libesedb_page_tree_free( @@ -196,6 +231,20 @@ int libesedb_catalog_free( result = -1; } + if( libesedb_block_tree_free( + &( ( *catalog )->page_block_tree ), + (int (*)(intptr_t **, libcerror_error_t **)) &libesedb_block_descriptor_free, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, + "%s: unable to free page block tree.", + function ); + + result = -1; + } if( libcdata_array_free( &( ( *catalog )->table_definition_array ), (int (*)(intptr_t **, libcerror_error_t **)) &libesedb_table_definition_free, @@ -693,8 +742,8 @@ int libesedb_catalog_read_file_io_handle( libesedb_page_t *page = NULL; libesedb_table_definition_t *table_definition = NULL; static char *function = "libesedb_catalog_read_file_io_handle"; + off64_t page_offset = 0; uint32_t leaf_page_number = 0; - int recursion_depth = 0; if( catalog == NULL ) { @@ -718,6 +767,17 @@ int libesedb_catalog_read_file_io_handle( return( -1 ); } + if( catalog->page_tree->io_handle == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, + "%s: invalid catalog - invalid page tree - missing IO handle.", + function ); + + return( -1 ); + } if( libesedb_page_tree_get_get_first_leaf_page_number( catalog->page_tree, file_io_handle, @@ -735,14 +795,22 @@ int libesedb_catalog_read_file_io_handle( } while( leaf_page_number != 0 ) { - if( recursion_depth > LIBESEDB_MAXIMUM_LEAF_PAGE_RECURSION_DEPTH ) + page_offset = ( leaf_page_number + 1 ) * catalog->page_tree->io_handle->page_size; + + if( libesedb_page_tree_check_if_page_block_first_read( + catalog->page_tree, + catalog->page_block_tree, + leaf_page_number, + page_offset, + error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid recursion depth value out of bounds.", - function ); + LIBCERROR_RUNTIME_ERROR_GENERIC, + "%s: unable to check if first read of page number: %" PRIu32 ".", + function, + leaf_page_number ); return( -1 ); } @@ -811,7 +879,6 @@ int libesedb_catalog_read_file_io_handle( return( -1 ); } - recursion_depth++; } return( 1 ); } @@ -1048,7 +1115,7 @@ int libesedb_catalog_get_table_definition_by_utf8_name( static char *function = "libesedb_catalog_get_table_definition_by_utf8_name"; int entry_index = 0; int number_of_entries = 0; - int result = 0; + int result = LIBUNA_COMPARE_GREATER; if( catalog == NULL ) { @@ -1163,16 +1230,16 @@ int libesedb_catalog_get_table_definition_by_utf8_name( } else if( result == LIBUNA_COMPARE_EQUAL ) { - result = 1; - break; } } - if( result != 0 ) + if( result == LIBUNA_COMPARE_EQUAL ) { *table_definition = safe_table_definition; + + return( 1 ); } - return( result ); + return( 0 ); } /* Retrieves the table definition for the specific UTF-16 encoded name @@ -1189,7 +1256,7 @@ int libesedb_catalog_get_table_definition_by_utf16_name( static char *function = "libesedb_catalog_get_table_definition_by_utf16_name"; int entry_index = 0; int number_of_entries = 0; - int result = 0; + int result = LIBUNA_COMPARE_GREATER; if( catalog == NULL ) { @@ -1304,15 +1371,15 @@ int libesedb_catalog_get_table_definition_by_utf16_name( } else if( result == LIBUNA_COMPARE_EQUAL ) { - result = 1; - break; } } - if( result != 0 ) + if( result == LIBUNA_COMPARE_EQUAL ) { *table_definition = safe_table_definition; + + return( 1 ); } - return( result ); + return( 0 ); } diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog.h index a75a2c9..556363f 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog.h @@ -1,7 +1,7 @@ /* * Catalog functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,6 +25,7 @@ #include #include +#include "libesedb_block_tree.h" #include "libesedb_io_handle.h" #include "libesedb_libbfio.h" #include "libesedb_libcdata.h" @@ -46,6 +47,10 @@ struct libesedb_catalog */ libesedb_page_tree_t *page_tree; + /* The page block tree + */ + libesedb_block_tree_t *page_block_tree; + /* The table definition array */ libcdata_array_t *table_definition_array; diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog_definition.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog_definition.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog_definition.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog_definition.c index 7835efd..8cab8e2 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog_definition.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog_definition.c @@ -1,7 +1,7 @@ /* * Catalog definition functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -307,7 +307,7 @@ int libesedb_catalog_definition_read_data( return( -1 ); } - if( last_fixed_size_data_type > 12 ) + if( last_fixed_size_data_type > 13 ) { libcerror_error_set( error, @@ -329,6 +329,10 @@ int libesedb_catalog_definition_read_data( */ switch( last_fixed_size_data_type ) { + case 13: + calculated_variable_size_data_types_offset += 4; + + LIBESEDB_ATTRIBUTE_FALLTHROUGH; case 12: calculated_variable_size_data_types_offset += 4; diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog_definition.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog_definition.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog_definition.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog_definition.h index 330f2fa..11d4ccc 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_catalog_definition.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_catalog_definition.h @@ -1,7 +1,7 @@ /* * Catalog definition functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_checksum.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_checksum.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_checksum.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_checksum.c index 8fd075e..4689dea 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_checksum.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_checksum.c @@ -1,7 +1,7 @@ /* * Checksum functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_checksum.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_checksum.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_checksum.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_checksum.h index 7d334a8..66be78f 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_checksum.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_checksum.h @@ -1,7 +1,7 @@ /* * Checksum functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_codepage.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_codepage.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_codepage.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_codepage.c index 05e02fb..0f916d9 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_codepage.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_codepage.c @@ -1,7 +1,7 @@ /* * Codepage functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_codepage.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_codepage.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_codepage.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_codepage.h index 4025c2d..eb5c481 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_codepage.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_codepage.h @@ -1,7 +1,7 @@ /* * Codepage functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_column.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_column.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_column.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_column.c index 954a086..c4d2f16 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_column.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_column.c @@ -1,7 +1,7 @@ /* * Column functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_column.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_column.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_column.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_column.h index 1f688f4..232d71c 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_column.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_column.h @@ -1,7 +1,7 @@ /* * Column functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_column_type.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_column_type.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_column_type.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_column_type.c index 709dbb8..6e39946 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_column_type.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_column_type.c @@ -1,7 +1,7 @@ /* * Column type functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_column_type.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_column_type.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_column_type.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_column_type.h index 9a51fdf..0f88e69 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_column_type.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_column_type.h @@ -1,7 +1,7 @@ /* * Column type functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_compression.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_compression.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_compression.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_compression.c index e63e41c..0562536 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_compression.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_compression.c @@ -1,7 +1,7 @@ /* * Compression functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_compression.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_compression.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_compression.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_compression.h index ec37f7a..12c9f04 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_compression.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_compression.h @@ -1,7 +1,7 @@ /* * Compression functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_data_definition.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_data_definition.c similarity index 93% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_data_definition.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_data_definition.c index b1651c1..8276269 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_data_definition.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_data_definition.c @@ -1,7 +1,7 @@ /* * Data definition functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -343,6 +343,7 @@ int libesedb_data_definition_read_record( uint16_t variable_size_data_type_offset = 0; uint16_t variable_size_data_type_size = 0; uint16_t variable_size_data_type_value_offset = 0; + uint16_t variable_size_data_type_value_size = 0; uint16_t variable_size_data_types_offset = 0; uint8_t current_variable_size_data_type = 0; uint8_t last_fixed_size_data_type = 0; @@ -495,7 +496,7 @@ int libesedb_data_definition_read_record( "%s: invalid data definition - data offset value out of bounds.", function ); - return( -1 ); + goto on_error; } record_data = &( page_value->data[ data_offset ] ); record_data_size = page_value->size - data_offset; @@ -546,7 +547,8 @@ int libesedb_data_definition_read_record( function, variable_size_data_types_offset ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ + if( template_table_definition != NULL ) { if( libesedb_table_definition_get_number_of_column_catalog_definitions( @@ -721,7 +723,8 @@ int libesedb_data_definition_read_record( libesedb_column_type_get_identifier( column_catalog_definition->column_type ) ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ + /* TODO refactor to value type */ switch( column_catalog_definition->column_type ) @@ -844,6 +847,17 @@ int libesedb_data_definition_read_record( { if( column_catalog_definition->identifier <= last_fixed_size_data_type ) { + if( column_catalog_definition->size > ( record_data_size - fixed_size_data_type_value_offset ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid data definition - size value out of bounds.", + function ); + + goto on_error; + } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { @@ -857,7 +871,8 @@ int libesedb_data_definition_read_record( column_catalog_definition->size, 0 ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ + if( libfvalue_data_handle_set_data( value_data_handle, &( record_data[ fixed_size_data_type_value_offset ] ), @@ -893,6 +908,17 @@ int libesedb_data_definition_read_record( { while( current_variable_size_data_type < column_catalog_definition->identifier ) { + if( variable_size_data_type_offset > ( record_data_size - 2 ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid variable size data type offset value out of bounds.", + function ); + + goto on_error; + } byte_stream_copy_to_uint16_little_endian( &( record_data[ variable_size_data_type_offset ] ), variable_size_data_type_size ); @@ -918,6 +944,31 @@ int libesedb_data_definition_read_record( */ if( ( variable_size_data_type_size & 0x8000 ) == 0 ) { + if( variable_size_data_type_size < previous_variable_size_data_type_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid variable size data type size value out of bounds.", + function ); + + goto on_error; + } + variable_size_data_type_value_size = variable_size_data_type_size - previous_variable_size_data_type_size; + + if( ( variable_size_data_type_value_size > record_data_size ) + || ( variable_size_data_type_value_offset > ( record_data_size - variable_size_data_type_value_size ) ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid variable size data type value size value out of bounds.", + function ); + + goto on_error; + } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { @@ -927,14 +978,14 @@ int libesedb_data_definition_read_record( column_catalog_definition->identifier ); libcnotify_print_data( &( record_data[ variable_size_data_type_value_offset ] ), - variable_size_data_type_size - previous_variable_size_data_type_size, + variable_size_data_type_value_size, 0 ); } #endif if( libfvalue_data_handle_set_data( value_data_handle, &( record_data[ variable_size_data_type_value_offset ] ), - variable_size_data_type_size - previous_variable_size_data_type_size, + variable_size_data_type_value_size, encoding, LIBFVALUE_VALUE_DATA_FLAG_MANAGED, error ) != 1 ) @@ -948,7 +999,7 @@ int libesedb_data_definition_read_record( goto on_error; } - variable_size_data_type_value_offset += variable_size_data_type_size - previous_variable_size_data_type_size; + variable_size_data_type_value_offset += variable_size_data_type_value_size; previous_variable_size_data_type_size = variable_size_data_type_size; } #if defined( HAVE_DEBUG_OUTPUT ) @@ -1086,7 +1137,7 @@ int libesedb_data_definition_read_record( column_catalog_definition->identifier ); } } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( tagged_data_type_size > 0 ) { if( tagged_data_type_value_offset >= record_data_size ) @@ -1163,12 +1214,37 @@ int libesedb_data_definition_read_record( { if( tagged_data_types_offset == 0 ) { - tagged_data_types_offset = variable_size_data_type_value_offset; + tagged_data_types_offset = variable_size_data_type_value_offset; + + /* Note that offset is allowed to be equal to the record data size here + */ + if( tagged_data_types_offset > record_data_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid tagged data types offset value out of bounds.", + function ); + + goto on_error; + } tagged_data_type_offset_data = &( record_data[ tagged_data_types_offset ] ); remaining_definition_data_size = record_data_size - (size_t) tagged_data_types_offset; if( remaining_definition_data_size > 0 ) { + if( record_data_size < 4 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid tagged data types offset data size value out of bounds.", + function ); + + goto on_error; + } byte_stream_copy_to_uint16_little_endian( tagged_data_type_offset_data, tagged_data_type_identifier ); @@ -1239,6 +1315,17 @@ int libesedb_data_definition_read_record( if( tagged_data_type_offset_data_size > 0 ) { + if( tagged_data_type_offset_data_size < 4 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid tagged data types offset data size value out of bounds.", + function ); + + goto on_error; + } byte_stream_copy_to_uint16_little_endian( tagged_data_type_offset_data, tagged_data_type_identifier ); @@ -1356,7 +1443,7 @@ int libesedb_data_definition_read_record( "\n\n" ); } } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ } #if defined( HAVE_DEBUG_OUTPUT ) /* TODO are zero size tagged data type values handled correctly? @@ -1382,6 +1469,17 @@ int libesedb_data_definition_read_record( goto on_error; } + if( tagged_data_type_size > ( record_data_size - tagged_data_type_value_offset ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid tagged data type size value out of bounds.", + function ); + + goto on_error; + } if( libfvalue_data_handle_set_data( value_data_handle, &( record_data[ tagged_data_type_value_offset ] ), @@ -1455,7 +1553,8 @@ int libesedb_data_definition_read_record( libcnotify_printf( "\n" ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ + return( 1 ); on_error: diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_data_definition.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_data_definition.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_data_definition.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_data_definition.h index ac15f1e..58ceff1 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_data_definition.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_data_definition.h @@ -1,7 +1,7 @@ /* * Data definition functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_data_segment.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_data_segment.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_data_segment.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_data_segment.c index 106cdbf..f8b15e7 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_data_segment.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_data_segment.c @@ -1,7 +1,7 @@ /* * Data segment functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_data_segment.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_data_segment.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_data_segment.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_data_segment.h index 52e01ff..fdc4a64 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_data_segment.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_data_segment.h @@ -1,7 +1,7 @@ /* * Data segment functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_database.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_database.c similarity index 86% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_database.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_database.c index 804bc48..d2a5f5b 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_database.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_database.c @@ -1,7 +1,7 @@ /* * Database functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -23,6 +23,8 @@ #include #include +#include "libesedb_block_descriptor.h" +#include "libesedb_block_tree.h" #include "libesedb_database.h" #include "libesedb_debug.h" #include "libesedb_definitions.h" @@ -71,6 +73,17 @@ int libesedb_database_initialize( return( -1 ); } + if( io_handle == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid IO handle.", + function ); + + return( -1 ); + } *database = memory_allocate_structure( libesedb_database_t ); @@ -124,11 +137,32 @@ int libesedb_database_initialize( goto on_error; } + if( libesedb_block_tree_initialize( + &( ( *database )->page_block_tree ), + io_handle->file_size, + io_handle->page_size, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, + "%s: unable to create page block tree.", + function ); + + goto on_error; + } return( 1 ); on_error: if( *database != NULL ) { + if( ( *database )->page_tree != NULL ) + { + libesedb_page_tree_free( + &( ( *database )->page_tree ), + NULL ); + } memory_free( *database ); @@ -173,6 +207,20 @@ int libesedb_database_free( result = -1; } + if( libesedb_block_tree_free( + &( ( *database )->page_block_tree ), + (int (*)(intptr_t **, libcerror_error_t **)) &libesedb_block_descriptor_free, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, + "%s: unable to free page block tree.", + function ); + + result = -1; + } memory_free( *database ); @@ -413,9 +461,9 @@ int libesedb_database_read_file_io_handle( { libesedb_page_t *page = NULL; static char *function = "libesedb_database_read_file_io_handle"; + off64_t page_offset = 0; uint32_t leaf_page_number = 0; int current_leaf_value_index = 0; - int recursion_depth = 0; if( database == NULL ) { @@ -439,6 +487,17 @@ int libesedb_database_read_file_io_handle( return( -1 ); } + if( database->page_tree->io_handle == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, + "%s: invalid database - invalid page tree - missing IO handle.", + function ); + + return( -1 ); + } if( libesedb_page_tree_get_get_first_leaf_page_number( database->page_tree, file_io_handle, @@ -456,14 +515,22 @@ int libesedb_database_read_file_io_handle( } while( leaf_page_number != 0 ) { - if( recursion_depth > LIBESEDB_MAXIMUM_LEAF_PAGE_RECURSION_DEPTH ) + page_offset = ( leaf_page_number + 1 ) * database->page_tree->io_handle->page_size; + + if( libesedb_page_tree_check_if_page_block_first_read( + database->page_tree, + database->page_block_tree, + leaf_page_number, + page_offset, + error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid recursion depth value out of bounds.", - function ); + LIBCERROR_RUNTIME_ERROR_GENERIC, + "%s: unable to check if first read of page number: %" PRIu32 ".", + function, + leaf_page_number ); return( -1 ); } @@ -532,7 +599,6 @@ int libesedb_database_read_file_io_handle( return( -1 ); } - recursion_depth++; } return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_database.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_database.h similarity index 92% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_database.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_database.h index b28a236..7368094 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_database.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_database.h @@ -1,7 +1,7 @@ /* * Database functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,6 +25,7 @@ #include #include +#include "libesedb_block_tree.h" #include "libesedb_io_handle.h" #include "libesedb_libbfio.h" #include "libesedb_libcerror.h" @@ -43,6 +44,10 @@ struct libesedb_database /* The page tree */ libesedb_page_tree_t *page_tree; + + /* The page block tree + */ + libesedb_block_tree_t *page_block_tree; }; int libesedb_database_initialize( diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_debug.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_debug.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_debug.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_debug.c index 65ad85c..252b8ba 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_debug.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_debug.c @@ -1,7 +1,7 @@ /* * Debug functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_debug.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_debug.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_debug.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_debug.h index de9dbfd..b010c6b 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_debug.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_debug.h @@ -1,7 +1,7 @@ /* * Debug functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_definitions.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_definitions.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_definitions.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_definitions.h index 59d63ed..b287611 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_definitions.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -40,11 +40,11 @@ * for local use of libesedb */ #else -#define LIBESEDB_VERSION 20210424 +#define LIBESEDB_VERSION 20230824 /* The version string */ -#define LIBESEDB_VERSION_STRING "20210424" +#define LIBESEDB_VERSION_STRING "20230824" /* The access flags definitions * bit 1 set to 1 for read access @@ -237,7 +237,7 @@ enum LIBESEDB_FILE_ATTRIBUTE_FLAGS */ #define LIBESEDB_PAGE_TREE_NODE_FLAG_IS_VIRTUAL LIBFDATA_RANGE_FLAG_USER_DEFINED_1 -/* The maximum number of cache entries defintions +/* The maximum number of cache entries definitions */ #define LIBESEDB_MAXIMUM_CACHE_ENTRIES_PAGES ( 8 * 1024 ) - 3 #define LIBESEDB_MAXIMUM_CACHE_ENTRIES_INDEX_VALUES ( 32 * 1024 ) - 3 @@ -248,9 +248,10 @@ enum LIBESEDB_FILE_ATTRIBUTE_FLAGS #define LIBESEDB_VALUE_DATA_FLAG_HAS_TAG_DATA_TYPE_FLAGS LIBFVALUE_VALUE_DATA_FLAG_USER_DEFINED_1 +#define LIBESEDB_BLOCK_TREE_NUMBER_OF_SUB_NODES 256 + #define LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES 16 * 1024 -#define LIBESEDB_MAXIMUM_LEAF_PAGE_RECURSION_DEPTH 256 #define LIBESEDB_MAXIMUM_INDEX_NODE_RECURSION_DEPTH 256 #endif /* !defined( _LIBESEDB_INTERNAL_DEFINITIONS_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_definitions.h.in b/libesedb-sys/libesedb-20230824/libesedb/libesedb_definitions.h.in similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_definitions.h.in rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_definitions.h.in index bedaa03..c9433be 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_definitions.h.in +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_definitions.h.in @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -237,7 +237,7 @@ enum LIBESEDB_FILE_ATTRIBUTE_FLAGS */ #define LIBESEDB_PAGE_TREE_NODE_FLAG_IS_VIRTUAL LIBFDATA_RANGE_FLAG_USER_DEFINED_1 -/* The maximum number of cache entries defintions +/* The maximum number of cache entries definitions */ #define LIBESEDB_MAXIMUM_CACHE_ENTRIES_PAGES ( 8 * 1024 ) - 3 #define LIBESEDB_MAXIMUM_CACHE_ENTRIES_INDEX_VALUES ( 32 * 1024 ) - 3 @@ -248,9 +248,10 @@ enum LIBESEDB_FILE_ATTRIBUTE_FLAGS #define LIBESEDB_VALUE_DATA_FLAG_HAS_TAG_DATA_TYPE_FLAGS LIBFVALUE_VALUE_DATA_FLAG_USER_DEFINED_1 +#define LIBESEDB_BLOCK_TREE_NUMBER_OF_SUB_NODES 256 + #define LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES 16 * 1024 -#define LIBESEDB_MAXIMUM_LEAF_PAGE_RECURSION_DEPTH 256 #define LIBESEDB_MAXIMUM_INDEX_NODE_RECURSION_DEPTH 256 #endif /* !defined( _LIBESEDB_INTERNAL_DEFINITIONS_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_error.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_error.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_error.c index 149ab68..0984c18 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_error.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_error.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_error.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_error.h index 34e5d30..5e465be 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_error.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_extern.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_extern.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_extern.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_extern.h index fb65c6a..88151d0 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_extern.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_file.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_file.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_file.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_file.c index 0c04fc5..f6b59a6 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_file.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_file.c @@ -1,7 +1,7 @@ /* * File functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_file.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_file.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_file.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_file.h index bb19736..91406c6 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_file.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_file.h @@ -1,7 +1,7 @@ /* * File functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_file_header.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_file_header.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_file_header.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_file_header.c index ccb7abb..ec04ee3 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_file_header.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_file_header.c @@ -1,7 +1,7 @@ /* * File header functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -223,39 +223,10 @@ int libesedb_file_header_read_data( return( -1 ); } - if( libesedb_checksum_calculate_little_endian_xor32( - &calculated_xor32_checksum, - &( data[ 4 ] ), - data_size - 4, - 0x89abcdef, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GENERIC, - "%s: unable to calculate XOR-32 checksum.", - function ); - - return( -1 ); - } byte_stream_copy_to_uint32_little_endian( ( (esedb_file_header_t *) data )->checksum, stored_xor32_checksum ); - if( stored_xor32_checksum != calculated_xor32_checksum ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_INPUT, - LIBCERROR_INPUT_ERROR_CHECKSUM_MISMATCH, - "%s: mismatch in file header checksum ( 0x%08" PRIx32 " != 0x%08" PRIx32 " ).", - function, - stored_xor32_checksum, - calculated_xor32_checksum ); - - return( -1 ); - } byte_stream_copy_to_uint32_little_endian( ( (esedb_file_header_t *) data )->format_version, file_header->format_version ); @@ -264,6 +235,10 @@ int libesedb_file_header_read_data( ( (esedb_file_header_t *) data )->file_type, file_header->file_type ); + byte_stream_copy_to_uint32_little_endian( + ( (esedb_file_header_t *) data )->database_state, + file_header->database_state ); + byte_stream_copy_to_uint32_little_endian( ( (esedb_file_header_t *) data )->format_revision, file_header->format_revision ); @@ -324,15 +299,12 @@ int libesedb_file_header_read_data( 28, 0 ); - byte_stream_copy_to_uint32_little_endian( - ( (esedb_file_header_t *) data )->database_state, - value_32bit ); libcnotify_printf( "%s: database state\t\t\t\t: %" PRIu32 " ", function, - value_32bit ); + file_header->database_state ); libesedb_debug_print_database_state( - value_32bit ); + file_header->database_state ); libcnotify_printf( "\n" ); @@ -463,8 +435,9 @@ int libesedb_file_header_read_data( value_32bit ); libcnotify_printf( - "%s: format revision\t\t\t\t: 0x%08" PRIx32 "\n", + "%s: format revision\t\t\t\t: %" PRIu32 " (0x%08" PRIx32 ")\n", function, + file_header->format_revision, file_header->format_revision ); libcnotify_printf( "%s: page size\t\t\t\t: %" PRIu32 "\n", @@ -550,8 +523,9 @@ int libesedb_file_header_read_data( function, file_header->creation_format_version ); libcnotify_printf( - "%s: creation format revision\t\t: 0x%08" PRIx32 "\n", + "%s: creation format revision\t\t: %" PRIu32 " (0x%08" PRIx32 ")\n", function, + file_header->creation_format_revision, file_header->creation_format_revision ); libcnotify_printf( @@ -701,6 +675,36 @@ int libesedb_file_header_read_data( } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ + if( libesedb_checksum_calculate_little_endian_xor32( + &calculated_xor32_checksum, + &( data[ 4 ] ), + data_size - 4, + 0x89abcdef, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GENERIC, + "%s: unable to calculate XOR-32 checksum.", + function ); + + return( -1 ); + } + if( ( file_header->database_state != 2 ) + && ( stored_xor32_checksum != calculated_xor32_checksum ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_INPUT, + LIBCERROR_INPUT_ERROR_CHECKSUM_MISMATCH, + "%s: mismatch in file header checksum ( 0x%08" PRIx32 " != 0x%08" PRIx32 " ).", + function, + stored_xor32_checksum, + calculated_xor32_checksum ); + + return( -1 ); + } /* TODO add more values to internal structures */ return( 1 ); diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_file_header.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_file_header.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_file_header.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_file_header.h index e665e54..eedc702 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_file_header.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_file_header.h @@ -1,7 +1,7 @@ /* * File header functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -56,6 +56,10 @@ struct libesedb_file_header */ uint32_t format_version; + /* The database state + */ + uint32_t database_state; + /* The page size */ uint32_t page_size; diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_i18n.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_i18n.c similarity index 85% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_i18n.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_i18n.c index 141a73a..cfdcbb1 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_i18n.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_i18n.c @@ -1,7 +1,7 @@ /* * Internationalization (i18n) functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -22,7 +22,7 @@ #include #include -#if defined( HAVE_LIBINTL_H ) +#if defined( HAVE_LIBINTL_H ) && defined( ENABLE_NLS ) #include #endif @@ -40,7 +40,7 @@ int libesedb_i18n_initialize( if( libesedb_i18n_initialized == 0 ) { -#if defined( HAVE_BINDTEXTDOMAIN ) +#if defined( HAVE_BINDTEXTDOMAIN ) && defined( LOCALEDIR ) if( bindtextdomain( "libesedb", LOCALEDIR ) == NULL ) @@ -54,7 +54,8 @@ int libesedb_i18n_initialize( return( -1 ); } -#endif +#endif /* defined( HAVE_BINDTEXTDOMAIN ) && defined( LOCALEDIR ) */ + libesedb_i18n_initialized = 1; } return( 1 ); diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_i18n.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_i18n.h similarity index 91% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_i18n.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_i18n.h index 9aaed7b..6e44e22 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_i18n.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_i18n.h @@ -1,7 +1,7 @@ /* * Internationalization (i18n) functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,7 @@ #include #include -#if defined( HAVE_LIBINTL_H ) +#if defined( HAVE_LIBINTL_H ) && defined( ENABLE_NLS ) #include #endif diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_index.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_index.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_index.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_index.c index 4acf7ef..58c227c 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_index.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_index.c @@ -1,7 +1,7 @@ /* * Index functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_index.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_index.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_index.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_index.h index ea177b3..5c640f2 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_index.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_index.h @@ -1,7 +1,7 @@ /* * Index functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_io_handle.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_io_handle.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_io_handle.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_io_handle.c index baf2eb2..5f4add5 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_io_handle.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_io_handle.c @@ -1,7 +1,7 @@ /* * Input/Output (IO) handle functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -215,6 +215,7 @@ int libesedb_io_handle_set_pages_data_range( return( -1 ); } + io_handle->file_size = file_size; io_handle->pages_data_offset = (off64_t) ( io_handle->page_size * 2 ); io_handle->pages_data_size = file_size - (size64_t) io_handle->pages_data_offset; io_handle->last_page_number = (uint32_t) ( io_handle->pages_data_size / io_handle->page_size ); diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_io_handle.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_io_handle.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_io_handle.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_io_handle.h index f4aafc9..2da73c1 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_io_handle.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_io_handle.h @@ -1,7 +1,7 @@ /* * Input/Output (IO) handle functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -59,6 +59,10 @@ struct libesedb_io_handle */ uint32_t creation_format_revision; + /* The file size + */ + size64_t file_size; + /* The pages data offset */ off64_t pages_data_offset; diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_lcid.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_lcid.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_lcid.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_lcid.c index 38710c6..6a8f00d 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_lcid.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_lcid.c @@ -1,7 +1,7 @@ /* * LCID functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_lcid.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_lcid.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_lcid.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_lcid.h index eeac5ce..045b6a3 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_lcid.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_lcid.h @@ -1,7 +1,7 @@ /* * LCID functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_leaf_page_descriptor.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_leaf_page_descriptor.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_leaf_page_descriptor.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_leaf_page_descriptor.c index 1250a82..8b63dec 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_leaf_page_descriptor.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_leaf_page_descriptor.c @@ -1,7 +1,7 @@ /* * Leaf page descriptor functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_leaf_page_descriptor.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_leaf_page_descriptor.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_leaf_page_descriptor.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_leaf_page_descriptor.h index f2a63c0..d01aa1e 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_leaf_page_descriptor.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_leaf_page_descriptor.h @@ -1,7 +1,7 @@ /* * Leaf page descriptor functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libbfio.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libbfio.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libbfio.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libbfio.h index 55660c2..7def813 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libbfio.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libbfio.h @@ -1,7 +1,7 @@ /* * The libbfio header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libcdata.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libcdata.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libcdata.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libcdata.h index 044f65a..85644ca 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libcdata.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libcdata.h @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libcerror.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libcerror.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libcerror.h index 148af41..0e1f6d7 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libclocale.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libclocale.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libclocale.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libclocale.h index 92eb814..f9e5435 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libclocale.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libclocale.h @@ -1,7 +1,7 @@ /* * The libclocale header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libcnotify.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libcnotify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libcnotify.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libcnotify.h index f0e3b51..a03c196 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libcnotify.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libcnotify.h @@ -1,7 +1,7 @@ /* * The libcnotify header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libfcache.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libfcache.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libfcache.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libfcache.h index d180df6..d3d043e 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libfcache.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libfcache.h @@ -1,7 +1,7 @@ /* * The libfcache header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libfdata.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libfdata.h similarity index 92% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libfdata.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libfdata.h index 9173559..f411bbe 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libfdata.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libfdata.h @@ -1,7 +1,7 @@ /* * The libfdata header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -34,8 +34,6 @@ #include #include #include -#include -#include #include #include diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libfvalue.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libfvalue.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libfvalue.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libfvalue.h index c2f5ec9..b9ea215 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libfvalue.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libfvalue.h @@ -1,7 +1,7 @@ /* * The libfvalue header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libfwnt.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libfwnt.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libfwnt.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libfwnt.h index 26e38db..28789ce 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libfwnt.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libfwnt.h @@ -1,7 +1,7 @@ /* * The libfwnt header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libuna.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libuna.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_libuna.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_libuna.h index 293e178..5decc46 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_libuna.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_libuna.h @@ -1,7 +1,7 @@ /* * The libuna header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_long_value.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_long_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_long_value.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_long_value.c index 98eead1..c075035 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_long_value.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_long_value.c @@ -1,7 +1,7 @@ /* * Long value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_long_value.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_long_value.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_long_value.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_long_value.h index 1a032e4..e3b78ac 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_long_value.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_long_value.h @@ -1,7 +1,7 @@ /* * Long value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_multi_value.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_multi_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_multi_value.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_multi_value.c index f7bf031..f956e2d 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_multi_value.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_multi_value.c @@ -1,7 +1,7 @@ /* * Multi value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_multi_value.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_multi_value.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_multi_value.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_multi_value.h index 42e291a..0a7b0c1 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_multi_value.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_multi_value.h @@ -1,7 +1,7 @@ /* * Multi value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_notify.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_notify.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_notify.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_notify.c index 944919b..981409b 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_notify.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_notify.c @@ -1,7 +1,7 @@ /* * Notification functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_notify.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_notify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_notify.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_notify.h index bc30c24..0be01d3 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_notify.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_notify.h @@ -1,7 +1,7 @@ /* * Notification functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page.c index ad53479..dec392e 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page.c @@ -1,7 +1,7 @@ /* * Page functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page.h index b789d21..ac6ed3a 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page.h @@ -1,7 +1,7 @@ /* * Page functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_header.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_header.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_header.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_header.c index 7baa2d3..ffcbaf3 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_header.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_header.c @@ -1,7 +1,7 @@ /* * Page header functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_header.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_header.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_header.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_header.h index 89bcfb3..fda1990 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_header.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_header.h @@ -1,7 +1,7 @@ /* * Page header functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree.c index ee149b5..cc49b9a 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree.c @@ -1,7 +1,7 @@ /* * Page tree functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -24,6 +24,9 @@ #include #include +#include "libesedb_block_descriptor.h" +#include "libesedb_block_tree.h" +#include "libesedb_block_tree_node.h" #include "libesedb_data_definition.h" #include "libesedb_debug.h" #include "libesedb_definitions.h" @@ -145,6 +148,21 @@ int libesedb_page_tree_initialize( return( -1 ); } + if( libesedb_block_tree_initialize( + &( ( *page_tree )->page_block_tree ), + io_handle->file_size, + io_handle->page_size, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, + "%s: unable to create page block tree.", + function ); + + goto on_error; + } if( libcdata_btree_initialize( &( ( *page_tree )->leaf_page_descriptors_tree ), 257, @@ -173,6 +191,13 @@ int libesedb_page_tree_initialize( on_error: if( *page_tree != NULL ) { + if( ( *page_tree )->page_block_tree != NULL ) + { + libesedb_block_tree_free( + &( ( *page_tree )->page_block_tree ), + (int (*)(intptr_t **, libcerror_error_t **)) &libesedb_block_descriptor_free, + NULL ); + } memory_free( *page_tree ); @@ -237,6 +262,20 @@ int libesedb_page_tree_free( result = -1; } + if( libesedb_block_tree_free( + &( ( *page_tree )->page_block_tree ), + (int (*)(intptr_t **, libcerror_error_t **)) &libesedb_block_descriptor_free, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, + "%s: unable to free page block tree.", + function ); + + result = -1; + } memory_free( *page_tree ); @@ -245,6 +284,95 @@ int libesedb_page_tree_free( return( result ); } +/* Checks if this is the first time the page block is being read + * Returns 1 if successful or -1 on error + */ +int libesedb_page_tree_check_if_page_block_first_read( + libesedb_page_tree_t *page_tree, + libesedb_block_tree_t *page_block_tree, + uint32_t page_number, + off64_t page_offset, + libcerror_error_t **error ) +{ + libesedb_block_descriptor_t *existing_block_descriptor = NULL; + libesedb_block_descriptor_t *new_block_descriptor = NULL; + libesedb_block_tree_node_t *leaf_block_tree_node = NULL; + static char *function = "libesedb_page_tree_check_if_page_block_first_read"; + int leaf_value_index = 0; + int result = 0; + + if( page_tree == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid page tree.", + function ); + + return( -1 ); + } + if( libesedb_block_descriptor_initialize( + &new_block_descriptor, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, + "%s: unable to create block descriptor.", + function ); + + goto on_error; + } + new_block_descriptor->page_number = page_number; + + result = libesedb_block_tree_insert_block_descriptor_by_offset( + page_block_tree, + page_offset, + new_block_descriptor, + &leaf_value_index, + &leaf_block_tree_node, + &existing_block_descriptor, + error ); + + if( result == -1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_APPEND_FAILED, + "%s: unable to insert block descriptor in page block tree.", + function ); + + goto on_error; + } + else if( result == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid page number: %" PRIu32 " value already exists.", + function, + page_number ); + + goto on_error; + } + new_block_descriptor = NULL; + + return( 1 ); + +on_error: + if( new_block_descriptor != NULL ) + { + libesedb_block_descriptor_free( + &new_block_descriptor, + NULL ); + } + return( -1 ); +} + /* Reads the root page header * Returns 1 if successful or -1 on error */ @@ -1149,10 +1277,10 @@ int libesedb_page_tree_get_get_first_leaf_page_number( { libesedb_page_t *page = NULL; static char *function = "libesedb_page_tree_get_get_first_leaf_page_number"; + off64_t page_offset = 0; uint32_t last_leaf_page_number = 0; uint32_t page_flags = 0; uint32_t safe_leaf_page_number = 0; - int recursion_depth = 0; if( page_tree == NULL ) { @@ -1165,6 +1293,17 @@ int libesedb_page_tree_get_get_first_leaf_page_number( return( -1 ); } + if( page_tree->io_handle == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_MISSING, + "%s: invalid page tree - missing IO handle.", + function ); + + return( -1 ); + } if( leaf_page_number == NULL ) { libcerror_error_set( @@ -1280,14 +1419,22 @@ int libesedb_page_tree_get_get_first_leaf_page_number( } while( safe_leaf_page_number != 0 ) { - if( recursion_depth > LIBESEDB_MAXIMUM_LEAF_PAGE_RECURSION_DEPTH ) + page_offset = ( safe_leaf_page_number + 1 ) * page_tree->io_handle->page_size; + + if( libesedb_page_tree_check_if_page_block_first_read( + page_tree, + page_tree->page_block_tree, + safe_leaf_page_number, + page_offset, + error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid recursion depth value out of bounds.", - function ); + LIBCERROR_RUNTIME_ERROR_GENERIC, + "%s: unable to check if first read of page number: %" PRIu32 ".", + function, + safe_leaf_page_number ); return( -1 ); } @@ -1342,7 +1489,6 @@ int libesedb_page_tree_get_get_first_leaf_page_number( return( -1 ); } - recursion_depth++; } *leaf_page_number = last_leaf_page_number; diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree.h similarity index 93% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree.h index 1e6fcd7..e6c078d 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree.h @@ -1,7 +1,7 @@ /* * Page tree functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,6 +25,7 @@ #include #include +#include "libesedb_block_tree.h" #include "libesedb_data_definition.h" #include "libesedb_io_handle.h" #include "libesedb_libbfio.h" @@ -51,6 +52,10 @@ struct libesedb_page_tree */ libesedb_io_handle_t *io_handle; + /* The page block tree + */ + libesedb_block_tree_t *page_block_tree; + /* The object identifier */ uint32_t object_identifier; @@ -103,6 +108,13 @@ int libesedb_page_tree_free( libesedb_page_tree_t **page_tree, libcerror_error_t **error ); +int libesedb_page_tree_check_if_page_block_first_read( + libesedb_page_tree_t *page_tree, + libesedb_block_tree_t *page_block_tree, + uint32_t page_number, + off64_t page_offset, + libcerror_error_t **error ); + int libesedb_page_tree_read_root_page_header( libesedb_page_tree_t *page_tree, libesedb_page_t *root_page, diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_key.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_key.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_key.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_key.c index 5fa3962..e848a5d 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_key.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_key.c @@ -1,7 +1,7 @@ /* * Page tree key functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_key.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_key.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_key.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_key.h index ca92f76..116091f 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_key.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_key.h @@ -1,7 +1,7 @@ /* * Page tree key functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_value.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_value.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_value.c index 4499c7b..55ce6ac 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_value.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_value.c @@ -1,7 +1,7 @@ /* * Page tree value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_value.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_value.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_value.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_value.h index 6991f9e..955023e 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_tree_value.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_tree_value.h @@ -1,7 +1,7 @@ /* * Page tree value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_value.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_value.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_value.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_value.c index e4da4f4..4c9dc8a 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_value.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_value.c @@ -1,7 +1,7 @@ /* * Page value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_value.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_value.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_page_value.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_page_value.h index e34cdb3..c7c940d 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_page_value.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_page_value.h @@ -1,7 +1,7 @@ /* * Page value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_record.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_record.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_record.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_record.c index ad49c97..c965c73 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_record.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_record.c @@ -1,7 +1,7 @@ /* * Record (row) functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -195,9 +195,12 @@ int libesedb_record_initialize( { if( internal_record->values_array != NULL ) { + /* Note that if libesedb_data_definition_read_record fails values_array + * can contain values that need to be freed with libfvalue_value_free. + */ libcdata_array_free( &( internal_record->values_array ), - NULL, + (int (*)(intptr_t **, libcerror_error_t **)) &libfvalue_value_free, NULL ); } memory_free( diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_record.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_record.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_record.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_record.h index 3b484ed..4a197d6 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_record.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_record.h @@ -1,7 +1,7 @@ /* * Record (row) functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_record_value.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_record_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_record_value.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_record_value.c index 91bb199..ec2f9bf 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_record_value.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_record_value.c @@ -1,7 +1,7 @@ /* * Record value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_record_value.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_record_value.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_record_value.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_record_value.h index fb6f902..0490c78 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_record_value.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_record_value.h @@ -1,7 +1,7 @@ /* * Record value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,6 +25,7 @@ #include #include +#include "libesedb_libcerror.h" #include "libesedb_libfvalue.h" #if defined( __cplusplus ) diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_root_page_header.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_root_page_header.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_root_page_header.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_root_page_header.c index 916a8ff..b3b1d8d 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_root_page_header.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_root_page_header.c @@ -1,7 +1,7 @@ /* * Root page header functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_root_page_header.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_root_page_header.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_root_page_header.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_root_page_header.h index 1192897..b322c0a 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_root_page_header.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_root_page_header.h @@ -1,7 +1,7 @@ /* * Root page header functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree.c index af63118..bc21ac5 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree.c @@ -1,7 +1,7 @@ /* * Space tree functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree.h index 1e542af..a58316b 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree.h @@ -1,7 +1,7 @@ /* * Space tree functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree_value.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree_value.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree_value.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree_value.c index 53529c9..70b9ce1 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree_value.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree_value.c @@ -1,7 +1,7 @@ /* * Space tree value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree_value.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree_value.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree_value.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree_value.h index f0b7f02..807b4d2 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_space_tree_value.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_space_tree_value.h @@ -1,7 +1,7 @@ /* * Space tree value functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_support.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_support.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_support.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_support.c index e5e3735..7431286 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_support.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_support.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_support.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_support.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_support.h index eb1da7f..e3599f0 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_support.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_table.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_table.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_table.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_table.c index ee0cd87..f2f0c32 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_table.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_table.c @@ -1,7 +1,7 @@ /* * Table functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_table.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_table.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_table.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_table.h index f07afc5..19ecc27 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_table.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_table.h @@ -1,7 +1,7 @@ /* * Table functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_table_definition.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_table_definition.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_table_definition.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_table_definition.c index d97448d..e83493e 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_table_definition.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_table_definition.c @@ -1,7 +1,7 @@ /* * Table definition functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_table_definition.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_table_definition.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_table_definition.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_table_definition.h index b318d87..de5b21b 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_table_definition.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_table_definition.h @@ -1,7 +1,7 @@ /* * Table definition functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_types.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_types.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_types.h index b701cc6..f15be38 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_types.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_unused.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_unused.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_unused.h index 28c35c2..8174d9e 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_unused.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_value_data_handle.c b/libesedb-sys/libesedb-20230824/libesedb/libesedb_value_data_handle.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_value_data_handle.c rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_value_data_handle.c index 64f7ad4..8740996 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_value_data_handle.c +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_value_data_handle.c @@ -1,7 +1,7 @@ /* * Value data handle functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libesedb/libesedb_value_data_handle.h b/libesedb-sys/libesedb-20230824/libesedb/libesedb_value_data_handle.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libesedb/libesedb_value_data_handle.h rename to libesedb-sys/libesedb-20230824/libesedb/libesedb_value_data_handle.h index 60ff129..2e4920f 100644 --- a/libesedb-sys/libesedb-20210424/libesedb/libesedb_value_data_handle.h +++ b/libesedb-sys/libesedb-20230824/libesedb/libesedb_value_data_handle.h @@ -1,7 +1,7 @@ /* * Value data handle functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/Makefile.am b/libesedb-sys/libesedb-20230824/libfcache/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libfcache/Makefile.am rename to libesedb-sys/libesedb-20230824/libfcache/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libfcache/Makefile.in b/libesedb-sys/libesedb-20230824/libfcache/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libfcache/Makefile.in rename to libesedb-sys/libesedb-20230824/libfcache/Makefile.in index 54998d2..b7053c2 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libfcache/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libfcache ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -201,8 +202,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -219,6 +218,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -234,8 +235,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -353,8 +356,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -561,6 +564,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -738,7 +742,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_cache.c b/libesedb-sys/libesedb-20230824/libfcache/libfcache_cache.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_cache.c rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_cache.c index ff737dc..9a758ac 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_cache.c +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_cache.c @@ -1,7 +1,7 @@ /* * The cache functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_cache.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_cache.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_cache.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_cache.h index c8187bc..710958a 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_cache.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_cache.h @@ -1,7 +1,7 @@ /* * The cache functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_cache_value.c b/libesedb-sys/libesedb-20230824/libfcache/libfcache_cache_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_cache_value.c rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_cache_value.c index cf157a7..29e78fa 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_cache_value.c +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_cache_value.c @@ -1,7 +1,7 @@ /* * Cache value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_cache_value.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_cache_value.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_cache_value.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_cache_value.h index c20bcca..222525b 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_cache_value.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_cache_value.h @@ -1,7 +1,7 @@ /* * Cache value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_date_time.c b/libesedb-sys/libesedb-20230824/libfcache/libfcache_date_time.c similarity index 92% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_date_time.c rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_date_time.c index d141a51..0e70013 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_date_time.c +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_date_time.c @@ -1,7 +1,7 @@ /* * Date and time functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -21,15 +21,12 @@ #include -#if defined( TIME_WITH_SYS_TIME ) +#if defined( HAVE_SYS_TIME_H ) #include -#include -#elif defined( HAVE_SYS_TIME_H ) -#include -#else -#include #endif +#include + #include "libfcache_date_time.h" #include "libfcache_libcerror.h" #include "libfcache_types.h" diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_date_time.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_date_time.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_date_time.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_date_time.h index b1a1d23..ddaaf3d 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_date_time.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_date_time.h @@ -1,7 +1,7 @@ /* * Date and time functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_definitions.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_definitions.h similarity index 84% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_definitions.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_definitions.h index bcce7ee..70b5354 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_definitions.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -33,11 +33,11 @@ * for local use of libfcache */ #else -#define LIBFCACHE_VERSION 20200708 +#define LIBFCACHE_VERSION 20230115 /* The libfcache version string */ -#define LIBFCACHE_VERSION_STRING "20200708" +#define LIBFCACHE_VERSION_STRING "20230115" /* The cache value flags definitions */ @@ -52,7 +52,7 @@ enum LIBFCACHE_CACHE_VALUE_FLAGS LIBFCACHE_CACHE_VALUE_FLAG_MANAGED = 0x01 }; -#endif +#endif /* !defined( HAVE_LOCAL_LIBFCACHE ) */ -#endif +#endif /* !defined( _LIBFCACHE_INTERNAL_DEFINITIONS_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_error.c b/libesedb-sys/libesedb-20230824/libfcache/libfcache_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_error.c rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_error.c index 92e63ed..8d5045d 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_error.c +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_error.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_error.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_error.h index e514252..a372937 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_error.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_extern.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_extern.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_extern.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_extern.h index 6b37498..659ce55 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_extern.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBFCACHE_EXTERN_VARIABLE extern +#else #define LIBFCACHE_EXTERN_VARIABLE LIBFCACHE_EXTERN +#endif #else #define LIBFCACHE_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_libcdata.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_libcdata.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_libcdata.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_libcdata.h index b6cccd3..5f4eb85 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_libcdata.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_libcdata.h @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_libcerror.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_libcerror.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_libcerror.h index 78090a0..46d588c 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_support.c b/libesedb-sys/libesedb-20230824/libfcache/libfcache_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_support.c rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_support.c index d7473c5..e62ca44 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_support.c +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_support.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_support.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_support.h index 61c03f5..a5a7e7c 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_support.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_types.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_types.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_types.h index 5bb99c3..d11fa15 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_types.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfcache/libfcache_unused.h b/libesedb-sys/libesedb-20230824/libfcache/libfcache_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfcache/libfcache_unused.h rename to libesedb-sys/libesedb-20230824/libfcache/libfcache_unused.h index 5ab1593..5a03d5f 100644 --- a/libesedb-sys/libesedb-20210424/libfcache/libfcache_unused.h +++ b/libesedb-sys/libesedb-20230824/libfcache/libfcache_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/Makefile.am b/libesedb-sys/libesedb-20230824/libfdata/Makefile.am similarity index 94% rename from libesedb-sys/libesedb-20210424/libfdata/Makefile.am rename to libesedb-sys/libesedb-20230824/libfdata/Makefile.am index a3c16ba..fad9233 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/Makefile.am +++ b/libesedb-sys/libesedb-20230824/libfdata/Makefile.am @@ -30,8 +30,6 @@ libfdata_la_SOURCES = \ libfdata_segments_array.c libfdata_segments_array.h \ libfdata_stream.c libfdata_stream.h \ libfdata_support.c libfdata_support.h \ - libfdata_tree.c libfdata_tree.h \ - libfdata_tree_node.c libfdata_tree_node.h \ libfdata_types.h \ libfdata_unused.h \ libfdata_vector.c libfdata_vector.h diff --git a/libesedb-sys/libesedb-20210424/libfdata/Makefile.in b/libesedb-sys/libesedb-20230824/libfdata/Makefile.in similarity index 93% rename from libesedb-sys/libesedb-20210424/libfdata/Makefile.in rename to libesedb-sys/libesedb-20230824/libfdata/Makefile.in index 48f8d87..36a4f67 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libfdata/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libfdata ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -130,9 +131,8 @@ am__libfdata_la_SOURCES_DIST = libfdata_area.c libfdata_area.h \ libfdata_range.h libfdata_range_list.c libfdata_range_list.h \ libfdata_segments_array.c libfdata_segments_array.h \ libfdata_stream.c libfdata_stream.h libfdata_support.c \ - libfdata_support.h libfdata_tree.c libfdata_tree.h \ - libfdata_tree_node.c libfdata_tree_node.h libfdata_types.h \ - libfdata_unused.h libfdata_vector.c libfdata_vector.h + libfdata_support.h libfdata_types.h libfdata_unused.h \ + libfdata_vector.c libfdata_vector.h @HAVE_LOCAL_LIBFDATA_TRUE@am_libfdata_la_OBJECTS = libfdata_area.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_cache.lo libfdata_error.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_list.lo \ @@ -142,8 +142,7 @@ am__libfdata_la_SOURCES_DIST = libfdata_area.c libfdata_area.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_range_list.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_segments_array.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_stream.lo \ -@HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_support.lo libfdata_tree.lo \ -@HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_tree_node.lo \ +@HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_support.lo \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_vector.lo libfdata_la_OBJECTS = $(am_libfdata_la_OBJECTS) AM_V_lt = $(am__v_lt_@AM_V@) @@ -175,8 +174,7 @@ am__depfiles_remade = ./$(DEPDIR)/libfdata_area.Plo \ ./$(DEPDIR)/libfdata_range_list.Plo \ ./$(DEPDIR)/libfdata_segments_array.Plo \ ./$(DEPDIR)/libfdata_stream.Plo \ - ./$(DEPDIR)/libfdata_support.Plo ./$(DEPDIR)/libfdata_tree.Plo \ - ./$(DEPDIR)/libfdata_tree_node.Plo \ + ./$(DEPDIR)/libfdata_support.Plo \ ./$(DEPDIR)/libfdata_vector.Plo am__mv = mv -f COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ @@ -221,8 +219,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -239,6 +235,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -254,8 +252,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -373,8 +373,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -581,6 +581,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -619,8 +620,6 @@ top_srcdir = @top_srcdir@ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_segments_array.c libfdata_segments_array.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_stream.c libfdata_stream.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_support.c libfdata_support.h \ -@HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_tree.c libfdata_tree.h \ -@HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_tree_node.c libfdata_tree_node.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_types.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_unused.h \ @HAVE_LOCAL_LIBFDATA_TRUE@ libfdata_vector.c libfdata_vector.h @@ -694,8 +693,6 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_segments_array.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_stream.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_support.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_tree.Plo@am__quote@ # am--include-marker -@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_tree_node.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfdata_vector.Plo@am__quote@ # am--include-marker $(am__depfiles_remade): @@ -782,7 +779,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -912,8 +908,6 @@ maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfdata_segments_array.Plo -rm -f ./$(DEPDIR)/libfdata_stream.Plo -rm -f ./$(DEPDIR)/libfdata_support.Plo - -rm -f ./$(DEPDIR)/libfdata_tree.Plo - -rm -f ./$(DEPDIR)/libfdata_tree_node.Plo -rm -f ./$(DEPDIR)/libfdata_vector.Plo -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_area.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_area.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_area.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_area.c index 0ba87d3..832eef6 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_area.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_area.c @@ -1,7 +1,7 @@ /* * The area functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_area.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_area.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_area.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_area.h index ef956a9..e8b7f36 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_area.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_area.h @@ -1,7 +1,7 @@ /* * The area functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_cache.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_cache.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_cache.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_cache.c index b67cee4..b63bd9a 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_cache.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_cache.c @@ -1,7 +1,7 @@ /* * Cache functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_cache.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_cache.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_cache.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_cache.h index 518c2cc..96ffd47 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_cache.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_cache.h @@ -1,7 +1,7 @@ /* * Cache functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_definitions.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_definitions.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_definitions.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_definitions.h index ea3d201..21f40f2 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_definitions.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -33,11 +33,11 @@ * for local use of libfdata */ #else -#define LIBFDATA_VERSION 20201129 +#define LIBFDATA_VERSION 20230319 /* The libfdata version string */ -#define LIBFDATA_VERSION_STRING "20201129" +#define LIBFDATA_VERSION_STRING "20230319" /* The library flag definitions */ diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_error.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_error.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_error.c index a83ea8f..4df5223 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_error.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_error.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_error.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_error.h index 6c6feac..08d750e 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_error.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_extern.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_extern.h similarity index 91% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_extern.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_extern.h index 146080c..cb1685a 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_extern.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,7 @@ #include -#if defined( __CYGWIN__ ) +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) #define LIBFDATA_EXTERN_VARIABLE extern #else #define LIBFDATA_EXTERN_VARIABLE LIBFDATA_EXTERN diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_libcdata.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_libcdata.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_libcdata.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_libcdata.h index 469cb52..835add4 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_libcdata.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_libcdata.h @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_libcerror.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_libcerror.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_libcerror.h index 6da8b81..49075d0 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_libcnotify.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_libcnotify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_libcnotify.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_libcnotify.h index 90b5f8a..a717607 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_libcnotify.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_libcnotify.h @@ -1,7 +1,7 @@ /* * The libcnotify header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_libfcache.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_libfcache.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_libfcache.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_libfcache.h index f8b726b..5362fac 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_libfcache.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_libfcache.h @@ -1,7 +1,7 @@ /* * The libfcache header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_list.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_list.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_list.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_list.c index 9847b02..6c603f6 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_list.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_list.c @@ -1,7 +1,7 @@ /* * The list functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -1660,11 +1660,13 @@ int libfdata_list_append_list( if( libcnotify_verbose != 0 ) { libcnotify_printf( - "%s: appending source list with mapped offset: %" PRIi64 " and size: %" PRIu64 " to list with mapped offset: %" PRIi64 " and size: %" PRIu64 "\n", + "%s: appending source list with mapped offset: %" PRIi64 " (0x%08" PRIx64 ") and size: %" PRIu64 " to list with mapped offset: %" PRIi64 " (0x%08" PRIx64 ") and size: %" PRIu64 "\n", function, internal_source_list->mapped_offset, + internal_source_list->mapped_offset, internal_source_list->size, internal_list->mapped_offset, + internal_list->mapped_offset, internal_list->size ); } #endif @@ -2147,8 +2149,9 @@ int libfdata_list_set_mapped_offset( if( libcnotify_verbose != 0 ) { libcnotify_printf( - "%s: mapped offset: %" PRIi64 "\n", + "%s: mapped offset: %" PRIi64 " (0x%08" PRIx64 ")\n", function, + mapped_offset, mapped_offset ); libcnotify_printf( @@ -3041,6 +3044,8 @@ int libfdata_list_calculate_mapped_ranges( element_file_index, element_offset, element_offset + element_size, + element_offset, + element_offset + element_size, element_size ); libcnotify_printf( @@ -3049,6 +3054,8 @@ int libfdata_list_calculate_mapped_ranges( element_index, mapped_offset, mapped_offset + mapped_size, + mapped_offset, + mapped_offset + mapped_size, mapped_size ); } #endif /* defined( HAVE_DEBUG_OUTPUT ) */ diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_list.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_list.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_list.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_list.h index 99f7dc7..b73b6f8 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_list.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_list.h @@ -1,7 +1,7 @@ /* * The list functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_list_element.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_list_element.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_list_element.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_list_element.c index 2d9386d..697b3a4 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_list_element.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_list_element.c @@ -1,7 +1,7 @@ /* * The list element functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_list_element.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_list_element.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_list_element.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_list_element.h index 2e0dced..cbf3d6b 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_list_element.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_list_element.h @@ -1,7 +1,7 @@ /* * The list element functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -79,6 +79,7 @@ int libfdata_list_element_clone( libfdata_list_element_t *source_element, libcerror_error_t **error ); +LIBFDATA_EXTERN \ int libfdata_list_element_get_element_index( libfdata_list_element_t *element, int *element_index, diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_mapped_range.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_mapped_range.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_mapped_range.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_mapped_range.c index 8c9d90c..ebd4ce7 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_mapped_range.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_mapped_range.c @@ -1,7 +1,7 @@ /* * The (data) mapped range functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_mapped_range.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_mapped_range.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_mapped_range.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_mapped_range.h index c6c4ed6..0d16cb0 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_mapped_range.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_mapped_range.h @@ -1,7 +1,7 @@ /* * The (data) mapped range functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_notify.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_notify.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_notify.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_notify.c index 3922a2d..50954e4 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_notify.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_notify.c @@ -1,7 +1,7 @@ /* * Notification functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_notify.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_notify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_notify.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_notify.h index 950c8b9..8612c44 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_notify.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_notify.h @@ -1,7 +1,7 @@ /* * Notification functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_range.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_range.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_range.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_range.c index 6a5f781..4b898cd 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_range.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_range.c @@ -1,7 +1,7 @@ /* * The range functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_range.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_range.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_range.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_range.h index e4cbe75..66d50e6 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_range.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_range.h @@ -1,7 +1,7 @@ /* * The range functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_range_list.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_range_list.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_range_list.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_range_list.c index d0caac9..2bcdc32 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_range_list.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_range_list.c @@ -1,7 +1,7 @@ /* * The range list functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_range_list.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_range_list.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_range_list.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_range_list.h index b2d7858..5a3a33a 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_range_list.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_range_list.h @@ -1,7 +1,7 @@ /* * The range list functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_segments_array.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_segments_array.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_segments_array.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_segments_array.c index c182f2d..e769c77 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_segments_array.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_segments_array.c @@ -1,7 +1,7 @@ /* * The segments array functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_segments_array.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_segments_array.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_segments_array.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_segments_array.h index ab713cc..4316136 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_segments_array.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_segments_array.h @@ -1,7 +1,7 @@ /* * The segments array functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_stream.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_stream.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_stream.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_stream.c index 5f5f1de..fd822dd 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_stream.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_stream.c @@ -1,7 +1,7 @@ /* * The stream functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -1598,15 +1598,18 @@ ssize_t libfdata_stream_read_buffer( } /* Bail out early for requests to read empty buffers and beyond the end of the stream */ - if( ( buffer_size == 0 ) - || ( (size64_t) internal_stream->current_offset >= stream_size ) ) + if( (size64_t) internal_stream->current_offset >= stream_size ) { - return( 0 ); + buffer_size = 0; } - if( (size64_t) ( internal_stream->current_offset + buffer_size ) > stream_size ) + else if( (size64_t) buffer_size > ( stream_size - internal_stream->current_offset ) ) { buffer_size = (size_t) ( stream_size - internal_stream->current_offset ); } + if( buffer_size == 0 ) + { + return( 0 ); + } if( internal_stream->current_segment_data_range == NULL ) { if( libcdata_array_get_entry_by_index( @@ -1645,6 +1648,7 @@ ssize_t libfdata_stream_read_buffer( return( -1 ); } if( ( internal_stream->segment_data_offset < 0 ) + || ( segment_offset > ( INT64_MAX - internal_stream->segment_data_offset ) ) || ( (size64_t) internal_stream->segment_data_offset >= segment_size ) ) { libcerror_error_set( @@ -1660,32 +1664,32 @@ ssize_t libfdata_stream_read_buffer( segment_data_size = segment_size - internal_stream->segment_data_offset; - if( internal_stream->segment_offset != segment_offset ) - { - result_offset = internal_stream->seek_segment_offset( - internal_stream->data_handle, - file_io_handle, - internal_stream->current_segment_index, - segment_file_index, - segment_offset, - error ); + /* Make sure the file IO handle is pointing to the correct offset + */ + result_offset = internal_stream->seek_segment_offset( + internal_stream->data_handle, + file_io_handle, + internal_stream->current_segment_index, + segment_file_index, + segment_offset, + error ); - if( result_offset != segment_offset ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_IO, - LIBCERROR_IO_ERROR_SEEK_FAILED, - "%s: unable to seek segment: %d offset: %" PRIi64 " (0x%08" PRIx64 ").", - function, - internal_stream->current_segment_index, - segment_offset, - segment_offset ); + if( result_offset != segment_offset ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_IO, + LIBCERROR_IO_ERROR_SEEK_FAILED, + "%s: unable to seek segment: %d offset: %" PRIi64 " (0x%08" PRIx64 ").", + function, + internal_stream->current_segment_index, + segment_offset, + segment_offset ); - return( -1 ); - } - internal_stream->segment_offset = segment_offset; + return( -1 ); } + internal_stream->segment_offset = segment_offset; + while( buffer_size > 0 ) { if( (size64_t) buffer_size <= segment_data_size ) @@ -2118,32 +2122,32 @@ ssize_t libfdata_stream_write_buffer( segment_data_size = segment_size; } - if( internal_stream->segment_offset != segment_offset ) - { - result_offset = internal_stream->seek_segment_offset( - internal_stream->data_handle, - file_io_handle, - internal_stream->current_segment_index, - segment_file_index, - segment_offset, - error ); - - if( result_offset != segment_offset ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_IO, - LIBCERROR_IO_ERROR_SEEK_FAILED, - "%s: unable to seek segment: %d offset: %" PRIi64 " (0x%08" PRIx64 ").", - function, + /* Make sure the file IO handle is pointing to the correct offset + */ + result_offset = internal_stream->seek_segment_offset( + internal_stream->data_handle, + file_io_handle, internal_stream->current_segment_index, + segment_file_index, segment_offset, - segment_offset ); + error ); - return( -1 ); - } - internal_stream->segment_offset = segment_offset; + if( result_offset != segment_offset ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_IO, + LIBCERROR_IO_ERROR_SEEK_FAILED, + "%s: unable to seek segment: %d offset: %" PRIi64 " (0x%08" PRIx64 ").", + function, + internal_stream->current_segment_index, + segment_offset, + segment_offset ); + + return( -1 ); } + internal_stream->segment_offset = segment_offset; + while( buffer_size > 0 ) { if( (size64_t) buffer_size <= segment_data_size ) diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_stream.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_stream.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_stream.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_stream.h index 98088aa..6979035 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_stream.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_stream.h @@ -1,7 +1,7 @@ /* * The stream functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_support.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_support.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_support.c index 9978acb..9195379 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_support.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_support.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_support.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_support.h index b085831..06caa37 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_support.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_types.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_types.h similarity index 88% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_types.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_types.h index 43527ad..96bbd68 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_types.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -40,8 +40,6 @@ typedef struct libfdata_list {} libfdata_list_t; typedef struct libfdata_list_element {} libfdata_list_element_t; typedef struct libfdata_range_list {} libfdata_range_list_t; typedef struct libfdata_stream {} libfdata_stream_t; -typedef struct libfdata_tree {} libfdata_tree_t; -typedef struct libfdata_tree_node {} libfdata_tree_node_t; typedef struct libfdata_vector {} libfdata_vector_t; #else @@ -51,8 +49,6 @@ typedef intptr_t libfdata_list_t; typedef intptr_t libfdata_list_element_t; typedef intptr_t libfdata_range_list_t; typedef intptr_t libfdata_stream_t; -typedef intptr_t libfdata_tree_t; -typedef intptr_t libfdata_tree_node_t; typedef intptr_t libfdata_vector_t; #endif /* defined( HAVE_DEBUG_OUTPUT ) && !defined( WINAPI ) */ diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_unused.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_unused.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_unused.h index 0926bdb..053fbd2 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_unused.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_vector.c b/libesedb-sys/libesedb-20230824/libfdata/libfdata_vector.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_vector.c rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_vector.c index b487edb..fb1969f 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_vector.c +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_vector.c @@ -1,7 +1,7 @@ /* * The vector functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdata/libfdata_vector.h b/libesedb-sys/libesedb-20230824/libfdata/libfdata_vector.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdata/libfdata_vector.h rename to libesedb-sys/libesedb-20230824/libfdata/libfdata_vector.h index a1dbcef..110bddb 100644 --- a/libesedb-sys/libesedb-20210424/libfdata/libfdata_vector.h +++ b/libesedb-sys/libesedb-20230824/libfdata/libfdata_vector.h @@ -1,7 +1,7 @@ /* * The vector functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/Makefile.am b/libesedb-sys/libesedb-20230824/libfdatetime/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libfdatetime/Makefile.am rename to libesedb-sys/libesedb-20230824/libfdatetime/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/Makefile.in b/libesedb-sys/libesedb-20230824/libfdatetime/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdatetime/Makefile.in rename to libesedb-sys/libesedb-20230824/libfdatetime/Makefile.in index de9142b..3832485 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libfdatetime/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libfdatetime ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -216,8 +217,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -234,6 +233,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -249,8 +250,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -368,8 +371,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -576,6 +579,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -759,7 +763,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_date_time_values.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_date_time_values.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_date_time_values.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_date_time_values.c index 52994fe..6d3ba77 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_date_time_values.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_date_time_values.c @@ -1,22 +1,22 @@ /* * Date and time values functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_date_time_values.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_date_time_values.h similarity index 91% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_date_time_values.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_date_time_values.h index b94125d..2c09339 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_date_time_values.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_date_time_values.h @@ -1,22 +1,22 @@ /* * Date and time values functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_DATE_TIME_VALUES_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_definitions.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_definitions.h similarity index 91% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_definitions.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_definitions.h index 7e53940..cd91fe1 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_definitions.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_definitions.h @@ -1,22 +1,22 @@ /* * The internal definitions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( LIBFDATETIME_INTERNAL_DEFINITIONS_H ) @@ -36,11 +36,11 @@ #else #include -#define LIBFDATETIME_VERSION 20180910 +#define LIBFDATETIME_VERSION 20220112 /* The version string */ -#define LIBFDATETIME_VERSION_STRING "20180910" +#define LIBFDATETIME_VERSION_STRING "20220112" /* The byte order definitions */ diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_error.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_error.c similarity index 90% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_error.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_error.c index 3935be5..0ce9458 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_error.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_error.c @@ -1,22 +1,22 @@ /* * Error functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_error.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_error.h similarity index 85% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_error.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_error.h index 4129e26..c9e8fb3 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_error.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_error.h @@ -1,22 +1,22 @@ /* * Error functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_ERROR_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_extern.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_extern.h similarity index 73% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_extern.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_extern.h index deffa2a..02e7423 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_extern.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_extern.h @@ -1,22 +1,22 @@ /* * The internal extern definition * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_EXTERN_H ) @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBFDATETIME_EXTERN_VARIABLE extern +#else #define LIBFDATETIME_EXTERN_VARIABLE LIBFDATETIME_EXTERN +#endif #else #define LIBFDATETIME_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_fat_date_time.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_fat_date_time.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_fat_date_time.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_fat_date_time.c index 49a2b77..765f2d2 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_fat_date_time.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_fat_date_time.c @@ -1,22 +1,22 @@ /* * FAT date and time functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_fat_date_time.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_fat_date_time.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_fat_date_time.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_fat_date_time.h index 3b2a925..bea198b 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_fat_date_time.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_fat_date_time.h @@ -1,22 +1,22 @@ /* * FAT date and time functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_FAT_DATE_TIME_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_filetime.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_filetime.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_filetime.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_filetime.c index 40018ff..12cd535 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_filetime.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_filetime.c @@ -1,22 +1,22 @@ /* * FILETIME functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_filetime.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_filetime.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_filetime.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_filetime.h index c95409d..09e548b 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_filetime.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_filetime.h @@ -1,22 +1,22 @@ /* * FILETIME functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_FILETIME_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_floatingtime.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_floatingtime.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_floatingtime.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_floatingtime.c index 10ce1ac..6b1039f 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_floatingtime.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_floatingtime.c @@ -1,22 +1,22 @@ /* * Floatingtime functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_floatingtime.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_floatingtime.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_floatingtime.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_floatingtime.h index 08e21c0..d54b510 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_floatingtime.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_floatingtime.h @@ -1,22 +1,22 @@ /* * Floatingtime functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_FLOATINGTIME_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_hfs_time.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_hfs_time.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_hfs_time.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_hfs_time.c index 997e80b..edc1ad6 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_hfs_time.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_hfs_time.c @@ -1,22 +1,22 @@ /* * HFS time functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_hfs_time.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_hfs_time.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_hfs_time.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_hfs_time.h index a361c41..b440fa0 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_hfs_time.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_hfs_time.h @@ -1,22 +1,22 @@ /* * HFS time functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_HFS_TIME_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_libcerror.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_libcerror.h similarity index 81% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_libcerror.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_libcerror.h index 8f7a743..9280d75 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_libcerror.h @@ -1,22 +1,22 @@ /* * The libcerror header wrapper * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_LIBCERROR_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_nsf_timedate.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_nsf_timedate.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_nsf_timedate.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_nsf_timedate.c index 0d0e265..b9cbd8b 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_nsf_timedate.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_nsf_timedate.c @@ -1,22 +1,22 @@ /* * Notes Storage Facility (NSF) timedate functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_nsf_timedate.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_nsf_timedate.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_nsf_timedate.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_nsf_timedate.h index e3180dc..0b4a160 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_nsf_timedate.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_nsf_timedate.h @@ -1,22 +1,22 @@ /* * Notes Storage Facility (NSF) timedate functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_NSF_TIMEDATE_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_posix_time.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_posix_time.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_posix_time.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_posix_time.c index 1d65a0d..d87bfef 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_posix_time.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_posix_time.c @@ -1,22 +1,22 @@ /* * POSIX time functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_posix_time.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_posix_time.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_posix_time.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_posix_time.h index 05820c6..d02f3bb 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_posix_time.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_posix_time.h @@ -1,22 +1,22 @@ /* * POSIX time functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_POSIX_TIME_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_support.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_support.c similarity index 76% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_support.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_support.c index f862233..7dc13a6 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_support.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_support.c @@ -1,22 +1,22 @@ /* * Support functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_support.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_support.h similarity index 77% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_support.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_support.h index 1100b34..eb5087b 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_support.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_support.h @@ -1,22 +1,22 @@ /* * Support functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_SUPPORT_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_systemtime.c b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_systemtime.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_systemtime.c rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_systemtime.c index b5590ca..778fed9 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_systemtime.c +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_systemtime.c @@ -1,22 +1,22 @@ /* * SYSTEMTIME functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_systemtime.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_systemtime.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_systemtime.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_systemtime.h index 73e265b..61e3861 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_systemtime.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_systemtime.h @@ -1,22 +1,22 @@ /* * SYSTEMTIME functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_SYSTEMTIME_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_types.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_types.h similarity index 89% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_types.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_types.h index a0c2764..bb33311 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_types.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_types.h @@ -1,22 +1,22 @@ /* * The internal type definitions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFDATETIME_INTERNAL_TYPES_H ) diff --git a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_unused.h b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_unused.h similarity index 67% rename from libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_unused.h rename to libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_unused.h index 0f5caae..2339ded 100644 --- a/libesedb-sys/libesedb-20210424/libfdatetime/libfdatetime_unused.h +++ b/libesedb-sys/libesedb-20230824/libfdatetime/libfdatetime_unused.h @@ -1,26 +1,26 @@ /* - * The internal unused definition + * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ -#if !defined( _LIBFDATETIME_INTERNAL_UNUSED_H ) -#define _LIBFDATETIME_INTERNAL_UNUSED_H +#if !defined( _LIBFDATETIME_UNUSED_H ) +#define _LIBFDATETIME_UNUSED_H #include @@ -40,5 +40,5 @@ /* parameter */ #endif -#endif /* !defined( _LIBFDATETIME_INTERNAL_UNUSED_H ) */ +#endif /* !defined( _LIBFDATETIME_UNUSED_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libfguid/Makefile.am b/libesedb-sys/libesedb-20230824/libfguid/Makefile.am similarity index 96% rename from libesedb-sys/libesedb-20210424/libfguid/Makefile.am rename to libesedb-sys/libesedb-20230824/libfguid/Makefile.am index 17feae4..3dc49a6 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/Makefile.am +++ b/libesedb-sys/libesedb-20230824/libfguid/Makefile.am @@ -2,7 +2,7 @@ if HAVE_LOCAL_LIBFGUID AM_CPPFLAGS = \ -I$(top_srcdir)/include \ -I$(top_srcdir)/common \ - @LIBCERROR_CPPFLAGS@ + @LIBCERROR_CPPFLAGS@ noinst_LTLIBRARIES = libfguid.la diff --git a/libesedb-sys/libesedb-20210424/libfguid/Makefile.in b/libesedb-sys/libesedb-20230824/libfguid/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libfguid/Makefile.in rename to libesedb-sys/libesedb-20230824/libfguid/Makefile.in index 05e5ecb..7d679d5 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libfguid/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libfguid ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -194,8 +195,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -212,6 +211,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -227,8 +228,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -346,8 +349,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -554,6 +557,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -565,7 +569,7 @@ top_srcdir = @top_srcdir@ @HAVE_LOCAL_LIBFGUID_TRUE@AM_CPPFLAGS = \ @HAVE_LOCAL_LIBFGUID_TRUE@ -I$(top_srcdir)/include \ @HAVE_LOCAL_LIBFGUID_TRUE@ -I$(top_srcdir)/common \ -@HAVE_LOCAL_LIBFGUID_TRUE@ @LIBCERROR_CPPFLAGS@ +@HAVE_LOCAL_LIBFGUID_TRUE@ @LIBCERROR_CPPFLAGS@ @HAVE_LOCAL_LIBFGUID_TRUE@noinst_LTLIBRARIES = libfguid.la @HAVE_LOCAL_LIBFGUID_TRUE@libfguid_la_SOURCES = \ @@ -723,7 +727,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_definitions.h b/libesedb-sys/libesedb-20230824/libfguid/libfguid_definitions.h similarity index 84% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_definitions.h rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_definitions.h index 9c284d6..06c24ac 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_definitions.h +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_definitions.h @@ -1,22 +1,22 @@ /* * The internal definitions * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( LIBFGUID_INTERNAL_DEFINITIONS_H ) @@ -36,11 +36,11 @@ #else #include -#define LIBFGUID_VERSION 20180724 +#define LIBFGUID_VERSION 20220113 /* The version string */ -#define LIBFGUID_VERSION_STRING "20180724" +#define LIBFGUID_VERSION_STRING "20220113" /* The byte order definitions */ diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_error.c b/libesedb-sys/libesedb-20230824/libfguid/libfguid_error.c similarity index 90% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_error.c rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_error.c index 50ede17..27ba36f 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_error.c +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_error.c @@ -1,22 +1,22 @@ /* * Error functions * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_error.h b/libesedb-sys/libesedb-20230824/libfguid/libfguid_error.h similarity index 85% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_error.h rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_error.h index 23c5c97..019bfd5 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_error.h +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_error.h @@ -1,22 +1,22 @@ /* * Error functions * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_ERROR_H ) diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_extern.h b/libesedb-sys/libesedb-20230824/libfguid/libfguid_extern.h similarity index 69% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_extern.h rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_extern.h index 0594251..d1cd67b 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_extern.h +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_extern.h @@ -1,22 +1,22 @@ /* * The internal extern definition * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_EXTERN_H ) @@ -28,16 +28,13 @@ */ #if !defined( HAVE_LOCAL_LIBFGUID ) -/* If libtool DLL support is enabled set LIBFGUID_DLL_EXPORT - * before including libfguid/extern.h - */ -#if defined( _WIN32 ) && defined( DLL_EXPORT ) -#define LIBFGUID_DLL_EXPORT -#endif - #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBFGUID_EXTERN_VARIABLE extern +#else #define LIBFGUID_EXTERN_VARIABLE LIBFGUID_EXTERN +#endif #else #define LIBFGUID_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_identifier.c b/libesedb-sys/libesedb-20230824/libfguid/libfguid_identifier.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_identifier.c rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_identifier.c index d54070d..6f8f08f 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_identifier.c +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_identifier.c @@ -1,22 +1,22 @@ /* * GUID functions * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_identifier.h b/libesedb-sys/libesedb-20230824/libfguid/libfguid_identifier.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_identifier.h rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_identifier.h index 1c0d94a..8926471 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_identifier.h +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_identifier.h @@ -1,22 +1,22 @@ /* * Global (or Universal) Unique Identifier (GUID/UUID) functions * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_IDENTIFIER_H ) diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_libcerror.h b/libesedb-sys/libesedb-20230824/libfguid/libfguid_libcerror.h similarity index 81% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_libcerror.h rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_libcerror.h index df21882..84131ff 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_libcerror.h @@ -1,22 +1,22 @@ /* * The libcerror header wrapper * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFGUID_LIBCERROR_H ) diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_support.c b/libesedb-sys/libesedb-20230824/libfguid/libfguid_support.c similarity index 76% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_support.c rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_support.c index 0f420f5..979653f 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_support.c +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_support.c @@ -1,22 +1,22 @@ /* * Support functions * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_support.h b/libesedb-sys/libesedb-20230824/libfguid/libfguid_support.h similarity index 77% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_support.h rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_support.h index 2265804..5cd5efb 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_support.h +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_support.h @@ -1,22 +1,22 @@ /* * Support functions * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFGUID_SUPPORT_H ) diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_types.h b/libesedb-sys/libesedb-20230824/libfguid/libfguid_types.h similarity index 82% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_types.h rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_types.h index 3b97735..d551ab4 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_types.h +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_types.h @@ -1,22 +1,22 @@ /* * The internal type definitions * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFGUID_INTERNAL_TYPES_H ) diff --git a/libesedb-sys/libesedb-20210424/libfguid/libfguid_unused.h b/libesedb-sys/libesedb-20230824/libfguid/libfguid_unused.h similarity index 67% rename from libesedb-sys/libesedb-20210424/libfguid/libfguid_unused.h rename to libesedb-sys/libesedb-20230824/libfguid/libfguid_unused.h index a9221bc..8e9543c 100644 --- a/libesedb-sys/libesedb-20210424/libfguid/libfguid_unused.h +++ b/libesedb-sys/libesedb-20230824/libfguid/libfguid_unused.h @@ -1,26 +1,26 @@ /* - * The internal unused definition + * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2010-2018, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ -#if !defined( _LIBFGUID_INTERNAL_UNUSED_H ) -#define _LIBFGUID_INTERNAL_UNUSED_H +#if !defined( _LIBFGUID_UNUSED_H ) +#define _LIBFGUID_UNUSED_H #include @@ -40,5 +40,5 @@ /* parameter */ #endif -#endif /* !defined( _LIBFGUID_INTERNAL_UNUSED_H ) */ +#endif /* !defined( _LIBFGUID_UNUSED_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libfmapi/Makefile.am b/libesedb-sys/libesedb-20230824/libfmapi/Makefile.am similarity index 98% rename from libesedb-sys/libesedb-20210424/libfmapi/Makefile.am rename to libesedb-sys/libesedb-20230824/libfmapi/Makefile.am index 0f30356..230d45b 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/Makefile.am +++ b/libesedb-sys/libesedb-20230824/libfmapi/Makefile.am @@ -10,7 +10,7 @@ AM_CPPFLAGS = \ @LIBFDATETIME_CPPFLAGS@ \ @LIBFGUID_CPPFLAGS@ \ @LIBFWNT_CPPFLAGS@ \ - @PTHREAD_CPPFLAGS@ + @PTHREAD_CPPFLAGS@ noinst_LTLIBRARIES = libfmapi.la diff --git a/libesedb-sys/libesedb-20210424/libfmapi/Makefile.in b/libesedb-sys/libesedb-20230824/libfmapi/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libfmapi/Makefile.in rename to libesedb-sys/libesedb-20230824/libfmapi/Makefile.in index 6710206..a8817d2 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libfmapi/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libfmapi ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -223,8 +224,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -241,6 +240,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -256,8 +257,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -375,8 +378,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -583,6 +586,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -602,7 +606,7 @@ top_srcdir = @top_srcdir@ @HAVE_LOCAL_LIBFMAPI_TRUE@ @LIBFDATETIME_CPPFLAGS@ \ @HAVE_LOCAL_LIBFMAPI_TRUE@ @LIBFGUID_CPPFLAGS@ \ @HAVE_LOCAL_LIBFMAPI_TRUE@ @LIBFWNT_CPPFLAGS@ \ -@HAVE_LOCAL_LIBFMAPI_TRUE@ @PTHREAD_CPPFLAGS@ +@HAVE_LOCAL_LIBFMAPI_TRUE@ @PTHREAD_CPPFLAGS@ @HAVE_LOCAL_LIBFMAPI_TRUE@noinst_LTLIBRARIES = libfmapi.la @HAVE_LOCAL_LIBFMAPI_TRUE@libfmapi_la_SOURCES = \ @@ -784,7 +788,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_checksum.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_checksum.c similarity index 73% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_checksum.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_checksum.c index 87f86bd..22293d2 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_checksum.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_checksum.c @@ -1,22 +1,22 @@ /* * Checksum functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include @@ -24,10 +24,6 @@ #include "libfmapi_libcerror.h" -/* CRC-32 functions - * Based on RFC 1952 - */ - /* Table of CRC-32 values of 8-bit values */ uint32_t libfmapi_checksum_crc32_table[ 256 ]; @@ -40,7 +36,7 @@ int libfmapi_checksum_crc32_table_computed = 0; * The table speeds up the CRC-32 calculation */ void libfmapi_checksum_initialize_crc32_table( - void ) + uint32_t polynomial ) { uint32_t checksum = 0; uint32_t table_index = 0; @@ -58,7 +54,7 @@ void libfmapi_checksum_initialize_crc32_table( { if( checksum & 1 ) { - checksum = (uint32_t) 0xedb88320UL ^ ( checksum >> 1 ); + checksum = polynomial ^ ( checksum >> 1 ); } else { @@ -80,9 +76,10 @@ int libfmapi_checksum_calculate_crc32( uint32_t initial_value, libcerror_error_t **error ) { - static char *function = "libfmapi_checksum_calculate_crc32"; - size_t buffer_offset = 0; - uint32_t table_index = 0; + static char *function = "libfmapi_checksum_calculate_crc32"; + size_t buffer_offset = 0; + uint32_t safe_checksum = 0; + uint32_t table_index = 0; if( checksum == NULL ) { @@ -117,21 +114,22 @@ int libfmapi_checksum_calculate_crc32( return( -1 ); } - *checksum = initial_value ^ (uint32_t) 0xffffffffUL; - if( libfmapi_checksum_crc32_table_computed == 0 ) { - libfmapi_checksum_initialize_crc32_table(); + libfmapi_checksum_initialize_crc32_table( + 0xedb88320UL ); } + safe_checksum = initial_value ^ (uint32_t) 0xffffffffUL; + for( buffer_offset = 0; buffer_offset < size; buffer_offset++ ) { - table_index = ( *checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL; + table_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL; - *checksum = libfmapi_checksum_crc32_table[ table_index ] ^ ( *checksum >> 8 ); + safe_checksum = libfmapi_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 ); } - *checksum ^= 0xffffffffUL; + *checksum = safe_checksum ^ 0xffffffffUL; return( 1 ); } @@ -146,9 +144,10 @@ int libfmapi_checksum_calculate_weak_crc32( uint32_t initial_value, libcerror_error_t **error ) { - static char *function = "libfmapi_checksum_calculate_weak_crc32"; - size_t buffer_offset = 0; - uint32_t table_index = 0; + static char *function = "libfmapi_checksum_calculate_weak_crc32"; + size_t buffer_offset = 0; + uint32_t safe_checksum = 0; + uint32_t table_index = 0; if( checksum == NULL ) { @@ -183,20 +182,23 @@ int libfmapi_checksum_calculate_weak_crc32( return( -1 ); } - *checksum = initial_value; - if( libfmapi_checksum_crc32_table_computed == 0 ) { - libfmapi_checksum_initialize_crc32_table(); + libfmapi_checksum_initialize_crc32_table( + 0xedb88320UL ); } + safe_checksum = initial_value; + for( buffer_offset = 0; buffer_offset < size; buffer_offset++ ) { - table_index = ( *checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL; + table_index = ( safe_checksum ^ buffer[ buffer_offset ] ) & 0x000000ffUL; - *checksum = libfmapi_checksum_crc32_table[ table_index ] ^ ( *checksum >> 8 ); + safe_checksum = libfmapi_checksum_crc32_table[ table_index ] ^ ( safe_checksum >> 8 ); } + *checksum = safe_checksum; + return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_checksum.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_checksum.h similarity index 72% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_checksum.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_checksum.h index 93b05ce..a576566 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_checksum.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_checksum.h @@ -1,22 +1,22 @@ /* * Checksum functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_CHECKSUM_H ) @@ -25,14 +25,21 @@ #include #include +#include "libfmapi_extern.h" #include "libfmapi_libcerror.h" #if defined( __cplusplus ) extern "C" { #endif +LIBFMAPI_EXTERN_VARIABLE \ +uint32_t libfmapi_checksum_crc32_table[ 256 ]; + +LIBFMAPI_EXTERN_VARIABLE \ +int libfmapi_checksum_crc32_table_computed; + void libfmapi_checksum_initialize_crc32_table( - void ); + int ); int libfmapi_checksum_calculate_crc32( uint32_t *checksum, diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_class_identifier.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_class_identifier.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_class_identifier.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_class_identifier.c index fe9ce94..c4e3b9a 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_class_identifier.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_class_identifier.c @@ -1,22 +1,22 @@ /* * Class identifier (CLSID) functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_class_identifier.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_class_identifier.h similarity index 90% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_class_identifier.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_class_identifier.h index c2643ae..984d49a 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_class_identifier.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_class_identifier.h @@ -1,22 +1,22 @@ /* * Class identifier (CLSID) functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_CLASS_IDENTIFIER_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_codepage.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_codepage.c similarity index 90% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_codepage.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_codepage.c index 5971556..6b445f1 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_codepage.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_codepage.c @@ -1,22 +1,22 @@ /* * Codepage functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include @@ -104,5 +104,5 @@ const char *libfmapi_codepage_get_description( ( libfmapi_codepages[ iterator ] ).description ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_codepage.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_codepage.h similarity index 82% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_codepage.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_codepage.h index 965c220..615a56f 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_codepage.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_codepage.h @@ -1,22 +1,22 @@ /* * Codepage functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_INTERNAL_CODEPAGE_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_debug.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_debug.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_debug.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_debug.c index c676277..4688353 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_debug.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_debug.c @@ -1,22 +1,22 @@ /* * Debug functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include @@ -4350,10 +4350,10 @@ int libfmapi_debug_print_binary_data_value( return( -1 ); } if( libfmapi_lzfu_decompress( - (uint8_t *) rtf_value_string, - &rtf_value_string_size, value_data, value_data_size, + (uint8_t *) rtf_value_string, + &rtf_value_string_size, error ) != 1 ) { libcerror_error_set( diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_debug.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_debug.h similarity index 90% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_debug.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_debug.h index 713c12d..a98b848 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_debug.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_debug.h @@ -1,22 +1,22 @@ /* * Debug functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_DEBUG_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_definitions.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_definitions.h similarity index 83% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_definitions.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_definitions.h index e5ee654..129236e 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_definitions.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_definitions.h @@ -1,22 +1,22 @@ /* * The internal definitions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( LIBFMAPI_INTERNAL_DEFINITIONS_H ) @@ -36,11 +36,11 @@ #else #include -#define LIBFMAPI_VERSION 20180714 +#define LIBFMAPI_VERSION 20230408 /* The libfmapi version string */ -#define LIBFMAPI_VERSION_STRING "20180714" +#define LIBFMAPI_VERSION_STRING "20230408" /* The endian definitions */ diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_entry_identifier.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_entry_identifier.c similarity index 89% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_entry_identifier.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_entry_identifier.c index badedd0..cc50721 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_entry_identifier.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_entry_identifier.c @@ -1,22 +1,22 @@ /* * Entry identifier (ENTRYID) functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include @@ -142,7 +142,7 @@ int libfmapi_entry_identifier_free( */ int libfmapi_entry_identifier_copy_from_byte_stream( libfmapi_entry_identifier_t *entry_identifier, - uint8_t *byte_stream, + const uint8_t *byte_stream, size_t byte_stream_size, libcerror_error_t **error ) { @@ -180,24 +180,14 @@ int libfmapi_entry_identifier_copy_from_byte_stream( return( -1 ); } - if( byte_stream_size < 20 ) + if( ( byte_stream_size < 20 ) + || ( byte_stream_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: byte stream too small.", - function ); - - return( -1 ); - } - if( byte_stream_size > (size_t) SSIZE_MAX ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: byte stream size value exceeds maximum.", + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid byte stream size value out of bounds.", function ); return( -1 ); @@ -206,7 +196,7 @@ int libfmapi_entry_identifier_copy_from_byte_stream( if( libcnotify_verbose != 0 ) { libcnotify_printf( - "%s: header data:\n", + "%s: entry identifier data:\n", function ); libcnotify_print_data( byte_stream, @@ -216,7 +206,7 @@ int libfmapi_entry_identifier_copy_from_byte_stream( #endif if( memory_copy( internal_entry_identifier->flags, - byte_stream, + &( byte_stream[ 0 ] ), 4 ) == NULL ) { libcerror_error_set( @@ -228,11 +218,9 @@ int libfmapi_entry_identifier_copy_from_byte_stream( goto on_error; } - byte_stream += 4; - if( memory_copy( internal_entry_identifier->service_provider_identifier, - byte_stream, + &( byte_stream[ 4 ] ), 16 ) == NULL ) { libcerror_error_set( @@ -244,8 +232,6 @@ int libfmapi_entry_identifier_copy_from_byte_stream( goto on_error; } - byte_stream += 16; - #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { @@ -335,7 +321,8 @@ int libfmapi_entry_identifier_copy_from_byte_stream( libcnotify_printf( "\n" ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ + return( 1 ); on_error: @@ -355,8 +342,8 @@ int libfmapi_entry_identifier_copy_from_byte_stream( */ int libfmapi_entry_identifier_get_service_provider_identifier( libfmapi_entry_identifier_t *entry_identifier, - uint8_t *service_provider_identifier, - size_t size, + uint8_t *guid_data, + size_t guid_data_size, libcerror_error_t **error ) { libfmapi_internal_entry_identifier_t *internal_entry_identifier = NULL; @@ -375,41 +362,41 @@ int libfmapi_entry_identifier_get_service_provider_identifier( } internal_entry_identifier = (libfmapi_internal_entry_identifier_t *) entry_identifier; - if( service_provider_identifier == NULL ) + if( guid_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid service provider identifier.", + "%s: invalid GUID data.", function ); return( -1 ); } - if( size < 16 ) + if( guid_data_size > (size_t) SSIZE_MAX ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: service provider identifier too small.", + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: GUID data size value exceeds maximum.", function ); return( -1 ); } - if( size > (size_t) SSIZE_MAX ) + if( guid_data_size < 16 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: size value exceeds maximum.", + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: GUID data size value too small.", function ); return( -1 ); } if( memory_copy( - service_provider_identifier, + guid_data, internal_entry_identifier->service_provider_identifier, 16 ) == NULL ) { diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_entry_identifier.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_entry_identifier.h similarity index 76% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_entry_identifier.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_entry_identifier.h index 034f5d5..4be5e75 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_entry_identifier.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_entry_identifier.h @@ -1,26 +1,26 @@ /* * Entry identifier (ENTRYID) functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ -#if !defined( _LIBFMAPI_INTERNAL_ENTRY_IDENTIFIER_H ) -#define _LIBFMAPI_INTERNAL_ENTRY_IDENTIFIER_H +#if !defined( _LIBFMAPI_ENTRY_IDENTIFIER_H ) +#define _LIBFMAPI_ENTRY_IDENTIFIER_H #include #include @@ -59,20 +59,20 @@ int libfmapi_entry_identifier_free( LIBFMAPI_EXTERN \ int libfmapi_entry_identifier_copy_from_byte_stream( libfmapi_entry_identifier_t *entry_identifier, - uint8_t *byte_stream, + const uint8_t *byte_stream, size_t byte_stream_size, libcerror_error_t **error ); LIBFMAPI_EXTERN \ int libfmapi_entry_identifier_get_service_provider_identifier( libfmapi_entry_identifier_t *entry_identifier, - uint8_t *service_provider_identifier, - size_t size, + uint8_t *guid_data, + size_t guid_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) } #endif -#endif /* !defined( _LIBFMAPI_INTERNAL_ENTRY_IDENTIFIER_H ) */ +#endif /* !defined( _LIBFMAPI_ENTRY_IDENTIFIER_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_error.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_error.c similarity index 90% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_error.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_error.c index c50ecf7..63daecc 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_error.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_error.c @@ -1,22 +1,22 @@ /* * Error functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_error.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_error.h similarity index 85% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_error.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_error.h index 982bc81..b2cf88d 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_error.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_error.h @@ -1,22 +1,22 @@ /* * Error functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_INTERNAL_ERROR_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_extern.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_extern.h similarity index 66% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_extern.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_extern.h index 3feee55..7175f87 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_extern.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_extern.h @@ -1,22 +1,22 @@ /* * The internal extern definition * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_INTERNAL_EXTERN_H ) @@ -28,19 +28,16 @@ */ #if !defined( HAVE_LOCAL_LIBFMAPI ) -/* If libtool DLL support is enabled set LIBFMAPI_DLL_EXPORT - * before including libfmapi/extern.h - */ -#if defined( _WIN32 ) && defined( DLL_EXPORT ) -#define LIBFMAPI_DLL_EXPORT -#endif - #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBFMAPI_EXTERN_VARIABLE extern +#else #define LIBFMAPI_EXTERN_VARIABLE LIBFMAPI_EXTERN +#endif #else -#define LIBFMAPI_EXTERN /* extern */ +#define LIBFMAPI_EXTERN /* extern */ #define LIBFMAPI_EXTERN_VARIABLE extern #endif /* !defined( HAVE_LOCAL_LIBFMAPI ) */ diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libcerror.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libcerror.h similarity index 81% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libcerror.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libcerror.h index 9e200fd..e61969d 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libcerror.h @@ -1,22 +1,22 @@ /* * The libcerror header wrapper * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_LIBCERROR_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libcnotify.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libcnotify.h similarity index 80% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libcnotify.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libcnotify.h index 34ee6ee..9ac91c6 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libcnotify.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libcnotify.h @@ -1,22 +1,22 @@ /* * The internal libcnotify header * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_LIBCNOTIFY_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfdatetime.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfdatetime.h similarity index 84% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfdatetime.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfdatetime.h index 45c1879..290a5ae 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfdatetime.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfdatetime.h @@ -1,22 +1,22 @@ /* * The libfdatetime header wrapper * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_LIBFDATETIME_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfguid.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfguid.h similarity index 80% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfguid.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfguid.h index 1bb9cd8..0139737 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfguid.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfguid.h @@ -1,22 +1,22 @@ /* * The libfguid header wrapper * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_LIBFGUID_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfwnt.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfwnt.h similarity index 78% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfwnt.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfwnt.h index b2f7d5b..dc8e917 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libfwnt.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libfwnt.h @@ -1,22 +1,22 @@ /* * The libfwnt header wrapper * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_LIBFWNT_H ) @@ -30,9 +30,12 @@ #include #include +#include #include +#include #include #include +#include #include #include #include diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libuna.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libuna.h similarity index 84% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libuna.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libuna.h index 5380b47..b556163 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_libuna.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_libuna.h @@ -1,22 +1,22 @@ /* * The libuna header wrapper * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_LIBUNA_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_lzfu.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_lzfu.c similarity index 65% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_lzfu.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_lzfu.c index 0ba7eab..b5a8f7a 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_lzfu.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_lzfu.c @@ -1,22 +1,22 @@ /* - * LZFu (un)compression functions + * LZFu (de)compression functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include @@ -42,28 +42,27 @@ const char *libfmapi_lzfu_rtf_dictionary = \ * Returns 1 on success or -1 on error */ int libfmapi_lzfu_get_uncompressed_data_size( - uint8_t *compressed_data, + const uint8_t *compressed_data, size_t compressed_data_size, size_t *uncompressed_data_size, libcerror_error_t **error ) { libfmapi_lzfu_header_t lzfu_header; - uint8_t *lzfu_data = 0; - static char *function = "libfmapi_lzfu_get_uncompressed_data_size"; + static char *function = "libfmapi_lzfu_get_uncompressed_data_size"; + size_t compressed_data_offset = 0; #if defined( HAVE_DEBUG_OUTPUT ) uint8_t lz_buffer[ 4096 ]; - uint8_t *lzfu_reference_data = 0; - size_t compressed_data_iterator = 0; - size_t uncompressed_data_iterator = 0; - uint16_t lz_buffer_iterator = 0; - uint16_t reference_offset = 0; - uint16_t reference_size = 0; - uint16_t reference_iterator = 0; - uint8_t flag_byte_bit_mask = 0; - uint8_t flag_byte = 0; + const uint8_t *lzfu_reference_data = NULL; + size_t uncompressed_data_offset = 0; + uint16_t lz_buffer_iterator = 0; + uint16_t reference_iterator = 0; + uint16_t reference_offset = 0; + uint16_t reference_size = 0; + uint8_t flag_byte = 0; + uint8_t flag_byte_bit_mask = 0; #endif if( compressed_data == NULL ) @@ -77,13 +76,14 @@ int libfmapi_lzfu_get_uncompressed_data_size( return( -1 ); } - if( compressed_data_size > (size_t) SSIZE_MAX ) + if( ( compressed_data_size < sizeof( libfmapi_lzfu_header_t ) ) + || ( compressed_data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: invalid compressed data size value exceeds maximum.", + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid compressed data size value out of bounds.", function ); return( -1 ); @@ -99,25 +99,23 @@ int libfmapi_lzfu_get_uncompressed_data_size( return( -1 ); } - lzfu_data = compressed_data; - byte_stream_copy_to_uint32_little_endian( - lzfu_data, + &( compressed_data[ compressed_data_offset ] ), lzfu_header.compressed_data_size ); - lzfu_data += 4; + compressed_data_offset += 4; byte_stream_copy_to_uint32_little_endian( - lzfu_data, + &( compressed_data[ compressed_data_offset ] ), lzfu_header.uncompressed_data_size ); - lzfu_data += 4; + compressed_data_offset += 4; byte_stream_copy_to_uint32_little_endian( - lzfu_data, + &( compressed_data[ compressed_data_offset ] ), lzfu_header.signature ); - lzfu_data += 8; + compressed_data_offset += 8; if( ( lzfu_header.signature != LIBFMAPI_LZFU_SIGNATURE_COMPRESSED ) && ( lzfu_header.signature != LIBFMAPI_LZFU_SIGNATURE_UNCOMPRESSED ) ) @@ -132,13 +130,10 @@ int libfmapi_lzfu_get_uncompressed_data_size( return( -1 ); } - compressed_data_size -= sizeof( libfmapi_lzfu_header_t ); - /* The compressed data size includes 12 bytes of the header */ - lzfu_header.compressed_data_size -= 12; - - if( (size_t) lzfu_header.compressed_data_size != compressed_data_size ) + if( ( lzfu_header.compressed_data_size < 12 ) + || ( (size_t) ( lzfu_header.compressed_data_size - 12 ) != ( compressed_data_size - sizeof( libfmapi_lzfu_header_t ) ) ) ) { libcerror_error_set( error, @@ -151,6 +146,8 @@ int libfmapi_lzfu_get_uncompressed_data_size( return( -1 ); } + lzfu_header.compressed_data_size -= 12; + #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { @@ -184,9 +181,9 @@ int libfmapi_lzfu_get_uncompressed_data_size( return( -1 ); } - while( compressed_data_iterator < (size_t) lzfu_header.compressed_data_size ) + while( compressed_data_offset < compressed_data_size ) { - flag_byte = lzfu_data[ compressed_data_iterator++ ]; + flag_byte = compressed_data[ compressed_data_offset++ ]; /* Check every bit in the chunk flag byte from LSB to MSB */ @@ -194,7 +191,7 @@ int libfmapi_lzfu_get_uncompressed_data_size( flag_byte_bit_mask != 0x00; flag_byte_bit_mask <<= 1 ) { - if( compressed_data_iterator == (size_t) lzfu_header.compressed_data_size ) + if( compressed_data_offset == compressed_data_size ) { break; } @@ -202,10 +199,10 @@ int libfmapi_lzfu_get_uncompressed_data_size( */ if( ( flag_byte & flag_byte_bit_mask ) == 0 ) { - lz_buffer[ lz_buffer_iterator++ ] = lzfu_data[ compressed_data_iterator ]; + lz_buffer[ lz_buffer_iterator++ ] = compressed_data[ compressed_data_offset ]; - uncompressed_data_iterator++; - compressed_data_iterator++; + compressed_data_offset++; + uncompressed_data_offset++; /* Make sure the lz buffer iterator wraps around */ @@ -215,9 +212,9 @@ int libfmapi_lzfu_get_uncompressed_data_size( } else { - lzfu_reference_data = &( lzfu_data[ compressed_data_iterator ] ); + lzfu_reference_data = &( compressed_data[ compressed_data_offset ] ); - compressed_data_iterator += 2; + compressed_data_offset += 2; byte_stream_copy_to_uint16_big_endian( lzfu_reference_data, @@ -230,7 +227,7 @@ int libfmapi_lzfu_get_uncompressed_data_size( { lz_buffer[ lz_buffer_iterator++ ] = lz_buffer[ reference_offset ]; - uncompressed_data_iterator++; + uncompressed_data_offset++; reference_offset++; /* Make sure the lz buffer iterator and reference offset wrap around @@ -243,16 +240,17 @@ int libfmapi_lzfu_get_uncompressed_data_size( } } } - if( (size_t) ( lzfu_header.uncompressed_data_size + 2 ) != uncompressed_data_iterator ) + if( (size_t) ( lzfu_header.uncompressed_data_size + 2 ) != uncompressed_data_offset ) { libcnotify_printf( "%s: mismatch in uncompressed data size (in header: %" PRIu32 " != required: %" PRIzd ").\n", function, lzfu_header.uncompressed_data_size + 2, - uncompressed_data_iterator ); + uncompressed_data_offset ); } } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ + /* Compensate for the 2 trailing zero bytes */ *uncompressed_data_size = lzfu_header.uncompressed_data_size + 2; @@ -260,99 +258,56 @@ int libfmapi_lzfu_get_uncompressed_data_size( return( 1 ); } -/* Compresses data using LZFu compression +/* Decompresses data using LZFu compression * Returns 1 on success or -1 on error */ -int libfmapi_lzfu_compress( - uint8_t *compressed_data, - size_t *compressed_data_size, +int libfmapi_lzfu_decompress( + const uint8_t *compressed_data, + size_t compressed_data_size, uint8_t *uncompressed_data, - size_t uncompressed_data_size, + size_t *uncompressed_data_size, libcerror_error_t **error ) { - static char *function = "libfmapi_lzfu_compress"; + libfmapi_lzfu_header_t lzfu_header; - if( compressed_data == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid compressed data.", - function ); + uint8_t lz_buffer[ 4096 ]; - return( -1 ); - } - if( compressed_data_size == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid compressed data size.", - function ); + const uint8_t *lzfu_reference_data = NULL; + static char *function = "libfmapi_lzfu_decompress"; + size_t compressed_data_offset = 0; + size_t safe_uncompressed_data_size = 0; + size_t uncompressed_data_offset = 0; + uint32_t calculated_checksum = 0; + uint16_t lz_buffer_iterator = 0; + uint16_t reference_iterator = 0; + uint16_t reference_offset = 0; + uint16_t reference_size = 0; + uint8_t flag_byte = 0; + uint8_t flag_byte_bit_mask = 0; - return( -1 ); - } - if( uncompressed_data == NULL ) + if( compressed_data == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid uncompressed data.", + "%s: invalid compressed data.", function ); return( -1 ); } - if( uncompressed_data_size > (size_t) SSIZE_MAX ) + if( ( compressed_data_size < sizeof( libfmapi_lzfu_header_t ) ) + || ( compressed_data_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: invalid uncompressed data size value exceeds maximum.", + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid compressed data size value out of bounds.", function ); return( -1 ); } - /* TODO implement */ - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GENERIC, - "%s: NOT IMPLEMENTED YET", - function ); - - return( -1 ); -} - -/* Decompresses data using LZFu compression - * Returns 1 on success or -1 on error - */ -int libfmapi_lzfu_decompress( - uint8_t *uncompressed_data, - size_t *uncompressed_data_size, - uint8_t *compressed_data, - size_t compressed_data_size, - libcerror_error_t **error ) -{ - libfmapi_lzfu_header_t lzfu_header; - uint8_t lz_buffer[ 4096 ]; - - uint8_t *lzfu_data = 0; - uint8_t *lzfu_reference_data = 0; - static char *function = "libfmapi_lzfu_decompress"; - size_t compressed_data_iterator = 0; - size_t uncompressed_data_iterator = 0; - uint32_t calculated_checksum = 0; - uint16_t lz_buffer_iterator = 0; - uint16_t reference_offset = 0; - uint16_t reference_size = 0; - uint16_t reference_iterator = 0; - uint8_t flag_byte_bit_mask = 0; - uint8_t flag_byte = 0; - if( uncompressed_data == NULL ) { libcerror_error_set( @@ -375,28 +330,20 @@ int libfmapi_lzfu_decompress( return( -1 ); } - if( compressed_data == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid compressed data.", - function ); + safe_uncompressed_data_size = *uncompressed_data_size; - return( -1 ); - } - if( compressed_data_size > (size_t) SSIZE_MAX ) +#if defined( HAVE_DEBUG_OUTPUT ) + if( libcnotify_verbose != 0 ) { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: invalid compressed data size value exceeds maximum.", + libcnotify_printf( + "%s: LZFu compressed data:\n", function ); - - return( -1 ); + libcnotify_print_data( + compressed_data, + compressed_data_size, + 0 ); } +#endif if( memory_copy( lz_buffer, libfmapi_lzfu_rtf_dictionary, @@ -427,53 +374,54 @@ int libfmapi_lzfu_decompress( return( -1 ); } - lzfu_data = compressed_data; - byte_stream_copy_to_uint32_little_endian( - lzfu_data, + &( compressed_data[ compressed_data_offset ] ), lzfu_header.compressed_data_size ); - lzfu_data += 4; + compressed_data_offset += 4; byte_stream_copy_to_uint32_little_endian( - lzfu_data, + &( compressed_data[ compressed_data_offset ] ), lzfu_header.uncompressed_data_size ); - lzfu_data += 4; + compressed_data_offset += 4; byte_stream_copy_to_uint32_little_endian( - lzfu_data, + &( compressed_data[ compressed_data_offset ] ), lzfu_header.signature ); - lzfu_data += 4; + compressed_data_offset += 4; byte_stream_copy_to_uint32_little_endian( - lzfu_data, + &( compressed_data[ compressed_data_offset ] ), lzfu_header.checksum ); - lzfu_data += 4; + compressed_data_offset += 4; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( - "%s: lzfu header compressed data size\t: %" PRIu32 "\n", + "%s: lzfu header compressed data size\t\t: %" PRIu32 "\n", function, lzfu_header.compressed_data_size ); + libcnotify_printf( - "%s: lzfu header uncompressed data size\t: %" PRIu32 "\n", + "%s: lzfu header uncompressed data size\t\t: %" PRIu32 "\n", function, lzfu_header.uncompressed_data_size ); + libcnotify_printf( - "%s: lzfu header signature\t\t\t: 0x08%" PRIx32 "\n", + "%s: lzfu header signature\t\t\t\t: 0x08%" PRIx32 "\n", function, lzfu_header.signature ); + libcnotify_printf( - "%s: lzfu header checksum\t\t: %" PRIu32 "\n", + "%s: lzfu header checksum\t\t\t\t: %" PRIu32 "\n", function, lzfu_header.checksum ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ if( ( lzfu_header.signature != LIBFMAPI_LZFU_SIGNATURE_COMPRESSED ) && ( lzfu_header.signature != LIBFMAPI_LZFU_SIGNATURE_UNCOMPRESSED ) ) @@ -488,13 +436,10 @@ int libfmapi_lzfu_decompress( return( -1 ); } - compressed_data_size -= sizeof( libfmapi_lzfu_header_t ); - /* The compressed data size includes 12 bytes of the header */ - lzfu_header.compressed_data_size -= 12; - - if( lzfu_header.compressed_data_size != compressed_data_size ) + if( ( lzfu_header.compressed_data_size < 12 ) + || ( (size_t) ( lzfu_header.compressed_data_size - 12 ) != ( compressed_data_size - sizeof( libfmapi_lzfu_header_t ) ) ) ) { libcerror_error_set( error, @@ -507,9 +452,11 @@ int libfmapi_lzfu_decompress( return( -1 ); } + lzfu_header.compressed_data_size -= 12; + /* Make sure the uncompressed buffer is large enough */ - if( *uncompressed_data_size < lzfu_header.uncompressed_data_size ) + if( safe_uncompressed_data_size < lzfu_header.uncompressed_data_size ) { libcerror_error_set( error, @@ -524,7 +471,7 @@ int libfmapi_lzfu_decompress( } if( libfmapi_checksum_calculate_weak_crc32( &calculated_checksum, - lzfu_data, + &( compressed_data[ compressed_data_offset ] ), (size_t) lzfu_header.compressed_data_size, 0, error ) != 1 ) @@ -551,15 +498,17 @@ int libfmapi_lzfu_decompress( return( -1 ); } - while( compressed_data_iterator < (size_t) lzfu_header.compressed_data_size ) + while( compressed_data_offset < compressed_data_size ) { - flag_byte = lzfu_data[ compressed_data_iterator++ ]; + flag_byte = compressed_data[ compressed_data_offset++ ]; /* Check every bit in the chunk flag byte from LSB to MSB */ - for( flag_byte_bit_mask = 0x01; flag_byte_bit_mask != 0x00; flag_byte_bit_mask <<= 1 ) + for( flag_byte_bit_mask = 0x01; + flag_byte_bit_mask != 0x00; + flag_byte_bit_mask <<= 1 ) { - if( compressed_data_iterator == (size_t) lzfu_header.compressed_data_size ) + if( compressed_data_offset == compressed_data_size ) { break; } @@ -567,7 +516,7 @@ int libfmapi_lzfu_decompress( */ if( ( flag_byte & flag_byte_bit_mask ) == 0 ) { - if( compressed_data_iterator >= (size_t) lzfu_header.compressed_data_size ) + if( compressed_data_offset >= compressed_data_size ) { libcerror_error_set( error, @@ -580,7 +529,7 @@ int libfmapi_lzfu_decompress( return( -1 ); } - if( uncompressed_data_iterator >= *uncompressed_data_size ) + if( uncompressed_data_offset >= safe_uncompressed_data_size ) { libcerror_error_set( error, @@ -589,14 +538,14 @@ int libfmapi_lzfu_decompress( "%s: uncompressed data too small.", function ); - *uncompressed_data_size = uncompressed_data_iterator; + *uncompressed_data_size = uncompressed_data_offset; return( -1 ); } - lz_buffer[ lz_buffer_iterator++ ] = lzfu_data[ compressed_data_iterator ]; - uncompressed_data[ uncompressed_data_iterator++ ] = lzfu_data[ compressed_data_iterator ]; + lz_buffer[ lz_buffer_iterator++ ] = compressed_data[ compressed_data_offset ]; + uncompressed_data[ uncompressed_data_offset++ ] = compressed_data[ compressed_data_offset ]; - compressed_data_iterator++; + compressed_data_offset++; /* Make sure the lz buffer iterator wraps around */ @@ -606,7 +555,7 @@ int libfmapi_lzfu_decompress( } else { - if( ( compressed_data_iterator + 1 ) >= (size_t) lzfu_header.compressed_data_size ) + if( compressed_data_offset > ( compressed_data_size - 2 ) ) { libcerror_error_set( error, @@ -619,9 +568,9 @@ int libfmapi_lzfu_decompress( return( -1 ); } - lzfu_reference_data = &( lzfu_data[ compressed_data_iterator ] ); + lzfu_reference_data = &( compressed_data[ compressed_data_offset ] ); - compressed_data_iterator += 2; + compressed_data_offset += 2; byte_stream_copy_to_uint16_big_endian( lzfu_reference_data, @@ -630,7 +579,7 @@ int libfmapi_lzfu_decompress( reference_size = ( reference_offset & 0x000f ) + 2; reference_offset >>= 4; - if( ( uncompressed_data_iterator + reference_size - 1 ) >= *uncompressed_data_size ) + if( ( uncompressed_data_offset + reference_size - 1 ) >= safe_uncompressed_data_size ) { libcerror_error_set( error, @@ -639,14 +588,14 @@ int libfmapi_lzfu_decompress( "%s: uncompressed data too small.", function ); - *uncompressed_data_size = uncompressed_data_iterator + reference_size; + *uncompressed_data_size = uncompressed_data_offset + reference_size; return( -1 ); } for( reference_iterator = 0; reference_iterator < reference_size; reference_iterator++ ) { - lz_buffer[ lz_buffer_iterator++ ] = lz_buffer[ reference_offset ]; - uncompressed_data[ uncompressed_data_iterator++ ] = lz_buffer[ reference_offset ]; + lz_buffer[ lz_buffer_iterator++ ] = lz_buffer[ reference_offset ]; + uncompressed_data[ uncompressed_data_offset++ ] = lz_buffer[ reference_offset ]; reference_offset++; @@ -660,7 +609,7 @@ int libfmapi_lzfu_decompress( } } } - *uncompressed_data_size = uncompressed_data_iterator; + *uncompressed_data_size = uncompressed_data_offset; return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_lzfu.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_lzfu.h similarity index 73% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_lzfu.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_lzfu.h index 29b02ef..c7bf45e 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_lzfu.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_lzfu.h @@ -1,22 +1,22 @@ /* - * LZFu (un)compression functions + * LZFu (de)compression functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_LZFU_H ) @@ -25,6 +25,7 @@ #include #include +#include "libfmapi_extern.h" #include "libfmapi_libcerror.h" #if defined( __cplusplus ) @@ -54,24 +55,19 @@ struct libfmapi_lzfu_header uint32_t checksum; }; +LIBFMAPI_EXTERN \ int libfmapi_lzfu_get_uncompressed_data_size( - uint8_t *compressed_data, + const uint8_t *compressed_data, size_t compressed_data_size, size_t *uncompressed_data_size, libcerror_error_t **error ); -int libfmapi_lzfu_compress( - uint8_t *compressed_data, - size_t *compressed_data_size, - uint8_t *uncompressed_data, - size_t uncompressed_data_size, - libcerror_error_t **error ); - +LIBFMAPI_EXTERN \ int libfmapi_lzfu_decompress( + const uint8_t *compressed_data, + size_t compressed_data_size, uint8_t *uncompressed_data, size_t *uncompressed_data_size, - uint8_t *compressed_data, - size_t compressed_data_size, libcerror_error_t **error ); #if defined( __cplusplus ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_one_off_entry_identifier.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_one_off_entry_identifier.c similarity index 86% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_one_off_entry_identifier.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_one_off_entry_identifier.c index b3bf613..f92af73 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_one_off_entry_identifier.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_one_off_entry_identifier.c @@ -1,22 +1,22 @@ /* * One-off entry identifier functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include @@ -156,14 +156,17 @@ int libfmapi_one_off_entry_identifier_free( */ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( libfmapi_one_off_entry_identifier_t *entry_identifier, - uint8_t *byte_stream, + const uint8_t *byte_stream, size_t byte_stream_size, int ascii_codepage, libcerror_error_t **error ) { libfmapi_internal_one_off_entry_identifier_t *internal_entry_identifier = NULL; static char *function = "libfmapi_one_off_entry_identifier_copy_from_byte_stream"; - size_t byte_stream_index = 0; + size_t byte_stream_offset = 0; + size_t string_size = 0; + uint16_t flags = 0; + uint16_t format_version = 0; uint16_t supported_flags = 0; if( entry_identifier == NULL ) @@ -179,35 +182,58 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( } internal_entry_identifier = (libfmapi_internal_one_off_entry_identifier_t *) entry_identifier; - if( byte_stream == NULL ) + if( internal_entry_identifier->email_address != NULL ) { libcerror_error_set( error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid byte stream.", + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, + "%s: invalid entry identifier - email address value already set.", + function ); + + return( -1 ); + } + if( internal_entry_identifier->address_type != NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, + "%s: invalid entry identifier - address type value already set.", + function ); + + return( -1 ); + } + if( internal_entry_identifier->display_name != NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, + "%s: invalid entry identifier - display value value already set.", function ); return( -1 ); } - if( byte_stream_size < 4 ) + if( byte_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: byte stream too small.", + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", function ); return( -1 ); } - if( byte_stream_size > (size_t) SSIZE_MAX ) + if( ( byte_stream_size < 4 ) + || ( byte_stream_size > (size_t) SSIZE_MAX ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: byte stream size exceeds maximum.", + LIBCERROR_ARGUMENT_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid byte stream size value out of bounds.", function ); return( -1 ); @@ -216,7 +242,7 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( if( libcnotify_verbose != 0 ) { libcnotify_printf( - "%s: header data:\n", + "%s: one-off entry identifier header data:\n", function ); libcnotify_print_data( byte_stream, @@ -225,42 +251,38 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( } #endif byte_stream_copy_to_uint16_little_endian( - byte_stream, - internal_entry_identifier->version ); - - byte_stream += 2; - byte_stream_size -= 2; + &( byte_stream[ 0 ] ), + format_version ); byte_stream_copy_to_uint16_little_endian( - byte_stream, - internal_entry_identifier->flags ); - - byte_stream += 2; - byte_stream_size -= 2; + &( byte_stream[ 2 ] ), + flags ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { libcnotify_printf( - "%s: version\t: %" PRIu16 "\n", + "%s: format version\t: %" PRIu16 "\n", function, - internal_entry_identifier->version ); + format_version ); libcnotify_printf( "%s: flags\t\t: 0x%04" PRIx16 "\n", function, - internal_entry_identifier->flags ); + flags ); } #endif - if( internal_entry_identifier->version != 0 ) + byte_stream_offset += 4; + + if( format_version != 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported version: %" PRIu16 ".", + "%s: unsupported format version: %" PRIu16 ".", function, - internal_entry_identifier->version ); + format_version ); goto on_error; } @@ -268,7 +290,7 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( | LIBFMAPI_ONE_OFF_ENTRY_IDENTIFIER_FLAG_0x1000 | LIBFMAPI_ONE_OFF_ENTRY_IDENTIFIER_FLAG_UNICODE; - if( ( internal_entry_identifier->flags & ~( supported_flags ) ) != 0 ) + if( ( flags & ~( supported_flags ) ) != 0 ) { libcerror_error_set( error, @@ -276,38 +298,30 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, "%s: unsupported flags: 0x%04" PRIx16 ".", function, - internal_entry_identifier->flags ); - - goto on_error; - } - if( byte_stream_size == 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: byte stream too small.", - function ); + flags ); goto on_error; } + internal_entry_identifier->format_version = format_version; + internal_entry_identifier->flags = flags; internal_entry_identifier->ascii_codepage = ascii_codepage; - byte_stream_index = 0; + string_size = byte_stream_offset; if( ( internal_entry_identifier->flags & LIBFMAPI_ONE_OFF_ENTRY_IDENTIFIER_FLAG_UNICODE ) != 0 ) { - while( ( byte_stream_index + 1 ) < byte_stream_size ) + while( string_size < ( byte_stream_size - 3 ) ) { - if( ( byte_stream[ byte_stream_index ] == 0 ) - && ( byte_stream[ byte_stream_index + 1 ] == 0 ) ) + if( ( byte_stream[ string_size ] == 0 ) + && ( byte_stream[ string_size + 1 ] == 0 ) ) { break; } - byte_stream_index += 2; + string_size += 2; } - if( ( byte_stream[ byte_stream_index ] != 0 ) - || ( byte_stream[ byte_stream_index + 1 ] != 0 ) ) + if( ( string_size >= ( byte_stream_size - 1 ) ) + || ( byte_stream[ string_size ] != 0 ) + || ( byte_stream[ string_size + 1 ] != 0 ) ) { libcerror_error_set( error, @@ -318,19 +332,20 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( goto on_error; } - byte_stream_index += 2; + string_size += 2; } else { - while( byte_stream_index < byte_stream_size ) + while( string_size < ( byte_stream_size - 1 ) ) { - if( byte_stream[ byte_stream_index ] == 0 ) + if( byte_stream[ string_size ] == 0 ) { break; } - byte_stream_index += 1; + string_size += 1; } - if( byte_stream[ byte_stream_index ] != 0 ) + if( ( string_size >= byte_stream_size ) + || ( byte_stream[ string_size ] != 0 ) ) { libcerror_error_set( error, @@ -341,7 +356,21 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( return( -1 ); } - byte_stream_index += 1; + string_size += 1; + } + string_size -= byte_stream_offset; + + if( ( string_size == 0 ) + || ( string_size > MEMORY_MAXIMUM_ALLOCATION_SIZE ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid display name size value out of bounds.", + function ); + + goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) @@ -350,13 +379,13 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( "%s: display name data:\n", function ); libcnotify_print_data( - byte_stream, - byte_stream_index, + &( byte_stream[ byte_stream_offset ] ), + string_size, 0 ); } #endif internal_entry_identifier->display_name = (uint8_t *) memory_allocate( - sizeof( uint8_t ) * byte_stream_index ); + sizeof( uint8_t ) * string_size ); if( internal_entry_identifier->display_name == NULL ) { @@ -371,8 +400,8 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( } if( memory_copy( internal_entry_identifier->display_name, - byte_stream, - byte_stream_index ) == NULL ) + &( byte_stream[ byte_stream_offset ] ), + string_size ) == NULL ) { libcerror_error_set( error, @@ -383,37 +412,26 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( goto on_error; } - internal_entry_identifier->display_name_size = byte_stream_index; - - byte_stream += byte_stream_index; - byte_stream_size -= byte_stream_index; + internal_entry_identifier->display_name_size = string_size; - if( byte_stream_size == 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: byte stream too small.", - function ); + byte_stream_offset += string_size; - goto on_error; - } - byte_stream_index = 0; + string_size = byte_stream_offset; if( ( internal_entry_identifier->flags & LIBFMAPI_ONE_OFF_ENTRY_IDENTIFIER_FLAG_UNICODE ) != 0 ) { - while( ( byte_stream_index + 1 ) < byte_stream_size ) + while( string_size < ( byte_stream_size - 3 ) ) { - if( ( byte_stream[ byte_stream_index ] == 0 ) - && ( byte_stream[ byte_stream_index + 1 ] == 0 ) ) + if( ( byte_stream[ string_size ] == 0 ) + && ( byte_stream[ string_size + 1 ] == 0 ) ) { break; } - byte_stream_index += 2; + string_size += 2; } - if( ( byte_stream[ byte_stream_index ] != 0 ) - || ( byte_stream[ byte_stream_index + 1 ] != 0 ) ) + if( ( string_size >= ( byte_stream_size - 1 ) ) + || ( byte_stream[ string_size ] != 0 ) + || ( byte_stream[ string_size + 1 ] != 0 ) ) { libcerror_error_set( error, @@ -424,19 +442,20 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( goto on_error; } - byte_stream_index += 2; + string_size += 2; } else { - while( byte_stream_index < byte_stream_size ) + while( string_size < ( byte_stream_size - 1 ) ) { - if( byte_stream[ byte_stream_index ] == 0 ) + if( byte_stream[ string_size ] == 0 ) { break; } - byte_stream_index += 1; + string_size += 1; } - if( byte_stream[ byte_stream_index ] != 0 ) + if( ( string_size >= byte_stream_size ) + || ( byte_stream[ string_size ] != 0 ) ) { libcerror_error_set( error, @@ -447,7 +466,21 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( goto on_error; } - byte_stream_index += 1; + string_size += 1; + } + string_size -= byte_stream_offset; + + if( ( string_size == 0 ) + || ( string_size > MEMORY_MAXIMUM_ALLOCATION_SIZE ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid address type size value out of bounds.", + function ); + + goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) @@ -456,13 +489,13 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( "%s: address type data:\n", function ); libcnotify_print_data( - byte_stream, - byte_stream_index, + &( byte_stream[ byte_stream_offset ] ), + string_size, 0 ); } #endif internal_entry_identifier->address_type = (uint8_t *) memory_allocate( - sizeof( uint8_t ) * byte_stream_index ); + sizeof( uint8_t ) * string_size ); if( internal_entry_identifier->address_type == NULL ) { @@ -477,8 +510,8 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( } if( memory_copy( internal_entry_identifier->address_type, - byte_stream, - byte_stream_index ) == NULL ) + &( byte_stream[ byte_stream_offset ] ), + string_size ) == NULL ) { libcerror_error_set( error, @@ -489,37 +522,26 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( goto on_error; } - internal_entry_identifier->address_type_size = byte_stream_index; + internal_entry_identifier->address_type_size = string_size; - byte_stream += byte_stream_index; - byte_stream_size -= byte_stream_index; + byte_stream_offset += string_size; - if( byte_stream_size == 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: byte stream too small.", - function ); - - goto on_error; - } - byte_stream_index = 0; + string_size = byte_stream_offset; if( ( internal_entry_identifier->flags & LIBFMAPI_ONE_OFF_ENTRY_IDENTIFIER_FLAG_UNICODE ) != 0 ) { - while( ( byte_stream_index + 1 ) < byte_stream_size ) + while( string_size < ( byte_stream_size - 3 ) ) { - if( ( byte_stream[ byte_stream_index ] == 0 ) - && ( byte_stream[ byte_stream_index + 1 ] == 0 ) ) + if( ( byte_stream[ string_size ] == 0 ) + && ( byte_stream[ string_size + 1 ] == 0 ) ) { break; } - byte_stream_index += 2; + string_size += 2; } - if( ( byte_stream[ byte_stream_index ] != 0 ) - || ( byte_stream[ byte_stream_index + 1 ] != 0 ) ) + if( ( string_size >= ( byte_stream_size - 1 ) ) + || ( byte_stream[ string_size ] != 0 ) + || ( byte_stream[ string_size + 1 ] != 0 ) ) { libcerror_error_set( error, @@ -530,19 +552,20 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( goto on_error; } - byte_stream_index += 2; + string_size += 2; } else { - while( byte_stream_index < byte_stream_size ) + while( string_size < ( byte_stream_size - 1 ) ) { - if( byte_stream[ byte_stream_index ] == 0 ) + if( byte_stream[ string_size ] == 0 ) { break; } - byte_stream_index += 1; + string_size += 1; } - if( byte_stream[ byte_stream_index ] != 0 ) + if( ( string_size >= byte_stream_size ) + || ( byte_stream[ string_size ] != 0 ) ) { libcerror_error_set( error, @@ -553,7 +576,21 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( goto on_error; } - byte_stream_index += 1; + string_size += 1; + } + string_size -= byte_stream_offset; + + if( ( string_size == 0 ) + || ( string_size > MEMORY_MAXIMUM_ALLOCATION_SIZE ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid email address size value out of bounds.", + function ); + + goto on_error; } #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) @@ -562,13 +599,13 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( "%s: email address data:\n", function ); libcnotify_print_data( - byte_stream, - byte_stream_index, + &( byte_stream[ byte_stream_offset ] ), + string_size, 0 ); } #endif internal_entry_identifier->email_address = (uint8_t *) memory_allocate( - sizeof( uint8_t ) * byte_stream_index ); + sizeof( uint8_t ) * string_size ); if( internal_entry_identifier->email_address == NULL ) { @@ -583,8 +620,8 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( } if( memory_copy( internal_entry_identifier->email_address, - byte_stream, - byte_stream_index ) == NULL ) + &( byte_stream[ byte_stream_offset ] ), + string_size ) == NULL ) { libcerror_error_set( error, @@ -595,22 +632,21 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( goto on_error; } - internal_entry_identifier->email_address_size = byte_stream_index; + internal_entry_identifier->email_address_size = string_size; - byte_stream += byte_stream_index; - byte_stream_size -= byte_stream_index; + byte_stream_offset += string_size; #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) { - if( byte_stream_size > 0 ) + if( byte_stream_offset < byte_stream_size ) { libcnotify_printf( "%s: trailing data:\n", function ); libcnotify_print_data( - byte_stream, - byte_stream_size, + &( byte_stream[ byte_stream_offset ] ), + byte_stream_size - byte_stream_offset, 0 ); } } @@ -642,12 +678,12 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( return( -1 ); } -/* Retrieves the version +/* Retrieves the format version * Returns 1 if successful or -1 on error */ int libfmapi_one_off_entry_identifier_get_version( libfmapi_one_off_entry_identifier_t *entry_identifier, - uint16_t *version, + uint16_t *format_version, libcerror_error_t **error ) { libfmapi_internal_one_off_entry_identifier_t *internal_entry_identifier = NULL; @@ -666,18 +702,18 @@ int libfmapi_one_off_entry_identifier_get_version( } internal_entry_identifier = (libfmapi_internal_one_off_entry_identifier_t *) entry_identifier; - if( version == NULL ) + if( format_version == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid version.", + "%s: invalid format version.", function ); return( -1 ); } - *version = internal_entry_identifier->version; + *format_version = internal_entry_identifier->format_version; return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_one_off_entry_identifier.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_one_off_entry_identifier.h similarity index 90% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_one_off_entry_identifier.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_one_off_entry_identifier.h index 5d2bcae..5b177b7 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_one_off_entry_identifier.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_one_off_entry_identifier.h @@ -1,26 +1,26 @@ /* * One-off entry identifier functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ -#if !defined( _LIBFMAPI_INTERNAL_ONE_OFF_ENTRY_IDENTIFIER_H ) -#define _LIBFMAPI_INTERNAL_ONE_OFF_ENTRY_IDENTIFIER_H +#if !defined( _LIBFMAPI_ONE_OFF_ENTRY_IDENTIFIER_H ) +#define _LIBFMAPI_ONE_OFF_ENTRY_IDENTIFIER_H #include #include @@ -37,9 +37,9 @@ typedef struct libfmapi_internal_one_off_entry_identifier libfmapi_internal_one_ struct libfmapi_internal_one_off_entry_identifier { - /* The version + /* The format version */ - uint16_t version; + uint16_t format_version; /* The flags */ @@ -87,7 +87,7 @@ int libfmapi_one_off_entry_identifier_free( LIBFMAPI_EXTERN \ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( libfmapi_one_off_entry_identifier_t *entry_identifier, - uint8_t *byte_stream, + const uint8_t *byte_stream, size_t byte_stream_size, int ascii_codepage, libcerror_error_t **error ); @@ -95,7 +95,7 @@ int libfmapi_one_off_entry_identifier_copy_from_byte_stream( LIBFMAPI_EXTERN \ int libfmapi_one_off_entry_identifier_get_version( libfmapi_one_off_entry_identifier_t *entry_identifier, - uint16_t *version, + uint16_t *format_version, libcerror_error_t **error ); LIBFMAPI_EXTERN \ @@ -186,5 +186,5 @@ int libfmapi_one_off_entry_identifier_get_utf16_email_address( } #endif -#endif /* !defined( _LIBFMAPI_INTERNAL_ONE_OFF_ENTRY_IDENTIFIER_H ) */ +#endif /* !defined( _LIBFMAPI_ONE_OFF_ENTRY_IDENTIFIER_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_property_type.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_property_type.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_property_type.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_property_type.c index b812d97..7cd31c9 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_property_type.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_property_type.c @@ -1,22 +1,22 @@ /* * Property type functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_property_type.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_property_type.h similarity index 91% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_property_type.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_property_type.h index af64edd..9464aab 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_property_type.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_property_type.h @@ -1,22 +1,22 @@ /* * Property type functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_PROPERTY_TYPE_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_service_provider_identifier.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_service_provider_identifier.c similarity index 90% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_service_provider_identifier.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_service_provider_identifier.c index c5b477b..a3adae8 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_service_provider_identifier.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_service_provider_identifier.c @@ -1,22 +1,22 @@ /* * Sevice provider functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_service_provider_identifier.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_service_provider_identifier.h similarity index 82% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_service_provider_identifier.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_service_provider_identifier.h index dee9e96..61be2c9 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_service_provider_identifier.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_service_provider_identifier.h @@ -1,22 +1,22 @@ /* * Service provider identifier functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_SERVICE_PROVIDER_IDENTIFIER_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_support.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_support.c similarity index 76% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_support.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_support.c index 21aa8d3..4707e0a 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_support.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_support.c @@ -1,22 +1,22 @@ /* * Support functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_support.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_support.h similarity index 78% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_support.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_support.h index a9b12bd..ee5e712 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_support.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_support.h @@ -1,22 +1,22 @@ /* * Support functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_SUPPORT_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_types.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_types.h similarity index 83% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_types.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_types.h index 1db8feb..24b53ee 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_types.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_types.h @@ -1,22 +1,22 @@ /* * The internal type definitions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_INTERNAL_TYPES_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_unused.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_unused.h similarity index 67% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_unused.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_unused.h index 5ff118e..e6856c3 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_unused.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_unused.h @@ -1,26 +1,26 @@ /* - * The internal unused definition + * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ -#if !defined( _LIBFMAPI_INTERNAL_UNUSED_H ) -#define _LIBFMAPI_INTERNAL_UNUSED_H +#if !defined( _LIBFMAPI_UNUSED_H ) +#define _LIBFMAPI_UNUSED_H #include @@ -40,5 +40,5 @@ /* parameter */ #endif -#endif /* !defined( _LIBFMAPI_INTERNAL_UNUSED_H ) */ +#endif /* !defined( _LIBFMAPI_UNUSED_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_value_type.c b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_value_type.c similarity index 93% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_value_type.c rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_value_type.c index 840394c..67d9abf 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_value_type.c +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_value_type.c @@ -1,22 +1,22 @@ /* * Value type functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #include diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_value_type.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_value_type.h similarity index 82% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_value_type.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_value_type.h index c257149..613e143 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_value_type.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_value_type.h @@ -1,22 +1,22 @@ /* * Value type functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_VALUE_TYPE_H ) diff --git a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_x400_object_identifier.h b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_x400_object_identifier.h similarity index 85% rename from libesedb-sys/libesedb-20210424/libfmapi/libfmapi_x400_object_identifier.h rename to libesedb-sys/libesedb-20230824/libfmapi/libfmapi_x400_object_identifier.h index 0d3d334..e36e0de 100644 --- a/libesedb-sys/libesedb-20210424/libfmapi/libfmapi_x400_object_identifier.h +++ b/libesedb-sys/libesedb-20230824/libfmapi/libfmapi_x400_object_identifier.h @@ -1,22 +1,22 @@ /* * X.400 object identifier (MAPIOID) functions * - * Copyright (C) 2009-2018, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * - * This software is free software: you can redistribute it and/or modify + * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * - * This software is distributed in the hope that it will be useful, + * 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 Lesser General Public License - * along with this software. If not, see . + * along with this program. If not, see . */ #if !defined( _LIBFMAPI_X400_OBJECT_IDENTIFIER_H ) diff --git a/libesedb-sys/libesedb-20210424/libfvalue/Makefile.am b/libesedb-sys/libesedb-20230824/libfvalue/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libfvalue/Makefile.am rename to libesedb-sys/libesedb-20230824/libfvalue/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libfvalue/Makefile.in b/libesedb-sys/libesedb-20230824/libfvalue/Makefile.in similarity index 96% rename from libesedb-sys/libesedb-20210424/libfvalue/Makefile.in rename to libesedb-sys/libesedb-20230824/libfvalue/Makefile.in index ad9c5c9..e897abb 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libfvalue/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libfvalue ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -236,8 +237,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -254,6 +253,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -269,8 +270,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -388,8 +391,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -596,6 +599,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -806,7 +810,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_binary_data.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_binary_data.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_binary_data.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_binary_data.c index 840e11c..857f97f 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_binary_data.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_binary_data.c @@ -1,7 +1,7 @@ /* * Binary data value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_binary_data.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_binary_data.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_binary_data.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_binary_data.h index 5a69205..fa5bd99 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_binary_data.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_binary_data.h @@ -1,7 +1,7 @@ /* * Binary data value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_codepage.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_codepage.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_codepage.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_codepage.h index 649db98..7d8c4ec 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_codepage.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_codepage.h @@ -1,7 +1,7 @@ /* * Codepage functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_data_handle.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_data_handle.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_data_handle.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_data_handle.c index f965fa1..c980448 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_data_handle.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_data_handle.c @@ -1,7 +1,7 @@ /* * Data handle functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_data_handle.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_data_handle.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_data_handle.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_data_handle.h index 18c40d5..b1ca3c2 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_data_handle.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_data_handle.h @@ -1,7 +1,7 @@ /* * Data handle functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_definitions.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_definitions.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_definitions.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_definitions.h index 3446390..bf53010 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_definitions.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -36,11 +36,11 @@ #else #include -#define LIBFVALUE_VERSION 20201124 +#define LIBFVALUE_VERSION 20220120 /* The libfvalue version string */ -#define LIBFVALUE_VERSION_STRING "20201124" +#define LIBFVALUE_VERSION_STRING "20220120" /* The endian definitions */ diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_error.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_error.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_error.c index 8999480..75f2c48 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_error.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_error.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_error.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_error.h index b2be9f5..71e2a1f 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_error.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_extern.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_extern.h similarity index 91% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_extern.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_extern.h index 37202b6..8e8ab13 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_extern.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,7 @@ #include -#if defined( __CYGWIN__ ) +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) #define LIBFVALUE_EXTERN_VARIABLE extern #else #define LIBFVALUE_EXTERN_VARIABLE LIBFVALUE_EXTERN diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_filetime.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_filetime.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_filetime.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_filetime.c index 64ef771..d03f694 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_filetime.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_filetime.c @@ -1,7 +1,7 @@ /* * Filetime functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_filetime.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_filetime.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_filetime.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_filetime.h index d645d31..cebc14d 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_filetime.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_filetime.h @@ -1,7 +1,7 @@ /* * Filetime functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_floating_point.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_floating_point.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_floating_point.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_floating_point.c index 5aea495..2ccaa07 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_floating_point.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_floating_point.c @@ -1,7 +1,7 @@ /* * Floating point value (IEEE 754) functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_floating_point.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_floating_point.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_floating_point.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_floating_point.h index 10f3776..4756c47 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_floating_point.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_floating_point.h @@ -1,7 +1,7 @@ /* * Floating point value (IEEE 754) functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_integer.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_integer.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_integer.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_integer.c index ddd27e6..c0f92cb 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_integer.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_integer.c @@ -1,7 +1,7 @@ /* * Integer value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_integer.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_integer.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_integer.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_integer.h index 1953478..6e6d9ad 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_integer.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_integer.h @@ -1,7 +1,7 @@ /* * Integer value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcdata.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcdata.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcdata.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcdata.h index 982ca2a..c286938 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcdata.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcdata.h @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcerror.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcerror.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcerror.h index e536747..a157ef4 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcnotify.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcnotify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcnotify.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcnotify.h index 8ed8ac2..a52d8c9 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libcnotify.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libcnotify.h @@ -1,7 +1,7 @@ /* * The internal libcnotify header * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfdatetime.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfdatetime.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfdatetime.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfdatetime.h index c902959..3c077d7 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfdatetime.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfdatetime.h @@ -1,7 +1,7 @@ /* * The libfdatetime header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfguid.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfguid.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfguid.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfguid.h index 88782df..afe4586 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfguid.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfguid.h @@ -1,7 +1,7 @@ /* * The libfguid header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfwnt.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfwnt.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfwnt.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfwnt.h index b8cdf59..579acd9 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libfwnt.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libfwnt.h @@ -1,7 +1,7 @@ /* * The libfwnt header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libuna.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libuna.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libuna.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libuna.h index 2cc9d72..476045a 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_libuna.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_libuna.h @@ -1,7 +1,7 @@ /* * The libuna header wrapper * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf16_string.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf16_string.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf16_string.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf16_string.c index 360735f..991132c 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf16_string.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf16_string.c @@ -1,7 +1,7 @@ /* * Split UTF-16 string functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf16_string.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf16_string.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf16_string.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf16_string.h index a079b71..fc1612a 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf16_string.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf16_string.h @@ -1,7 +1,7 @@ /* * Split UTF-16 string functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf8_string.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf8_string.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf8_string.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf8_string.c index 953a35a..2351801 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf8_string.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf8_string.c @@ -1,7 +1,7 @@ /* * Split UTF-8 string functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf8_string.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf8_string.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf8_string.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf8_string.h index 63b27a7..907158c 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_split_utf8_string.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_split_utf8_string.h @@ -1,7 +1,7 @@ /* * Split UTF-8 string functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_string.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_string.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_string.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_string.c index 12a9861..35aafee 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_string.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_string.c @@ -1,7 +1,7 @@ /* * String value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_string.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_string.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_string.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_string.h index 1b6c092..c830d70 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_string.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_string.h @@ -1,7 +1,7 @@ /* * String value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_support.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_support.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_support.c index ea48837..598fe46 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_support.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_support.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_support.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_support.h index 48ebfba..e0430e8 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_support.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_table.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_table.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_table.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_table.c index 6312f93..3be4612 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_table.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_table.c @@ -1,7 +1,7 @@ /* * Values table functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_table.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_table.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_table.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_table.h index a8b19e5..0eb844d 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_table.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_table.h @@ -1,7 +1,7 @@ /* * Values table functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_types.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_types.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_types.h index 84e442f..89a4c19 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_types.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_unused.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_unused.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_unused.h index 93ff799..25a2944 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_unused.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf16_string.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf16_string.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf16_string.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf16_string.c index 25c8f76..709bf91 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf16_string.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf16_string.c @@ -1,7 +1,7 @@ /* * UTF-16 string value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf16_string.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf16_string.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf16_string.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf16_string.h index 317ba6f..66be28a 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf16_string.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf16_string.h @@ -1,7 +1,7 @@ /* * UTF-16 string value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf8_string.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf8_string.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf8_string.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf8_string.c index a89e8c9..903a8ce 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf8_string.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf8_string.c @@ -1,7 +1,7 @@ /* * UTF-8 string value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf8_string.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf8_string.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf8_string.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf8_string.h index a50c099..ff1a135 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_utf8_string.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_utf8_string.h @@ -1,7 +1,7 @@ /* * UTF-8 string value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value.c index bfa7dc3..251fea2 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value.c @@ -1,7 +1,7 @@ /* * Value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value.h index 7048470..534bf2e 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value.h @@ -1,7 +1,7 @@ /* * Value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_entry.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_entry.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_entry.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_entry.c index 1030f4e..7b51910 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_entry.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_entry.c @@ -1,7 +1,7 @@ /* * Value entry functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_entry.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_entry.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_entry.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_entry.h index e52ac7c..391840f 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_entry.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_entry.h @@ -1,7 +1,7 @@ /* * Value entry functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_type.c b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_type.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_type.c rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_type.c index 58a3b94..5f8c807 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_type.c +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_type.c @@ -1,7 +1,7 @@ /* * Value functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_type.h b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_type.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_type.h rename to libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_type.h index 9bc429b..e640f42 100644 --- a/libesedb-sys/libesedb-20210424/libfvalue/libfvalue_value_type.h +++ b/libesedb-sys/libesedb-20230824/libfvalue/libfvalue_value_type.h @@ -1,7 +1,7 @@ /* * Value type functions * - * Copyright (C) 2010-2020, Joachim Metz + * Copyright (C) 2010-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/Makefile.am b/libesedb-sys/libesedb-20230824/libfwnt/Makefile.am similarity index 97% rename from libesedb-sys/libesedb-20210424/libfwnt/Makefile.am rename to libesedb-sys/libesedb-20230824/libfwnt/Makefile.am index e094238..d23a0d4 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/Makefile.am +++ b/libesedb-sys/libesedb-20230824/libfwnt/Makefile.am @@ -26,6 +26,7 @@ libfwnt_la_SOURCES = \ libfwnt_lznt1.c libfwnt_lznt1.h \ libfwnt_lzx.c libfwnt_lzx.h \ libfwnt_lzxpress.c libfwnt_lzxpress.h \ + libfwnt_notify.c libfwnt_notify.h \ libfwnt_security_descriptor.c libfwnt_security_descriptor.h \ libfwnt_security_identifier.c libfwnt_security_identifier.h \ libfwnt_support.c libfwnt_support.h \ diff --git a/libesedb-sys/libesedb-20210424/libfwnt/Makefile.in b/libesedb-sys/libesedb-20230824/libfwnt/Makefile.in similarity index 94% rename from libesedb-sys/libesedb-20210424/libfwnt/Makefile.in rename to libesedb-sys/libesedb-20230824/libfwnt/Makefile.in index 3b05757..c24a329 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libfwnt/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libfwnt ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -128,11 +129,11 @@ am__libfwnt_la_SOURCES_DIST = libfwnt_access_control_entry.c \ libfwnt_libcerror.h libfwnt_libcdata.h libfwnt_libcnotify.h \ libfwnt_locale_identifier.c libfwnt_locale_identifier.h \ libfwnt_lznt1.c libfwnt_lznt1.h libfwnt_lzx.c libfwnt_lzx.h \ - libfwnt_lzxpress.c libfwnt_lzxpress.h \ - libfwnt_security_descriptor.c libfwnt_security_descriptor.h \ - libfwnt_security_identifier.c libfwnt_security_identifier.h \ - libfwnt_support.c libfwnt_support.h libfwnt_types.h \ - libfwnt_unused.h + libfwnt_lzxpress.c libfwnt_lzxpress.h libfwnt_notify.c \ + libfwnt_notify.h libfwnt_security_descriptor.c \ + libfwnt_security_descriptor.h libfwnt_security_identifier.c \ + libfwnt_security_identifier.h libfwnt_support.c \ + libfwnt_support.h libfwnt_types.h libfwnt_unused.h @HAVE_LOCAL_LIBFWNT_TRUE@am_libfwnt_la_OBJECTS = \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_access_control_entry.lo \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_access_control_list.lo \ @@ -141,7 +142,7 @@ am__libfwnt_la_SOURCES_DIST = libfwnt_access_control_entry.c \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_huffman_tree.lo \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_locale_identifier.lo \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_lznt1.lo libfwnt_lzx.lo \ -@HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_lzxpress.lo \ +@HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_lzxpress.lo libfwnt_notify.lo \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_security_descriptor.lo \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_security_identifier.lo \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_support.lo @@ -174,6 +175,7 @@ am__depfiles_remade = ./$(DEPDIR)/libfwnt_access_control_entry.Plo \ ./$(DEPDIR)/libfwnt_locale_identifier.Plo \ ./$(DEPDIR)/libfwnt_lznt1.Plo ./$(DEPDIR)/libfwnt_lzx.Plo \ ./$(DEPDIR)/libfwnt_lzxpress.Plo \ + ./$(DEPDIR)/libfwnt_notify.Plo \ ./$(DEPDIR)/libfwnt_security_descriptor.Plo \ ./$(DEPDIR)/libfwnt_security_identifier.Plo \ ./$(DEPDIR)/libfwnt_support.Plo @@ -220,8 +222,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -238,6 +238,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -253,8 +255,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -372,8 +376,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -580,6 +584,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -614,6 +619,7 @@ top_srcdir = @top_srcdir@ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_lznt1.c libfwnt_lznt1.h \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_lzx.c libfwnt_lzx.h \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_lzxpress.c libfwnt_lzxpress.h \ +@HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_notify.c libfwnt_notify.h \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_security_descriptor.c libfwnt_security_descriptor.h \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_security_identifier.c libfwnt_security_identifier.h \ @HAVE_LOCAL_LIBFWNT_TRUE@ libfwnt_support.c libfwnt_support.h \ @@ -687,6 +693,7 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfwnt_lznt1.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfwnt_lzx.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfwnt_lzxpress.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfwnt_notify.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfwnt_security_descriptor.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfwnt_security_identifier.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libfwnt_support.Plo@am__quote@ # am--include-marker @@ -775,7 +782,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -903,6 +909,7 @@ maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libfwnt_lznt1.Plo -rm -f ./$(DEPDIR)/libfwnt_lzx.Plo -rm -f ./$(DEPDIR)/libfwnt_lzxpress.Plo + -rm -f ./$(DEPDIR)/libfwnt_notify.Plo -rm -f ./$(DEPDIR)/libfwnt_security_descriptor.Plo -rm -f ./$(DEPDIR)/libfwnt_security_identifier.Plo -rm -f ./$(DEPDIR)/libfwnt_support.Plo diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_entry.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_entry.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_entry.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_entry.c index 2fdfa0a..4c2dbaa 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_entry.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_entry.c @@ -1,7 +1,7 @@ /* * Windows NT Access Control Entry (ACE) functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_entry.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_entry.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_entry.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_entry.h index 67cd4f7..e9cd576 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_entry.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_entry.h @@ -1,7 +1,7 @@ /* * Windows NT Access Contol Entry (ACE) functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_list.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_list.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_list.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_list.c index d10edb9..e05fe74 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_list.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_list.c @@ -1,7 +1,7 @@ /* * Windows NT Access Control List (ACL) functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_list.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_list.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_list.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_list.h index 605e9d2..fe76263 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_access_control_list.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_access_control_list.h @@ -1,7 +1,7 @@ /* * Windows NT Access Contol List (ACL) functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_bit_stream.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_bit_stream.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_bit_stream.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_bit_stream.c index 3e7072a..4f9c4eb 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_bit_stream.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_bit_stream.c @@ -1,7 +1,7 @@ /* * Bit-stream functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_bit_stream.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_bit_stream.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_bit_stream.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_bit_stream.h index 76508f7..802dd20 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_bit_stream.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_bit_stream.h @@ -1,7 +1,7 @@ /* * Bit-stream functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_debug.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_debug.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_debug.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_debug.c index bc8999b..04a1a45 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_debug.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_debug.c @@ -1,7 +1,7 @@ /* * Debug functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_debug.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_debug.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_debug.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_debug.h index 3f84e7c..46f3b81 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_debug.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_debug.h @@ -1,7 +1,7 @@ /* * Debug functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_definitions.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_definitions.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_definitions.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_definitions.h index a7ba4c8..d8c2fed 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_definitions.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -36,11 +36,11 @@ #else #include -#define LIBFWNT_VERSION 20200723 +#define LIBFWNT_VERSION 20220922 /* The version string */ -#define LIBFWNT_VERSION_STRING "20200723" +#define LIBFWNT_VERSION_STRING "20220922" /* The endian definitions diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_error.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_error.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_error.c index 93ecf6b..7c2c3cc 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_error.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_error.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_error.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_error.h index 617d2fc..89ef73a 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_error.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_extern.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_extern.h similarity index 87% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_extern.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_extern.h index 3b953a0..90b5075 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_extern.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -30,7 +30,11 @@ #include +#if defined( __CYGWIN__ ) || defined( __MINGW32__ ) +#define LIBFWNT_EXTERN_VARIABLE extern +#else #define LIBFWNT_EXTERN_VARIABLE LIBFWNT_EXTERN +#endif #else #define LIBFWNT_EXTERN /* extern */ diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_huffman_tree.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_huffman_tree.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_huffman_tree.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_huffman_tree.c index 906da0d..47806b7 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_huffman_tree.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_huffman_tree.c @@ -1,7 +1,7 @@ /* * Huffman tree functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_huffman_tree.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_huffman_tree.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_huffman_tree.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_huffman_tree.h index 6dc992b..3b47fa2 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_huffman_tree.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_huffman_tree.h @@ -1,7 +1,7 @@ /* * Huffman tree functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcdata.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcdata.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcdata.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcdata.h index e9e29be..8734a2b 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcdata.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcdata.h @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcerror.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcerror.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcerror.h index d62e5f4..8f08339 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcnotify.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcnotify.h similarity index 86% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcnotify.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcnotify.h index c770230..587e9a7 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_libcnotify.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_libcnotify.h @@ -1,7 +1,7 @@ /* - * The internal libcnotify header + * The libcnotify header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -44,7 +44,7 @@ #include -#endif +#endif /* defined( HAVE_LOCAL_LIBCNOTIFY ) */ -#endif +#endif /* !defined( _LIBFWNT_LIBCNOTIFY_H ) */ diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_locale_identifier.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_locale_identifier.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_locale_identifier.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_locale_identifier.c index ffdcd98..f755795 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_locale_identifier.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_locale_identifier.c @@ -1,7 +1,7 @@ /* * Locale identifier (LCID) functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_locale_identifier.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_locale_identifier.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_locale_identifier.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_locale_identifier.h index 99898c0..1e6938e 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_locale_identifier.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_locale_identifier.h @@ -1,7 +1,7 @@ /* * Locale identifier (LCID) functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lznt1.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lznt1.c similarity index 88% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lznt1.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lznt1.c index 84c50ec..206790e 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lznt1.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lznt1.c @@ -1,7 +1,7 @@ /* * LZNT1 (de)compression functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -28,66 +28,6 @@ #include "libfwnt_libcnotify.h" #include "libfwnt_lznt1.h" -/* Compresses data using LZNT1 compression - * Returns 1 on success or -1 on error - */ -int libfwnt_lznt1_compress( - const uint8_t *uncompressed_data, - size_t uncompressed_data_size, - uint8_t *compressed_data, - size_t *compressed_data_size, - libcerror_error_t **error ) -{ - static char *function = "libfwnt_lznt1_compress"; - - if( uncompressed_data == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid uncompressed data.", - function ); - - return( -1 ); - } - if( uncompressed_data_size > (size_t) SSIZE_MAX ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: invalid uncompressed data size value exceeds maximum.", - function ); - - return( -1 ); - } - if( compressed_data == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid compressed data.", - function ); - - return( -1 ); - } - if( compressed_data_size == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid compressed data size.", - function ); - - return( -1 ); - } -/* TODO implement */ - return( -1 ); -} - /* Decompresses a LZNT1 compressed chunk * Returns 1 on success or -1 on error */ @@ -254,7 +194,7 @@ int libfwnt_lznt1_decompress_chunk( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: compressed data offset value out of bounds.", + "%s: invalid compressed data offset value out of bounds.", function ); return( -1 ); @@ -315,7 +255,7 @@ int libfwnt_lznt1_decompress_chunk( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: compression tuple offset value out of bounds.", + "%s: invalid compression tuple offset value out of bounds.", function ); return( -1 ); @@ -330,7 +270,7 @@ int libfwnt_lznt1_decompress_chunk( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: compression tuple index value out of bounds.", + "%s: invalid compression tuple index value out of bounds.", function ); return( -1 ); @@ -339,9 +279,9 @@ int libfwnt_lznt1_decompress_chunk( { libcerror_error_set( error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: uncompressed data too small.", + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid uncompressed data offset value out of bounds.", function ); return( -1 ); @@ -357,9 +297,9 @@ int libfwnt_lznt1_decompress_chunk( { libcerror_error_set( error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: uncompressed data too small.", + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid uncompressed data offset value out of bounds.", function ); return( -1 ); @@ -370,7 +310,7 @@ int libfwnt_lznt1_decompress_chunk( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: compressed data offset value out of bounds.", + "%s: invalid compressed data offset value out of bounds.", function ); return( -1 ); @@ -390,6 +330,17 @@ int libfwnt_lznt1_decompress_chunk( */ while( uncompressed_data_offset > compression_tuple_threshold ) { + if( compression_tuple_offset_shift == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid compression tuple offset shift value out of bounds.", + function ); + + return( -1 ); + } compression_tuple_offset_shift -= 1; compression_tuple_size_mask >>= 1; compression_tuple_threshold <<= 1; diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lznt1.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lznt1.h similarity index 84% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lznt1.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lznt1.h index 1af3f3d..57d69a4 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lznt1.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lznt1.h @@ -1,7 +1,7 @@ /* * LZNT1 (de)compression functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -32,14 +32,6 @@ extern "C" { #endif -LIBFWNT_EXTERN \ -int libfwnt_lznt1_compress( - const uint8_t *uncompressed_data, - size_t uncompressed_data_size, - uint8_t *compressed_data, - size_t *compressed_data_size, - libcerror_error_t **error ); - int libfwnt_lznt1_decompress_chunk( const uint8_t *compressed_data, size_t compressed_data_size, diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzx.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzx.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzx.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzx.c index dcb5a32..d2aab78 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzx.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzx.c @@ -1,7 +1,7 @@ /* * LZX (un)compression functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzx.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzx.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzx.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzx.h index f616ea9..cdeb517 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzx.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzx.h @@ -1,7 +1,7 @@ /* * LZX (un)compression functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzxpress.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzxpress.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzxpress.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzxpress.c index 3c7fe83..a1224db 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzxpress.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzxpress.c @@ -1,7 +1,7 @@ /* * LZXPRESS (de)compression functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -324,7 +324,6 @@ int libfwnt_lzxpress_decompress( compression_tuple_size ); compressed_data_offset += 2; - } /* The size value is stored as * size - 3 @@ -359,7 +358,8 @@ int libfwnt_lzxpress_decompress( libcnotify_printf( "\n" ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ + if( compression_tuple_size > 32771 ) { libcerror_error_set( @@ -700,7 +700,7 @@ int libfwnt_lzxpress_huffman_decompress_chunk( { if( libfwnt_bit_stream_get_value( bit_stream, - symbol, + (uint8_t) symbol, &compression_offset, error ) != 1 ) { diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzxpress.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzxpress.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzxpress.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzxpress.h index 6fb5928..1f431dd 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_lzxpress.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_lzxpress.h @@ -1,7 +1,7 @@ /* * LZXPRESS (de)compression functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_notify.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_notify.c new file mode 100644 index 0000000..ad11e40 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_notify.c @@ -0,0 +1,120 @@ +/* + * Notification functions + * + * Copyright (C) 2009-2022, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include +#include + +#if defined( HAVE_STDLIB_H ) || defined( WINAPI ) +#include +#endif + +#include "libfwnt_libcerror.h" +#include "libfwnt_libcnotify.h" +#include "libfwnt_notify.h" + +#if !defined( HAVE_LOCAL_LIBFWNT ) + +/* Sets the verbose notification + */ +void libfwnt_notify_set_verbose( + int verbose ) +{ + libcnotify_verbose_set( + verbose ); +} + +/* Sets the notification stream + * Returns 1 if successful or -1 on error + */ +int libfwnt_notify_set_stream( + FILE *stream, + libcerror_error_t **error ) +{ + static char *function = "libfwnt_notify_set_stream"; + + if( libcnotify_stream_set( + stream, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set stream.", + function ); + + return( -1 ); + } + return( 1 ); +} + +/* Opens the notification stream using a filename + * The stream is opened in append mode + * Returns 1 if successful or -1 on error + */ +int libfwnt_notify_stream_open( + const char *filename, + libcerror_error_t **error ) +{ + static char *function = "libfwnt_notify_stream_open"; + + if( libcnotify_stream_open( + filename, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_IO, + LIBCERROR_IO_ERROR_OPEN_FAILED, + "%s: unable to open stream.", + function ); + + return( -1 ); + } + return( 1 ); +} + +/* Closes the notification stream if opened using a filename + * Returns 0 if successful or -1 on error + */ +int libfwnt_notify_stream_close( + libcerror_error_t **error ) +{ + static char *function = "libfwnt_notify_stream_close"; + + if( libcnotify_stream_close( + error ) != 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_IO, + LIBCERROR_IO_ERROR_OPEN_FAILED, + "%s: unable to open stream.", + function ); + + return( -1 ); + } + return( 0 ); +} + +#endif /* !defined( HAVE_LOCAL_LIBFWNT ) */ + diff --git a/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_notify.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_notify.h new file mode 100644 index 0000000..4cadc19 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_notify.h @@ -0,0 +1,63 @@ +/* + * Notification functions + * + * Copyright (C) 2009-2022, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBFWNT_NOTIFY_H ) +#define _LIBFWNT_NOTIFY_H + +#include +#include +#include + +#include "libfwnt_extern.h" +#include "libfwnt_libcerror.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +#if !defined( HAVE_LOCAL_LIBFWNT ) + +LIBFWNT_EXTERN \ +void libfwnt_notify_set_verbose( + int verbose ); + +LIBFWNT_EXTERN \ +int libfwnt_notify_set_stream( + FILE *stream, + libcerror_error_t **error ); + +LIBFWNT_EXTERN \ +int libfwnt_notify_stream_open( + const char *filename, + libcerror_error_t **error ); + +LIBFWNT_EXTERN \ +int libfwnt_notify_stream_close( + libcerror_error_t **error ); + +#endif /* !defined( HAVE_LOCAL_LIBFWNT ) */ + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBFWNT_NOTIFY_H ) */ + diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_descriptor.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_descriptor.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_descriptor.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_descriptor.c index 30dcdaf..823a715 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_descriptor.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_descriptor.c @@ -1,7 +1,7 @@ /* * Windows NT Security Descriptor functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -169,33 +169,33 @@ int libfwnt_security_descriptor_free( result = -1; } } - if( internal_security_descriptor->discretionary_acl != NULL ) + if( internal_security_descriptor->system_acl != NULL ) { if( libfwnt_internal_access_control_list_free( - (libfwnt_internal_access_control_list_t ** ) &( internal_security_descriptor->discretionary_acl ), + (libfwnt_internal_access_control_list_t ** ) &( internal_security_descriptor->system_acl ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free discretionary ACL.", + "%s: unable to free system ACL.", function ); result = -1; } } - if( internal_security_descriptor->system_acl != NULL ) + if( internal_security_descriptor->discretionary_acl != NULL ) { if( libfwnt_internal_access_control_list_free( - (libfwnt_internal_access_control_list_t ** ) &( internal_security_descriptor->system_acl ), + (libfwnt_internal_access_control_list_t ** ) &( internal_security_descriptor->discretionary_acl ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_FINALIZE_FAILED, - "%s: unable to free system ACL.", + "%s: unable to free discretionary ACL.", function ); result = -1; @@ -266,24 +266,24 @@ int libfwnt_security_descriptor_copy_from_byte_stream( return( -1 ); } - if( internal_security_descriptor->discretionary_acl != NULL ) + if( internal_security_descriptor->system_acl != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, - "%s: invalid security descriptor - discretionary ACL value already set.", + "%s: invalid security descriptor - system ACL value already set.", function ); return( -1 ); } - if( internal_security_descriptor->system_acl != NULL ) + if( internal_security_descriptor->discretionary_acl != NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_ALREADY_SET, - "%s: invalid security descriptor - system ACL value already set.", + "%s: invalid security descriptor - discretionary ACL value already set.", function ); return( -1 ); @@ -360,11 +360,11 @@ int libfwnt_security_descriptor_copy_from_byte_stream( byte_stream_copy_to_uint32_little_endian( &( byte_stream[ 12 ] ), - discretionary_acl_offset ); + system_acl_offset ); byte_stream_copy_to_uint32_little_endian( &( byte_stream[ 16 ] ), - system_acl_offset ); + discretionary_acl_offset ); #if defined( HAVE_DEBUG_OUTPUT ) if( libcnotify_verbose != 0 ) @@ -399,19 +399,20 @@ int libfwnt_security_descriptor_copy_from_byte_stream( group_sid_offset ); libcnotify_printf( - "%s: discretionary ACL offset\t: 0x%08" PRIx32 "\n", + "%s: system ACL offset\t\t: 0x%08" PRIx32 "\n", function, - discretionary_acl_offset ); + system_acl_offset ); libcnotify_printf( - "%s: system ACL offset\t\t: 0x%08" PRIx32 "\n", + "%s: discretionary ACL offset\t: 0x%08" PRIx32 "\n", function, - system_acl_offset ); + discretionary_acl_offset ); libcnotify_printf( "\n" ); } -#endif +#endif /* defined( HAVE_DEBUG_OUTPUT ) */ + if( owner_sid_offset != 0 ) { if( ( owner_sid_offset < 20 ) @@ -680,37 +681,37 @@ int libfwnt_security_descriptor_copy_from_byte_stream( } #endif } - if( discretionary_acl_offset != 0 ) + if( system_acl_offset != 0 ) { - if( ( discretionary_acl_offset < 20 ) - || ( (size_t) discretionary_acl_offset > byte_stream_size ) ) + if( ( system_acl_offset < 20 ) + || ( (size_t) system_acl_offset > byte_stream_size ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: discretionary ACL offset value out of bounds.", + "%s: system ACL offset value out of bounds.", function ); goto on_error; } if( libfwnt_access_control_list_initialize( - &( internal_security_descriptor->discretionary_acl ), + &( internal_security_descriptor->system_acl ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create discretionary ACL.", + "%s: unable to create system ACL.", function ); goto on_error; } if( libfwnt_access_control_list_copy_from_byte_stream( - internal_security_descriptor->discretionary_acl, - &( byte_stream[ discretionary_acl_offset ] ), - byte_stream_size - discretionary_acl_offset, + internal_security_descriptor->system_acl, + &( byte_stream[ system_acl_offset ] ), + byte_stream_size - system_acl_offset, LIBFWNT_ENDIAN_LITTLE, error ) != 1 ) { @@ -718,43 +719,43 @@ int libfwnt_security_descriptor_copy_from_byte_stream( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, - "%s: unable to copy discretionary ACL from byte stream.", + "%s: unable to copy system ACL from byte stream.", function ); goto on_error; } } - if( system_acl_offset != 0 ) + if( discretionary_acl_offset != 0 ) { - if( ( system_acl_offset < 20 ) - || ( (size_t) system_acl_offset > byte_stream_size ) ) + if( ( discretionary_acl_offset < 20 ) + || ( (size_t) discretionary_acl_offset > byte_stream_size ) ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: system ACL offset value out of bounds.", + "%s: discretionary ACL offset value out of bounds.", function ); goto on_error; } if( libfwnt_access_control_list_initialize( - &( internal_security_descriptor->system_acl ), + &( internal_security_descriptor->discretionary_acl ), error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_INITIALIZE_FAILED, - "%s: unable to create system ACL.", + "%s: unable to create discretionary ACL.", function ); goto on_error; } if( libfwnt_access_control_list_copy_from_byte_stream( - internal_security_descriptor->system_acl, - &( byte_stream[ system_acl_offset ] ), - byte_stream_size - system_acl_offset, + internal_security_descriptor->discretionary_acl, + &( byte_stream[ discretionary_acl_offset ] ), + byte_stream_size - discretionary_acl_offset, LIBFWNT_ENDIAN_LITTLE, error ) != 1 ) { @@ -762,7 +763,7 @@ int libfwnt_security_descriptor_copy_from_byte_stream( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_COPY_FAILED, - "%s: unable to copy system ACL from byte stream.", + "%s: unable to copy discretionary ACL from byte stream.", function ); goto on_error; @@ -778,16 +779,16 @@ int libfwnt_security_descriptor_copy_from_byte_stream( sid_string ); } #endif - if( internal_security_descriptor->system_acl != NULL ) + if( internal_security_descriptor->discretionary_acl != NULL ) { libfwnt_internal_access_control_list_free( - (libfwnt_internal_access_control_list_t ** ) &( internal_security_descriptor->system_acl ), + (libfwnt_internal_access_control_list_t ** ) &( internal_security_descriptor->discretionary_acl ), NULL ); } - if( internal_security_descriptor->discretionary_acl != NULL ) + if( internal_security_descriptor->system_acl != NULL ) { libfwnt_internal_access_control_list_free( - (libfwnt_internal_access_control_list_t ** ) &( internal_security_descriptor->discretionary_acl ), + (libfwnt_internal_access_control_list_t ** ) &( internal_security_descriptor->system_acl ), NULL ); } if( internal_security_descriptor->group_sid != NULL ) diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_descriptor.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_descriptor.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_descriptor.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_descriptor.h index e8a2788..8c0da8d 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_descriptor.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_descriptor.h @@ -1,7 +1,7 @@ /* * Windows NT Security Descriptor functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -57,13 +57,13 @@ struct libfwnt_internal_security_descriptor */ libfwnt_security_identifier_t *group_sid; - /* The discretionary ACL - */ - libfwnt_access_control_list_t *discretionary_acl; - /* The system ACL */ libfwnt_access_control_list_t *system_acl; + + /* The discretionary ACL + */ + libfwnt_access_control_list_t *discretionary_acl; }; LIBFWNT_EXTERN \ diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_identifier.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_identifier.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_identifier.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_identifier.c index c960953..97dfb56 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_identifier.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_identifier.c @@ -1,7 +1,7 @@ /* * Windows NT Security Identifier (SID) functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_identifier.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_identifier.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_identifier.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_identifier.h index 3c54158..d1e691b 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_security_identifier.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_security_identifier.h @@ -1,7 +1,7 @@ /* * Windows NT Security Identifier (SID) functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_support.c b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_support.c rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_support.c index 4bfe293..f22d49e 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_support.c +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_support.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_support.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_support.h index 6675818..edda1ac 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_support.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_types.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_types.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_types.h index 605b7e1..06a2206 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_types.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_unused.h b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libfwnt/libfwnt_unused.h rename to libesedb-sys/libesedb-20230824/libfwnt/libfwnt_unused.h index b5ce799..b995e7e 100644 --- a/libesedb-sys/libesedb-20210424/libfwnt/libfwnt_unused.h +++ b/libesedb-sys/libesedb-20230824/libfwnt/libfwnt_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2022, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libmapidb/Makefile.am b/libesedb-sys/libesedb-20230824/libmapidb/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/Makefile.am rename to libesedb-sys/libesedb-20230824/libmapidb/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/libmapidb/Makefile.in b/libesedb-sys/libesedb-20230824/libmapidb/Makefile.in similarity index 95% rename from libesedb-sys/libesedb-20210424/libmapidb/Makefile.in rename to libesedb-sys/libesedb-20230824/libmapidb/Makefile.in index 078e830..216da29 100644 --- a/libesedb-sys/libesedb-20210424/libmapidb/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libmapidb/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libmapidb ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -198,8 +199,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -216,6 +215,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -231,8 +232,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -350,8 +353,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -558,6 +561,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -731,7 +735,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_database.c b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_database.c similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_database.c rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_database.c diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_database.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_database.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_database.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_database.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_definitions.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_definitions.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_definitions.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_definitions.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_error.c b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_error.c similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_error.c rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_error.c diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_error.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_error.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_error.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_error.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_extern.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_extern.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_extern.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_extern.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_folder.c b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_folder.c similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_folder.c rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_folder.c diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_folder.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_folder.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_folder.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_folder.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_libcerror.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_libcerror.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_libcerror.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_libcerror.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_libcnotify.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_libcnotify.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_libcnotify.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_libcnotify.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_support.c b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_support.c similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_support.c rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_support.c diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_support.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_support.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_support.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_support.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_types.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_types.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_types.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_types.h diff --git a/libesedb-sys/libesedb-20210424/libmapidb/libmapidb_unused.h b/libesedb-sys/libesedb-20230824/libmapidb/libmapidb_unused.h similarity index 100% rename from libesedb-sys/libesedb-20210424/libmapidb/libmapidb_unused.h rename to libesedb-sys/libesedb-20230824/libmapidb/libmapidb_unused.h diff --git a/libesedb-sys/libesedb-20210424/libuna/Makefile.am b/libesedb-sys/libesedb-20230824/libuna/Makefile.am similarity index 72% rename from libesedb-sys/libesedb-20210424/libuna/Makefile.am rename to libesedb-sys/libesedb-20230824/libuna/Makefile.am index 4d045a9..817f042 100644 --- a/libesedb-sys/libesedb-20210424/libuna/Makefile.am +++ b/libesedb-sys/libesedb-20230824/libuna/Makefile.am @@ -26,6 +26,24 @@ libuna_la_SOURCES = \ libuna_codepage_iso_8859_16.c libuna_codepage_iso_8859_16.h \ libuna_codepage_koi8_r.c libuna_codepage_koi8_r.h \ libuna_codepage_koi8_u.c libuna_codepage_koi8_u.h \ + libuna_codepage_mac_arabic.c libuna_codepage_mac_arabic.h \ + libuna_codepage_mac_celtic.c libuna_codepage_mac_celtic.h \ + libuna_codepage_mac_centraleurroman.c libuna_codepage_mac_centraleurroman.h \ + libuna_codepage_mac_croatian.c libuna_codepage_mac_croatian.h \ + libuna_codepage_mac_cyrillic.c libuna_codepage_mac_cyrillic.h \ + libuna_codepage_mac_dingbats.c libuna_codepage_mac_dingbats.h \ + libuna_codepage_mac_farsi.c libuna_codepage_mac_farsi.h \ + libuna_codepage_mac_gaelic.c libuna_codepage_mac_gaelic.h \ + libuna_codepage_mac_greek.c libuna_codepage_mac_greek.h \ + libuna_codepage_mac_icelandic.c libuna_codepage_mac_icelandic.h \ + libuna_codepage_mac_inuit.c libuna_codepage_mac_inuit.h \ + libuna_codepage_mac_roman.c libuna_codepage_mac_roman.h \ + libuna_codepage_mac_romanian.c libuna_codepage_mac_romanian.h \ + libuna_codepage_mac_russian.c libuna_codepage_mac_russian.h \ + libuna_codepage_mac_symbol.c libuna_codepage_mac_symbol.h \ + libuna_codepage_mac_thai.c libuna_codepage_mac_thai.h \ + libuna_codepage_mac_turkish.c libuna_codepage_mac_turkish.h \ + libuna_codepage_mac_ukrainian.c libuna_codepage_mac_ukrainian.h \ libuna_codepage_windows_874.c libuna_codepage_windows_874.h \ libuna_codepage_windows_932.c libuna_codepage_windows_932.h \ libuna_codepage_windows_936.c libuna_codepage_windows_936.h \ diff --git a/libesedb-sys/libesedb-20210424/libuna/Makefile.in b/libesedb-sys/libesedb-20230824/libuna/Makefile.in similarity index 83% rename from libesedb-sys/libesedb-20210424/libuna/Makefile.in rename to libesedb-sys/libesedb-20230824/libuna/Makefile.in index 4ef5b13..53cf719 100644 --- a/libesedb-sys/libesedb-20210424/libuna/Makefile.in +++ b/libesedb-sys/libesedb-20230824/libuna/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = libuna ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -138,7 +139,27 @@ am__libuna_la_SOURCES_DIST = libuna_base16_stream.c \ libuna_codepage_iso_8859_15.h libuna_codepage_iso_8859_16.c \ libuna_codepage_iso_8859_16.h libuna_codepage_koi8_r.c \ libuna_codepage_koi8_r.h libuna_codepage_koi8_u.c \ - libuna_codepage_koi8_u.h libuna_codepage_windows_874.c \ + libuna_codepage_koi8_u.h libuna_codepage_mac_arabic.c \ + libuna_codepage_mac_arabic.h libuna_codepage_mac_celtic.c \ + libuna_codepage_mac_celtic.h \ + libuna_codepage_mac_centraleurroman.c \ + libuna_codepage_mac_centraleurroman.h \ + libuna_codepage_mac_croatian.c libuna_codepage_mac_croatian.h \ + libuna_codepage_mac_cyrillic.c libuna_codepage_mac_cyrillic.h \ + libuna_codepage_mac_dingbats.c libuna_codepage_mac_dingbats.h \ + libuna_codepage_mac_farsi.c libuna_codepage_mac_farsi.h \ + libuna_codepage_mac_gaelic.c libuna_codepage_mac_gaelic.h \ + libuna_codepage_mac_greek.c libuna_codepage_mac_greek.h \ + libuna_codepage_mac_icelandic.c \ + libuna_codepage_mac_icelandic.h libuna_codepage_mac_inuit.c \ + libuna_codepage_mac_inuit.h libuna_codepage_mac_roman.c \ + libuna_codepage_mac_roman.h libuna_codepage_mac_romanian.c \ + libuna_codepage_mac_romanian.h libuna_codepage_mac_russian.c \ + libuna_codepage_mac_russian.h libuna_codepage_mac_symbol.c \ + libuna_codepage_mac_symbol.h libuna_codepage_mac_thai.c \ + libuna_codepage_mac_thai.h libuna_codepage_mac_turkish.c \ + libuna_codepage_mac_turkish.h libuna_codepage_mac_ukrainian.c \ + libuna_codepage_mac_ukrainian.h libuna_codepage_windows_874.c \ libuna_codepage_windows_874.h libuna_codepage_windows_932.c \ libuna_codepage_windows_932.h libuna_codepage_windows_936.c \ libuna_codepage_windows_936.h libuna_codepage_windows_949.c \ @@ -184,6 +205,24 @@ am__libuna_la_SOURCES_DIST = libuna_base16_stream.c \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_16.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_koi8_r.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_koi8_u.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_arabic.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_celtic.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_centraleurroman.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_croatian.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_cyrillic.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_dingbats.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_farsi.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_gaelic.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_greek.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_icelandic.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_inuit.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_roman.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_romanian.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_russian.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_symbol.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_thai.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_turkish.lo \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_ukrainian.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_874.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_932.lo \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_936.lo \ @@ -249,6 +288,24 @@ am__depfiles_remade = ./$(DEPDIR)/libuna_base16_stream.Plo \ ./$(DEPDIR)/libuna_codepage_iso_8859_9.Plo \ ./$(DEPDIR)/libuna_codepage_koi8_r.Plo \ ./$(DEPDIR)/libuna_codepage_koi8_u.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_arabic.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_celtic.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_centraleurroman.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_croatian.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_cyrillic.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_dingbats.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_farsi.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_gaelic.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_greek.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_icelandic.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_inuit.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_roman.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_romanian.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_russian.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_symbol.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_thai.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_turkish.Plo \ + ./$(DEPDIR)/libuna_codepage_mac_ukrainian.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1250.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1251.Plo \ ./$(DEPDIR)/libuna_codepage_windows_1252.Plo \ @@ -317,8 +374,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -335,6 +390,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -350,8 +407,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -469,8 +528,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -677,6 +736,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -711,6 +771,24 @@ top_srcdir = @top_srcdir@ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_iso_8859_16.c libuna_codepage_iso_8859_16.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_koi8_r.c libuna_codepage_koi8_r.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_koi8_u.c libuna_codepage_koi8_u.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_arabic.c libuna_codepage_mac_arabic.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_celtic.c libuna_codepage_mac_celtic.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_centraleurroman.c libuna_codepage_mac_centraleurroman.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_croatian.c libuna_codepage_mac_croatian.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_cyrillic.c libuna_codepage_mac_cyrillic.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_dingbats.c libuna_codepage_mac_dingbats.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_farsi.c libuna_codepage_mac_farsi.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_gaelic.c libuna_codepage_mac_gaelic.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_greek.c libuna_codepage_mac_greek.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_icelandic.c libuna_codepage_mac_icelandic.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_inuit.c libuna_codepage_mac_inuit.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_roman.c libuna_codepage_mac_roman.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_romanian.c libuna_codepage_mac_romanian.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_russian.c libuna_codepage_mac_russian.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_symbol.c libuna_codepage_mac_symbol.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_thai.c libuna_codepage_mac_thai.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_turkish.c libuna_codepage_mac_turkish.h \ +@HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_mac_ukrainian.c libuna_codepage_mac_ukrainian.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_874.c libuna_codepage_windows_874.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_932.c libuna_codepage_windows_932.h \ @HAVE_LOCAL_LIBUNA_TRUE@ libuna_codepage_windows_936.c libuna_codepage_windows_936.h \ @@ -819,6 +897,24 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_iso_8859_9.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_koi8_r.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_koi8_u.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_arabic.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_celtic.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_centraleurroman.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_croatian.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_cyrillic.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_dingbats.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_farsi.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_gaelic.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_greek.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_icelandic.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_inuit.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_roman.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_romanian.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_russian.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_symbol.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_thai.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_turkish.Plo@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_mac_ukrainian.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1250.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1251.Plo@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/libuna_codepage_windows_1252.Plo@am__quote@ # am--include-marker @@ -930,7 +1026,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -1067,6 +1162,24 @@ maintainer-clean: maintainer-clean-am -rm -f ./$(DEPDIR)/libuna_codepage_iso_8859_9.Plo -rm -f ./$(DEPDIR)/libuna_codepage_koi8_r.Plo -rm -f ./$(DEPDIR)/libuna_codepage_koi8_u.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_arabic.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_celtic.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_centraleurroman.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_croatian.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_cyrillic.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_dingbats.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_farsi.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_gaelic.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_greek.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_icelandic.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_inuit.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_roman.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_romanian.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_russian.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_symbol.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_thai.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_turkish.Plo + -rm -f ./$(DEPDIR)/libuna_codepage_mac_ukrainian.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1250.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1251.Plo -rm -f ./$(DEPDIR)/libuna_codepage_windows_1252.Plo diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_base16_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_base16_stream.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_base16_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_base16_stream.c index 2db8205..1bde787 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_base16_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_base16_stream.c @@ -1,7 +1,7 @@ /* * Base16 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_base16_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_base16_stream.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_base16_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_base16_stream.h index 637cdaf..90c4ac5 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_base16_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_base16_stream.h @@ -1,7 +1,7 @@ /* * Base16 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_base32_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_base32_stream.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_base32_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_base32_stream.c index 8650e0d..f079851 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_base32_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_base32_stream.c @@ -1,7 +1,7 @@ /* * Base32 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_base32_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_base32_stream.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libuna/libuna_base32_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_base32_stream.h index f7dd0b3..457a0a2 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_base32_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_base32_stream.h @@ -1,7 +1,7 @@ /* * Base32 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_base64_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_base64_stream.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_base64_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_base64_stream.c index 28ecb23..98ca83b 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_base64_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_base64_stream.c @@ -1,7 +1,7 @@ /* * Base64 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_base64_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_base64_stream.h similarity index 98% rename from libesedb-sys/libesedb-20210424/libuna/libuna_base64_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_base64_stream.h index c1f2b56..9336817 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_base64_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_base64_stream.h @@ -1,7 +1,7 @@ /* * Base64 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_byte_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_byte_stream.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_byte_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_byte_stream.c index 47231d3..51fce6e 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_byte_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_byte_stream.c @@ -1,7 +1,7 @@ /* * Byte stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_byte_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_byte_stream.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_byte_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_byte_stream.h index f48b98a..296dab8 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_byte_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_byte_stream.h @@ -1,7 +1,7 @@ /* * Byte stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_10.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_10.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_10.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_10.c index fa434b6..af947af 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_10.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_10.c @@ -1,7 +1,7 @@ /* * ISO 8859-10 codepage (Nordic) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_10.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_10.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_10.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_10.h index 6424484..1029aee 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_10.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_10.h @@ -1,7 +1,7 @@ /* * ISO 8859-10 codepage (Nordic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_13.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_13.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_13.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_13.c index c78b917..a109d9b 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_13.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_13.c @@ -1,7 +1,7 @@ /* * ISO 8859-13 codepage (Baltic) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_13.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_13.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_13.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_13.h index 51a8bd3..1abdae4 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_13.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_13.h @@ -1,7 +1,7 @@ /* * ISO 8859-13 codepage (Baltic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_14.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_14.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_14.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_14.c index c7990e9..20118ea 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_14.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_14.c @@ -1,7 +1,7 @@ /* * ISO 8859-14 codepage (Celtic) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_14.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_14.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_14.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_14.h index 72b8a12..a6fa2dd 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_14.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_14.h @@ -1,7 +1,7 @@ /* * ISO 8859-14 codepage (Celtic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_15.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_15.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_15.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_15.c index 33d293e..6c5ac96 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_15.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_15.c @@ -1,7 +1,7 @@ /* * ISO 8859-15 codepage (Latin 9) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_15.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_15.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_15.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_15.h index 6ffdba7..e23b5de 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_15.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_15.h @@ -1,7 +1,7 @@ /* * ISO 8859-15 codepage (Latin 9) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_16.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_16.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_16.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_16.c index 4e41012..50edcbb 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_16.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_16.c @@ -1,7 +1,7 @@ /* * ISO 8859-16 codepage (Latin 10) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_16.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_16.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_16.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_16.h index 5dc30ba..6a54035 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_16.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_16.h @@ -1,7 +1,7 @@ /* * ISO 8859-16 codepage (Latin 10) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_2.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_2.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_2.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_2.c index fb40683..381148e 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_2.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_2.c @@ -1,7 +1,7 @@ /* * ISO 8859-2 codepage (Central European) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_2.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_2.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_2.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_2.h index 6e104c8..3d45bc1 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_2.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_2.h @@ -1,7 +1,7 @@ /* * ISO 8859-2 codepage (Central European) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_3.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_3.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_3.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_3.c index 3428a34..a5576f4 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_3.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_3.c @@ -1,7 +1,7 @@ /* * ISO 8859-3 codepage (Latin 3) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_3.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_3.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_3.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_3.h index dcf3d74..ef392a1 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_3.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_3.h @@ -1,7 +1,7 @@ /* * ISO 8859-3 codepage (Latin 3) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_4.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_4.c similarity index 98% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_4.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_4.c index a780c6d..4ef964f 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_4.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_4.c @@ -1,7 +1,7 @@ /* * ISO 8859-4 codepage (Baltic) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_4.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_4.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_4.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_4.h index 8c83565..6d6549e 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_4.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_4.h @@ -1,7 +1,7 @@ /* * ISO 8859-4 codepage (Baltic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_5.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_5.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_5.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_5.c index 5acf666..a32b98f 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_5.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_5.c @@ -1,7 +1,7 @@ /* * ISO 8859-5 codepage (Cyrillic) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_5.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_5.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_5.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_5.h index e6d3b14..86fca08 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_5.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_5.h @@ -1,7 +1,7 @@ /* * ISO 8859-5 codepage (Cyrillic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_6.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_6.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_6.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_6.c index 50b7a03..9ae0b32 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_6.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_6.c @@ -1,7 +1,7 @@ /* * ISO 8859-6 codepage (Arabic) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_6.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_6.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_6.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_6.h index ce4291c..c6e8300 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_6.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_6.h @@ -1,7 +1,7 @@ /* * ISO 8859-6 codepage (Arabic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_7.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_7.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_7.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_7.c index bdfbdc8..cbb0d3c 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_7.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_7.c @@ -1,7 +1,7 @@ /* * ISO 8859-7 codepage (Greek) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_7.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_7.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_7.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_7.h index 21d1d0a..2473114 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_7.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_7.h @@ -1,7 +1,7 @@ /* * ISO 8859-7 codepage (Greek) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_8.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_8.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_8.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_8.c index 5f7245b..de0d482 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_8.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_8.c @@ -1,7 +1,7 @@ /* * ISO 8859-8 codepage (Hebrew) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_8.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_8.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_8.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_8.h index 8e4c781..11f1f62 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_8.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_8.h @@ -1,7 +1,7 @@ /* * ISO 8859-8 codepage (Hebrew) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_9.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_9.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_9.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_9.c index de918c3..99703c2 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_9.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_9.c @@ -1,7 +1,7 @@ /* * ISO 8859-9 codepage (Turkish) function * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_9.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_9.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_9.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_9.h index 07bd9ab..eeab21d 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_iso_8859_9.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_iso_8859_9.h @@ -1,7 +1,7 @@ /* * ISO 8859-9 codepage (Turkish) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_r.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_r.c new file mode 100644 index 0000000..c53c03a --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_r.c @@ -0,0 +1,392 @@ +/* + * KOI8-R codepage (Russian Cyrillic) function + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_koi8_r.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the KOI8-R codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_koi8_r_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524, + 0x252c, 0x2534, 0x253c, 0x2580, 0x2584, 0x2588, 0x258c, 0x2590, + 0x2591, 0x2592, 0x2593, 0x2320, 0x25a0, 0x2219, 0x221a, 0x2248, + 0x2264, 0x2265, 0x00a0, 0x2321, 0x00b0, 0x00b2, 0x00b7, 0x00f7, + 0x2550, 0x2551, 0x2552, 0x0451, 0x2553, 0x2554, 0x2555, 0x2556, + 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x255c, 0x255d, 0x255e, + 0x255f, 0x2560, 0x2561, 0x0401, 0x2562, 0x2563, 0x2564, 0x2565, + 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x256b, 0x256c, 0x00a9, + 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, + 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, + 0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, + 0x044c, 0x044b, 0x0437, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a, + 0x042e, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, + 0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, + 0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, + 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a +}; + +/* Unicode to ASCII character lookup tables for the KOI8-R codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x0410[ 64 ] = { + 0xe1, 0xe2, 0xf7, 0xe7, 0xe4, 0xe5, 0xf6, 0xfa, + 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, + 0xf2, 0xf3, 0xf4, 0xf5, 0xe6, 0xe8, 0xe3, 0xfe, + 0xfb, 0xfd, 0xff, 0xf9, 0xf8, 0xfc, 0xe0, 0xf1, + 0xc1, 0xc2, 0xd7, 0xc7, 0xc4, 0xc5, 0xd6, 0xda, + 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, + 0xd2, 0xd3, 0xd4, 0xd5, 0xc6, 0xc8, 0xc3, 0xde, + 0xdb, 0xdd, 0xdf, 0xd9, 0xd8, 0xdc, 0xc0, 0xd1 +}; + +const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x2550[ 32 ] = { + 0xa0, 0xa1, 0xa2, 0xa4, 0xa5, 0xa6, 0xa7, 0xa8, + 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, 0xb0, + 0xb1, 0xb2, 0xb4, 0xb5, 0xb6, 0xb7, 0xb8, 0xb9, + 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a KOI8-R encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_koi8_r_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_koi8_r_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_koi8_r_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a KOI8-R encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_koi8_r_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_koi8_r_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0410 ) + && ( unicode_character < 0x0450 ) ) + { + unicode_character -= 0x0410; + + byte_stream_value = libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x0410[ unicode_character ]; + } + else if( ( unicode_character >= 0x2550 ) + && ( unicode_character < 0x2570 ) ) + { + unicode_character -= 0x2550; + + byte_stream_value = libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x2550[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00a0: + byte_stream_value = 0x9a; + break; + + case 0x00a9: + byte_stream_value = 0xbf; + break; + + case 0x00b0: + byte_stream_value = 0x9c; + break; + + case 0x00b2: + byte_stream_value = 0x9d; + break; + + case 0x00b7: + byte_stream_value = 0x9e; + break; + + case 0x00f7: + byte_stream_value = 0x9f; + break; + + case 0x0401: + byte_stream_value = 0xb3; + break; + + case 0x0451: + byte_stream_value = 0xa3; + break; + + case 0x2219: + byte_stream_value = 0x95; + break; + + case 0x221a: + byte_stream_value = 0x96; + break; + + case 0x2248: + byte_stream_value = 0x97; + break; + + case 0x2264: + byte_stream_value = 0x98; + break; + + case 0x2265: + byte_stream_value = 0x99; + break; + + case 0x2320: + byte_stream_value = 0x93; + break; + + case 0x2321: + byte_stream_value = 0x9b; + break; + + case 0x2500: + byte_stream_value = 0x80; + break; + + case 0x2502: + byte_stream_value = 0x81; + break; + + case 0x250c: + byte_stream_value = 0x82; + break; + + case 0x2510: + byte_stream_value = 0x83; + break; + + case 0x2514: + byte_stream_value = 0x84; + break; + + case 0x2518: + byte_stream_value = 0x85; + break; + + case 0x251c: + byte_stream_value = 0x86; + break; + + case 0x2524: + byte_stream_value = 0x87; + break; + + case 0x252c: + byte_stream_value = 0x88; + break; + + case 0x2534: + byte_stream_value = 0x89; + break; + + case 0x253c: + byte_stream_value = 0x8a; + break; + + case 0x2580: + byte_stream_value = 0x8b; + break; + + case 0x2584: + byte_stream_value = 0x8c; + break; + + case 0x2588: + byte_stream_value = 0x8d; + break; + + case 0x258c: + byte_stream_value = 0x8e; + break; + + case 0x2590: + byte_stream_value = 0x8f; + break; + + case 0x2591: + byte_stream_value = 0x90; + break; + + case 0x2592: + byte_stream_value = 0x91; + break; + + case 0x2593: + byte_stream_value = 0x92; + break; + + case 0x25a0: + byte_stream_value = 0x94; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_r.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_r.h similarity index 64% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_r.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_r.h index 037d852..f79b1ef 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_r.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_r.h @@ -1,7 +1,7 @@ /* * KOI8-R codepage (Russian Cyrillic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,20 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_koi8_r_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x0410[ 64 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x2550[ 32 ]; +int libuna_codepage_koi8_r_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_koi8_r_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_u.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_u.c new file mode 100644 index 0000000..0f0291b --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_u.c @@ -0,0 +1,424 @@ +/* + * KOI8-U codepage (Ukrainian Cyrillic) function + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_koi8_u.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the KOI8-U codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_koi8_u_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x2500, 0x2502, 0x250c, 0x2510, 0x2514, 0x2518, 0x251c, 0x2524, + 0x252c, 0x2534, 0x253c, 0x2580, 0x2584, 0x2588, 0x258c, 0x2590, + 0x2591, 0x2592, 0x2593, 0x2320, 0x25a0, 0x2219, 0x221a, 0x2248, + 0x2264, 0x2265, 0x00a0, 0x2321, 0x00b0, 0x00b2, 0x00b7, 0x00f7, + 0x2550, 0x2551, 0x2552, 0x0451, 0x0454, 0x2554, 0x0456, 0x0457, + 0x2557, 0x2558, 0x2559, 0x255a, 0x255b, 0x0491, 0x255d, 0x255e, + 0x255f, 0x2560, 0x2561, 0x0401, 0x0404, 0x2563, 0x0406, 0x0407, + 0x2566, 0x2567, 0x2568, 0x2569, 0x256a, 0x0490, 0x256c, 0x00a9, + 0x044e, 0x0430, 0x0431, 0x0446, 0x0434, 0x0435, 0x0444, 0x0433, + 0x0445, 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, + 0x043f, 0x044f, 0x0440, 0x0441, 0x0442, 0x0443, 0x0436, 0x0432, + 0x044c, 0x044b, 0x0437, 0x0448, 0x044d, 0x0449, 0x0447, 0x044a, + 0x042e, 0x0410, 0x0411, 0x0426, 0x0414, 0x0415, 0x0424, 0x0413, + 0x0425, 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, + 0x041f, 0x042f, 0x0420, 0x0421, 0x0422, 0x0423, 0x0416, 0x0412, + 0x042c, 0x042b, 0x0417, 0x0428, 0x042d, 0x0429, 0x0427, 0x042a +}; + +/* Unicode to ASCII character lookup tables for the KOI8-U codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x0410[ 64 ] = { + 0xe1, 0xe2, 0xf7, 0xe7, 0xe4, 0xe5, 0xf6, 0xfa, + 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, 0xf0, + 0xf2, 0xf3, 0xf4, 0xf5, 0xe6, 0xe8, 0xe3, 0xfe, + 0xfb, 0xfd, 0xff, 0xf9, 0xf8, 0xfc, 0xe0, 0xf1, + 0xc1, 0xc2, 0xd7, 0xc7, 0xc4, 0xc5, 0xd6, 0xda, + 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, 0xd0, + 0xd2, 0xd3, 0xd4, 0xd5, 0xc6, 0xc8, 0xc3, 0xde, + 0xdb, 0xdd, 0xdf, 0xd9, 0xd8, 0xdc, 0xc0, 0xd1 +}; + +const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x2550[ 32 ] = { + 0xa0, 0xa1, 0xa2, 0x1a, 0xa5, 0x1a, 0x1a, 0xa8, + 0xa9, 0xaa, 0xab, 0xac, 0x1a, 0xae, 0xaf, 0xb0, + 0xb1, 0xb2, 0x1a, 0xb5, 0x1a, 0x1a, 0xb8, 0xb9, + 0xba, 0xbb, 0xbc, 0x1a, 0xbe, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a KOI8-U encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_koi8_u_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_koi8_u_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_koi8_u_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a KOI8-U encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_koi8_u_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_koi8_u_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0410 ) + && ( unicode_character < 0x0450 ) ) + { + unicode_character -= 0x0410; + + byte_stream_value = libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x0410[ unicode_character ]; + } + else if( ( unicode_character >= 0x2550 ) + && ( unicode_character < 0x2570 ) ) + { + unicode_character -= 0x2550; + + byte_stream_value = libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x2550[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00a0: + byte_stream_value = 0x9a; + break; + + case 0x00a9: + byte_stream_value = 0xbf; + break; + + case 0x00b0: + byte_stream_value = 0x9c; + break; + + case 0x00b2: + byte_stream_value = 0x9d; + break; + + case 0x00b7: + byte_stream_value = 0x9e; + break; + + case 0x00f7: + byte_stream_value = 0x9f; + break; + + case 0x0401: + byte_stream_value = 0xb3; + break; + + case 0x0404: + byte_stream_value = 0xb4; + break; + + case 0x0406: + byte_stream_value = 0xb6; + break; + + case 0x0407: + byte_stream_value = 0xb7; + break; + + case 0x0451: + byte_stream_value = 0xa3; + break; + + case 0x0454: + byte_stream_value = 0xa4; + break; + + case 0x0456: + byte_stream_value = 0xa6; + break; + + case 0x0457: + byte_stream_value = 0xa7; + break; + + case 0x0490: + byte_stream_value = 0xbd; + break; + + case 0x0491: + byte_stream_value = 0xad; + break; + + case 0x2219: + byte_stream_value = 0x95; + break; + + case 0x221a: + byte_stream_value = 0x96; + break; + + case 0x2248: + byte_stream_value = 0x97; + break; + + case 0x2264: + byte_stream_value = 0x98; + break; + + case 0x2265: + byte_stream_value = 0x99; + break; + + case 0x2320: + byte_stream_value = 0x93; + break; + + case 0x2321: + byte_stream_value = 0x9b; + break; + + case 0x2500: + byte_stream_value = 0x80; + break; + + case 0x2502: + byte_stream_value = 0x81; + break; + + case 0x250c: + byte_stream_value = 0x82; + break; + + case 0x2510: + byte_stream_value = 0x83; + break; + + case 0x2514: + byte_stream_value = 0x84; + break; + + case 0x2518: + byte_stream_value = 0x85; + break; + + case 0x251c: + byte_stream_value = 0x86; + break; + + case 0x2524: + byte_stream_value = 0x87; + break; + + case 0x252c: + byte_stream_value = 0x88; + break; + + case 0x2534: + byte_stream_value = 0x89; + break; + + case 0x253c: + byte_stream_value = 0x8a; + break; + + case 0x2580: + byte_stream_value = 0x8b; + break; + + case 0x2584: + byte_stream_value = 0x8c; + break; + + case 0x2588: + byte_stream_value = 0x8d; + break; + + case 0x258c: + byte_stream_value = 0x8e; + break; + + case 0x2590: + byte_stream_value = 0x8f; + break; + + case 0x2591: + byte_stream_value = 0x90; + break; + + case 0x2592: + byte_stream_value = 0x91; + break; + + case 0x2593: + byte_stream_value = 0x92; + break; + + case 0x25a0: + byte_stream_value = 0x94; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_u.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_u.h similarity index 64% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_u.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_u.h index ac149b1..66f7639 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_koi8_u.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_koi8_u.h @@ -1,7 +1,7 @@ /* * KOI8-U codepage (Ukrainian Cyrillic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,20 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_koi8_u_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x0410[ 64 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x2550[ 32 ]; +int libuna_codepage_koi8_u_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_koi8_u_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_arabic.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_arabic.c new file mode 100644 index 0000000..a024d0b --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_arabic.c @@ -0,0 +1,352 @@ +/* + * MacArabic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_arabic.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacArabic codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_arabic_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00a0, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x06ba, 0x00ab, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x2026, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00bb, 0x00f4, 0x00f6, 0x00f7, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x066a, 0x0026, 0x0027, + 0x0028, 0x0029, 0x002a, 0x002b, 0x060c, 0x002d, 0x002e, 0x002f, + 0x0660, 0x0661, 0x0662, 0x0663, 0x0664, 0x0665, 0x0666, 0x0667, + 0x0668, 0x0669, 0x003a, 0x061b, 0x003c, 0x003d, 0x003e, 0x061f, + 0x274a, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, + 0x0628, 0x0629, 0x062a, 0x062b, 0x062c, 0x062d, 0x062e, 0x062f, + 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x0637, + 0x0638, 0x0639, 0x063a, 0x005b, 0x005c, 0x005d, 0x005e, 0x005f, + 0x0640, 0x0641, 0x0642, 0x0643, 0x0644, 0x0645, 0x0646, 0x0647, + 0x0648, 0x0649, 0x064a, 0x064b, 0x064c, 0x064d, 0x064e, 0x064f, + 0x0650, 0x0651, 0x0652, 0x067e, 0x0679, 0x0686, 0x06d5, 0x06a4, + 0x06af, 0x0688, 0x0691, 0x007b, 0x007c, 0x007d, 0x0698, 0x06d2 +}; + +/* Unicode to ASCII character lookup tables for the MacArabic codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_arabic_unicode_to_byte_stream_base_0x0020[ 32 ] = { + 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0x25, 0xa6, 0xa7, + 0xa8, 0xa9, 0xaa, 0xab, 0x2c, 0xad, 0xae, 0xaf, + 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, + 0x38, 0x39, 0xba, 0x3b, 0xbc, 0xbd, 0xbe, 0x3f +}; + +const uint8_t libuna_codepage_mac_arabic_unicode_to_byte_stream_base_0x00a0[ 96 ] = { + 0x81, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x8c, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x98, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x80, 0x1a, 0x1a, 0x82, + 0x1a, 0x83, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x84, 0x1a, 0x1a, 0x1a, 0x1a, 0x85, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x86, 0x1a, 0x1a, 0x1a, + 0x88, 0x87, 0x89, 0x1a, 0x8a, 0x1a, 0x1a, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x1a, 0x92, 0x94, 0x95, + 0x1a, 0x96, 0x1a, 0x97, 0x99, 0x1a, 0x9a, 0x9b, + 0x1a, 0x9d, 0x9c, 0x9e, 0x9f, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_arabic_unicode_to_byte_stream_base_0x0608[ 184 ] = { + 0x1a, 0x1a, 0x1a, 0x1a, 0xac, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0xbf, + 0x1a, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, + 0xb8, 0xb9, 0xa5, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xf4, 0x1a, 0x1a, 0x1a, 0x1a, 0xf3, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xf5, 0x1a, + 0xf9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xfe, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0xf7, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xf8, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x8b, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacArabic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_arabic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_arabic_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_arabic_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacArabic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_arabic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_arabic_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0020 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0020 ) + && ( unicode_character < 0x0040 ) ) + { + unicode_character -= 0x0020; + + byte_stream_value = libuna_codepage_mac_arabic_unicode_to_byte_stream_base_0x0020[ unicode_character ]; + } + else if( ( unicode_character >= 0x0040 ) + && ( unicode_character < 0x005b ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0060 ) + && ( unicode_character < 0x007b ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x007e ) + && ( unicode_character < 0x0080 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_arabic_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0608 ) + && ( unicode_character < 0x06c0 ) ) + { + unicode_character -= 0x0608; + + byte_stream_value = libuna_codepage_mac_arabic_unicode_to_byte_stream_base_0x0608[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x005b: + byte_stream_value = 0xdb; + break; + + case 0x005c: + byte_stream_value = 0xdc; + break; + + case 0x005d: + byte_stream_value = 0xdd; + break; + + case 0x005e: + byte_stream_value = 0xde; + break; + + case 0x005f: + byte_stream_value = 0xdf; + break; + + case 0x007b: + byte_stream_value = 0xfb; + break; + + case 0x007c: + byte_stream_value = 0xfc; + break; + + case 0x007d: + byte_stream_value = 0xfd; + break; + + case 0x06d2: + byte_stream_value = 0xff; + break; + + case 0x06d5: + byte_stream_value = 0xf6; + break; + + case 0x2026: + byte_stream_value = 0x93; + break; + + case 0x274a: + byte_stream_value = 0xc0; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_arabic.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_arabic.h new file mode 100644 index 0000000..68abe04 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_arabic.h @@ -0,0 +1,54 @@ +/* + * MacArabic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_ARABIC_H ) +#define _LIBUNA_CODEPAGE_MAC_ARABIC_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_arabic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_arabic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_ARABIC_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_celtic.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_celtic.c new file mode 100644 index 0000000..f502d3a --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_celtic.c @@ -0,0 +1,395 @@ +/* + * MacCeltic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_celtic.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacCeltic codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_celtic_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00c5, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x00e3, 0x00e5, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x00ec, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00f2, 0x00f4, 0x00f6, 0x00f5, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x2020, 0x00b0, 0x00a2, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x00df, + 0x00ae, 0x00a9, 0x2122, 0x00b4, 0x00a8, 0x2260, 0x00c6, 0x00d8, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x00a5, 0x00b5, 0x2202, 0x2211, + 0x220f, 0x03c0, 0x222b, 0x00aa, 0x00ba, 0x03a9, 0x00e6, 0x00f8, + 0x00bf, 0x00a1, 0x00ac, 0x221a, 0x0192, 0x2248, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x00c0, 0x00c3, 0x00d5, 0x0152, 0x0153, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x25ca, + 0x00ff, 0x0178, 0x2044, 0x20ac, 0x2039, 0x203a, 0x0176, 0x0177, + 0x2021, 0x00b7, 0x1ef2, 0x1ef3, 0x2030, 0x00c2, 0x00ca, 0x00c1, + 0x00cb, 0x00c8, 0x00cd, 0x00ce, 0x00cf, 0x00cc, 0x00d3, 0x00d4, + 0x2663, 0x00d2, 0x00da, 0x00db, 0x00d9, 0x0131, 0x00dd, 0x00fd, + 0x0174, 0x0175, 0x1e84, 0x1e85, 0x1e80, 0x1e81, 0x1e82, 0x1e83 +}; + +/* Unicode to ASCII character lookup tables for the MacCeltic codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_celtic_unicode_to_byte_stream_base_0x00a0[ 96 ] = { + 0xca, 0xc1, 0xa2, 0xa3, 0x1a, 0xb4, 0x1a, 0xa4, + 0xac, 0xa9, 0xbb, 0xc7, 0xc2, 0x1a, 0xa8, 0x1a, + 0xa1, 0xb1, 0x1a, 0x1a, 0xab, 0xb5, 0xa6, 0xe1, + 0x1a, 0x1a, 0xbc, 0xc8, 0x1a, 0x1a, 0x1a, 0xc0, + 0xcb, 0xe7, 0xe5, 0xcc, 0x80, 0x81, 0xae, 0x82, + 0xe9, 0x83, 0xe6, 0xe8, 0xed, 0xea, 0xeb, 0xec, + 0x1a, 0x84, 0xf1, 0xee, 0xef, 0xcd, 0x85, 0x1a, + 0xaf, 0xf4, 0xf2, 0xf3, 0x86, 0xf6, 0x1a, 0xa7, + 0x88, 0x87, 0x89, 0x8b, 0x8a, 0x8c, 0xbe, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, + 0x1a, 0x96, 0x98, 0x97, 0x99, 0x9b, 0x9a, 0xd6, + 0xbf, 0x9d, 0x9c, 0x9e, 0x9f, 0xf7, 0x1a, 0xd8 +}; + +const uint8_t libuna_codepage_mac_celtic_unicode_to_byte_stream_base_0x2010[ 56 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0x1a, 0x1a, 0xd2, 0xd3, 0x1a, 0x1a, + 0xa0, 0xe0, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xdc, 0xdd, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0xda, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacCeltic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_celtic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_celtic_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_celtic_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacCeltic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_celtic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_celtic_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_celtic_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2048 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_celtic_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0131: + byte_stream_value = 0xf5; + break; + + case 0x0152: + byte_stream_value = 0xce; + break; + + case 0x0153: + byte_stream_value = 0xcf; + break; + + case 0x0174: + byte_stream_value = 0xf8; + break; + + case 0x0175: + byte_stream_value = 0xf9; + break; + + case 0x0176: + byte_stream_value = 0xde; + break; + + case 0x0177: + byte_stream_value = 0xdf; + break; + + case 0x0178: + byte_stream_value = 0xd9; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x03a9: + byte_stream_value = 0xbd; + break; + + case 0x03c0: + byte_stream_value = 0xb9; + break; + + case 0x1e80: + byte_stream_value = 0xfc; + break; + + case 0x1e81: + byte_stream_value = 0xfd; + break; + + case 0x1e82: + byte_stream_value = 0xfe; + break; + + case 0x1e83: + byte_stream_value = 0xff; + break; + + case 0x1e84: + byte_stream_value = 0xfa; + break; + + case 0x1e85: + byte_stream_value = 0xfb; + break; + + case 0x1ef2: + byte_stream_value = 0xe2; + break; + + case 0x1ef3: + byte_stream_value = 0xe3; + break; + + case 0x20ac: + byte_stream_value = 0xdb; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2202: + byte_stream_value = 0xb6; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x220f: + byte_stream_value = 0xb8; + break; + + case 0x2211: + byte_stream_value = 0xb7; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x222b: + byte_stream_value = 0xba; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x25ca: + byte_stream_value = 0xd7; + break; + + case 0x2663: + byte_stream_value = 0xf0; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_celtic.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_celtic.h new file mode 100644 index 0000000..b11f694 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_celtic.h @@ -0,0 +1,54 @@ +/* + * MacCeltic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_CELTIC_H ) +#define _LIBUNA_CODEPAGE_MAC_CELTIC_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_celtic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_celtic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_CELTIC_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_centraleurroman.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_centraleurroman.c new file mode 100644 index 0000000..62a8ce1 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_centraleurroman.c @@ -0,0 +1,319 @@ +/* + * MacCentralEurRoman codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_centraleurroman.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacCentralEurRoman codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_centraleurroman_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x0100, 0x0101, 0x00c9, 0x0104, 0x00d6, 0x00dc, 0x00e1, + 0x0105, 0x010c, 0x00e4, 0x010d, 0x0106, 0x0107, 0x00e9, 0x0179, + 0x017a, 0x010e, 0x00ed, 0x010f, 0x0112, 0x0113, 0x0116, 0x00f3, + 0x0117, 0x00f4, 0x00f6, 0x00f5, 0x00fa, 0x011a, 0x011b, 0x00fc, + 0x2020, 0x00b0, 0x0118, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x00df, + 0x00ae, 0x00a9, 0x2122, 0x0119, 0x00a8, 0x2260, 0x0123, 0x012e, + 0x012f, 0x012a, 0x2264, 0x2265, 0x012b, 0x0136, 0x2202, 0x2211, + 0x0142, 0x013b, 0x013c, 0x013d, 0x013e, 0x0139, 0x013a, 0x0145, + 0x0146, 0x0143, 0x00ac, 0x221a, 0x0144, 0x0147, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x0148, 0x0150, 0x00d5, 0x0151, 0x014c, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x25ca, + 0x014d, 0x0154, 0x0155, 0x0158, 0x2039, 0x203a, 0x0159, 0x0156, + 0x0157, 0x0160, 0x201a, 0x201e, 0x0161, 0x015a, 0x015b, 0x00c1, + 0x0164, 0x0165, 0x00cd, 0x017d, 0x017e, 0x016a, 0x00d3, 0x00d4, + 0x016b, 0x016e, 0x00da, 0x016f, 0x0170, 0x0171, 0x0172, 0x0173, + 0x00dd, 0x00fd, 0x0137, 0x017b, 0x0141, 0x017c, 0x0122, 0x02c7 +}; + +/* Unicode to ASCII character lookup tables for the MacCentralEurRoman codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_centraleurroman_unicode_to_byte_stream_base_0x00a0[ 224 ] = { + 0xca, 0x1a, 0x1a, 0xa3, 0x1a, 0x1a, 0x1a, 0xa4, + 0xac, 0xa9, 0x1a, 0xc7, 0xc2, 0x1a, 0xa8, 0x1a, + 0xa1, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xa6, 0x1a, + 0x1a, 0x1a, 0x1a, 0xc8, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xe7, 0x1a, 0x1a, 0x80, 0x1a, 0x1a, 0x1a, + 0x1a, 0x83, 0x1a, 0x1a, 0x1a, 0xea, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0xee, 0xef, 0xcd, 0x85, 0x1a, + 0x1a, 0x1a, 0xf2, 0x1a, 0x86, 0xf8, 0x1a, 0xa7, + 0x1a, 0x87, 0x1a, 0x1a, 0x8a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x8e, 0x1a, 0x1a, 0x1a, 0x92, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x97, 0x99, 0x9b, 0x9a, 0xd6, + 0x1a, 0x1a, 0x9c, 0x1a, 0x9f, 0xf9, 0x1a, 0x1a, + 0x81, 0x82, 0x1a, 0x1a, 0x84, 0x88, 0x8c, 0x8d, + 0x1a, 0x1a, 0x1a, 0x1a, 0x89, 0x8b, 0x91, 0x93, + 0x1a, 0x1a, 0x94, 0x95, 0x1a, 0x1a, 0x96, 0x98, + 0xa2, 0xab, 0x9d, 0x9e, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xfe, 0xae, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xb1, 0xb4, 0x1a, 0x1a, 0xaf, 0xb0, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xb5, 0xfa, + 0x1a, 0xbd, 0xbe, 0xb9, 0xba, 0xbb, 0xbc, 0x1a, + 0x1a, 0xfc, 0xb8, 0xc1, 0xc4, 0xbf, 0xc0, 0xc5, + 0xcb, 0x1a, 0x1a, 0x1a, 0xcf, 0xd8, 0x1a, 0x1a, + 0xcc, 0xce, 0x1a, 0x1a, 0xd9, 0xda, 0xdf, 0xe0, + 0xdb, 0xde, 0xe5, 0xe6, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe1, 0xe4, 0x1a, 0x1a, 0xe8, 0xe9, 0x1a, 0x1a, + 0x1a, 0x1a, 0xed, 0xf0, 0x1a, 0x1a, 0xf1, 0xf3, + 0xf4, 0xf5, 0xf6, 0xf7, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x8f, 0x90, 0xfb, 0xfd, 0xeb, 0xec, 0x1a +}; + +const uint8_t libuna_codepage_mac_centraleurroman_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0xe2, 0x1a, 0xd2, 0xd3, 0xe3, 0x1a, + 0xa0, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a +}; + +/* Copies an Unicode character from a MacCentralEurRoman encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_centraleurroman_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_centraleurroman_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_centraleurroman_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacCentralEurRoman encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_centraleurroman_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_centraleurroman_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0180 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_centraleurroman_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_centraleurroman_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x02c7: + byte_stream_value = 0xff; + break; + + case 0x2039: + byte_stream_value = 0xdc; + break; + + case 0x203a: + byte_stream_value = 0xdd; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2202: + byte_stream_value = 0xb6; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x2211: + byte_stream_value = 0xb7; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x25ca: + byte_stream_value = 0xd7; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_centraleurroman.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_centraleurroman.h new file mode 100644 index 0000000..d41ed5e --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_centraleurroman.h @@ -0,0 +1,54 @@ +/* + * MacCentralEurRoman codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_CENTRALEURROMAN_H ) +#define _LIBUNA_CODEPAGE_MAC_CENTRALEURROMAN_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_centraleurroman_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_centraleurroman_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_CENTRALEURROMAN_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_croatian.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_croatian.c new file mode 100644 index 0000000..3562917 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_croatian.c @@ -0,0 +1,378 @@ +/* + * MacCroatian codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_croatian.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacCroatian codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_croatian_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00c5, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x00e3, 0x00e5, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x00ec, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00f2, 0x00f4, 0x00f6, 0x00f5, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x2020, 0x00b0, 0x00a2, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x00df, + 0x00ae, 0x0160, 0x2122, 0x00b4, 0x00a8, 0x2260, 0x017d, 0x00d8, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x2206, 0x00b5, 0x2202, 0x2211, + 0x220f, 0x0161, 0x222b, 0x00aa, 0x00ba, 0x03a9, 0x017e, 0x00f8, + 0x00bf, 0x00a1, 0x00ac, 0x221a, 0x0192, 0x2248, 0x0106, 0x00ab, + 0x010c, 0x2026, 0x00a0, 0x00c0, 0x00c3, 0x00d5, 0x0152, 0x0153, + 0x0110, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x25ca, + 0xf8ff, 0x00a9, 0x2044, 0x20ac, 0x2039, 0x203a, 0x00c6, 0x00bb, + 0x2013, 0x00b7, 0x201a, 0x201e, 0x2030, 0x00c2, 0x0107, 0x00c1, + 0x010d, 0x00c8, 0x00cd, 0x00ce, 0x00cf, 0x00cc, 0x00d3, 0x00d4, + 0x0111, 0x00d2, 0x00da, 0x00db, 0x00d9, 0x0131, 0x02c6, 0x02dc, + 0x00af, 0x03c0, 0x00cb, 0x02da, 0x00b8, 0x00ca, 0x00e6, 0x02c7 +}; + +/* Unicode to ASCII character lookup tables for the MacCroatian codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_croatian_unicode_to_byte_stream_base_0x00a0[ 120 ] = { + 0xca, 0xc1, 0xa2, 0xa3, 0x1a, 0x1a, 0x1a, 0xa4, + 0xac, 0xd9, 0xbb, 0xc7, 0xc2, 0x1a, 0xa8, 0xf8, + 0xa1, 0xb1, 0x1a, 0x1a, 0xab, 0xb5, 0xa6, 0xe1, + 0xfc, 0x1a, 0xbc, 0xdf, 0x1a, 0x1a, 0x1a, 0xc0, + 0xcb, 0xe7, 0xe5, 0xcc, 0x80, 0x81, 0xde, 0x82, + 0xe9, 0x83, 0xfd, 0xfa, 0xed, 0xea, 0xeb, 0xec, + 0x1a, 0x84, 0xf1, 0xee, 0xef, 0xcd, 0x85, 0x1a, + 0xaf, 0xf4, 0xf2, 0xf3, 0x86, 0x1a, 0x1a, 0xa7, + 0x88, 0x87, 0x89, 0x8b, 0x8a, 0x8c, 0xfe, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, + 0x1a, 0x96, 0x98, 0x97, 0x99, 0x9b, 0x9a, 0xd6, + 0xbf, 0x9d, 0x9c, 0x9e, 0x9f, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc6, 0xe6, + 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0x1a, 0x1a, + 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_croatian_unicode_to_byte_stream_base_0x2010[ 56 ] = { + 0x1a, 0x1a, 0x1a, 0xe0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0xe2, 0x1a, 0xd2, 0xd3, 0xe3, 0x1a, + 0xa0, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xdc, 0xdd, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0xda, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacCroatian encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_croatian_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_croatian_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_croatian_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacCroatian encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_croatian_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_croatian_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0118 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_croatian_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2048 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_croatian_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0131: + byte_stream_value = 0xf5; + break; + + case 0x0152: + byte_stream_value = 0xce; + break; + + case 0x0153: + byte_stream_value = 0xcf; + break; + + case 0x0160: + byte_stream_value = 0xa9; + break; + + case 0x0161: + byte_stream_value = 0xb9; + break; + + case 0x017d: + byte_stream_value = 0xae; + break; + + case 0x017e: + byte_stream_value = 0xbe; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x02c6: + byte_stream_value = 0xf6; + break; + + case 0x02c7: + byte_stream_value = 0xff; + break; + + case 0x02da: + byte_stream_value = 0xfb; + break; + + case 0x02dc: + byte_stream_value = 0xf7; + break; + + case 0x03a9: + byte_stream_value = 0xbd; + break; + + case 0x03c0: + byte_stream_value = 0xf9; + break; + + case 0x20ac: + byte_stream_value = 0xdb; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2202: + byte_stream_value = 0xb6; + break; + + case 0x2206: + byte_stream_value = 0xb4; + break; + + case 0x220f: + byte_stream_value = 0xb8; + break; + + case 0x2211: + byte_stream_value = 0xb7; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x222b: + byte_stream_value = 0xba; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x25ca: + byte_stream_value = 0xd7; + break; + + case 0xf8ff: + byte_stream_value = 0xd8; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_croatian.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_croatian.h new file mode 100644 index 0000000..ad31532 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_croatian.h @@ -0,0 +1,54 @@ +/* + * MacCroatian codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_CROATIAN_H ) +#define _LIBUNA_CODEPAGE_MAC_CROATIAN_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_croatian_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_croatian_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_CROATIAN_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_cyrillic.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_cyrillic.c new file mode 100644 index 0000000..b3f9f67 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_cyrillic.c @@ -0,0 +1,325 @@ +/* + * MacCyrillic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_cyrillic.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacCyrillic codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_cyrillic_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, + 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, + 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, + 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, + 0x2020, 0x00b0, 0x0490, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x0406, + 0x00ae, 0x00a9, 0x2122, 0x0402, 0x0452, 0x2260, 0x0403, 0x0453, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x0456, 0x00b5, 0x0491, 0x0408, + 0x0404, 0x0454, 0x0407, 0x0457, 0x0409, 0x0459, 0x040a, 0x045a, + 0x0458, 0x0405, 0x00ac, 0x221a, 0x0192, 0x2248, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x040b, 0x045b, 0x040c, 0x045c, 0x0455, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x201e, + 0x040e, 0x045e, 0x040f, 0x045f, 0x2116, 0x0401, 0x0451, 0x044f, + 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, + 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, + 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, + 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x20ac +}; + +/* Unicode to ASCII character lookup tables for the MacCyrillic codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_cyrillic_unicode_to_byte_stream_base_0x00a0[ 32 ] = { + 0xca, 0x1a, 0x1a, 0xa3, 0x1a, 0x1a, 0x1a, 0xa4, + 0x1a, 0xa9, 0x1a, 0xc7, 0xc2, 0x1a, 0xa8, 0x1a, + 0xa1, 0xb1, 0x1a, 0x1a, 0x1a, 0xb5, 0xa6, 0x1a, + 0x1a, 0x1a, 0x1a, 0xc8, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_cyrillic_unicode_to_byte_stream_base_0x0400[ 96 ] = { + 0x1a, 0xdd, 0xab, 0xae, 0xb8, 0xc1, 0xa7, 0xba, + 0xb7, 0xbc, 0xbe, 0xcb, 0xcd, 0x1a, 0xd8, 0xda, + 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, + 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, + 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, + 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xdf, + 0x1a, 0xde, 0xac, 0xaf, 0xb9, 0xcf, 0xb4, 0xbb, + 0xc0, 0xbd, 0xbf, 0xcc, 0xce, 0x1a, 0xd9, 0xdb +}; + +const uint8_t libuna_codepage_mac_cyrillic_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0x1a, 0x1a, 0xd2, 0xd3, 0xd7, 0x1a, + 0xa0, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a +}; + +/* Copies an Unicode character from a MacCyrillic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_cyrillic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_cyrillic_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_cyrillic_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacCyrillic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_cyrillic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_cyrillic_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00c0 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_cyrillic_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0400 ) + && ( unicode_character < 0x0460 ) ) + { + unicode_character -= 0x0400; + + byte_stream_value = libuna_codepage_mac_cyrillic_unicode_to_byte_stream_base_0x0400[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_cyrillic_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00f7: + byte_stream_value = 0xd6; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x0490: + byte_stream_value = 0xa2; + break; + + case 0x0491: + byte_stream_value = 0xb6; + break; + + case 0x20ac: + byte_stream_value = 0xff; + break; + + case 0x2116: + byte_stream_value = 0xdc; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_cyrillic.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_cyrillic.h new file mode 100644 index 0000000..dd03596 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_cyrillic.h @@ -0,0 +1,54 @@ +/* + * MacCyrillic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_CYRILLIC_H ) +#define _LIBUNA_CODEPAGE_MAC_CYRILLIC_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_cyrillic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_cyrillic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_CYRILLIC_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_dingbats.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_dingbats.c new file mode 100644 index 0000000..6c51219 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_dingbats.c @@ -0,0 +1,347 @@ +/* + * MacDingbats codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_dingbats.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacDingbats codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_dingbats_byte_stream_to_unicode_base_0x20[ 224 ] = { + 0x0020, 0x2701, 0x2702, 0x2703, 0x2704, 0x260e, 0x2706, 0x2707, + 0x2708, 0x2709, 0x261b, 0x261e, 0x270c, 0x270d, 0x270e, 0x270f, + 0x2710, 0x2711, 0x2712, 0x2713, 0x2714, 0x2715, 0x2716, 0x2717, + 0x2718, 0x2719, 0x271a, 0x271b, 0x271c, 0x271d, 0x271e, 0x271f, + 0x2720, 0x2721, 0x2722, 0x2723, 0x2724, 0x2725, 0x2726, 0x2727, + 0x2605, 0x2729, 0x272a, 0x272b, 0x272c, 0x272d, 0x272e, 0x272f, + 0x2730, 0x2731, 0x2732, 0x2733, 0x2734, 0x2735, 0x2736, 0x2737, + 0x2738, 0x2739, 0x273a, 0x273b, 0x273c, 0x273d, 0x273e, 0x273f, + 0x2740, 0x2741, 0x2742, 0x2743, 0x2744, 0x2745, 0x2746, 0x2747, + 0x2748, 0x2749, 0x274a, 0x274b, 0x25cf, 0x274d, 0x25a0, 0x274f, + 0x2750, 0x2751, 0x2752, 0x25b2, 0x25bc, 0x25c6, 0x2756, 0x25d7, + 0x2758, 0x2759, 0x275a, 0x275b, 0x275c, 0x275d, 0x275e, 0x007f, + 0x2768, 0x2769, 0x276a, 0x276b, 0x276c, 0x276d, 0x276e, 0x276f, + 0x2770, 0x2771, 0x2772, 0x2773, 0x2774, 0x2775, 0xfffd, 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0x2761, 0x2762, 0x2763, 0x2764, 0x2765, 0x2766, 0x2767, + 0x2663, 0x2666, 0x2665, 0x2660, 0x2460, 0x2461, 0x2462, 0x2463, + 0x2464, 0x2465, 0x2466, 0x2467, 0x2468, 0x2469, 0x2776, 0x2777, + 0x2778, 0x2779, 0x277a, 0x277b, 0x277c, 0x277d, 0x277e, 0x277f, + 0x2780, 0x2781, 0x2782, 0x2783, 0x2784, 0x2785, 0x2786, 0x2787, + 0x2788, 0x2789, 0x278a, 0x278b, 0x278c, 0x278d, 0x278e, 0x278f, + 0x2790, 0x2791, 0x2792, 0x2793, 0x2794, 0x2192, 0x2194, 0x2195, + 0x2798, 0x2799, 0x279a, 0x279b, 0x279c, 0x279d, 0x279e, 0x279f, + 0x27a0, 0x27a1, 0x27a2, 0x27a3, 0x27a4, 0x27a5, 0x27a6, 0x27a7, + 0x27a8, 0x27a9, 0x27aa, 0x27ab, 0x27ac, 0x27ad, 0x27ae, 0x27af, + 0xfffd, 0x27b1, 0x27b2, 0x27b3, 0x27b4, 0x27b5, 0x27b6, 0x27b7, + 0x27b8, 0x27b9, 0x27ba, 0x27bb, 0x27bc, 0x27bd, 0x27be, 0xfffd +}; + +/* Unicode to ASCII character lookup tables for the MacDingbats codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_dingbats_unicode_to_byte_stream_base_0x2460[ 16 ] = { + 0xac, 0xad, 0xae, 0xaf, 0xb0, 0xb1, 0xb2, 0xb3, + 0xb4, 0xb5, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_dingbats_unicode_to_byte_stream_base_0x2700[ 192 ] = { + 0x1a, 0x21, 0x22, 0x23, 0x24, 0x1a, 0x26, 0x27, + 0x28, 0x29, 0x1a, 0x1a, 0x2c, 0x2d, 0x2e, 0x2f, + 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, + 0x38, 0x39, 0x3a, 0x3b, 0x3c, 0x3d, 0x3e, 0x3f, + 0x40, 0x41, 0x42, 0x43, 0x44, 0x45, 0x46, 0x47, + 0x1a, 0x49, 0x4a, 0x4b, 0x4c, 0x4d, 0x4e, 0x4f, + 0x50, 0x51, 0x52, 0x53, 0x54, 0x55, 0x56, 0x57, + 0x58, 0x59, 0x5a, 0x5b, 0x5c, 0x5d, 0x5e, 0x5f, + 0x60, 0x61, 0x62, 0x63, 0x64, 0x65, 0x66, 0x67, + 0x68, 0x69, 0x6a, 0x6b, 0x1a, 0x6d, 0x1a, 0x6f, + 0x70, 0x71, 0x72, 0x1a, 0x1a, 0x1a, 0x76, 0x1a, + 0x78, 0x79, 0x7a, 0x7b, 0x7c, 0x7d, 0x7e, 0x1a, + 0x1a, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, + 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, + 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0xb6, 0xb7, + 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, + 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0x1a, 0x1a, 0x1a, + 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0x1a, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0x1a +}; + +/* Copies an Unicode character from a MacDingbats encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_dingbats_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_dingbats_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x20 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x20; + + safe_unicode_character = libuna_codepage_mac_dingbats_byte_stream_to_unicode_base_0x20[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacDingbats encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_dingbats_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_dingbats_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( ( unicode_character <= 0x0020 ) + || ( unicode_character == 0x007f ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x2460 ) + && ( unicode_character < 0x2470 ) ) + { + unicode_character -= 0x2460; + + byte_stream_value = libuna_codepage_mac_dingbats_unicode_to_byte_stream_base_0x2460[ unicode_character ]; + } + else if( ( unicode_character >= 0x2700 ) + && ( unicode_character < 0x27c0 ) ) + { + unicode_character -= 0x2700; + + byte_stream_value = libuna_codepage_mac_dingbats_unicode_to_byte_stream_base_0x2700[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x2192: + byte_stream_value = 0xd5; + break; + + case 0x2194: + byte_stream_value = 0xd6; + break; + + case 0x2195: + byte_stream_value = 0xd7; + break; + + case 0x25a0: + byte_stream_value = 0x6e; + break; + + case 0x25b2: + byte_stream_value = 0x73; + break; + + case 0x25bc: + byte_stream_value = 0x74; + break; + + case 0x25c6: + byte_stream_value = 0x75; + break; + + case 0x25cf: + byte_stream_value = 0x6c; + break; + + case 0x25d7: + byte_stream_value = 0x77; + break; + + case 0x2605: + byte_stream_value = 0x48; + break; + + case 0x260e: + byte_stream_value = 0x25; + break; + + case 0x261b: + byte_stream_value = 0x2a; + break; + + case 0x261e: + byte_stream_value = 0x2b; + break; + + case 0x2660: + byte_stream_value = 0xab; + break; + + case 0x2663: + byte_stream_value = 0xa8; + break; + + case 0x2665: + byte_stream_value = 0xaa; + break; + + case 0x2666: + byte_stream_value = 0xa9; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_dingbats.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_dingbats.h new file mode 100644 index 0000000..32580a3 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_dingbats.h @@ -0,0 +1,54 @@ +/* + * MacDingbats codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_DINGBATS_H ) +#define _LIBUNA_CODEPAGE_MAC_DINGBATS_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_dingbats_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_dingbats_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_DINGBATS_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_farsi.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_farsi.c new file mode 100644 index 0000000..e56da70 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_farsi.c @@ -0,0 +1,372 @@ +/* + * MacFarsi codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_farsi.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacFarsi codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_farsi_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00a0, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x06ba, 0x00ab, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x2026, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00bb, 0x00f4, 0x00f6, 0x00f7, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x0020, 0x0021, 0x0022, 0x0023, 0x0024, 0x066a, 0x0026, 0x0027, + 0x0028, 0x0029, 0x002a, 0x002b, 0x060c, 0x002d, 0x002e, 0x002f, + 0x06f0, 0x06f1, 0x06f2, 0x06f3, 0x06f4, 0x06f5, 0x06f6, 0x06f7, + 0x06f8, 0x06f9, 0x003a, 0x061b, 0x003c, 0x003d, 0x003e, 0x061f, + 0x274a, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, + 0x0628, 0x0629, 0x062a, 0x062b, 0x062c, 0x062d, 0x062e, 0x062f, + 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x0637, + 0x0638, 0x0639, 0x063a, 0x005b, 0x005c, 0x005d, 0x005e, 0x005f, + 0x0640, 0x0641, 0x0642, 0x0643, 0x0644, 0x0645, 0x0646, 0x0647, + 0x0648, 0x0649, 0x064a, 0x064b, 0x064c, 0x064d, 0x064e, 0x064f, + 0x0650, 0x0651, 0x0652, 0x067e, 0x0679, 0x0686, 0x06d5, 0x06a4, + 0x06af, 0x0688, 0x0691, 0x007b, 0x007c, 0x007d, 0x0698, 0x06d2 +}; + +/* Unicode to ASCII character lookup tables for the MacFarsi codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x0020[ 32 ] = { + 0xa0, 0xa1, 0xa2, 0xa3, 0xa4, 0x25, 0xa6, 0xa7, + 0xa8, 0xa9, 0xaa, 0xab, 0x2c, 0xad, 0xae, 0xaf, + 0x30, 0x31, 0x32, 0x33, 0x34, 0x35, 0x36, 0x37, + 0x38, 0x39, 0xba, 0x3b, 0xbc, 0xbd, 0xbe, 0x3f +}; + +const uint8_t libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x00a0[ 96 ] = { + 0x81, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x8c, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x98, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x80, 0x1a, 0x1a, 0x82, + 0x1a, 0x83, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x84, 0x1a, 0x1a, 0x1a, 0x1a, 0x85, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x86, 0x1a, 0x1a, 0x1a, + 0x88, 0x87, 0x89, 0x1a, 0x8a, 0x1a, 0x1a, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x1a, 0x92, 0x94, 0x95, + 0x1a, 0x96, 0x1a, 0x97, 0x99, 0x1a, 0x9a, 0x9b, + 0x1a, 0x9d, 0x9c, 0x9e, 0x9f, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x0608[ 80 ] = { + 0x1a, 0x1a, 0x1a, 0x1a, 0xac, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0xbf, + 0x1a, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x0668[ 88 ] = { + 0x1a, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xf4, 0x1a, 0x1a, 0x1a, 0x1a, 0xf3, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xf5, 0x1a, + 0xf9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xfe, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0xf7, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xf8, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x8b, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x06f0[ 16 ] = { + 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, + 0xb8, 0xb9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacFarsi encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_farsi_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_farsi_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_farsi_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacFarsi encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_farsi_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_farsi_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0020 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0020 ) + && ( unicode_character < 0x0040 ) ) + { + unicode_character -= 0x0020; + + byte_stream_value = libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x0020[ unicode_character ]; + } + else if( ( unicode_character >= 0x0040 ) + && ( unicode_character < 0x005b ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0060 ) + && ( unicode_character < 0x007b ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x007e ) + && ( unicode_character < 0x0080 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0608 ) + && ( unicode_character < 0x0658 ) ) + { + unicode_character -= 0x0608; + + byte_stream_value = libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x0608[ unicode_character ]; + } + else if( ( unicode_character >= 0x0668 ) + && ( unicode_character < 0x06c0 ) ) + { + unicode_character -= 0x0668; + + byte_stream_value = libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x0668[ unicode_character ]; + } + else if( ( unicode_character >= 0x06f0 ) + && ( unicode_character < 0x0700 ) ) + { + unicode_character -= 0x06f0; + + byte_stream_value = libuna_codepage_mac_farsi_unicode_to_byte_stream_base_0x06f0[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x005b: + byte_stream_value = 0xdb; + break; + + case 0x005c: + byte_stream_value = 0xdc; + break; + + case 0x005d: + byte_stream_value = 0xdd; + break; + + case 0x005e: + byte_stream_value = 0xde; + break; + + case 0x005f: + byte_stream_value = 0xdf; + break; + + case 0x007b: + byte_stream_value = 0xfb; + break; + + case 0x007c: + byte_stream_value = 0xfc; + break; + + case 0x007d: + byte_stream_value = 0xfd; + break; + + case 0x06d2: + byte_stream_value = 0xff; + break; + + case 0x06d5: + byte_stream_value = 0xf6; + break; + + case 0x2026: + byte_stream_value = 0x93; + break; + + case 0x274a: + byte_stream_value = 0xc0; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_farsi.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_farsi.h new file mode 100644 index 0000000..54e98a4 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_farsi.h @@ -0,0 +1,54 @@ +/* + * MacFarsi codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_FARSI_H ) +#define _LIBUNA_CODEPAGE_MAC_FARSI_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_farsi_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_farsi_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_FARSI_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_gaelic.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_gaelic.c new file mode 100644 index 0000000..8403c2e --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_gaelic.c @@ -0,0 +1,437 @@ +/* + * MacGaelic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_gaelic.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacGaelic codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_gaelic_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00c5, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x00e3, 0x00e5, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x00ec, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00f2, 0x00f4, 0x00f6, 0x00f5, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x2020, 0x00b0, 0x00a2, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x00df, + 0x00ae, 0x00a9, 0x2122, 0x00b4, 0x00a8, 0x2260, 0x00c6, 0x00d8, + 0x1e02, 0x00b1, 0x2264, 0x2265, 0x1e03, 0x010a, 0x010b, 0x1e0a, + 0x1e0b, 0x1e1e, 0x1e1f, 0x0120, 0x0121, 0x1e40, 0x00e6, 0x00f8, + 0x1e41, 0x1e56, 0x1e57, 0x027c, 0x0192, 0x017f, 0x1e60, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x00c0, 0x00c3, 0x00d5, 0x0152, 0x0153, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x1e61, 0x1e9b, + 0x00ff, 0x0178, 0x1e6a, 0x20ac, 0x2039, 0x203a, 0x0176, 0x0177, + 0x1e6b, 0x00b7, 0x1ef2, 0x1ef3, 0x204a, 0x00c2, 0x00ca, 0x00c1, + 0x00cb, 0x00c8, 0x00cd, 0x00ce, 0x00cf, 0x00cc, 0x00d3, 0x00d4, + 0x2663, 0x00d2, 0x00da, 0x00db, 0x00d9, 0x0131, 0x00dd, 0x00fd, + 0x0174, 0x0175, 0x1e84, 0x1e85, 0x1e80, 0x1e81, 0x1e82, 0x1e83 +}; + +/* Unicode to ASCII character lookup tables for the MacGaelic codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_gaelic_unicode_to_byte_stream_base_0x00a0[ 112 ] = { + 0xca, 0x1a, 0xa2, 0xa3, 0x1a, 0x1a, 0x1a, 0xa4, + 0xac, 0xa9, 0x1a, 0xc7, 0x1a, 0x1a, 0xa8, 0x1a, + 0xa1, 0xb1, 0x1a, 0x1a, 0xab, 0x1a, 0xa6, 0xe1, + 0x1a, 0x1a, 0x1a, 0xc8, 0x1a, 0x1a, 0x1a, 0x1a, + 0xcb, 0xe7, 0xe5, 0xcc, 0x80, 0x81, 0xae, 0x82, + 0xe9, 0x83, 0xe6, 0xe8, 0xed, 0xea, 0xeb, 0xec, + 0x1a, 0x84, 0xf1, 0xee, 0xef, 0xcd, 0x85, 0x1a, + 0xaf, 0xf4, 0xf2, 0xf3, 0x86, 0xf6, 0x1a, 0xa7, + 0x88, 0x87, 0x89, 0x8b, 0x8a, 0x8c, 0xbe, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, + 0x1a, 0x96, 0x98, 0x97, 0x99, 0x9b, 0x9a, 0x1a, + 0xbf, 0x9d, 0x9c, 0x9e, 0x9f, 0xf7, 0x1a, 0xd8, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xb5, 0xb6, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_gaelic_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0x1a, 0x1a, 0xd2, 0xd3, 0x1a, 0x1a, + 0xa0, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a +}; + +/* Copies an Unicode character from a MacGaelic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_gaelic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_gaelic_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_gaelic_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacGaelic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_gaelic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_gaelic_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0110 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_gaelic_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_gaelic_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0120: + byte_stream_value = 0xbb; + break; + + case 0x0121: + byte_stream_value = 0xbc; + break; + + case 0x0131: + byte_stream_value = 0xf5; + break; + + case 0x0152: + byte_stream_value = 0xce; + break; + + case 0x0153: + byte_stream_value = 0xcf; + break; + + case 0x0174: + byte_stream_value = 0xf8; + break; + + case 0x0175: + byte_stream_value = 0xf9; + break; + + case 0x0176: + byte_stream_value = 0xde; + break; + + case 0x0177: + byte_stream_value = 0xdf; + break; + + case 0x0178: + byte_stream_value = 0xd9; + break; + + case 0x017f: + byte_stream_value = 0xc5; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x027c: + byte_stream_value = 0xc3; + break; + + case 0x1e02: + byte_stream_value = 0xb0; + break; + + case 0x1e03: + byte_stream_value = 0xb4; + break; + + case 0x1e0a: + byte_stream_value = 0xb7; + break; + + case 0x1e0b: + byte_stream_value = 0xb8; + break; + + case 0x1e1e: + byte_stream_value = 0xb9; + break; + + case 0x1e1f: + byte_stream_value = 0xba; + break; + + case 0x1e40: + byte_stream_value = 0xbd; + break; + + case 0x1e41: + byte_stream_value = 0xc0; + break; + + case 0x1e56: + byte_stream_value = 0xc1; + break; + + case 0x1e57: + byte_stream_value = 0xc2; + break; + + case 0x1e60: + byte_stream_value = 0xc6; + break; + + case 0x1e61: + byte_stream_value = 0xd6; + break; + + case 0x1e6a: + byte_stream_value = 0xda; + break; + + case 0x1e6b: + byte_stream_value = 0xe0; + break; + + case 0x1e80: + byte_stream_value = 0xfc; + break; + + case 0x1e81: + byte_stream_value = 0xfd; + break; + + case 0x1e82: + byte_stream_value = 0xfe; + break; + + case 0x1e83: + byte_stream_value = 0xff; + break; + + case 0x1e84: + byte_stream_value = 0xfa; + break; + + case 0x1e85: + byte_stream_value = 0xfb; + break; + + case 0x1e9b: + byte_stream_value = 0xd7; + break; + + case 0x1ef2: + byte_stream_value = 0xe2; + break; + + case 0x1ef3: + byte_stream_value = 0xe3; + break; + + case 0x2039: + byte_stream_value = 0xdc; + break; + + case 0x203a: + byte_stream_value = 0xdd; + break; + + case 0x204a: + byte_stream_value = 0xe4; + break; + + case 0x20ac: + byte_stream_value = 0xdb; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x2663: + byte_stream_value = 0xf0; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_gaelic.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_gaelic.h new file mode 100644 index 0000000..a645c42 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_gaelic.h @@ -0,0 +1,54 @@ +/* + * MacGaelic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_GAELIC_H ) +#define _LIBUNA_CODEPAGE_MAC_GAELIC_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_gaelic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_gaelic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_GAELIC_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_greek.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_greek.c new file mode 100644 index 0000000..608b048 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_greek.c @@ -0,0 +1,305 @@ +/* + * MacGreek codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_greek.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacGreek codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_greek_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00b9, 0x00b2, 0x00c9, 0x00b3, 0x00d6, 0x00dc, 0x0385, + 0x00e0, 0x00e2, 0x00e4, 0x0384, 0x00a8, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00a3, 0x2122, 0x00ee, 0x00ef, 0x2022, 0x00bd, + 0x2030, 0x00f4, 0x00f6, 0x00a6, 0x20ac, 0x00f9, 0x00fb, 0x00fc, + 0x2020, 0x0393, 0x0394, 0x0398, 0x039b, 0x039e, 0x03a0, 0x00df, + 0x00ae, 0x00a9, 0x03a3, 0x03aa, 0x00a7, 0x2260, 0x00b0, 0x00b7, + 0x0391, 0x00b1, 0x2264, 0x2265, 0x00a5, 0x0392, 0x0395, 0x0396, + 0x0397, 0x0399, 0x039a, 0x039c, 0x03a6, 0x03ab, 0x03a8, 0x03a9, + 0x03ac, 0x039d, 0x00ac, 0x039f, 0x03a1, 0x2248, 0x03a4, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x03a5, 0x03a7, 0x0386, 0x0388, 0x0153, + 0x2013, 0x2015, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x0389, + 0x038a, 0x038c, 0x038e, 0x03ad, 0x03ae, 0x03af, 0x03cc, 0x038f, + 0x03cd, 0x03b1, 0x03b2, 0x03c8, 0x03b4, 0x03b5, 0x03c6, 0x03b3, + 0x03b7, 0x03b9, 0x03be, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03bf, + 0x03c0, 0x03ce, 0x03c1, 0x03c3, 0x03c4, 0x03b8, 0x03c9, 0x03c2, + 0x03c7, 0x03c5, 0x03b6, 0x03ca, 0x03cb, 0x0390, 0x03b0, 0x00ad +}; + +/* Unicode to ASCII character lookup tables for the MacGreek codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_greek_unicode_to_byte_stream_base_0x00a0[ 96 ] = { + 0xca, 0x1a, 0x1a, 0x92, 0x1a, 0xb4, 0x9b, 0xac, + 0x8c, 0xa9, 0x1a, 0xc7, 0xc2, 0xff, 0xa8, 0x1a, + 0xae, 0xb1, 0x82, 0x84, 0x1a, 0x1a, 0x1a, 0xaf, + 0x1a, 0x81, 0x1a, 0xc8, 0x1a, 0x97, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x80, 0x1a, 0x1a, 0x1a, + 0x1a, 0x83, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x85, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x86, 0x1a, 0x1a, 0xa7, + 0x88, 0x1a, 0x89, 0x1a, 0x8a, 0x1a, 0x1a, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x1a, 0x1a, 0x94, 0x95, + 0x1a, 0x1a, 0x1a, 0x1a, 0x99, 0x1a, 0x9a, 0xd6, + 0x1a, 0x9d, 0x1a, 0x9e, 0x9f, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_greek_unicode_to_byte_stream_base_0x0380[ 80 ] = { + 0x1a, 0x1a, 0x1a, 0x1a, 0x8b, 0x87, 0xcd, 0x1a, + 0xce, 0xd7, 0xd8, 0x1a, 0xd9, 0x1a, 0xda, 0xdf, + 0xfd, 0xb0, 0xb5, 0xa1, 0xa2, 0xb6, 0xb7, 0xb8, + 0xa3, 0xb9, 0xba, 0xa4, 0xbb, 0xc1, 0xa5, 0xc3, + 0xa6, 0xc4, 0x1a, 0xaa, 0xc6, 0xcb, 0xbc, 0xcc, + 0xbe, 0xbf, 0xab, 0xbd, 0xc0, 0xdb, 0xdc, 0xdd, + 0xfe, 0xe1, 0xe2, 0xe7, 0xe4, 0xe5, 0xfa, 0xe8, + 0xf5, 0xe9, 0xeb, 0xec, 0xed, 0xee, 0xea, 0xef, + 0xf0, 0xf2, 0xf7, 0xf3, 0xf4, 0xf9, 0xe6, 0xf8, + 0xe3, 0xf6, 0xfb, 0xfc, 0xde, 0xe0, 0xf1, 0x1a +}; + +const uint8_t libuna_codepage_mac_greek_unicode_to_byte_stream_base_0x2010[ 40 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0x1a, 0xd1, 0x1a, 0x1a, + 0xd4, 0xd5, 0x1a, 0x1a, 0xd2, 0xd3, 0x1a, 0x1a, + 0xa0, 0x1a, 0x96, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x98, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacGreek encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_greek_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_greek_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_greek_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacGreek encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_greek_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_greek_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_greek_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0380 ) + && ( unicode_character < 0x03d0 ) ) + { + unicode_character -= 0x0380; + + byte_stream_value = libuna_codepage_mac_greek_unicode_to_byte_stream_base_0x0380[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2038 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_greek_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0153: + byte_stream_value = 0xcf; + break; + + case 0x20ac: + byte_stream_value = 0x9c; + break; + + case 0x2122: + byte_stream_value = 0x93; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_greek.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_greek.h new file mode 100644 index 0000000..17d84f4 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_greek.h @@ -0,0 +1,54 @@ +/* + * MacGreek codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_GREEK_H ) +#define _LIBUNA_CODEPAGE_MAC_GREEK_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_greek_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_greek_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_GREEK_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_icelandic.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_icelandic.c new file mode 100644 index 0000000..1a790e8 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_icelandic.c @@ -0,0 +1,381 @@ +/* + * MacIcelandic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_icelandic.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacIcelandic codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_icelandic_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00c5, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x00e3, 0x00e5, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x00ec, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00f2, 0x00f4, 0x00f6, 0x00f5, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x00dd, 0x00b0, 0x00a2, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x00df, + 0x00ae, 0x00a9, 0x2122, 0x00b4, 0x00a8, 0x2260, 0x00c6, 0x00d8, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x00a5, 0x00b5, 0x2202, 0x2211, + 0x220f, 0x03c0, 0x222b, 0x00aa, 0x00ba, 0x03a9, 0x00e6, 0x00f8, + 0x00bf, 0x00a1, 0x00ac, 0x221a, 0x0192, 0x2248, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x00c0, 0x00c3, 0x00d5, 0x0152, 0x0153, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x25ca, + 0x00ff, 0x0178, 0x2044, 0x20ac, 0x00d0, 0x00f0, 0x00de, 0x00fe, + 0x00fd, 0x00b7, 0x201a, 0x201e, 0x2030, 0x00c2, 0x00ca, 0x00c1, + 0x00cb, 0x00c8, 0x00cd, 0x00ce, 0x00cf, 0x00cc, 0x00d3, 0x00d4, + 0xf8ff, 0x00d2, 0x00da, 0x00db, 0x00d9, 0x0131, 0x02c6, 0x02dc, + 0x00af, 0x02d8, 0x02d9, 0x02da, 0x00b8, 0x02dd, 0x02db, 0x02c7 +}; + +/* Unicode to ASCII character lookup tables for the MacIcelandic codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_icelandic_unicode_to_byte_stream_base_0x00a0[ 96 ] = { + 0xca, 0xc1, 0xa2, 0xa3, 0x1a, 0xb4, 0x1a, 0xa4, + 0xac, 0xa9, 0xbb, 0xc7, 0xc2, 0x1a, 0xa8, 0xf8, + 0xa1, 0xb1, 0x1a, 0x1a, 0xab, 0xb5, 0xa6, 0xe1, + 0xfc, 0x1a, 0xbc, 0xc8, 0x1a, 0x1a, 0x1a, 0xc0, + 0xcb, 0xe7, 0xe5, 0xcc, 0x80, 0x81, 0xae, 0x82, + 0xe9, 0x83, 0xe6, 0xe8, 0xed, 0xea, 0xeb, 0xec, + 0xdc, 0x84, 0xf1, 0xee, 0xef, 0xcd, 0x85, 0x1a, + 0xaf, 0xf4, 0xf2, 0xf3, 0x86, 0xa0, 0xde, 0xa7, + 0x88, 0x87, 0x89, 0x8b, 0x8a, 0x8c, 0xbe, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, + 0xdd, 0x96, 0x98, 0x97, 0x99, 0x9b, 0x9a, 0xd6, + 0xbf, 0x9d, 0x9c, 0x9e, 0x9f, 0xe0, 0xdf, 0xd8 +}; + +const uint8_t libuna_codepage_mac_icelandic_unicode_to_byte_stream_base_0x2010[ 40 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0xe2, 0x1a, 0xd2, 0xd3, 0xe3, 0x1a, + 0x1a, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacIcelandic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_icelandic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_icelandic_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_icelandic_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacIcelandic encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_icelandic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_icelandic_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_icelandic_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2038 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_icelandic_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0131: + byte_stream_value = 0xf5; + break; + + case 0x0152: + byte_stream_value = 0xce; + break; + + case 0x0153: + byte_stream_value = 0xcf; + break; + + case 0x0178: + byte_stream_value = 0xd9; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x02c6: + byte_stream_value = 0xf6; + break; + + case 0x02c7: + byte_stream_value = 0xff; + break; + + case 0x02d8: + byte_stream_value = 0xf9; + break; + + case 0x02d9: + byte_stream_value = 0xfa; + break; + + case 0x02da: + byte_stream_value = 0xfb; + break; + + case 0x02db: + byte_stream_value = 0xfe; + break; + + case 0x02dc: + byte_stream_value = 0xf7; + break; + + case 0x02dd: + byte_stream_value = 0xfd; + break; + + case 0x03a9: + byte_stream_value = 0xbd; + break; + + case 0x03c0: + byte_stream_value = 0xb9; + break; + + case 0x2044: + byte_stream_value = 0xda; + break; + + case 0x20ac: + byte_stream_value = 0xdb; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2202: + byte_stream_value = 0xb6; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x220f: + byte_stream_value = 0xb8; + break; + + case 0x2211: + byte_stream_value = 0xb7; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x222b: + byte_stream_value = 0xba; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x25ca: + byte_stream_value = 0xd7; + break; + + case 0xf8ff: + byte_stream_value = 0xf0; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_icelandic.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_icelandic.h new file mode 100644 index 0000000..9acf963 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_icelandic.h @@ -0,0 +1,54 @@ +/* + * MacIcelandic codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_ICELANDIC_H ) +#define _LIBUNA_CODEPAGE_MAC_ICELANDIC_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_icelandic_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_icelandic_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_ICELANDIC_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_inuit.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_inuit.c new file mode 100644 index 0000000..92e3399 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_inuit.c @@ -0,0 +1,380 @@ +/* + * MacInuit codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_inuit.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacInuit codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_inuit_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x1403, 0x1404, 0x1405, 0x1406, 0x140a, 0x140b, 0x1431, 0x1432, + 0x1433, 0x1434, 0x1438, 0x1439, 0x1449, 0x144e, 0x144f, 0x1450, + 0x1451, 0x1455, 0x1456, 0x1466, 0x146d, 0x146e, 0x146f, 0x1470, + 0x1472, 0x1473, 0x1483, 0x148b, 0x148c, 0x148d, 0x148e, 0x1490, + 0x1491, 0x00b0, 0x14a1, 0x14a5, 0x14a6, 0x2022, 0x00b6, 0x14a7, + 0x00ae, 0x00a9, 0x2122, 0x14a8, 0x14aa, 0x14ab, 0x14bb, 0x14c2, + 0x14c3, 0x14c4, 0x14c5, 0x14c7, 0x14c8, 0x14d0, 0x14ef, 0x14f0, + 0x14f1, 0x14f2, 0x14f4, 0x14f5, 0x1505, 0x14d5, 0x14d6, 0x14d7, + 0x14d8, 0x14da, 0x14db, 0x14ea, 0x1528, 0x1529, 0x152a, 0x152b, + 0x152d, 0x2026, 0x00a0, 0x152e, 0x153e, 0x1555, 0x1556, 0x1557, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x1558, 0x1559, + 0x155a, 0x155d, 0x1546, 0x1547, 0x1548, 0x1549, 0x154b, 0x154c, + 0x1550, 0x157f, 0x1580, 0x1581, 0x1582, 0x1583, 0x1584, 0x1585, + 0x158f, 0x1590, 0x1591, 0x1592, 0x1593, 0x1594, 0x1595, 0x1671, + 0x1672, 0x1673, 0x1674, 0x1675, 0x1676, 0x1596, 0x15a0, 0x15a1, + 0x15a2, 0x15a3, 0x15a4, 0x15a5, 0x15a6, 0x157c, 0x0141, 0x0142 +}; + +/* Unicode to ASCII character lookup tables for the MacInuit codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_inuit_unicode_to_byte_stream_base_0x1430[ 216 ] = { + 0x1a, 0x86, 0x87, 0x88, 0x89, 0x1a, 0x1a, 0x1a, + 0x8a, 0x8b, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x8c, 0x1a, 0x1a, 0x1a, 0x1a, 0x8d, 0x8e, + 0x8f, 0x90, 0x1a, 0x1a, 0x1a, 0x91, 0x92, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x93, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x94, 0x95, 0x96, + 0x97, 0x1a, 0x98, 0x99, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x9a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x9b, 0x9c, 0x9d, 0x9e, 0x1a, + 0x9f, 0xa0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xa2, 0x1a, 0x1a, 0x1a, 0xa3, 0xa4, 0xa7, + 0xab, 0x1a, 0xac, 0xad, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0xae, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xaf, 0xb0, 0xb1, 0xb2, 0x1a, 0xb3, + 0xb4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xb5, 0x1a, 0x1a, 0x1a, 0x1a, 0xbd, 0xbe, 0xbf, + 0xc0, 0x1a, 0xc1, 0xc2, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xc3, 0x1a, 0x1a, 0x1a, 0x1a, 0xb6, + 0xb7, 0xb8, 0xb9, 0x1a, 0xba, 0xbb, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xbc, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_inuit_unicode_to_byte_stream_base_0x1528[ 56 ] = { + 0xc4, 0xc5, 0xc6, 0xc7, 0x1a, 0xc8, 0xcb, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xcc, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xda, 0xdb, + 0xdc, 0xdd, 0x1a, 0xde, 0xdf, 0x1a, 0x1a, 0x1a, + 0xe0, 0x1a, 0x1a, 0x1a, 0x1a, 0xcd, 0xce, 0xcf, + 0xd6, 0xd7, 0xd8, 0x1a, 0x1a, 0xd9, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_inuit_unicode_to_byte_stream_base_0x1578[ 48 ] = { + 0x1a, 0x1a, 0x1a, 0x1a, 0xfd, 0x1a, 0x1a, 0xe1, + 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xe8, + 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xf5, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xf6, 0xf7, 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a +}; + +const uint8_t libuna_codepage_mac_inuit_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0x1a, 0x1a, 0xd2, 0xd3, 0x1a, 0x1a, + 0x1a, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a +}; + +/* Copies an Unicode character from a MacInuit encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_inuit_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_inuit_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_inuit_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacInuit encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_inuit_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_inuit_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( ( unicode_character < 0x0080 ) + || ( unicode_character == 0x00a9 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x1430 ) + && ( unicode_character < 0x1508 ) ) + { + unicode_character -= 0x1430; + + byte_stream_value = libuna_codepage_mac_inuit_unicode_to_byte_stream_base_0x1430[ unicode_character ]; + } + else if( ( unicode_character >= 0x1528 ) + && ( unicode_character < 0x1560 ) ) + { + unicode_character -= 0x1528; + + byte_stream_value = libuna_codepage_mac_inuit_unicode_to_byte_stream_base_0x1528[ unicode_character ]; + } + else if( ( unicode_character >= 0x1578 ) + && ( unicode_character < 0x15a8 ) ) + { + unicode_character -= 0x1578; + + byte_stream_value = libuna_codepage_mac_inuit_unicode_to_byte_stream_base_0x1578[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_inuit_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00a0: + byte_stream_value = 0xca; + break; + + case 0x00ae: + byte_stream_value = 0xa8; + break; + + case 0x00b0: + byte_stream_value = 0xa1; + break; + + case 0x00b6: + byte_stream_value = 0xa6; + break; + + case 0x0141: + byte_stream_value = 0xfe; + break; + + case 0x0142: + byte_stream_value = 0xff; + break; + + case 0x1403: + byte_stream_value = 0x80; + break; + + case 0x1404: + byte_stream_value = 0x81; + break; + + case 0x1405: + byte_stream_value = 0x82; + break; + + case 0x1406: + byte_stream_value = 0x83; + break; + + case 0x140a: + byte_stream_value = 0x84; + break; + + case 0x140b: + byte_stream_value = 0x85; + break; + + case 0x1671: + byte_stream_value = 0xef; + break; + + case 0x1672: + byte_stream_value = 0xf0; + break; + + case 0x1673: + byte_stream_value = 0xf1; + break; + + case 0x1674: + byte_stream_value = 0xf2; + break; + + case 0x1675: + byte_stream_value = 0xf3; + break; + + case 0x1676: + byte_stream_value = 0xf4; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_inuit.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_inuit.h new file mode 100644 index 0000000..3109840 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_inuit.h @@ -0,0 +1,54 @@ +/* + * MacInuit codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_INUIT_H ) +#define _LIBUNA_CODEPAGE_MAC_INUIT_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_inuit_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_inuit_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_INUIT_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_roman.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_roman.c new file mode 100644 index 0000000..dd27561 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_roman.c @@ -0,0 +1,387 @@ +/* + * MacRoman codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_roman.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacRoman codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_roman_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00c5, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x00e3, 0x00e5, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x00ec, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00f2, 0x00f4, 0x00f6, 0x00f5, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x2020, 0x00b0, 0x00a2, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x00df, + 0x00ae, 0x00a9, 0x2122, 0x00b4, 0x00a8, 0x2260, 0x00c6, 0x00d8, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x00a5, 0x00b5, 0x2202, 0x2211, + 0x220f, 0x03c0, 0x222b, 0x00aa, 0x00ba, 0x03a9, 0x00e6, 0x00f8, + 0x00bf, 0x00a1, 0x00ac, 0x221a, 0x0192, 0x2248, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x00c0, 0x00c3, 0x00d5, 0x0152, 0x0153, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x25ca, + 0x00ff, 0x0178, 0x2044, 0x20ac, 0x2039, 0x203a, 0xfb01, 0xfb02, + 0x2021, 0x00b7, 0x201a, 0x201e, 0x2030, 0x00c2, 0x00ca, 0x00c1, + 0x00cb, 0x00c8, 0x00cd, 0x00ce, 0x00cf, 0x00cc, 0x00d3, 0x00d4, + 0xf8ff, 0x00d2, 0x00da, 0x00db, 0x00d9, 0x0131, 0x02c6, 0x02dc, + 0x00af, 0x02d8, 0x02d9, 0x02da, 0x00b8, 0x02dd, 0x02db, 0x02c7 +}; + +/* Unicode to ASCII character lookup tables for the MacRoman codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_roman_unicode_to_byte_stream_base_0x00a0[ 96 ] = { + 0xca, 0xc1, 0xa2, 0xa3, 0x1a, 0xb4, 0x1a, 0xa4, + 0xac, 0xa9, 0xbb, 0xc7, 0xc2, 0x1a, 0xa8, 0xf8, + 0xa1, 0xb1, 0x1a, 0x1a, 0xab, 0xb5, 0xa6, 0xe1, + 0xfc, 0x1a, 0xbc, 0xc8, 0x1a, 0x1a, 0x1a, 0xc0, + 0xcb, 0xe7, 0xe5, 0xcc, 0x80, 0x81, 0xae, 0x82, + 0xe9, 0x83, 0xe6, 0xe8, 0xed, 0xea, 0xeb, 0xec, + 0x1a, 0x84, 0xf1, 0xee, 0xef, 0xcd, 0x85, 0x1a, + 0xaf, 0xf4, 0xf2, 0xf3, 0x86, 0x1a, 0x1a, 0xa7, + 0x88, 0x87, 0x89, 0x8b, 0x8a, 0x8c, 0xbe, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, + 0x1a, 0x96, 0x98, 0x97, 0x99, 0x9b, 0x9a, 0xd6, + 0xbf, 0x9d, 0x9c, 0x9e, 0x9f, 0x1a, 0x1a, 0xd8 +}; + +const uint8_t libuna_codepage_mac_roman_unicode_to_byte_stream_base_0x2010[ 56 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0xe2, 0x1a, 0xd2, 0xd3, 0xe3, 0x1a, + 0xa0, 0xe0, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xdc, 0xdd, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0xda, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacRoman encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_roman_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_roman_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_roman_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacRoman encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_roman_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_roman_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_roman_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2048 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_roman_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0131: + byte_stream_value = 0xf5; + break; + + case 0x0152: + byte_stream_value = 0xce; + break; + + case 0x0153: + byte_stream_value = 0xcf; + break; + + case 0x0178: + byte_stream_value = 0xd9; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x02c6: + byte_stream_value = 0xf6; + break; + + case 0x02c7: + byte_stream_value = 0xff; + break; + + case 0x02d8: + byte_stream_value = 0xf9; + break; + + case 0x02d9: + byte_stream_value = 0xfa; + break; + + case 0x02da: + byte_stream_value = 0xfb; + break; + + case 0x02db: + byte_stream_value = 0xfe; + break; + + case 0x02dc: + byte_stream_value = 0xf7; + break; + + case 0x02dd: + byte_stream_value = 0xfd; + break; + + case 0x03a9: + byte_stream_value = 0xbd; + break; + + case 0x03c0: + byte_stream_value = 0xb9; + break; + + case 0x20ac: + byte_stream_value = 0xdb; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2202: + byte_stream_value = 0xb6; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x220f: + byte_stream_value = 0xb8; + break; + + case 0x2211: + byte_stream_value = 0xb7; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x222b: + byte_stream_value = 0xba; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x25ca: + byte_stream_value = 0xd7; + break; + + case 0xf8ff: + byte_stream_value = 0xf0; + break; + + case 0xfb01: + byte_stream_value = 0xde; + break; + + case 0xfb02: + byte_stream_value = 0xdf; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_roman.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_roman.h new file mode 100644 index 0000000..12c96a9 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_roman.h @@ -0,0 +1,54 @@ +/* + * MacRoman codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_ROMAN_H ) +#define _LIBUNA_CODEPAGE_MAC_ROMAN_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_roman_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_roman_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_ROMAN_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_romanian.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_romanian.c new file mode 100644 index 0000000..72560e6 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_romanian.c @@ -0,0 +1,396 @@ +/* + * MacRomanian codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_romanian.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacRomanian codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_romanian_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00c5, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x00e3, 0x00e5, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x00ec, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00f2, 0x00f4, 0x00f6, 0x00f5, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x2020, 0x00b0, 0x00a2, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x00df, + 0x00ae, 0x00a9, 0x2122, 0x00b4, 0x00a8, 0x2260, 0x0102, 0x0218, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x00a5, 0x00b5, 0x2202, 0x2211, + 0x220f, 0x03c0, 0x222b, 0x00aa, 0x00ba, 0x03a9, 0x0103, 0x0219, + 0x00bf, 0x00a1, 0x00ac, 0x221a, 0x0192, 0x2248, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x00c0, 0x00c3, 0x00d5, 0x0152, 0x0153, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x25ca, + 0x00ff, 0x0178, 0x2044, 0x20ac, 0x2039, 0x203a, 0x021a, 0x021b, + 0x2021, 0x00b7, 0x201a, 0x201e, 0x2030, 0x00c2, 0x00ca, 0x00c1, + 0x00cb, 0x00c8, 0x00cd, 0x00ce, 0x00cf, 0x00cc, 0x00d3, 0x00d4, + 0xf8ff, 0x00d2, 0x00da, 0x00db, 0x00d9, 0x0131, 0x02c6, 0x02dc, + 0x00af, 0x02d8, 0x02d9, 0x02da, 0x00b8, 0x02dd, 0x02db, 0x02c7 +}; + +/* Unicode to ASCII character lookup tables for the MacRomanian codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_romanian_unicode_to_byte_stream_base_0x00a0[ 104 ] = { + 0xca, 0xc1, 0xa2, 0xa3, 0x1a, 0xb4, 0x1a, 0xa4, + 0xac, 0xa9, 0xbb, 0xc7, 0xc2, 0x1a, 0xa8, 0xf8, + 0xa1, 0xb1, 0x1a, 0x1a, 0xab, 0xb5, 0xa6, 0xe1, + 0xfc, 0x1a, 0xbc, 0xc8, 0x1a, 0x1a, 0x1a, 0xc0, + 0xcb, 0xe7, 0xe5, 0xcc, 0x80, 0x81, 0x1a, 0x82, + 0xe9, 0x83, 0xe6, 0xe8, 0xed, 0xea, 0xeb, 0xec, + 0x1a, 0x84, 0xf1, 0xee, 0xef, 0xcd, 0x85, 0x1a, + 0x1a, 0xf4, 0xf2, 0xf3, 0x86, 0x1a, 0x1a, 0xa7, + 0x88, 0x87, 0x89, 0x8b, 0x8a, 0x8c, 0x1a, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, + 0x1a, 0x96, 0x98, 0x97, 0x99, 0x9b, 0x9a, 0xd6, + 0x1a, 0x9d, 0x9c, 0x9e, 0x9f, 0x1a, 0x1a, 0xd8, + 0x1a, 0x1a, 0xae, 0xbe, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_romanian_unicode_to_byte_stream_base_0x2010[ 56 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0xe2, 0x1a, 0xd2, 0xd3, 0xe3, 0x1a, + 0xa0, 0xe0, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xdc, 0xdd, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0xda, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacRomanian encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_romanian_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_romanian_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_romanian_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacRomanian encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_romanian_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_romanian_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0108 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_romanian_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2048 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_romanian_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0131: + byte_stream_value = 0xf5; + break; + + case 0x0152: + byte_stream_value = 0xce; + break; + + case 0x0153: + byte_stream_value = 0xcf; + break; + + case 0x0178: + byte_stream_value = 0xd9; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x0218: + byte_stream_value = 0xaf; + break; + + case 0x0219: + byte_stream_value = 0xbf; + break; + + case 0x021a: + byte_stream_value = 0xde; + break; + + case 0x021b: + byte_stream_value = 0xdf; + break; + + case 0x02c6: + byte_stream_value = 0xf6; + break; + + case 0x02c7: + byte_stream_value = 0xff; + break; + + case 0x02d8: + byte_stream_value = 0xf9; + break; + + case 0x02d9: + byte_stream_value = 0xfa; + break; + + case 0x02da: + byte_stream_value = 0xfb; + break; + + case 0x02db: + byte_stream_value = 0xfe; + break; + + case 0x02dc: + byte_stream_value = 0xf7; + break; + + case 0x02dd: + byte_stream_value = 0xfd; + break; + + case 0x03a9: + byte_stream_value = 0xbd; + break; + + case 0x03c0: + byte_stream_value = 0xb9; + break; + + case 0x20ac: + byte_stream_value = 0xdb; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2202: + byte_stream_value = 0xb6; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x220f: + byte_stream_value = 0xb8; + break; + + case 0x2211: + byte_stream_value = 0xb7; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x222b: + byte_stream_value = 0xba; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x25ca: + byte_stream_value = 0xd7; + break; + + case 0xf8ff: + byte_stream_value = 0xf0; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_romanian.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_romanian.h new file mode 100644 index 0000000..a57945c --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_romanian.h @@ -0,0 +1,54 @@ +/* + * MacRomanian codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_ROMANIAN_H ) +#define _LIBUNA_CODEPAGE_MAC_ROMANIAN_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_romanian_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_romanian_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_ROMANIAN_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_russian.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_russian.c new file mode 100644 index 0000000..e54866d --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_russian.c @@ -0,0 +1,317 @@ +/* + * MacRussian codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_russian.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacRussian codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_russian_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, + 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, + 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, + 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, + 0x2020, 0x00b0, 0x00a2, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x0406, + 0x00ae, 0x00a9, 0x2122, 0x0402, 0x0452, 0x2260, 0x0403, 0x0453, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x0456, 0x00b5, 0x2202, 0x0408, + 0x0404, 0x0454, 0x0407, 0x0457, 0x0409, 0x0459, 0x040a, 0x045a, + 0x0458, 0x0405, 0x00ac, 0x221a, 0x0192, 0x2248, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x040b, 0x045b, 0x040c, 0x045c, 0x0455, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x201e, + 0x040e, 0x045e, 0x040f, 0x045f, 0x2116, 0x0401, 0x0451, 0x044f, + 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, + 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, + 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, + 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x00a4 +}; + +/* Unicode to ASCII character lookup tables for the MacRussian codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_russian_unicode_to_byte_stream_base_0x00a0[ 32 ] = { + 0xca, 0x1a, 0xa2, 0xa3, 0xff, 0x1a, 0x1a, 0xa4, + 0x1a, 0xa9, 0x1a, 0xc7, 0xc2, 0x1a, 0xa8, 0x1a, + 0xa1, 0xb1, 0x1a, 0x1a, 0x1a, 0xb5, 0xa6, 0x1a, + 0x1a, 0x1a, 0x1a, 0xc8, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_russian_unicode_to_byte_stream_base_0x0400[ 96 ] = { + 0x1a, 0xdd, 0xab, 0xae, 0xb8, 0xc1, 0xa7, 0xba, + 0xb7, 0xbc, 0xbe, 0xcb, 0xcd, 0x1a, 0xd8, 0xda, + 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, + 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, + 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, + 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xdf, + 0x1a, 0xde, 0xac, 0xaf, 0xb9, 0xcf, 0xb4, 0xbb, + 0xc0, 0xbd, 0xbf, 0xcc, 0xce, 0x1a, 0xd9, 0xdb +}; + +const uint8_t libuna_codepage_mac_russian_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0x1a, 0x1a, 0xd2, 0xd3, 0xd7, 0x1a, + 0xa0, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a +}; + +/* Copies an Unicode character from a MacRussian encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_russian_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_russian_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_russian_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacRussian encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_russian_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_russian_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00c0 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_russian_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0400 ) + && ( unicode_character < 0x0460 ) ) + { + unicode_character -= 0x0400; + + byte_stream_value = libuna_codepage_mac_russian_unicode_to_byte_stream_base_0x0400[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_russian_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00f7: + byte_stream_value = 0xd6; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x2116: + byte_stream_value = 0xdc; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2202: + byte_stream_value = 0xb6; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_russian.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_russian.h new file mode 100644 index 0000000..ab7ede8 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_russian.h @@ -0,0 +1,54 @@ +/* + * MacRussian codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_RUSSIAN_H ) +#define _LIBUNA_CODEPAGE_MAC_RUSSIAN_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_russian_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_russian_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_RUSSIAN_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_symbol.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_symbol.c new file mode 100644 index 0000000..0f2aa06 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_symbol.c @@ -0,0 +1,537 @@ +/* + * MacSymbol codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_symbol.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacSymbol codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_symbol_byte_stream_to_unicode_base_0x20[ 224 ] = { + 0x0020, 0x0021, 0x2200, 0x0023, 0x2203, 0x0025, 0x0026, 0x220d, + 0x0028, 0x0029, 0x2217, 0x002b, 0x002c, 0x2212, 0x002e, 0x002f, + 0x0030, 0x0031, 0x0032, 0x0033, 0x0034, 0x0035, 0x0036, 0x0037, + 0x0038, 0x0039, 0x003a, 0x003b, 0x003c, 0x003d, 0x003e, 0x003f, + 0x2245, 0x0391, 0x0392, 0x03a7, 0x0394, 0x0395, 0x03a6, 0x0393, + 0x0397, 0x0399, 0x03d1, 0x039a, 0x039b, 0x039c, 0x039d, 0x039f, + 0x03a0, 0x0398, 0x03a1, 0x03a3, 0x03a4, 0x03a5, 0x03c2, 0x03a9, + 0x039e, 0x03a8, 0x0396, 0x005b, 0x2234, 0x005d, 0x22a5, 0x005f, + 0xf8e5, 0x03b1, 0x03b2, 0x03c7, 0x03b4, 0x03b5, 0x03c6, 0x03b3, + 0x03b7, 0x03b9, 0x03d5, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03bf, + 0x03c0, 0x03b8, 0x03c1, 0x03c3, 0x03c4, 0x03c5, 0x03d6, 0x03c9, + 0x03be, 0x03c8, 0x03b6, 0x007b, 0x007c, 0x007d, 0x223c, 0x007f, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0x20ac, 0x03d2, 0x2032, 0x2264, 0x2044, 0x221e, 0x0192, 0x2663, + 0x2666, 0x2665, 0x2660, 0x2194, 0x2190, 0x2191, 0x2192, 0x2193, + 0x00b0, 0x00b1, 0x2033, 0x2265, 0x00d7, 0x221d, 0x2202, 0x2022, + 0x00f7, 0x2260, 0x2261, 0x2248, 0x2026, 0x23d0, 0x23af, 0x21b5, + 0x2135, 0x2111, 0x211c, 0x2118, 0x2297, 0x2295, 0x2205, 0x2229, + 0x222a, 0x2283, 0x2287, 0x2284, 0x2282, 0x2286, 0x2208, 0x2209, + 0x2220, 0x2207, 0x00ae, 0x00a9, 0x2122, 0x220f, 0x221a, 0x22c5, + 0x00ac, 0x2227, 0x2228, 0x21d4, 0x21d0, 0x21d1, 0x21d2, 0x21d3, + 0x25ca, 0x3008, 0x00ae, 0x00a9, 0x2122, 0x2211, 0x239b, 0x239c, + 0x239d, 0x23a1, 0x23a2, 0x23a3, 0x23a7, 0x23a8, 0x23a9, 0x23aa, + 0xf8ff, 0x3009, 0x222b, 0x2320, 0x23ae, 0x2321, 0x239e, 0x239f, + 0x23a0, 0x23a4, 0x23a5, 0x23a6, 0x23ab, 0x23ac, 0x23ad, 0xfffd +}; + +/* Unicode to ASCII character lookup tables for the MacSymbol codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_symbol_unicode_to_byte_stream_base_0x0390[ 72 ] = { + 0x1a, 0x41, 0x42, 0x47, 0x44, 0x45, 0x5a, 0x48, + 0x51, 0x49, 0x4b, 0x4c, 0x4d, 0x4e, 0x58, 0x4f, + 0x50, 0x52, 0x1a, 0x53, 0x54, 0x55, 0x46, 0x43, + 0x59, 0x57, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x61, 0x62, 0x67, 0x64, 0x65, 0x7a, 0x68, + 0x71, 0x69, 0x6b, 0x6c, 0x6d, 0x6e, 0x78, 0x6f, + 0x70, 0x72, 0x56, 0x73, 0x74, 0x75, 0x66, 0x63, + 0x79, 0x77, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x4a, 0xa1, 0x1a, 0x1a, 0x6a, 0x76, 0x1a +}; + +const uint8_t libuna_codepage_mac_symbol_unicode_to_byte_stream_base_0x2200[ 80 ] = { + 0x22, 0x1a, 0xb6, 0x24, 0x1a, 0xc6, 0x1a, 0xd1, + 0xce, 0xcf, 0x1a, 0x1a, 0x1a, 0x27, 0x1a, 0xd5, + 0x1a, 0xe5, 0x2d, 0x1a, 0x1a, 0x1a, 0x1a, 0x2a, + 0x1a, 0x1a, 0xd6, 0x1a, 0x1a, 0xb5, 0xa5, 0x1a, + 0xd0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd9, + 0xda, 0xc7, 0xc8, 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x5c, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x7e, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x40, 0x1a, 0x1a, + 0xbb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_symbol_unicode_to_byte_stream_base_0x2280[ 40 ] = { + 0x1a, 0x1a, 0xcc, 0xc9, 0xcb, 0x1a, 0xcd, 0xca, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xc5, 0x1a, 0xc4, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x5e, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_symbol_unicode_to_byte_stream_base_0x2398[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0xe6, 0xe7, 0xe8, 0xf6, 0xf7, + 0xf8, 0xe9, 0xea, 0xeb, 0xf9, 0xfa, 0xfb, 0xec, + 0xed, 0xee, 0xef, 0xfc, 0xfd, 0xfe, 0xf4, 0xbe +}; + +/* Determines the size of a MacSymbol encoded byte stream from an Unicode character + * Adds the size to the byte stream character size value + * Returns 1 if successful, 0 if the byte stream character is valid but not supported since it requires special handling or -1 on error + */ +int libuna_codepage_mac_symbol_unicode_character_size_to_byte_stream( + libuna_unicode_character_t unicode_character, + size_t *byte_stream_character_size, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_symbol_unicode_character_size_to_byte_stream"; + int result = 0; + + if( byte_stream_character_size == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream character size.", + function ); + + return( -1 ); + } + switch( unicode_character ) + { + case 0x000000aeUL: + case 0x000000a9UL: + case 0x00002122UL: + result = 0; + break; + + default: + *byte_stream_character_size += 1; + + result = 1; + break; + } + return( result ); +} + +/* Copies an Unicode character from a MacSymbol encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_symbol_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_symbol_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x20 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x20; + + safe_unicode_character = libuna_codepage_mac_symbol_byte_stream_to_unicode_base_0x20[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacSymbol encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_symbol_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_symbol_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( ( unicode_character <= 0x0021 ) + || ( unicode_character == 0x0023 ) + || ( unicode_character == 0x0025 ) + || ( unicode_character == 0x0026 ) + || ( unicode_character == 0x0028 ) + || ( unicode_character == 0x0029 ) + || ( unicode_character == 0x002b ) + || ( unicode_character == 0x002c ) + || ( ( unicode_character >= 0x002e ) + && ( unicode_character <= 0x003f ) ) + || ( unicode_character == 0x005b ) + || ( unicode_character == 0x005d ) + || ( unicode_character == 0x005f ) + || ( unicode_character == 0x007b ) + || ( unicode_character == 0x007c ) + || ( unicode_character == 0x007d ) + || ( unicode_character == 0x007f ) + || ( unicode_character == 0x00b0 ) + || ( unicode_character == 0x00b1 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0390 ) + && ( unicode_character < 0x03d8 ) ) + { + unicode_character -= 0x0390; + + byte_stream_value = libuna_codepage_mac_symbol_unicode_to_byte_stream_base_0x0390[ unicode_character ]; + } + else if( ( unicode_character >= 0x2200 ) + && ( unicode_character < 0x2250 ) ) + { + unicode_character -= 0x2200; + + byte_stream_value = libuna_codepage_mac_symbol_unicode_to_byte_stream_base_0x2200[ unicode_character ]; + } + else if( ( unicode_character >= 0x2280 ) + && ( unicode_character < 0x22a8 ) ) + { + unicode_character -= 0x2280; + + byte_stream_value = libuna_codepage_mac_symbol_unicode_to_byte_stream_base_0x2280[ unicode_character ]; + } + else if( ( unicode_character >= 0x2398 ) + && ( unicode_character < 0x23b0 ) ) + { + unicode_character -= 0x2398; + + byte_stream_value = libuna_codepage_mac_symbol_unicode_to_byte_stream_base_0x2398[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00a9: + byte_stream_value = 0xd3; + break; + + case 0x00ac: + byte_stream_value = 0xd8; + break; + + case 0x00ae: + byte_stream_value = 0xd2; + break; + + case 0x00d7: + byte_stream_value = 0xb4; + break; + + case 0x00f7: + byte_stream_value = 0xb8; + break; + + case 0x0192: + byte_stream_value = 0xa6; + break; + + case 0x2022: + byte_stream_value = 0xb7; + break; + + case 0x2026: + byte_stream_value = 0xbc; + break; + + case 0x2032: + byte_stream_value = 0xa2; + break; + + case 0x2033: + byte_stream_value = 0xb2; + break; + + case 0x2044: + byte_stream_value = 0xa4; + break; + + case 0x20ac: + byte_stream_value = 0xa0; + break; + + case 0x2111: + byte_stream_value = 0xc1; + break; + + case 0x2118: + byte_stream_value = 0xc3; + break; + + case 0x211c: + byte_stream_value = 0xc2; + break; + + case 0x2122: + byte_stream_value = 0xd4; + break; + + case 0x2135: + byte_stream_value = 0xc0; + break; + + case 0x2190: + byte_stream_value = 0xac; + break; + + case 0x2191: + byte_stream_value = 0xad; + break; + + case 0x2192: + byte_stream_value = 0xae; + break; + + case 0x2193: + byte_stream_value = 0xaf; + break; + + case 0x2194: + byte_stream_value = 0xab; + break; + + case 0x21b5: + byte_stream_value = 0xbf; + break; + + case 0x21d0: + byte_stream_value = 0xdc; + break; + + case 0x21d1: + byte_stream_value = 0xdd; + break; + + case 0x21d2: + byte_stream_value = 0xde; + break; + + case 0x21d3: + byte_stream_value = 0xdf; + break; + + case 0x21d4: + byte_stream_value = 0xdb; + break; + + case 0x2260: + byte_stream_value = 0xb9; + break; + + case 0x2261: + byte_stream_value = 0xba; + break; + + case 0x2264: + byte_stream_value = 0xa3; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x22c5: + byte_stream_value = 0xd7; + break; + + case 0x2320: + byte_stream_value = 0xf3; + break; + + case 0x2321: + byte_stream_value = 0xf5; + break; + + case 0x23d0: + byte_stream_value = 0xbd; + break; + + case 0x25ca: + byte_stream_value = 0xe0; + break; + + case 0x2660: + byte_stream_value = 0xaa; + break; + + case 0x2663: + byte_stream_value = 0xa7; + break; + + case 0x2665: + byte_stream_value = 0xa9; + break; + + case 0x2666: + byte_stream_value = 0xa8; + break; + + case 0x3008: + byte_stream_value = 0xe1; + break; + + case 0x3009: + byte_stream_value = 0xf1; + break; + + case 0xf8e5: + byte_stream_value = 0x60; + break; + + case 0xf8ff: + byte_stream_value = 0xf0; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_symbol.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_symbol.h new file mode 100644 index 0000000..f964668 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_symbol.h @@ -0,0 +1,59 @@ +/* + * MacSymbol codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_SYMBOL_H ) +#define _LIBUNA_CODEPAGE_MAC_SYMBOL_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_symbol_unicode_character_size_to_byte_stream( + libuna_unicode_character_t unicode_character, + size_t *byte_stream_character_size, + libcerror_error_t **error ); + +int libuna_codepage_mac_symbol_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_symbol_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_SYMBOL_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_thai.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_thai.c new file mode 100644 index 0000000..cd8d3a1 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_thai.c @@ -0,0 +1,330 @@ +/* + * MacThai codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_thai.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacThai codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_thai_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00ab, 0x00bb, 0x2026, 0x0e48, 0x0e49, 0x0e4a, 0x0e4b, 0x0e4c, + 0x0e48, 0x0e49, 0x0e4a, 0x0e4b, 0x0e4c, 0x201c, 0x201d, 0x0e4d, + 0xfffd, 0x2022, 0x0e31, 0x0e47, 0x0e34, 0x0e35, 0x0e36, 0x0e37, + 0x0e48, 0x0e49, 0x0e4a, 0x0e4b, 0x0e4c, 0x2018, 0x2019, 0xfffd, + 0x00a0, 0x0e01, 0x0e02, 0x0e03, 0x0e04, 0x0e05, 0x0e06, 0x0e07, + 0x0e08, 0x0e09, 0x0e0a, 0x0e0b, 0x0e0c, 0x0e0d, 0x0e0e, 0x0e0f, + 0x0e10, 0x0e11, 0x0e12, 0x0e13, 0x0e14, 0x0e15, 0x0e16, 0x0e17, + 0x0e18, 0x0e19, 0x0e1a, 0x0e1b, 0x0e1c, 0x0e1d, 0x0e1e, 0x0e1f, + 0x0e20, 0x0e21, 0x0e22, 0x0e23, 0x0e24, 0x0e25, 0x0e26, 0x0e27, + 0x0e28, 0x0e29, 0x0e2a, 0x0e2b, 0x0e2c, 0x0e2d, 0x0e2e, 0x0e2f, + 0x0e30, 0x0e31, 0x0e32, 0x0e33, 0x0e34, 0x0e35, 0x0e36, 0x0e37, + 0x0e38, 0x0e39, 0x0e3a, 0x2060, 0x200b, 0x2013, 0x2014, 0x0e3f, + 0x0e40, 0x0e41, 0x0e42, 0x0e43, 0x0e44, 0x0e45, 0x0e46, 0x0e47, + 0x0e48, 0x0e49, 0x0e4a, 0x0e4b, 0x0e4c, 0x0e4d, 0x2122, 0x0e4f, + 0x0e50, 0x0e51, 0x0e52, 0x0e53, 0x0e54, 0x0e55, 0x0e56, 0x0e57, + 0x0e58, 0x0e59, 0x00ae, 0x00a9, 0xfffd, 0xfffd, 0xfffd, 0xfffd +}; + +/* Unicode to ASCII character lookup tables for the MacThai codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_thai_unicode_to_byte_stream_base_0x0e00[ 96 ] = { + 0x1a, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, + 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, + 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, + 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, + 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0x1a, 0x1a, 0x1a, 0x1a, 0xdf, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0x1a, 0xef, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_thai_unicode_to_byte_stream_base_0x2008[ 32 ] = { + 0x1a, 0x1a, 0x1a, 0xdc, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0xdd, 0xde, 0x1a, 0x1a, 0x1a, + 0x9d, 0x9e, 0x1a, 0x1a, 0x8d, 0x8e, 0x1a, 0x1a, + 0x1a, 0x1a, 0x91, 0x1a, 0x1a, 0x1a, 0x82, 0x1a +}; + +/* Determines the size of a MacThai encoded byte stream from an Unicode character + * Adds the size to the byte stream character size value + * Returns 1 if successful, 0 if the byte stream character is valid but not supported since it requires special handling or -1 on error + */ +int libuna_codepage_mac_thai_unicode_character_size_to_byte_stream( + libuna_unicode_character_t unicode_character, + size_t *byte_stream_character_size, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_thai_unicode_character_size_to_byte_stream"; + int result = 0; + + if( byte_stream_character_size == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream character size.", + function ); + + return( -1 ); + } + switch( unicode_character ) + { + case 0x00000e31UL: + case 0x00000e34UL: + case 0x00000e35UL: + case 0x00000e36UL: + case 0x00000e37UL: + case 0x00000e47UL: + case 0x00000e48UL: + case 0x00000e49UL: + case 0x00000e4aUL: + case 0x00000e4bUL: + case 0x00000e4cUL: + case 0x00000e4dUL: + result = 0; + break; + + default: + *byte_stream_character_size += 1; + + result = 1; + break; + } + return( result ); +} + +/* Copies an Unicode character from a MacThai encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_thai_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_thai_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_thai_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacThai encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_thai_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_thai_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( ( unicode_character < 0x0080 ) + || ( unicode_character == 0x00a0 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0e00 ) + && ( unicode_character < 0x0e60 ) ) + { + unicode_character -= 0x0e00; + + byte_stream_value = libuna_codepage_mac_thai_unicode_to_byte_stream_base_0x0e00[ unicode_character ]; + } + else if( ( unicode_character >= 0x2008 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2008; + + byte_stream_value = libuna_codepage_mac_thai_unicode_to_byte_stream_base_0x2008[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00a9: + byte_stream_value = 0xfb; + break; + + case 0x00ab: + byte_stream_value = 0x80; + break; + + case 0x00ae: + byte_stream_value = 0xfa; + break; + + case 0x00bb: + byte_stream_value = 0x81; + break; + + case 0x2060: + byte_stream_value = 0xdb; + break; + + case 0x2122: + byte_stream_value = 0xee; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_thai.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_thai.h new file mode 100644 index 0000000..595f578 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_thai.h @@ -0,0 +1,59 @@ +/* + * MacThai codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_THAI_H ) +#define _LIBUNA_CODEPAGE_MAC_THAI_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_thai_unicode_character_size_to_byte_stream( + libuna_unicode_character_t unicode_character, + size_t *byte_stream_character_size, + libcerror_error_t **error ); + +int libuna_codepage_mac_thai_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_thai_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_THAI_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_turkish.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_turkish.c new file mode 100644 index 0000000..597b805 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_turkish.c @@ -0,0 +1,397 @@ +/* + * MacTurkish codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_turkish.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacTurkish codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_turkish_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x00c4, 0x00c5, 0x00c7, 0x00c9, 0x00d1, 0x00d6, 0x00dc, 0x00e1, + 0x00e0, 0x00e2, 0x00e4, 0x00e3, 0x00e5, 0x00e7, 0x00e9, 0x00e8, + 0x00ea, 0x00eb, 0x00ed, 0x00ec, 0x00ee, 0x00ef, 0x00f1, 0x00f3, + 0x00f2, 0x00f4, 0x00f6, 0x00f5, 0x00fa, 0x00f9, 0x00fb, 0x00fc, + 0x2020, 0x00b0, 0x00a2, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x00df, + 0x00ae, 0x00a9, 0x2122, 0x00b4, 0x00a8, 0x2260, 0x00c6, 0x00d8, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x00a5, 0x00b5, 0x2202, 0x2211, + 0x220f, 0x03c0, 0x222b, 0x00aa, 0x00ba, 0x03a9, 0x00e6, 0x00f8, + 0x00bf, 0x00a1, 0x00ac, 0x221a, 0x0192, 0x2248, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x00c0, 0x00c3, 0x00d5, 0x0152, 0x0153, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x25ca, + 0x00ff, 0x0178, 0x011e, 0x011f, 0x0130, 0x0131, 0x015e, 0x015f, + 0x2021, 0x00b7, 0x201a, 0x201e, 0x2030, 0x00c2, 0x00ca, 0x00c1, + 0x00cb, 0x00c8, 0x00cd, 0x00ce, 0x00cf, 0x00cc, 0x00d3, 0x00d4, + 0xf8ff, 0x00d2, 0x00da, 0x00db, 0x00d9, 0xf8a0, 0x02c6, 0x02dc, + 0x00af, 0x02d8, 0x02d9, 0x02da, 0x00b8, 0x02dd, 0x02db, 0x02c7 +}; + +/* Unicode to ASCII character lookup tables for the MacTurkish codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_turkish_unicode_to_byte_stream_base_0x00a0[ 96 ] = { + 0xca, 0xc1, 0xa2, 0xa3, 0x1a, 0xb4, 0x1a, 0xa4, + 0xac, 0xa9, 0xbb, 0xc7, 0xc2, 0x1a, 0xa8, 0xf8, + 0xa1, 0xb1, 0x1a, 0x1a, 0xab, 0xb5, 0xa6, 0xe1, + 0xfc, 0x1a, 0xbc, 0xc8, 0x1a, 0x1a, 0x1a, 0xc0, + 0xcb, 0xe7, 0xe5, 0xcc, 0x80, 0x81, 0xae, 0x82, + 0xe9, 0x83, 0xe6, 0xe8, 0xed, 0xea, 0xeb, 0xec, + 0x1a, 0x84, 0xf1, 0xee, 0xef, 0xcd, 0x85, 0x1a, + 0xaf, 0xf4, 0xf2, 0xf3, 0x86, 0x1a, 0x1a, 0xa7, + 0x88, 0x87, 0x89, 0x8b, 0x8a, 0x8c, 0xbe, 0x8d, + 0x8f, 0x8e, 0x90, 0x91, 0x93, 0x92, 0x94, 0x95, + 0x1a, 0x96, 0x98, 0x97, 0x99, 0x9b, 0x9a, 0xd6, + 0xbf, 0x9d, 0x9c, 0x9e, 0x9f, 0x1a, 0x1a, 0xd8 +}; + +const uint8_t libuna_codepage_mac_turkish_unicode_to_byte_stream_base_0x2010[ 40 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0xe2, 0x1a, 0xd2, 0xd3, 0xe3, 0x1a, + 0xa0, 0xe0, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xe4, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a MacTurkish encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_turkish_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_turkish_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_turkish_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacTurkish encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_turkish_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_turkish_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_turkish_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2038 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_turkish_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x011e: + byte_stream_value = 0xda; + break; + + case 0x011f: + byte_stream_value = 0xdb; + break; + + case 0x0130: + byte_stream_value = 0xdc; + break; + + case 0x0131: + byte_stream_value = 0xdd; + break; + + case 0x0152: + byte_stream_value = 0xce; + break; + + case 0x0153: + byte_stream_value = 0xcf; + break; + + case 0x015e: + byte_stream_value = 0xde; + break; + + case 0x015f: + byte_stream_value = 0xdf; + break; + + case 0x0178: + byte_stream_value = 0xd9; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x02c6: + byte_stream_value = 0xf6; + break; + + case 0x02c7: + byte_stream_value = 0xff; + break; + + case 0x02d8: + byte_stream_value = 0xf9; + break; + + case 0x02d9: + byte_stream_value = 0xfa; + break; + + case 0x02da: + byte_stream_value = 0xfb; + break; + + case 0x02db: + byte_stream_value = 0xfe; + break; + + case 0x02dc: + byte_stream_value = 0xf7; + break; + + case 0x02dd: + byte_stream_value = 0xfd; + break; + + case 0x03a9: + byte_stream_value = 0xbd; + break; + + case 0x03c0: + byte_stream_value = 0xb9; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2202: + byte_stream_value = 0xb6; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x220f: + byte_stream_value = 0xb8; + break; + + case 0x2211: + byte_stream_value = 0xb7; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x222b: + byte_stream_value = 0xba; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + case 0x25ca: + byte_stream_value = 0xd7; + break; + + case 0xf8a0: + byte_stream_value = 0xf5; + break; + + case 0xf8ff: + byte_stream_value = 0xf0; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_turkish.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_turkish.h new file mode 100644 index 0000000..862cebd --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_turkish.h @@ -0,0 +1,54 @@ +/* + * MacTurkish codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_TURKISH_H ) +#define _LIBUNA_CODEPAGE_MAC_TURKISH_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_turkish_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_turkish_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_TURKISH_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_ukrainian.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_ukrainian.c new file mode 100644 index 0000000..53690b4 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_ukrainian.c @@ -0,0 +1,321 @@ +/* + * MacUkrainian codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_mac_ukrainian.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the MacUkrainian codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_mac_ukrainian_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, + 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, + 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, + 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, + 0x2020, 0x00b0, 0x0490, 0x00a3, 0x00a7, 0x2022, 0x00b6, 0x0406, + 0x00ae, 0x00a9, 0x2122, 0x0402, 0x0452, 0x2260, 0x0403, 0x0453, + 0x221e, 0x00b1, 0x2264, 0x2265, 0x0456, 0x00b5, 0x0491, 0x0408, + 0x0404, 0x0454, 0x0407, 0x0457, 0x0409, 0x0459, 0x040a, 0x045a, + 0x0458, 0x0405, 0x00ac, 0x221a, 0x0192, 0x2248, 0x2206, 0x00ab, + 0x00bb, 0x2026, 0x00a0, 0x040b, 0x045b, 0x040c, 0x045c, 0x0455, + 0x2013, 0x2014, 0x201c, 0x201d, 0x2018, 0x2019, 0x00f7, 0x201e, + 0x040e, 0x045e, 0x040f, 0x045f, 0x2116, 0x0401, 0x0451, 0x044f, + 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, + 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, + 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, + 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x00a4 +}; + +/* Unicode to ASCII character lookup tables for the MacUkrainian codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_mac_ukrainian_unicode_to_byte_stream_base_0x00a0[ 32 ] = { + 0xca, 0x1a, 0x1a, 0xa3, 0xff, 0x1a, 0x1a, 0xa4, + 0x1a, 0xa9, 0x1a, 0xc7, 0xc2, 0x1a, 0xa8, 0x1a, + 0xa1, 0xb1, 0x1a, 0x1a, 0x1a, 0xb5, 0xa6, 0x1a, + 0x1a, 0x1a, 0x1a, 0xc8, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_mac_ukrainian_unicode_to_byte_stream_base_0x0400[ 96 ] = { + 0x1a, 0xdd, 0xab, 0xae, 0xb8, 0xc1, 0xa7, 0xba, + 0xb7, 0xbc, 0xbe, 0xcb, 0xcd, 0x1a, 0xd8, 0xda, + 0x80, 0x81, 0x82, 0x83, 0x84, 0x85, 0x86, 0x87, + 0x88, 0x89, 0x8a, 0x8b, 0x8c, 0x8d, 0x8e, 0x8f, + 0x90, 0x91, 0x92, 0x93, 0x94, 0x95, 0x96, 0x97, + 0x98, 0x99, 0x9a, 0x9b, 0x9c, 0x9d, 0x9e, 0x9f, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xdf, + 0x1a, 0xde, 0xac, 0xaf, 0xb9, 0xcf, 0xb4, 0xbb, + 0xc0, 0xbd, 0xbf, 0xcc, 0xce, 0x1a, 0xd9, 0xdb +}; + +const uint8_t libuna_codepage_mac_ukrainian_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0xd0, 0xd1, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0x1a, 0x1a, 0xd2, 0xd3, 0xd7, 0x1a, + 0xa0, 0x1a, 0xa5, 0x1a, 0x1a, 0x1a, 0xc9, 0x1a +}; + +/* Copies an Unicode character from a MacUkrainian encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_ukrainian_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_ukrainian_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_mac_ukrainian_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a MacUkrainian encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_mac_ukrainian_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_mac_ukrainian_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00c0 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_mac_ukrainian_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0400 ) + && ( unicode_character < 0x0460 ) ) + { + unicode_character -= 0x0400; + + byte_stream_value = libuna_codepage_mac_ukrainian_unicode_to_byte_stream_base_0x0400[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_mac_ukrainian_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00f7: + byte_stream_value = 0xd6; + break; + + case 0x0192: + byte_stream_value = 0xc4; + break; + + case 0x0490: + byte_stream_value = 0xa2; + break; + + case 0x0491: + byte_stream_value = 0xb6; + break; + + case 0x2116: + byte_stream_value = 0xdc; + break; + + case 0x2122: + byte_stream_value = 0xaa; + break; + + case 0x2206: + byte_stream_value = 0xc6; + break; + + case 0x221a: + byte_stream_value = 0xc3; + break; + + case 0x221e: + byte_stream_value = 0xb0; + break; + + case 0x2248: + byte_stream_value = 0xc5; + break; + + case 0x2260: + byte_stream_value = 0xad; + break; + + case 0x2264: + byte_stream_value = 0xb2; + break; + + case 0x2265: + byte_stream_value = 0xb3; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_ukrainian.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_ukrainian.h new file mode 100644 index 0000000..4ce26aa --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_mac_ukrainian.h @@ -0,0 +1,54 @@ +/* + * MacUkrainian codepage functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#if !defined( _LIBUNA_CODEPAGE_MAC_UKRAINIAN_H ) +#define _LIBUNA_CODEPAGE_MAC_UKRAINIAN_H + +#include +#include + +#include "libuna_libcerror.h" +#include "libuna_types.h" + +#if defined( __cplusplus ) +extern "C" { +#endif + +int libuna_codepage_mac_ukrainian_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_mac_ukrainian_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +#if defined( __cplusplus ) +} +#endif + +#endif /* !defined( _LIBUNA_CODEPAGE_MAC_UKRAINIAN_H ) */ + diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1250.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1250.c new file mode 100644 index 0000000..094c055 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1250.c @@ -0,0 +1,313 @@ +/* + * Windows 1250 codepage (Central European) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1250.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 1250 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1250_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x20ac, 0xfffd, 0x201a, 0xfffd, 0x201e, 0x2026, 0x2020, 0x2021, + 0xfffd, 0x2030, 0x0160, 0x2039, 0x015a, 0x0164, 0x017d, 0x0179, + 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0xfffd, 0x2122, 0x0161, 0x203a, 0x015b, 0x0165, 0x017e, 0x017a, + 0x00a0, 0x02c7, 0x02d8, 0x0141, 0x00a4, 0x0104, 0x00a6, 0x00a7, + 0x00a8, 0x00a9, 0x015e, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x017b, + 0x00b0, 0x00b1, 0x02db, 0x0142, 0x00b4, 0x00b5, 0x00b6, 0x00b7, + 0x00b8, 0x0105, 0x015f, 0x00bb, 0x013d, 0x02dd, 0x013e, 0x017c, + 0x0154, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x0139, 0x0106, 0x00c7, + 0x010c, 0x00c9, 0x0118, 0x00cb, 0x011a, 0x00cd, 0x00ce, 0x010e, + 0x0110, 0x0143, 0x0147, 0x00d3, 0x00d4, 0x0150, 0x00d6, 0x00d7, + 0x0158, 0x016e, 0x00da, 0x0170, 0x00dc, 0x00dd, 0x0162, 0x00df, + 0x0155, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x013a, 0x0107, 0x00e7, + 0x010d, 0x00e9, 0x0119, 0x00eb, 0x011b, 0x00ed, 0x00ee, 0x010f, + 0x0111, 0x0144, 0x0148, 0x00f3, 0x00f4, 0x0151, 0x00f6, 0x00f7, + 0x0159, 0x016f, 0x00fa, 0x0171, 0x00fc, 0x00fd, 0x0163, 0x02d9 +}; + +/* Unicode to ASCII character lookup tables for the Windows 1250 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x00a0[ 128 ] = { + 0xa0, 0x1a, 0x1a, 0x1a, 0xa4, 0x1a, 0xa6, 0xa7, + 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, + 0xb0, 0xb1, 0x1a, 0x1a, 0xb4, 0xb5, 0xb6, 0xb7, + 0xb8, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xc1, 0xc2, 0x1a, 0xc4, 0x1a, 0x1a, 0xc7, + 0x1a, 0xc9, 0x1a, 0xcb, 0x1a, 0xcd, 0xce, 0x1a, + 0x1a, 0x1a, 0x1a, 0xd3, 0xd4, 0x1a, 0xd6, 0xd7, + 0x1a, 0x1a, 0xda, 0x1a, 0xdc, 0xdd, 0x1a, 0xdf, + 0x1a, 0xe1, 0xe2, 0x1a, 0xe4, 0x1a, 0x1a, 0xe7, + 0x1a, 0xe9, 0x1a, 0xeb, 0x1a, 0xed, 0xee, 0x1a, + 0x1a, 0x1a, 0x1a, 0xf3, 0xf4, 0x1a, 0xf6, 0xf7, + 0x1a, 0x1a, 0xfa, 0x1a, 0xfc, 0xfd, 0x1a, 0x1a, + 0x1a, 0x1a, 0xc3, 0xe3, 0xa5, 0xb9, 0xc6, 0xe6, + 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0xcf, 0xef, + 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xca, 0xea, 0xcc, 0xec, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x0138[ 72 ] = { + 0x1a, 0xc5, 0xe5, 0x1a, 0x1a, 0xbc, 0xbe, 0x1a, + 0x1a, 0xa3, 0xb3, 0xd1, 0xf1, 0x1a, 0x1a, 0xd2, + 0xf2, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xd5, 0xf5, 0x1a, 0x1a, 0xc0, 0xe0, 0x1a, 0x1a, + 0xd8, 0xf8, 0x8c, 0x9c, 0x1a, 0x1a, 0xaa, 0xba, + 0x8a, 0x9a, 0xde, 0xfe, 0x8d, 0x9d, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xd9, 0xf9, + 0xdb, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x8f, 0x9f, 0xaf, 0xbf, 0x8e, 0x9e, 0x1a +}; + +const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x02d8[ 8 ] = { + 0xa2, 0xff, 0x1a, 0xb2, 0x1a, 0xbd, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a +}; + +const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2030[ 16 ] = { + 0x89, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x8b, 0x9b, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a Windows 1250 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1250_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1250_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1250_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1250 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1250_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1250_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0120 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0138 ) + && ( unicode_character < 0x0180 ) ) + { + unicode_character -= 0x0138; + + byte_stream_value = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x0138[ unicode_character ]; + } + else if( ( unicode_character >= 0x02d8 ) + && ( unicode_character < 0x02e0 ) ) + { + unicode_character -= 0x02d8; + + byte_stream_value = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x02d8[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else if( ( unicode_character >= 0x2030 ) + && ( unicode_character < 0x2040 ) ) + { + unicode_character -= 0x2030; + + byte_stream_value = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2030[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x02c7: + byte_stream_value = 0xa1; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1250.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1250.h similarity index 58% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1250.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1250.h index 87e473f..c3165b5 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1250.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1250.h @@ -1,7 +1,7 @@ /* * Windows 1250 codepage (Central European) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,29 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1250_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x00a0[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x0138[ 72 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x02d8[ 8 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2010[ 24 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2030[ 16 ]; +int libuna_codepage_windows_1250_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1250_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1251.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1251.c new file mode 100644 index 0000000..141e0b7 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1251.c @@ -0,0 +1,301 @@ +/* + * Windows 1251 codepage (Cyrillic) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1251.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 1251 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1251_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x0402, 0x0403, 0x201a, 0x0453, 0x201e, 0x2026, 0x2020, 0x2021, + 0x20ac, 0x2030, 0x0409, 0x2039, 0x040a, 0x040c, 0x040b, 0x040f, + 0x0452, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0xfffd, 0x2122, 0x0459, 0x203a, 0x045a, 0x045c, 0x045b, 0x045f, + 0x00a0, 0x040e, 0x045e, 0x0408, 0x00a4, 0x0490, 0x00a6, 0x00a7, + 0x0401, 0x00a9, 0x0404, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x0407, + 0x00b0, 0x00b1, 0x0406, 0x0456, 0x0491, 0x00b5, 0x00b6, 0x00b7, + 0x0451, 0x2116, 0x0454, 0x00bb, 0x0458, 0x0405, 0x0455, 0x0457, + 0x0410, 0x0411, 0x0412, 0x0413, 0x0414, 0x0415, 0x0416, 0x0417, + 0x0418, 0x0419, 0x041a, 0x041b, 0x041c, 0x041d, 0x041e, 0x041f, + 0x0420, 0x0421, 0x0422, 0x0423, 0x0424, 0x0425, 0x0426, 0x0427, + 0x0428, 0x0429, 0x042a, 0x042b, 0x042c, 0x042d, 0x042e, 0x042f, + 0x0430, 0x0431, 0x0432, 0x0433, 0x0434, 0x0435, 0x0436, 0x0437, + 0x0438, 0x0439, 0x043a, 0x043b, 0x043c, 0x043d, 0x043e, 0x043f, + 0x0440, 0x0441, 0x0442, 0x0443, 0x0444, 0x0445, 0x0446, 0x0447, + 0x0448, 0x0449, 0x044a, 0x044b, 0x044c, 0x044d, 0x044e, 0x044f +}; + +/* Unicode to ASCII character lookup tables for the Windows 1251 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x00a0[ 32 ] = { + 0xa0, 0x1a, 0x1a, 0x1a, 0xa4, 0x1a, 0xa6, 0xa7, + 0x1a, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, + 0xb0, 0xb1, 0x1a, 0x1a, 0x1a, 0xb5, 0xb6, 0xb7, + 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x0400[ 96 ] = { + 0x1a, 0xa8, 0x80, 0x81, 0xaa, 0xbd, 0xb2, 0xaf, + 0xa3, 0x8a, 0x8c, 0x8e, 0x8d, 0x1a, 0xa1, 0x8f, + 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0xff, + 0x1a, 0xb8, 0x90, 0x83, 0xba, 0xbe, 0xb3, 0xbf, + 0xbc, 0x9a, 0x9c, 0x9e, 0x9d, 0x1a, 0xa2, 0x9f +}; + +const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a +}; + +/* Copies an Unicode character from a Windows 1251 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1251_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1251_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1251_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1251 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1251_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1251_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00c0 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0400 ) + && ( unicode_character < 0x0460 ) ) + { + unicode_character -= 0x0400; + + byte_stream_value = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x0400[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0490: + byte_stream_value = 0xa5; + break; + + case 0x0491: + byte_stream_value = 0xb4; + break; + + case 0x2030: + byte_stream_value = 0x89; + break; + + case 0x2039: + byte_stream_value = 0x8b; + break; + + case 0x203a: + byte_stream_value = 0x9b; + break; + + case 0x20ac: + byte_stream_value = 0x88; + break; + + case 0x2116: + byte_stream_value = 0xb9; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1251.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1251.h similarity index 64% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1251.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1251.h index c62e9f7..3f45ce0 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1251.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1251.h @@ -1,7 +1,7 @@ /* * Windows 1251 codepage (Cyrillic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,23 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1251_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x00a0[ 32 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x0400[ 96 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x2010[ 24 ]; +int libuna_codepage_windows_1251_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1251_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1252.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1252.c new file mode 100644 index 0000000..6cf71b0 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1252.c @@ -0,0 +1,287 @@ +/* + * Windows 1252 codepage (Western European/Latin 1) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1252.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 1252 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1252_byte_stream_to_unicode_base_0x80[ 32 ] = { + 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, + 0x02c6, 0x2030, 0x0160, 0x2039, 0x0152, 0xfffd, 0x017d, 0xfffd, + 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0x02dc, 0x2122, 0x0161, 0x203a, 0x0153, 0xfffd, 0x017e, 0x0178 +}; + +/* Unicode to ASCII character lookup tables for the Windows 1252 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1252_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a +}; + +/* Copies an Unicode character from a Windows 1252 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1252_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1252_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( ( byte_stream_character < 0x80 ) + || ( byte_stream_character >= 0xa0 ) ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1252_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1252 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1252_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1252_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0100 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_windows_1252_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0152: + byte_stream_value = 0x8c; + break; + + case 0x0153: + byte_stream_value = 0x9c; + break; + + case 0x0160: + byte_stream_value = 0x8a; + break; + + case 0x0161: + byte_stream_value = 0x9a; + break; + + case 0x0178: + byte_stream_value = 0x9f; + break; + + case 0x017d: + byte_stream_value = 0x8e; + break; + + case 0x017e: + byte_stream_value = 0x9e; + break; + + case 0x0192: + byte_stream_value = 0x83; + break; + + case 0x02c6: + byte_stream_value = 0x88; + break; + + case 0x02dc: + byte_stream_value = 0x98; + break; + + case 0x2030: + byte_stream_value = 0x89; + break; + + case 0x2039: + byte_stream_value = 0x8b; + break; + + case 0x203a: + byte_stream_value = 0x9b; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1252.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1252.h similarity index 64% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1252.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1252.h index f9ef419..b024f3b 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1252.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1252.h @@ -1,7 +1,7 @@ /* * Windows 1252 codepage (Western European/Latin 1) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,17 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1252_byte_stream_to_unicode_base_0x80[ 32 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1252_unicode_to_byte_stream_base_0x2010[ 24 ]; +int libuna_codepage_windows_1252_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1252_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1253.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1253.c new file mode 100644 index 0000000..aacfd6d --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1253.c @@ -0,0 +1,291 @@ +/* + * Windows 1253 codepage (Greek) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1253.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 1253 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1253_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, + 0xfffd, 0x2030, 0xfffd, 0x2039, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0xfffd, 0x2122, 0xfffd, 0x203a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0x00a0, 0x0385, 0x0386, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, + 0x00a8, 0x00a9, 0xfffd, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x2015, + 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x0384, 0x00b5, 0x00b6, 0x00b7, + 0x0388, 0x0389, 0x038a, 0x00bb, 0x038c, 0x00bd, 0x038e, 0x038f, + 0x0390, 0x0391, 0x0392, 0x0393, 0x0394, 0x0395, 0x0396, 0x0397, + 0x0398, 0x0399, 0x039a, 0x039b, 0x039c, 0x039d, 0x039e, 0x039f, + 0x03a0, 0x03a1, 0xfffd, 0x03a3, 0x03a4, 0x03a5, 0x03a6, 0x03a7, + 0x03a8, 0x03a9, 0x03aa, 0x03ab, 0x03ac, 0x03ad, 0x03ae, 0x03af, + 0x03b0, 0x03b1, 0x03b2, 0x03b3, 0x03b4, 0x03b5, 0x03b6, 0x03b7, + 0x03b8, 0x03b9, 0x03ba, 0x03bb, 0x03bc, 0x03bd, 0x03be, 0x03bf, + 0x03c0, 0x03c1, 0x03c2, 0x03c3, 0x03c4, 0x03c5, 0x03c6, 0x03c7, + 0x03c8, 0x03c9, 0x03ca, 0x03cb, 0x03cc, 0x03cd, 0x03ce, 0xfffd +}; + +/* Unicode to ASCII character lookup tables for the Windows 1253 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x00a0[ 32 ] = { + 0xa0, 0x1a, 0x1a, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, + 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x1a, + 0xb0, 0xb1, 0xb2, 0xb3, 0x1a, 0xb5, 0xb6, 0xb7, + 0x1a, 0x1a, 0x1a, 0xbb, 0x1a, 0xbd, 0x1a, 0x1a, +}; + +const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x0380[ 80 ] = { + 0x1a, 0x1a, 0x1a, 0x1a, 0xb4, 0xa1, 0xa2, 0x1a, + 0xb8, 0xb9, 0xba, 0x1a, 0xbc, 0x1a, 0xbe, 0xbf, + 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0x1a, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0xdd, 0xde, 0xdf, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0xfd, 0xfe, 0x1a, +}; + +const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0xaf, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a +}; + +/* Copies an Unicode character from a Windows 1253 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1253_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1253_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1253_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1253 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1253_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1253_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00c0 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0380 ) + && ( unicode_character < 0x03d0 ) ) + { + unicode_character -= 0x0380; + + byte_stream_value = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x0380[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0192: + byte_stream_value = 0x83; + break; + + case 0x2030: + byte_stream_value = 0x89; + break; + + case 0x2039: + byte_stream_value = 0x8b; + break; + + case 0x203a: + byte_stream_value = 0x9b; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1253.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1253.h similarity index 64% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1253.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1253.h index 4eab0af..cc3f395 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1253.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1253.h @@ -1,7 +1,7 @@ /* * Windows 1253 codepage (Greek) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,23 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1253_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x00a0[ 32 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x0380[ 80 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x2010[ 24 ]; +int libuna_codepage_windows_1253_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1253_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1254.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1254.c new file mode 100644 index 0000000..95d08e7 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1254.c @@ -0,0 +1,348 @@ +/* + * Windows 1254 codepage (Turkish) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1254.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup tables for the Windows 1254 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0x80[ 32 ] = { + 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, + 0x02c6, 0x2030, 0x0160, 0x2039, 0x0152, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0x02dc, 0x2122, 0x0161, 0x203a, 0x0153, 0xfffd, 0xfffd, 0x0178, +}; + +const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xd0[ 16 ] = { + 0x011e, 0x00d1, 0x00d2, 0x00d3, 0x00d4, 0x00d5, 0x00d6, 0x00d7, + 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x0130, 0x015e, 0x00df, +}; + +const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xf0[ 16 ] = { + 0x011f, 0x00f1, 0x00f2, 0x00f3, 0x00f4, 0x00f5, 0x00f6, 0x00f7, + 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x0131, 0x015f, 0x00ff, +}; + +/* Unicode to ASCII character lookup tables for the Windows 1254 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x00d0[ 48 ] = { + 0x1a, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0x1a, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0xff, +}; + +const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a, +}; + +/* Copies an Unicode character from a Windows 1254 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1254_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1254_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else if( byte_stream_character < 0xa0 ) + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + else if( byte_stream_character < 0xd0 ) + { + safe_unicode_character = byte_stream_character; + } + else if( byte_stream_character < 0xe0 ) + { + byte_stream_character -= 0xd0; + + safe_unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xd0[ byte_stream_character ]; + } + else if( byte_stream_character < 0xf0 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0xf0; + + safe_unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xf0[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1254 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1254_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1254_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00d0 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00d0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00d0; + + byte_stream_value = libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x00d0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x011e: + byte_stream_value = 0xd0; + break; + + case 0x011f: + byte_stream_value = 0xf0; + break; + + case 0x0130: + byte_stream_value = 0xdd; + break; + + case 0x0131: + byte_stream_value = 0xfd; + break; + + case 0x0152: + byte_stream_value = 0x8c; + break; + + case 0x0153: + byte_stream_value = 0x9c; + break; + + case 0x015e: + byte_stream_value = 0xde; + break; + + case 0x015f: + byte_stream_value = 0xfe; + break; + + case 0x0160: + byte_stream_value = 0x8a; + break; + + case 0x0161: + byte_stream_value = 0x9a; + break; + + case 0x0178: + byte_stream_value = 0x9f; + break; + + case 0x0192: + byte_stream_value = 0x83; + break; + + case 0x02c6: + byte_stream_value = 0x88; + break; + + case 0x02dc: + byte_stream_value = 0x98; + break; + + case 0x2030: + byte_stream_value = 0x89; + break; + + case 0x2039: + byte_stream_value = 0x8b; + break; + + case 0x203a: + byte_stream_value = 0x9b; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1254.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1254.h similarity index 61% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1254.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1254.h index d69d6d0..e70664c 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1254.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1254.h @@ -1,7 +1,7 @@ /* * Windows 1254 codepage (Turkish) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,26 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0x80[ 32 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xd0[ 16 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xf0[ 16 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x00d0[ 48 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x2010[ 24 ]; +int libuna_codepage_windows_1254_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1254_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1255.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1255.c new file mode 100644 index 0000000..a81b509 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1255.c @@ -0,0 +1,328 @@ +/* + * Windows 1255 codepage (Hebrew) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1255.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 1255 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1255_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, + 0x02c6, 0x2030, 0xfffd, 0x2039, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0x02dc, 0x2122, 0xfffd, 0x203a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x20aa, 0x00a5, 0x00a6, 0x00a7, + 0x00a8, 0x00a9, 0x00d7, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, + 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, + 0x00b8, 0x00b9, 0x00f7, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, + 0x05b0, 0x05b1, 0x05b2, 0x05b3, 0x05b4, 0x05b5, 0x05b6, 0x05b7, + 0x05b8, 0x05b9, 0xfffd, 0x05bb, 0x05bc, 0x05bd, 0x05be, 0x05bf, + 0x05c0, 0x05c1, 0x05c2, 0x05c3, 0x05f0, 0x05f1, 0x05f2, 0x05f3, + 0x05f4, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0x05d0, 0x05d1, 0x05d2, 0x05d3, 0x05d4, 0x05d5, 0x05d6, 0x05d7, + 0x05d8, 0x05d9, 0x05da, 0x05db, 0x05dc, 0x05dd, 0x05de, 0x05df, + 0x05e0, 0x05e1, 0x05e2, 0x05e3, 0x05e4, 0x05e5, 0x05e6, 0x05e7, + 0x05e8, 0x05e9, 0x05ea, 0xfffd, 0xfffd, 0x200e, 0x200f, 0xfffd +}; + +/* Unicode to ASCII character lookup tables for the Windows 1255 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x00a0[ 32 ] = { + 0xa0, 0xa1, 0xa2, 0xa3, 0x1a, 0xa5, 0xa6, 0xa7, + 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0xaf, + 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, + 0xb8, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf +}; + +const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05b0[ 24 ] = { + 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0x1a, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0xd2, 0xd3, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05d0[ 40 ] = { + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xd4, 0xd5, 0xd6, 0xd7, 0xd8, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a +}; + +/* Copies an Unicode character from a Windows 1255 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1255_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1255_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1255_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1255 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1255_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1255_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00c0 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x05b0 ) + && ( unicode_character < 0x05c8 ) ) + { + unicode_character -= 0x05b0; + + byte_stream_value = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05b0[ unicode_character ]; + } + else if( ( unicode_character >= 0x05d0 ) + && ( unicode_character < 0x05f8 ) ) + { + unicode_character -= 0x05d0; + + byte_stream_value = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05d0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00d7: + byte_stream_value = 0xaa; + break; + + case 0x00f7: + byte_stream_value = 0xba; + break; + + case 0x0192: + byte_stream_value = 0x83; + break; + + case 0x02c6: + byte_stream_value = 0x88; + break; + + case 0x02dc: + byte_stream_value = 0x98; + break; + + case 0x200e: + byte_stream_value = 0xfd; + break; + + case 0x200f: + byte_stream_value = 0xfe; + break; + + case 0x2030: + byte_stream_value = 0x89; + break; + + case 0x2039: + byte_stream_value = 0x8b; + break; + + case 0x203a: + byte_stream_value = 0x9b; + break; + + case 0x20aa: + byte_stream_value = 0xa4; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1255.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1255.h similarity index 61% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1255.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1255.h index 4690cf6..6915cf4 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1255.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1255.h @@ -1,7 +1,7 @@ /* * Windows 1255 codepage (Hebrew) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,26 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1255_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x00a0[ 32 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05b0[ 24 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05d0[ 40 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x2010[ 24 ]; +int libuna_codepage_windows_1255_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1255_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1256.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1256.c new file mode 100644 index 0000000..4ae67e5 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1256.c @@ -0,0 +1,372 @@ +/* + * Windows 1256 codepage (Arabic) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1256.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 1256 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1256_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x20ac, 0x067e, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, + 0x02c6, 0x2030, 0x0679, 0x2039, 0x0152, 0x0686, 0x0698, 0x0688, + 0x06af, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0x06a9, 0x2122, 0x0691, 0x203a, 0x0153, 0x200c, 0x200d, 0x06ba, + 0x00a0, 0x060c, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, + 0x00a8, 0x00a9, 0x06be, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, + 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, + 0x00b8, 0x00b9, 0x061b, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x061f, + 0x06c1, 0x0621, 0x0622, 0x0623, 0x0624, 0x0625, 0x0626, 0x0627, + 0x0628, 0x0629, 0x062a, 0x062b, 0x062c, 0x062d, 0x062e, 0x062f, + 0x0630, 0x0631, 0x0632, 0x0633, 0x0634, 0x0635, 0x0636, 0x00d7, + 0x0637, 0x0638, 0x0639, 0x063a, 0x0640, 0x0641, 0x0642, 0x0643, + 0x00e0, 0x0644, 0x00e2, 0x0645, 0x0646, 0x0647, 0x0648, 0x00e7, + 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0649, 0x064a, 0x00ee, 0x00ef, + 0x064b, 0x064c, 0x064d, 0x064e, 0x00f4, 0x064f, 0x0650, 0x00f7, + 0x0651, 0x00f9, 0x0652, 0x00fb, 0x00fc, 0x200e, 0x200f, 0x06d2 +}; + +/* Unicode to ASCII character lookup tables for the Windows 1256 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00a0[ 32 ] = { + 0xa0, 0x1a, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, + 0xa8, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0xaf, + 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, + 0xb8, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a +}; + +const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00e0[ 32 ] = { + 0xe0, 0x1a, 0xe2, 0x1a, 0x1a, 0x1a, 0x1a, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0x1a, 0x1a, 0xee, 0xef, + 0x1a, 0x1a, 0x1a, 0x1a, 0xf4, 0x1a, 0x1a, 0xf7, + 0x1a, 0xf9, 0x1a, 0xfb, 0xfc, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x0618[ 64 ] = { + 0x1a, 0x1a, 0x1a, 0xba, 0x1a, 0x1a, 0x1a, 0xbf, + 0x1a, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd8, + 0xd9, 0xda, 0xdb, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0xdc, 0xdd, 0xde, 0xdf, 0xe1, 0xe3, 0xe4, 0xe5, + 0xe6, 0xec, 0xed, 0xf0, 0xf1, 0xf2, 0xf3, 0xf5, + 0xf6, 0xf8, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x2008[ 32 ] = { + 0x1a, 0x1a, 0x1a, 0x1a, 0x9d, 0x9e, 0xfd, 0xfe, + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a +}; + +/* Copies an Unicode character from a Windows 1256 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1256_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1256_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1256_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1256 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1256_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1256_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00c0 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x00e0 ) + && ( unicode_character < 0x0100 ) ) + { + unicode_character -= 0x00e0; + + byte_stream_value = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00e0[ unicode_character ]; + } + else if( ( unicode_character >= 0x0618 ) + && ( unicode_character < 0x0658 ) ) + { + unicode_character -= 0x0618; + + byte_stream_value = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x0618[ unicode_character ]; + } + else if( ( unicode_character >= 0x2008 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2008; + + byte_stream_value = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x2008[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x00d7: + byte_stream_value = 0xd7; + break; + + case 0x0152: + byte_stream_value = 0x8c; + break; + + case 0x0153: + byte_stream_value = 0x9c; + break; + + case 0x0192: + byte_stream_value = 0x83; + break; + + case 0x02c6: + byte_stream_value = 0x88; + break; + + case 0x060c: + byte_stream_value = 0xa1; + break; + + case 0x0679: + byte_stream_value = 0x8a; + break; + + case 0x067e: + byte_stream_value = 0x81; + break; + + case 0x0686: + byte_stream_value = 0x8d; + break; + + case 0x0688: + byte_stream_value = 0x8f; + break; + + case 0x0691: + byte_stream_value = 0x9a; + break; + + case 0x0698: + byte_stream_value = 0x8e; + break; + + case 0x06a9: + byte_stream_value = 0x98; + break; + + case 0x06af: + byte_stream_value = 0x90; + break; + + case 0x06ba: + byte_stream_value = 0x9f; + break; + + case 0x06be: + byte_stream_value = 0xaa; + break; + + case 0x06c1: + byte_stream_value = 0xc0; + break; + + case 0x06d2: + byte_stream_value = 0xff; + break; + + case 0x2030: + byte_stream_value = 0x89; + break; + + case 0x2039: + byte_stream_value = 0x8b; + break; + + case 0x203a: + byte_stream_value = 0x9b; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1256.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1256.h similarity index 61% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1256.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1256.h index 7f472bd..b7deb76 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1256.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1256.h @@ -1,7 +1,7 @@ /* * Windows 1256 codepage (Arabic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,26 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1256_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00a0[ 32 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00e0[ 32 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x0618[ 64 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x2008[ 32 ]; +int libuna_codepage_windows_1256_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1256_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1257.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1257.c new file mode 100644 index 0000000..3f4d5cd --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1257.c @@ -0,0 +1,303 @@ +/* + * Windows 1257 codepage (Baltic) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1257.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 1257 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1257_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x20ac, 0xfffd, 0x201a, 0xfffd, 0x201e, 0x2026, 0x2020, 0x2021, + 0xfffd, 0x2030, 0xfffd, 0x2039, 0xfffd, 0x00a8, 0x02c7, 0x00b8, + 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0xfffd, 0x2122, 0xfffd, 0x203a, 0xfffd, 0x00af, 0x02db, 0xfffd, + 0x00a0, 0xfffd, 0x00a2, 0x00a3, 0x00a4, 0xfffd, 0x00a6, 0x00a7, + 0x00d8, 0x00a9, 0x0156, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00c6, + 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, + 0x00f8, 0x00b9, 0x0157, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00e6, + 0x0104, 0x012e, 0x0100, 0x0106, 0x00c4, 0x00c5, 0x0118, 0x0112, + 0x010c, 0x00c9, 0x0179, 0x0116, 0x0122, 0x0136, 0x012a, 0x013b, + 0x0160, 0x0143, 0x0145, 0x00d3, 0x014c, 0x00d5, 0x00d6, 0x00d7, + 0x0172, 0x0141, 0x015a, 0x016a, 0x00dc, 0x017b, 0x017d, 0x00df, + 0x0105, 0x012f, 0x0101, 0x0107, 0x00e4, 0x00e5, 0x0119, 0x0113, + 0x010d, 0x00e9, 0x017a, 0x0117, 0x0123, 0x0137, 0x012b, 0x013c, + 0x0161, 0x0144, 0x0146, 0x00f3, 0x014d, 0x00f5, 0x00f6, 0x00f7, + 0x0173, 0x0142, 0x015b, 0x016b, 0x00fc, 0x017c, 0x017e, 0x02d9 +}; + +/* Unicode to ASCII character lookup tables for the Windows 1257 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x00a0[ 224 ] = { + 0xa0, 0x1a, 0xa2, 0xa3, 0xa4, 0x1a, 0xa6, 0xa7, + 0x8d, 0xa9, 0x1a, 0xab, 0xac, 0xad, 0xae, 0x9d, + 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, + 0x8f, 0xb9, 0x1a, 0xbb, 0xbc, 0xbd, 0xbe, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0xc4, 0xc5, 0xaf, 0x1a, + 0x1a, 0xc9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0xd3, 0x1a, 0xd5, 0xd6, 0xd7, + 0xa8, 0x1a, 0x1a, 0x1a, 0xdc, 0x1a, 0x1a, 0xdf, + 0x1a, 0x1a, 0x1a, 0x1a, 0xe4, 0xe5, 0xbf, 0x1a, + 0x1a, 0xe9, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0xf3, 0x1a, 0xf5, 0xf6, 0xf7, + 0xb8, 0x1a, 0x1a, 0x1a, 0xfc, 0x1a, 0x1a, 0x1a, + 0xc2, 0xe2, 0x1a, 0x1a, 0xc0, 0xe0, 0xc3, 0xe3, + 0x1a, 0x1a, 0x1a, 0x1a, 0xc8, 0xe8, 0x1a, 0x1a, + 0x1a, 0x1a, 0xc7, 0xe7, 0x1a, 0x1a, 0xcb, 0xeb, + 0xc6, 0xe6, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xcc, 0xec, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xce, 0xee, 0x1a, 0x1a, 0xc1, 0xe1, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xcd, 0xed, + 0x1a, 0x1a, 0x1a, 0xcf, 0xef, 0x1a, 0x1a, 0x1a, + 0x1a, 0xd9, 0xf9, 0xd1, 0xf1, 0xd2, 0xf2, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0xd4, 0xf4, 0x1a, 0x1a, + 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0xaa, 0xba, + 0x1a, 0x1a, 0xda, 0xfa, 0x1a, 0x1a, 0x1a, 0x1a, + 0xd0, 0xf0, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xdb, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0x1a, 0xd8, 0xf8, 0x1a, 0x1a, 0x1a, 0x1a, + 0x1a, 0xca, 0xea, 0xdd, 0xfd, 0xde, 0xfe, 0x1a +}; + +const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a +}; + +/* Copies an Unicode character from a Windows 1257 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1257_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1257_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1257_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1257 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1257_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1257_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x0180 ) ) + { + unicode_character -= 0x00a0; + + byte_stream_value = libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x02c7: + byte_stream_value = 0x8e; + break; + + case 0x02d9: + byte_stream_value = 0xff; + break; + + case 0x02db: + byte_stream_value = 0x9e; + break; + + case 0x2030: + byte_stream_value = 0x89; + break; + + case 0x2039: + byte_stream_value = 0x8b; + break; + + case 0x203a: + byte_stream_value = 0x9b; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1257.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1257.h similarity index 64% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1257.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1257.h index 2ff05bc..bf710a4 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1257.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1257.h @@ -1,7 +1,7 @@ /* * Windows 1257 codepage (Baltic) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,20 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1257_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x00a0[ 224 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x2010[ 24 ]; +int libuna_codepage_windows_1257_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1257_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1258.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1258.c new file mode 100644 index 0000000..b853626 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1258.c @@ -0,0 +1,349 @@ +/* + * Windows 1258 codepage (Vietnamese) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_1258.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 1258 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_1258_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x20ac, 0xfffd, 0x201a, 0x0192, 0x201e, 0x2026, 0x2020, 0x2021, + 0x02c6, 0x2030, 0xfffd, 0x2039, 0x0152, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0x02dc, 0x2122, 0xfffd, 0x203a, 0x0153, 0xfffd, 0xfffd, 0x0178, + 0x00a0, 0x00a1, 0x00a2, 0x00a3, 0x00a4, 0x00a5, 0x00a6, 0x00a7, + 0x00a8, 0x00a9, 0x00aa, 0x00ab, 0x00ac, 0x00ad, 0x00ae, 0x00af, + 0x00b0, 0x00b1, 0x00b2, 0x00b3, 0x00b4, 0x00b5, 0x00b6, 0x00b7, + 0x00b8, 0x00b9, 0x00ba, 0x00bb, 0x00bc, 0x00bd, 0x00be, 0x00bf, + 0x00c0, 0x00c1, 0x00c2, 0x0102, 0x00c4, 0x00c5, 0x00c6, 0x00c7, + 0x00c8, 0x00c9, 0x00ca, 0x00cb, 0x0300, 0x00cd, 0x00ce, 0x00cf, + 0x0110, 0x00d1, 0x0309, 0x00d3, 0x00d4, 0x01a0, 0x00d6, 0x00d7, + 0x00d8, 0x00d9, 0x00da, 0x00db, 0x00dc, 0x01af, 0x0303, 0x00df, + 0x00e0, 0x00e1, 0x00e2, 0x0103, 0x00e4, 0x00e5, 0x00e6, 0x00e7, + 0x00e8, 0x00e9, 0x00ea, 0x00eb, 0x0301, 0x00ed, 0x00ee, 0x00ef, + 0x0111, 0x00f1, 0x0323, 0x00f3, 0x00f4, 0x01a1, 0x00f6, 0x00f7, + 0x00f8, 0x00f9, 0x00fa, 0x00fb, 0x00fc, 0x01b0, 0x20ab, 0x00ff +}; + +/* Unicode to ASCII character lookup tables for the Windows 1258 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x00c0[ 72 ] = { + 0xc0, 0xc1, 0xc2, 0x1a, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0x1a, 0xcd, 0xce, 0xcf, + 0x1a, 0xd1, 0x1a, 0xd3, 0xd4, 0x1a, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0xdb, 0xdc, 0x1a, 0x1a, 0xdf, + 0xe0, 0xe1, 0xe2, 0x1a, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0x1a, 0xed, 0xee, 0xef, + 0x1a, 0xf1, 0x1a, 0xf3, 0xf4, 0x1a, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0xfc, 0x1a, 0x1a, 0xff, + 0x1a, 0x1a, 0xc3, 0xe3, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x2010[ 24 ] = { + 0x1a, 0x1a, 0x1a, 0x96, 0x97, 0x1a, 0x1a, 0x1a, + 0x91, 0x92, 0x82, 0x1a, 0x93, 0x94, 0x84, 0x1a, + 0x86, 0x87, 0x95, 0x1a, 0x1a, 0x1a, 0x85, 0x1a +}; + +/* Copies an Unicode character from a Windows 1258 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1258_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1258_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_1258_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 1258 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_1258_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_1258_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( unicode_character < 0x0080 ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00a0 ) + && ( unicode_character < 0x00c0 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x00c0 ) + && ( unicode_character < 0x0108 ) ) + { + unicode_character -= 0x00c0; + + byte_stream_value = libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x00c0[ unicode_character ]; + } + else if( ( unicode_character >= 0x2010 ) + && ( unicode_character < 0x2028 ) ) + { + unicode_character -= 0x2010; + + byte_stream_value = libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x2010[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x0110: + byte_stream_value = 0xd0; + break; + + case 0x0111: + byte_stream_value = 0xf0; + break; + + case 0x0152: + byte_stream_value = 0x8c; + break; + + case 0x0153: + byte_stream_value = 0x9c; + break; + + case 0x0178: + byte_stream_value = 0x9f; + break; + + case 0x0192: + byte_stream_value = 0x83; + break; + + case 0x01a0: + byte_stream_value = 0xd5; + break; + + case 0x01a1: + byte_stream_value = 0xf5; + break; + + case 0x01af: + byte_stream_value = 0xdd; + break; + + case 0x01b0: + byte_stream_value = 0xfd; + break; + + case 0x02c6: + byte_stream_value = 0x88; + break; + + case 0x02dc: + byte_stream_value = 0x98; + break; + + case 0x0300: + byte_stream_value = 0xcc; + break; + + case 0x0301: + byte_stream_value = 0xec; + break; + + case 0x0303: + byte_stream_value = 0xde; + break; + + case 0x0309: + byte_stream_value = 0xd2; + break; + + case 0x0323: + byte_stream_value = 0xf2; + break; + + case 0x2030: + byte_stream_value = 0x89; + break; + + case 0x2039: + byte_stream_value = 0x8b; + break; + + case 0x203a: + byte_stream_value = 0x9b; + break; + + case 0x20ab: + byte_stream_value = 0xfe; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + case 0x2122: + byte_stream_value = 0x99; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1258.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1258.h similarity index 64% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1258.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1258.h index 85b0919..9a861f2 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_1258.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_1258.h @@ -1,7 +1,7 @@ /* * Windows 1258 codepage (Vietnamese) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,20 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_1258_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x00c0[ 72 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x2010[ 24 ]; +int libuna_codepage_windows_1258_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_1258_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_874.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_874.c new file mode 100644 index 0000000..031ca92 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_874.c @@ -0,0 +1,274 @@ +/* + * Windows 874 codepage (Thai) functions + * + * Copyright (C) 2008-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +#include "libuna_codepage_windows_874.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" + +/* Extended ASCII to Unicode character lookup table for the Windows 874 codepage + * Unknown are filled with the Unicode replacement character 0xfffd + */ +const uint16_t libuna_codepage_windows_874_byte_stream_to_unicode_base_0x80[ 128 ] = { + 0x20ac, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x2026, 0xfffd, 0xfffd, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0xfffd, 0x2018, 0x2019, 0x201c, 0x201d, 0x2022, 0x2013, 0x2014, + 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0xfffd, + 0x00a0, 0x0e01, 0x0e02, 0x0e03, 0x0e04, 0x0e05, 0x0e06, 0x0e07, + 0x0e08, 0x0e09, 0x0e0a, 0x0e0b, 0x0e0c, 0x0e0d, 0x0e0e, 0x0e0f, + 0x0e10, 0x0e11, 0x0e12, 0x0e13, 0x0e14, 0x0e15, 0x0e16, 0x0e17, + 0x0e18, 0x0e19, 0x0e1a, 0x0e1b, 0x0e1c, 0x0e1d, 0x0e1e, 0x0e1f, + 0x0e20, 0x0e21, 0x0e22, 0x0e23, 0x0e24, 0x0e25, 0x0e26, 0x0e27, + 0x0e28, 0x0e29, 0x0e2a, 0x0e2b, 0x0e2c, 0x0e2d, 0x0e2e, 0x0e2f, + 0x0e30, 0x0e31, 0x0e32, 0x0e33, 0x0e34, 0x0e35, 0x0e36, 0x0e37, + 0x0e38, 0x0e39, 0x0e3a, 0xfffd, 0xfffd, 0xfffd, 0xfffd, 0x0e3f, + 0x0e40, 0x0e41, 0x0e42, 0x0e43, 0x0e44, 0x0e45, 0x0e46, 0x0e47, + 0x0e48, 0x0e49, 0x0e4a, 0x0e4b, 0x0e4c, 0x0e4d, 0x0e4e, 0x0e4f, + 0x0e50, 0x0e51, 0x0e52, 0x0e53, 0x0e54, 0x0e55, 0x0e56, 0x0e57, + 0x0e58, 0x0e59, 0x0e5a, 0x0e5b, 0xfffd, 0xfffd, 0xfffd, 0xfffd +}; + +/* Unicode to ASCII character lookup tables for the Windows 874 codepage + * Unknown are filled with the ASCII replacement character 0x1a + */ +const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x0e00[ 96 ] = { + 0x1a, 0xa1, 0xa2, 0xa3, 0xa4, 0xa5, 0xa6, 0xa7, + 0xa8, 0xa9, 0xaa, 0xab, 0xac, 0xad, 0xae, 0xaf, + 0xb0, 0xb1, 0xb2, 0xb3, 0xb4, 0xb5, 0xb6, 0xb7, + 0xb8, 0xb9, 0xba, 0xbb, 0xbc, 0xbd, 0xbe, 0xbf, + 0xc0, 0xc1, 0xc2, 0xc3, 0xc4, 0xc5, 0xc6, 0xc7, + 0xc8, 0xc9, 0xca, 0xcb, 0xcc, 0xcd, 0xce, 0xcf, + 0xd0, 0xd1, 0xd2, 0xd3, 0xd4, 0xd5, 0xd6, 0xd7, + 0xd8, 0xd9, 0xda, 0x1a, 0x1a, 0x1a, 0x1a, 0xdf, + 0xe0, 0xe1, 0xe2, 0xe3, 0xe4, 0xe5, 0xe6, 0xe7, + 0xe8, 0xe9, 0xea, 0xeb, 0xec, 0xed, 0xee, 0xef, + 0xf0, 0xf1, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, + 0xf8, 0xf9, 0xfa, 0xfb, 0x1a, 0x1a, 0x1a, 0x1a +}; + +const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x2018[ 8 ] = { + 0x91, 0x92, 0x1a, 0x1a, 0x93, 0x94, 0x1a, 0x1a +}; + +/* Copies an Unicode character from a Windows 874 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_874_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_874_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t byte_stream_character = 0; + + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); + + return( -1 ); + } + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + byte_stream_character = byte_stream[ safe_byte_stream_index++ ]; + + if( byte_stream_character < 0x80 ) + { + safe_unicode_character = byte_stream_character; + } + else + { + byte_stream_character -= 0x80; + + safe_unicode_character = libuna_codepage_windows_874_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; + } + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + +/* Copies an Unicode character to a Windows 874 encoded byte stream + * Returns 1 if successful or -1 on error + */ +int libuna_codepage_windows_874_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_codepage_windows_874_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; + + if( byte_stream == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream.", + function ); + + return( -1 ); + } + if( byte_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid byte stream size value exceeds maximum.", + function ); + + return( -1 ); + } + if( byte_stream_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid byte stream index.", + function ); + + return( -1 ); + } + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: byte stream too small.", + function ); + + return( -1 ); + } + if( ( unicode_character < 0x0080 ) + || ( unicode_character == 0x00a0 ) ) + { + byte_stream_value = (uint16_t) unicode_character; + } + else if( ( unicode_character >= 0x0e00 ) + && ( unicode_character < 0x0e60 ) ) + { + unicode_character -= 0x0e00; + + byte_stream_value = libuna_codepage_windows_874_unicode_to_byte_stream_base_0x0e00[ unicode_character ]; + } + else if( ( unicode_character >= 0x2018 ) + && ( unicode_character < 0x2020 ) ) + { + unicode_character -= 0x2018; + + byte_stream_value = libuna_codepage_windows_874_unicode_to_byte_stream_base_0x2018[ unicode_character ]; + } + else switch( unicode_character ) + { + case 0x2013: + byte_stream_value = 0x96; + break; + + case 0x2014: + byte_stream_value = 0x97; + break; + + case 0x2022: + byte_stream_value = 0x95; + break; + + case 0x2026: + byte_stream_value = 0x85; + break; + + case 0x20ac: + byte_stream_value = 0x80; + break; + + default: + byte_stream_value = 0x1a; + break; + } + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); + + *byte_stream_index = safe_byte_stream_index; + + return( 1 ); +} + diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_874.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_874.h similarity index 63% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_874.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_874.h index d15901c..63426be 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_874.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_874.h @@ -1,7 +1,7 @@ /* * Windows 874 codepage (Thai) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,20 +25,26 @@ #include #include -#include "libuna_extern.h" +#include "libuna_libcerror.h" +#include "libuna_types.h" #if defined( __cplusplus ) extern "C" { #endif -LIBUNA_EXTERN_VARIABLE \ -const uint16_t libuna_codepage_windows_874_byte_stream_to_unicode_base_0x80[ 128 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x0e00[ 96 ]; - -LIBUNA_EXTERN_VARIABLE \ -const uint8_t libuna_codepage_windows_874_unicode_to_byte_stream_base_0x2018[ 8 ]; +int libuna_codepage_windows_874_copy_from_byte_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); + +int libuna_codepage_windows_874_copy_to_byte_stream( + libuna_unicode_character_t unicode_character, + uint8_t *byte_stream, + size_t byte_stream_size, + size_t *byte_stream_index, + libcerror_error_t **error ); #if defined( __cplusplus ) } diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_932.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_932.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_932.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_932.c index 8729392..9e3a2f2 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_932.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_932.c @@ -1,7 +1,7 @@ /* * Windows 932 codepage (Japanese Shift-JIS) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -26,7 +26,7 @@ #include "libuna_libcerror.h" #include "libuna_types.h" -/* Extended ASCII to Unicode character lookup table for Windows 932 codepage +/* Extended ASCII to Unicode character lookup tables for the Windows 932 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8140[ 109 ] = { @@ -1134,10 +1134,9 @@ const uint16_t libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfc40[ 1 0x9d6b, 0xfa2d, 0x9e19, 0x9ed1 }; -/* Unicode to ASCII character lookup table for Windows 932 codepage +/* Unicode to ASCII character lookup tables for the Windows 932 codepage * Unknown are filled with the ASCII replacement character 0x1a */ - const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0x0080[ 128 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, @@ -4181,9 +4180,9 @@ const uint16_t libuna_codepage_windows_932_unicode_to_byte_stream_base_0xff00[ 2 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; -/* Determines the size of a byte stream character from an Unicode character +/* Determines the size of a Windows 932 encoded byte stream from an Unicode character * Adds the size to the byte stream character size value - * Returns 1 if successful or -1 on error + * Returns 1 if successful, 0 if the byte stream character is valid but not supported since it requires special handling or -1 on error */ int libuna_codepage_windows_932_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, @@ -4285,9 +4284,11 @@ int libuna_codepage_windows_932_copy_from_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ) { - static char *function = "libuna_codepage_windows_932_copy_from_byte_stream"; - uint8_t additional_character = 0; - uint8_t byte_stream_character = 0; + static char *function = "libuna_codepage_windows_932_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t additional_character = 0; + uint8_t byte_stream_character = 0; if( unicode_character == NULL ) { @@ -4333,7 +4334,9 @@ int libuna_codepage_windows_932_copy_from_byte_stream( return( -1 ); } - if( *byte_stream_index >= byte_stream_size ) + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, @@ -4344,22 +4347,22 @@ int libuna_codepage_windows_932_copy_from_byte_stream( return( -1 ); } - byte_stream_character = byte_stream[ *byte_stream_index ]; + byte_stream_character = byte_stream[ safe_byte_stream_index ]; if( byte_stream_character < 0x80 ) { - *unicode_character = byte_stream_character; + safe_unicode_character = byte_stream_character; } else if( ( byte_stream_character >= 0xa1 ) && ( byte_stream_character < 0xe0 ) ) { - *unicode_character = 0xff61 + byte_stream_character - 0xa1; + safe_unicode_character = 0xff61 + byte_stream_character - 0xa1; } - else if( ( *byte_stream_index + 1 ) <= byte_stream_size ) + else if( ( safe_byte_stream_index + 1 ) <= byte_stream_size ) { - *byte_stream_index += 1; + safe_byte_stream_index += 1; - additional_character = byte_stream[ *byte_stream_index ]; + additional_character = byte_stream[ safe_byte_stream_index ]; if( byte_stream_character == 0x81 ) { @@ -4368,43 +4371,39 @@ int libuna_codepage_windows_932_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8140[ additional_character ]; } else if( ( additional_character >= 0xb8 ) && ( additional_character < 0xc0 ) ) { additional_character -= 0xb8; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81b8[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81b8[ additional_character ]; } else if( ( additional_character >= 0xc8 ) && ( additional_character < 0xcf ) ) { additional_character -= 0xc8; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81c8[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81c8[ additional_character ]; } else if( ( additional_character >= 0xda ) && ( additional_character < 0xe9 ) ) { additional_character -= 0xda; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81da[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81da[ additional_character ]; } else if( ( additional_character >= 0xf0 ) && ( additional_character < 0xf8 ) ) { additional_character -= 0xf0; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81f0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x81f0[ additional_character ]; } else if( additional_character == 0xfc ) { - *unicode_character = 0x25ef; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x25ef; } } else if( byte_stream_character == 0x82 ) @@ -4412,26 +4411,22 @@ int libuna_codepage_windows_932_copy_from_byte_stream( if( ( additional_character >= 0x4f ) && ( additional_character < 0x59 ) ) { - *unicode_character = 0xff10 - 0x4f + additional_character; + safe_unicode_character = 0xff10 - 0x4f + additional_character; } else if( ( additional_character >= 0x60 ) && ( additional_character < 0x7a ) ) { - *unicode_character = 0xff21 - 0x60 + additional_character; + safe_unicode_character = 0xff21 - 0x60 + additional_character; } else if( ( additional_character >= 0x81 ) && ( additional_character < 0x9b ) ) { - *unicode_character = 0xff41 - 0x81 + additional_character; + safe_unicode_character = 0xff41 - 0x81 + additional_character; } else if( ( additional_character >= 0x9f ) && ( additional_character < 0xf2 ) ) { - *unicode_character = 0x3041 - 0x9f + additional_character; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x3041 - 0x9f + additional_character; } } else if( byte_stream_character == 0x83 ) @@ -4439,36 +4434,32 @@ int libuna_codepage_windows_932_copy_from_byte_stream( if( ( additional_character >= 0x40 ) && ( additional_character < 0x7f ) ) { - *unicode_character = 0x30a1 - 0x40 + additional_character; + safe_unicode_character = 0x30a1 - 0x40 + additional_character; } else if( ( additional_character >= 0x80 ) && ( additional_character < 0x97 ) ) { - *unicode_character = 0x30e0 - 0x80 + additional_character; + safe_unicode_character = 0x30e0 - 0x80 + additional_character; } else if( ( additional_character >= 0x9f ) && ( additional_character < 0xb0 ) ) { - *unicode_character = 0x0391 - 0x9f + additional_character; + safe_unicode_character = 0x0391 - 0x9f + additional_character; } else if( ( additional_character >= 0xb0 ) && ( additional_character < 0xb7 ) ) { - *unicode_character = 0x03a3 - 0xb0 + additional_character; + safe_unicode_character = 0x03a3 - 0xb0 + additional_character; } else if( ( additional_character >= 0xbf ) && ( additional_character < 0xd0 ) ) { - *unicode_character = 0x03b1 - 0xbf + additional_character; + safe_unicode_character = 0x03b1 - 0xbf + additional_character; } else if( ( additional_character >= 0xd0 ) && ( additional_character < 0xd7 ) ) { - *unicode_character = 0x03c3 - 0xd0 + additional_character; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x03c3 - 0xd0 + additional_character; } } else if( byte_stream_character == 0x84 ) @@ -4478,30 +4469,26 @@ int libuna_codepage_windows_932_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8440[ additional_character ]; } else if( ( additional_character >= 0x70 ) && ( additional_character < 0x7f ) ) { additional_character -= 0x70; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8470[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8470[ additional_character ]; } else if( ( additional_character >= 0x80 ) && ( additional_character < 0x92 ) ) { - *unicode_character = 0x043e - 0x80 + additional_character; + safe_unicode_character = 0x043e - 0x80 + additional_character; } else if( ( additional_character >= 0x9f ) && ( additional_character < 0xbf ) ) { additional_character -= 0x9f; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x849f[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x849f[ additional_character ]; } } else if( byte_stream_character == 0x87 ) @@ -4509,34 +4496,30 @@ int libuna_codepage_windows_932_copy_from_byte_stream( if( ( additional_character >= 0x40 ) && ( additional_character < 0x54 ) ) { - *unicode_character = 0x2460 - 0x40 + additional_character; + safe_unicode_character = 0x2460 - 0x40 + additional_character; } else if( ( additional_character >= 0x54 ) && ( additional_character < 0x5e ) ) { - *unicode_character = 0x2160 - 0x54 + additional_character; + safe_unicode_character = 0x2160 - 0x54 + additional_character; } else if( ( additional_character >= 0x5f ) && ( additional_character < 0x76 ) ) { additional_character -= 0x5f; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x875f[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x875f[ additional_character ]; } else if( additional_character == 0x7e ) { - *unicode_character = 0x337b; + safe_unicode_character = 0x337b; } else if( ( additional_character >= 0x80 ) && ( additional_character < 0x9d ) ) { additional_character -= 0x80; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8780[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8780[ additional_character ]; } } else if( byte_stream_character == 0x88 ) @@ -4546,11 +4529,7 @@ int libuna_codepage_windows_932_copy_from_byte_stream( { additional_character -= 0x9f; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x889f[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x889f[ additional_character ]; } } else if( ( byte_stream_character >= 0x89 ) @@ -4564,70 +4543,66 @@ int libuna_codepage_windows_932_copy_from_byte_stream( switch( byte_stream_character ) { case 0x89: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8940[ additional_character ]; break; case 0x8a: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8a40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8a40[ additional_character ]; break; case 0x8b: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8b40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8b40[ additional_character ]; break; case 0x8c: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8c40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8c40[ additional_character ]; break; case 0x8d: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8d40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8d40[ additional_character ]; break; case 0x8e: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8e40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8e40[ additional_character ]; break; case 0x8f: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8f40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x8f40[ additional_character ]; break; case 0x90: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9040[ additional_character ]; break; case 0x91: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9140[ additional_character ]; break; case 0x92: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9240[ additional_character ]; break; case 0x93: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9340[ additional_character ]; break; case 0x94: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9440[ additional_character ]; break; case 0x95: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9540[ additional_character ]; break; case 0x96: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9640[ additional_character ]; break; case 0x97: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9740[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0x98 ) { @@ -4636,18 +4611,14 @@ int libuna_codepage_windows_932_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9840[ additional_character ]; } else if( ( additional_character >= 0x9f ) && ( additional_character < 0xfd ) ) { additional_character -= 0x9f; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x989f[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x989f[ additional_character ]; } } else if( ( byte_stream_character >= 0x99 ) @@ -4661,38 +4632,34 @@ int libuna_codepage_windows_932_copy_from_byte_stream( switch( byte_stream_character ) { case 0x99: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9940[ additional_character ]; break; case 0x9a: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9a40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9a40[ additional_character ]; break; case 0x9b: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9b40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9b40[ additional_character ]; break; case 0x9c: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9c40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9c40[ additional_character ]; break; case 0x9d: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9d40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9d40[ additional_character ]; break; case 0x9e: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9e40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9e40[ additional_character ]; break; case 0x9f: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9f40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0x9f40[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( ( byte_stream_character >= 0xe0 ) && ( byte_stream_character <= 0xe9 ) ) @@ -4705,50 +4672,46 @@ int libuna_codepage_windows_932_copy_from_byte_stream( switch( byte_stream_character ) { case 0xe0: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe040[ additional_character ]; break; case 0xe1: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe140[ additional_character ]; break; case 0xe2: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe240[ additional_character ]; break; case 0xe3: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe340[ additional_character ]; break; case 0xe4: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe440[ additional_character ]; break; case 0xe5: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe540[ additional_character ]; break; case 0xe6: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe640[ additional_character ]; break; case 0xe7: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe740[ additional_character ]; break; case 0xe8: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe840[ additional_character ]; break; case 0xe9: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xe940[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xea ) { @@ -4757,11 +4720,7 @@ int libuna_codepage_windows_932_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xea40[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xea40[ additional_character ]; } } else if( ( byte_stream_character >= 0xed ) @@ -4775,18 +4734,14 @@ int libuna_codepage_windows_932_copy_from_byte_stream( switch( byte_stream_character ) { case 0xed: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xed40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xed40[ additional_character ]; break; case 0xee: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xee40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xee40[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( ( byte_stream_character >= 0xfa ) && ( byte_stream_character <= 0xfb ) ) @@ -4799,18 +4754,14 @@ int libuna_codepage_windows_932_copy_from_byte_stream( switch( byte_stream_character ) { case 0xfa: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfa40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfa40[ additional_character ]; break; case 0xfb: - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfb40[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xfc ) { @@ -4819,23 +4770,12 @@ int libuna_codepage_windows_932_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfc40[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_932_byte_stream_to_unicode_base_0xfc40[ additional_character ]; } } - else - { - *unicode_character = 0xfffd; - } } - else - { - *unicode_character = 0xfffd; - } - *byte_stream_index += 1; + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index + 1; return( 1 ); } @@ -4850,8 +4790,9 @@ int libuna_codepage_windows_932_copy_to_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ) { - static char *function = "libuna_codepage_windows_932_copy_to_byte_stream"; - uint16_t byte_stream_value = 0x001a; + static char *function = "libuna_codepage_windows_932_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; if( byte_stream == NULL ) { @@ -4886,7 +4827,9 @@ int libuna_codepage_windows_932_copy_to_byte_stream( return( -1 ); } - if( *byte_stream_index >= byte_stream_size ) + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, @@ -4955,17 +4898,15 @@ int libuna_codepage_windows_932_copy_to_byte_stream( unicode_character -= 0xff00; byte_stream_value = libuna_codepage_windows_932_unicode_to_byte_stream_base_0xff00[ unicode_character ]; } - byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); - - byte_stream_value >>= 8; - - if( byte_stream_value != 0 ) + do { - *byte_stream_index += 1; + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); - byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); + byte_stream_value >>= 8; } - *byte_stream_index += 1; + while( byte_stream_value != 0 ); + + *byte_stream_index = safe_byte_stream_index; return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_932.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_932.h similarity index 92% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_932.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_932.h index 21decdc..7aae3ca 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_932.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_932.h @@ -1,7 +1,7 @@ /* * Windows 932 codepage (Japanese Shift-JIS) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,6 @@ #include #include -#include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" @@ -33,13 +32,11 @@ extern "C" { #endif -LIBUNA_EXTERN \ int libuna_codepage_windows_932_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ); -LIBUNA_EXTERN \ int libuna_codepage_windows_932_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, @@ -47,7 +44,6 @@ int libuna_codepage_windows_932_copy_from_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ); -LIBUNA_EXTERN \ int libuna_codepage_windows_932_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_936.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_936.c similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_936.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_936.c index fb88708..77ab03c 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_936.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_936.c @@ -1,7 +1,7 @@ /* * Windows 936 codepage (Chinese Simplified) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -26,7 +26,7 @@ #include "libuna_libcerror.h" #include "libuna_types.h" -/* Extended ASCII to Unicode character lookup table for Windows 936 codepage +/* Extended ASCII to Unicode character lookup tables for the Windows 936 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8140[ 192 ] = { @@ -3177,10 +3177,9 @@ const uint16_t libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfe40[ 1 0xfa1f, 0xfa20, 0xfa21, 0xfa23, 0xfa24, 0xfa27, 0xfa28, 0xfa29 }; -/* Unicode to ASCII character lookup table for Windows 936 codepage +/* Unicode to ASCII character lookup tables for the Windows 936 codepage * Unknown are filled with the ASCII replacement character 0x1a */ - const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0x0080[ 1024 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, @@ -6351,9 +6350,9 @@ const uint16_t libuna_codepage_windows_936_unicode_to_byte_stream_base_0xfe00[ 5 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a }; -/* Determines the size of a byte stream character from an Unicode character +/* Determines the size of a Windows 936 encoded byte stream from an Unicode character * Adds the size to the byte stream character size value - * Returns 1 if successful or -1 on error + * Returns 1 if successful, 0 if the byte stream character is valid but not supported since it requires special handling or -1 on error */ int libuna_codepage_windows_936_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, @@ -6443,9 +6442,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ) { - static char *function = "libuna_codepage_windows_936_copy_from_byte_stream"; - uint8_t additional_character = 0; - uint8_t byte_stream_character = 0; + static char *function = "libuna_codepage_windows_936_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t additional_character = 0; + uint8_t byte_stream_character = 0; if( unicode_character == NULL ) { @@ -6491,7 +6492,9 @@ int libuna_codepage_windows_936_copy_from_byte_stream( return( -1 ); } - if( *byte_stream_index >= byte_stream_size ) + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, @@ -6502,21 +6505,21 @@ int libuna_codepage_windows_936_copy_from_byte_stream( return( -1 ); } - byte_stream_character = byte_stream[ *byte_stream_index ]; + byte_stream_character = byte_stream[ safe_byte_stream_index ]; if( byte_stream_character < 0x80 ) { - *unicode_character = byte_stream_character; + safe_unicode_character = byte_stream_character; } else if( byte_stream_character == 0x80 ) { - *unicode_character = 0x20ac; + safe_unicode_character = 0x20ac; } - else if( ( *byte_stream_index + 1 ) <= byte_stream_size ) + else if( ( safe_byte_stream_index + 1 ) <= byte_stream_size ) { - *byte_stream_index += 1; + safe_byte_stream_index += 1; - additional_character = byte_stream[ *byte_stream_index ]; + additional_character = byte_stream[ safe_byte_stream_index ]; if( ( byte_stream_character >= 0x81 ) && ( byte_stream_character <= 0xa0 ) ) @@ -6528,138 +6531,134 @@ int libuna_codepage_windows_936_copy_from_byte_stream( switch( byte_stream_character ) { case 0x81: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8140[ additional_character ]; break; case 0x82: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8240[ additional_character ]; break; case 0x83: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8340[ additional_character ]; break; case 0x84: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8440[ additional_character ]; break; case 0x85: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8540[ additional_character ]; break; case 0x86: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8640[ additional_character ]; break; case 0x87: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8740[ additional_character ]; break; case 0x88: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8840[ additional_character ]; break; case 0x89: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8940[ additional_character ]; break; case 0x8a: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8a40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8a40[ additional_character ]; break; case 0x8b: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8b40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8b40[ additional_character ]; break; case 0x8c: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8c40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8c40[ additional_character ]; break; case 0x8d: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8d40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8d40[ additional_character ]; break; case 0x8e: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8e40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8e40[ additional_character ]; break; case 0x8f: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8f40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x8f40[ additional_character ]; break; case 0x90: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9040[ additional_character ]; break; case 0x91: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9140[ additional_character ]; break; case 0x92: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9240[ additional_character ]; break; case 0x93: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9340[ additional_character ]; break; case 0x94: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9440[ additional_character ]; break; case 0x95: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9540[ additional_character ]; break; case 0x96: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9640[ additional_character ]; break; case 0x97: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9740[ additional_character ]; break; case 0x98: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9840[ additional_character ]; break; case 0x99: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9940[ additional_character ]; break; case 0x9a: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9a40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9a40[ additional_character ]; break; case 0x9b: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9b40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9b40[ additional_character ]; break; case 0x9c: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9c40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9c40[ additional_character ]; break; case 0x9d: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9d40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9d40[ additional_character ]; break; case 0x9e: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9e40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9e40[ additional_character ]; break; case 0x9f: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9f40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0x9f40[ additional_character ]; break; case 0xa0: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa040[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( ( byte_stream_character >= 0xa1 ) && ( byte_stream_character <= 0xa3 ) ) @@ -6671,22 +6670,18 @@ int libuna_codepage_windows_936_copy_from_byte_stream( switch( byte_stream_character ) { case 0xa1: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa1a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa1a0[ additional_character ]; break; case 0xa2: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa2a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa2a0[ additional_character ]; break; case 0xa3: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa3a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa3a0[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( ( byte_stream_character >= 0xa4 ) && ( byte_stream_character <= 0xa6 ) ) @@ -6699,22 +6694,18 @@ int libuna_codepage_windows_936_copy_from_byte_stream( switch( byte_stream_character ) { case 0xa4: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa4a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa4a0[ additional_character ]; break; case 0xa5: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa5a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa5a0[ additional_character ]; break; case 0xa6: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa6a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa6a0[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xa7 ) { @@ -6723,18 +6714,14 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0xa0; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa7a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa7a0[ additional_character ]; } else if( ( additional_character >= 0xd0 ) && ( additional_character < 0xf8 ) ) { additional_character -= 0xd0; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa7d0[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa7d0[ additional_character ]; } } else if( byte_stream_character == 0xa8 ) @@ -6744,18 +6731,14 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa840[ additional_character ]; } else if( ( additional_character >= 0xa0 ) && ( additional_character < 0xf0 ) ) { additional_character -= 0xa0; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa8a0[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa8a0[ additional_character ]; } } else if( byte_stream_character == 0xa9 ) @@ -6765,26 +6748,22 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa940[ additional_character ]; } else if( additional_character == 0x88 ) { - *unicode_character = 0xfe6b; + safe_unicode_character = 0xfe6b; } else if( additional_character == 0x96 ) { - *unicode_character = 0x3007; + safe_unicode_character = 0x3007; } else if( ( additional_character >= 0xa0 ) && ( additional_character < 0xf0 ) ) { additional_character -= 0xa0; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa9a0[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xa9a0[ additional_character ]; } } else if( byte_stream_character == 0xaa ) @@ -6794,15 +6773,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xaa40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xaa40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x7371; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x7371; } } else if( byte_stream_character == 0xab ) @@ -6812,15 +6787,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xab40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xab40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x73f7; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x73f7; } } else if( byte_stream_character == 0xac ) @@ -6830,15 +6801,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xac40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xac40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x747a; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x747a; } } else if( byte_stream_character == 0xad ) @@ -6848,15 +6815,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xad40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xad40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x74f2; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x74f2; } } else if( byte_stream_character == 0xae ) @@ -6866,15 +6829,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xae40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xae40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x7587; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x7587; } } else if( byte_stream_character == 0xaf ) @@ -6884,15 +6843,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xaf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xaf40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x7644; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x7644; } } else if( ( byte_stream_character >= 0xb0 ) @@ -6905,298 +6860,294 @@ int libuna_codepage_windows_936_copy_from_byte_stream( switch( byte_stream_character ) { case 0xb0: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb040[ additional_character ]; break; case 0xb1: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb140[ additional_character ]; break; case 0xb2: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb240[ additional_character ]; break; case 0xb3: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb340[ additional_character ]; break; case 0xb4: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb440[ additional_character ]; break; case 0xb5: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb540[ additional_character ]; break; case 0xb6: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb640[ additional_character ]; break; case 0xb7: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb740[ additional_character ]; break; case 0xb8: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb840[ additional_character ]; break; case 0xb9: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xb940[ additional_character ]; break; case 0xba: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xba40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xba40[ additional_character ]; break; case 0xbb: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbb40[ additional_character ]; break; case 0xbc: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbc40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbc40[ additional_character ]; break; case 0xbd: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbd40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbd40[ additional_character ]; break; case 0xbe: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbe40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbe40[ additional_character ]; break; case 0xbf: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xbf40[ additional_character ]; break; case 0xc0: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc040[ additional_character ]; break; case 0xc1: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc140[ additional_character ]; break; case 0xc2: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc240[ additional_character ]; break; case 0xc3: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc340[ additional_character ]; break; case 0xc4: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc440[ additional_character ]; break; case 0xc5: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc540[ additional_character ]; break; case 0xc6: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc640[ additional_character ]; break; case 0xc7: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc740[ additional_character ]; break; case 0xc8: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc840[ additional_character ]; break; case 0xc9: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xc940[ additional_character ]; break; case 0xca: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xca40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xca40[ additional_character ]; break; case 0xcb: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcb40[ additional_character ]; break; case 0xcc: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcc40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcc40[ additional_character ]; break; case 0xcd: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcd40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcd40[ additional_character ]; break; case 0xce: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xce40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xce40[ additional_character ]; break; case 0xcf: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xcf40[ additional_character ]; break; case 0xd0: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd040[ additional_character ]; break; case 0xd1: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd140[ additional_character ]; break; case 0xd2: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd240[ additional_character ]; break; case 0xd3: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd340[ additional_character ]; break; case 0xd4: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd440[ additional_character ]; break; case 0xd5: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd540[ additional_character ]; break; case 0xd6: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd640[ additional_character ]; break; case 0xd7: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd740[ additional_character ]; break; case 0xd8: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd840[ additional_character ]; break; case 0xd9: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xd940[ additional_character ]; break; case 0xda: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xda40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xda40[ additional_character ]; break; case 0xdb: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdb40[ additional_character ]; break; case 0xdc: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdc40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdc40[ additional_character ]; break; case 0xdd: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdd40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdd40[ additional_character ]; break; case 0xde: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xde40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xde40[ additional_character ]; break; case 0xdf: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xdf40[ additional_character ]; break; case 0xe0: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe040[ additional_character ]; break; case 0xe1: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe140[ additional_character ]; break; case 0xe2: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe240[ additional_character ]; break; case 0xe3: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe340[ additional_character ]; break; case 0xe4: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe440[ additional_character ]; break; case 0xe5: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe540[ additional_character ]; break; case 0xe6: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe640[ additional_character ]; break; case 0xe7: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe740[ additional_character ]; break; case 0xe8: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe840[ additional_character ]; break; case 0xe9: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xe940[ additional_character ]; break; case 0xea: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xea40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xea40[ additional_character ]; break; case 0xeb: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xeb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xeb40[ additional_character ]; break; case 0xec: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xec40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xec40[ additional_character ]; break; case 0xed: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xed40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xed40[ additional_character ]; break; case 0xee: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xee40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xee40[ additional_character ]; break; case 0xef: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xef40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xef40[ additional_character ]; break; case 0xf0: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf040[ additional_character ]; break; case 0xf1: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf140[ additional_character ]; break; case 0xf2: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf240[ additional_character ]; break; case 0xf3: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf340[ additional_character ]; break; case 0xf4: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf440[ additional_character ]; break; case 0xf5: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf540[ additional_character ]; break; case 0xf6: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf640[ additional_character ]; break; case 0xf7: - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf740[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xf8 ) { @@ -7205,15 +7156,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf840[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x9d42; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x9d42; } } else if( byte_stream_character == 0xf9 ) @@ -7223,15 +7170,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xf940[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x9da2; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x9da2; } } else if( byte_stream_character == 0xfa ) @@ -7241,15 +7184,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfa40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfa40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x9e02; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x9e02; } } else if( byte_stream_character == 0xfb ) @@ -7259,15 +7198,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfb40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x9eaa; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x9eaa; } } else if( byte_stream_character == 0xfc ) @@ -7277,15 +7212,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfc40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfc40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0x9f31; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x9f31; } } else if( byte_stream_character == 0xfd ) @@ -7295,15 +7226,11 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfd40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfd40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0xf9f1; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0xf9f1; } } else if( byte_stream_character == 0xfe ) @@ -7313,23 +7240,12 @@ int libuna_codepage_windows_936_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfe40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_936_byte_stream_to_unicode_base_0xfe40[ additional_character ]; } - else - { - *unicode_character = 0xfffd; - } - } - else - { - *unicode_character = 0xfffd; } } - else - { - *unicode_character = 0xfffd; - } - *byte_stream_index += 1; + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index + 1; return( 1 ); } @@ -7344,8 +7260,9 @@ int libuna_codepage_windows_936_copy_to_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ) { - static char *function = "libuna_codepage_windows_936_copy_to_byte_stream"; - uint16_t byte_stream_value = 0x001a; + static char *function = "libuna_codepage_windows_936_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; if( byte_stream == NULL ) { @@ -7380,7 +7297,9 @@ int libuna_codepage_windows_936_copy_to_byte_stream( return( -1 ); } - if( *byte_stream_index >= byte_stream_size ) + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, @@ -7437,17 +7356,15 @@ int libuna_codepage_windows_936_copy_to_byte_stream( unicode_character -= 0xfe00; byte_stream_value = libuna_codepage_windows_936_unicode_to_byte_stream_base_0xfe00[ unicode_character ]; } - byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); - - byte_stream_value >>= 8; - - if( byte_stream_value != 0 ) + do { - *byte_stream_index += 1; + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); - byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); + byte_stream_value >>= 8; } - *byte_stream_index += 1; + while( byte_stream_value != 0 ); + + *byte_stream_index = safe_byte_stream_index; return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_936.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_936.h similarity index 92% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_936.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_936.h index ec76d98..ae88926 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_936.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_936.h @@ -1,7 +1,7 @@ /* * Windows 936 codepage (Chinese Simplified) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,6 @@ #include #include -#include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" @@ -33,13 +32,11 @@ extern "C" { #endif -LIBUNA_EXTERN \ int libuna_codepage_windows_936_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ); -LIBUNA_EXTERN \ int libuna_codepage_windows_936_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, @@ -47,7 +44,6 @@ int libuna_codepage_windows_936_copy_from_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ); -LIBUNA_EXTERN \ int libuna_codepage_windows_936_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_949.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_949.c similarity index 96% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_949.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_949.c index 96bdf2f..d938753 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_949.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_949.c @@ -1,7 +1,7 @@ /* * Windows 949 codepage (Korean) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -26,7 +26,7 @@ #include "libuna_libcerror.h" #include "libuna_types.h" -/* Extended ASCII to Unicode character lookup table for Windows 949 codepage +/* Extended ASCII to Unicode character lookup tables for the Windows 949 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8140[ 192 ] = { @@ -2678,10 +2678,9 @@ const uint16_t libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfda0[ 9 0x71b9, 0x71ba, 0x72a7, 0x79a7, 0x7a00, 0x7fb2, 0x8a70, 0xfffd }; -/* Unicode to ASCII character lookup table for Windows 949 codepage +/* Unicode to ASCII character lookup tables for the Windows 949 codepage * Unknown are filled with the ASCII replacement character 0x1a */ - const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0x0080[ 256 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, @@ -7210,9 +7209,9 @@ const uint16_t libuna_codepage_windows_949_unicode_to_byte_stream_base_0xff00[ 2 }; -/* Determines the size of a byte stream character from an Unicode character +/* Determines the size of a Windows 949 encoded byte stream from an Unicode character * Adds the size to the byte stream character size value - * Returns 1 if successful or -1 on error + * Returns 1 if successful, 0 if the byte stream character is valid but not supported since it requires special handling or -1 on error */ int libuna_codepage_windows_949_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, @@ -7308,9 +7307,11 @@ int libuna_codepage_windows_949_copy_from_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ) { - static char *function = "libuna_codepage_windows_949_copy_from_byte_stream"; - uint8_t additional_character = 0; - uint8_t byte_stream_character = 0; + static char *function = "libuna_codepage_windows_949_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t additional_character = 0; + uint8_t byte_stream_character = 0; if( unicode_character == NULL ) { @@ -7356,7 +7357,9 @@ int libuna_codepage_windows_949_copy_from_byte_stream( return( -1 ); } - if( *byte_stream_index >= byte_stream_size ) + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, @@ -7367,17 +7370,17 @@ int libuna_codepage_windows_949_copy_from_byte_stream( return( -1 ); } - byte_stream_character = byte_stream[ *byte_stream_index ]; + byte_stream_character = byte_stream[ safe_byte_stream_index ]; if( byte_stream_character < 0x80 ) { - *unicode_character = byte_stream_character; + safe_unicode_character = byte_stream_character; } - else if( ( *byte_stream_index + 1 ) <= byte_stream_size ) + else if( ( safe_byte_stream_index + 1 ) <= byte_stream_size ) { - *byte_stream_index += 1; + safe_byte_stream_index += 1; - additional_character = byte_stream[ *byte_stream_index ]; + additional_character = byte_stream[ safe_byte_stream_index ]; if( ( byte_stream_character >= 0x81 ) && ( byte_stream_character <= 0xa1 ) ) @@ -7389,142 +7392,138 @@ int libuna_codepage_windows_949_copy_from_byte_stream( switch( byte_stream_character ) { case 0x81: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8140[ additional_character ]; break; case 0x82: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8240[ additional_character ]; break; case 0x83: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8340[ additional_character ]; break; case 0x84: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8440[ additional_character ]; break; case 0x85: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8540[ additional_character ]; break; case 0x86: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8640[ additional_character ]; break; case 0x87: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8740[ additional_character ]; break; case 0x88: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8840[ additional_character ]; break; case 0x89: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8940[ additional_character ]; break; case 0x8a: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8a40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8a40[ additional_character ]; break; case 0x8b: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8b40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8b40[ additional_character ]; break; case 0x8c: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8c40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8c40[ additional_character ]; break; case 0x8d: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8d40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8d40[ additional_character ]; break; case 0x8e: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8e40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8e40[ additional_character ]; break; case 0x8f: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8f40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x8f40[ additional_character ]; break; case 0x90: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9040[ additional_character ]; break; case 0x91: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9140[ additional_character ]; break; case 0x92: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9240[ additional_character ]; break; case 0x93: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9340[ additional_character ]; break; case 0x94: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9440[ additional_character ]; break; case 0x95: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9540[ additional_character ]; break; case 0x96: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9640[ additional_character ]; break; case 0x97: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9740[ additional_character ]; break; case 0x98: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9840[ additional_character ]; break; case 0x99: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9940[ additional_character ]; break; case 0x9a: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9a40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9a40[ additional_character ]; break; case 0x9b: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9b40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9b40[ additional_character ]; break; case 0x9c: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9c40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9c40[ additional_character ]; break; case 0x9d: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9d40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9d40[ additional_character ]; break; case 0x9e: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9e40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9e40[ additional_character ]; break; case 0x9f: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9f40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0x9f40[ additional_character ]; break; case 0xa0: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa040[ additional_character ]; break; case 0xa1: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa140[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xa2 ) { @@ -7533,11 +7532,7 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa240[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa240[ additional_character ]; } } else if( ( byte_stream_character >= 0xa3 ) @@ -7550,18 +7545,14 @@ int libuna_codepage_windows_949_copy_from_byte_stream( switch( byte_stream_character ) { case 0xa3: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa340[ additional_character ]; break; case 0xa4: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa440[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xa5 ) { @@ -7569,11 +7560,7 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa540[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa540[ additional_character ]; } } else if( byte_stream_character == 0xa6 ) @@ -7583,11 +7570,7 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa640[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa640[ additional_character ]; } } else if( byte_stream_character == 0xa7 ) @@ -7597,11 +7580,7 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa740[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa740[ additional_character ]; } } else if( ( byte_stream_character >= 0xa8 ) @@ -7614,18 +7593,14 @@ int libuna_codepage_windows_949_copy_from_byte_stream( switch( byte_stream_character ) { case 0xa8: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa840[ additional_character ]; break; case 0xa9: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xa940[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( ( byte_stream_character >= 0xaa ) && ( byte_stream_character <= 0xab ) ) @@ -7638,18 +7613,14 @@ int libuna_codepage_windows_949_copy_from_byte_stream( switch( byte_stream_character ) { case 0xaa: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xaa40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xaa40[ additional_character ]; break; case 0xab: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xab40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xab40[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xac ) { @@ -7658,18 +7629,14 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xac40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xac40[ additional_character ]; } else if( ( additional_character >= 0xd0 ) && ( additional_character < 0xf8 ) ) { additional_character -= 0xd0; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xacd0[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xacd0[ additional_character ]; } } else if( byte_stream_character == 0xad ) @@ -7679,15 +7646,11 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xad40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xad40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0xcdc5; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0xcdc5; } } else if( byte_stream_character == 0xae ) @@ -7697,15 +7660,11 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xae40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xae40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0xce2b; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0xce2b; } } else if( byte_stream_character == 0xaf ) @@ -7715,15 +7674,11 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xaf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xaf40[ additional_character ]; } else if( additional_character == 0xa0 ) { - *unicode_character = 0xce99; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0xce99; } } else if( ( byte_stream_character >= 0xb0 ) @@ -7736,98 +7691,94 @@ int libuna_codepage_windows_949_copy_from_byte_stream( switch( byte_stream_character ) { case 0xb0: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb040[ additional_character ]; break; case 0xb1: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb140[ additional_character ]; break; case 0xb2: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb240[ additional_character ]; break; case 0xb3: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb340[ additional_character ]; break; case 0xb4: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb440[ additional_character ]; break; case 0xb5: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb540[ additional_character ]; break; case 0xb6: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb640[ additional_character ]; break; case 0xb7: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb740[ additional_character ]; break; case 0xb8: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb840[ additional_character ]; break; case 0xb9: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xb940[ additional_character ]; break; case 0xba: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xba40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xba40[ additional_character ]; break; case 0xbb: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbb40[ additional_character ]; break; case 0xbc: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbc40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbc40[ additional_character ]; break; case 0xbd: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbd40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbd40[ additional_character ]; break; case 0xbe: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbe40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbe40[ additional_character ]; break; case 0xbf: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xbf40[ additional_character ]; break; case 0xc0: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc040[ additional_character ]; break; case 0xc1: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc140[ additional_character ]; break; case 0xc2: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc240[ additional_character ]; break; case 0xc3: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc340[ additional_character ]; break; case 0xc4: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc440[ additional_character ]; break; case 0xc5: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc540[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xc6 ) { @@ -7836,17 +7787,13 @@ int libuna_codepage_windows_949_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc640[ additional_character ]; } else if( additional_character >= 0xa0 ) { additional_character -= 0xa0; - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc6a0[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc6a0[ additional_character ]; } } else if( ( byte_stream_character >= 0xc7 ) @@ -7859,18 +7806,14 @@ int libuna_codepage_windows_949_copy_from_byte_stream( switch( byte_stream_character ) { case 0xc7: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc7a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc7a0[ additional_character ]; break; case 0xc8: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc8a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xc8a0[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( ( byte_stream_character >= 0xca ) && ( byte_stream_character <= 0xfd ) ) @@ -7882,229 +7825,218 @@ int libuna_codepage_windows_949_copy_from_byte_stream( switch( byte_stream_character ) { case 0xca: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcaa0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcaa0[ additional_character ]; break; case 0xcb: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcba0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcba0[ additional_character ]; break; case 0xcc: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcca0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcca0[ additional_character ]; break; case 0xcd: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcda0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcda0[ additional_character ]; break; case 0xce: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcea0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcea0[ additional_character ]; break; case 0xcf: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcfa0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xcfa0[ additional_character ]; break; case 0xd0: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd0a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd0a0[ additional_character ]; break; case 0xd1: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd1a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd1a0[ additional_character ]; break; case 0xd2: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd2a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd2a0[ additional_character ]; break; case 0xd3: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd3a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd3a0[ additional_character ]; break; case 0xd4: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd4a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd4a0[ additional_character ]; break; case 0xd5: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd5a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd5a0[ additional_character ]; break; case 0xd6: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd6a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd6a0[ additional_character ]; break; case 0xd7: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd7a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd7a0[ additional_character ]; break; case 0xd8: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd8a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd8a0[ additional_character ]; break; case 0xd9: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd9a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xd9a0[ additional_character ]; break; case 0xda: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdaa0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdaa0[ additional_character ]; break; case 0xdb: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdba0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdba0[ additional_character ]; break; case 0xdc: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdca0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdca0[ additional_character ]; break; case 0xdd: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdda0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdda0[ additional_character ]; break; case 0xde: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdea0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdea0[ additional_character ]; break; case 0xdf: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdfa0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xdfa0[ additional_character ]; break; case 0xe0: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe0a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe0a0[ additional_character ]; break; case 0xe1: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe1a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe1a0[ additional_character ]; break; case 0xe2: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe2a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe2a0[ additional_character ]; break; case 0xe3: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe3a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe3a0[ additional_character ]; break; case 0xe4: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe4a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe4a0[ additional_character ]; break; case 0xe5: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe5a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe5a0[ additional_character ]; break; case 0xe6: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe6a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe6a0[ additional_character ]; break; case 0xe7: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe7a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe7a0[ additional_character ]; break; case 0xe8: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe8a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe8a0[ additional_character ]; break; case 0xe9: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe9a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xe9a0[ additional_character ]; break; case 0xea: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeaa0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeaa0[ additional_character ]; break; case 0xeb: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeba0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeba0[ additional_character ]; break; case 0xec: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeca0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeca0[ additional_character ]; break; case 0xed: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeda0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeda0[ additional_character ]; break; case 0xee: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeea0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xeea0[ additional_character ]; break; case 0xef: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xefa0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xefa0[ additional_character ]; break; case 0xf0: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf0a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf0a0[ additional_character ]; break; case 0xf1: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf1a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf1a0[ additional_character ]; break; case 0xf2: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf2a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf2a0[ additional_character ]; break; case 0xf3: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf3a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf3a0[ additional_character ]; break; case 0xf4: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf4a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf4a0[ additional_character ]; break; case 0xf5: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf5a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf5a0[ additional_character ]; break; case 0xf6: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf6a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf6a0[ additional_character ]; break; case 0xf7: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf7a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf7a0[ additional_character ]; break; case 0xf8: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf8a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf8a0[ additional_character ]; break; case 0xf9: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf9a0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xf9a0[ additional_character ]; break; case 0xfa: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfaa0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfaa0[ additional_character ]; break; case 0xfb: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfba0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfba0[ additional_character ]; break; case 0xfc: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfca0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfca0[ additional_character ]; break; case 0xfd: - *unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfda0[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_949_byte_stream_to_unicode_base_0xfda0[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } - else - { - *unicode_character = 0xfffd; - } - } - else - { - *unicode_character = 0xfffd; } - *byte_stream_index += 1; + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index + 1; return( 1 ); } @@ -8119,8 +8051,9 @@ int libuna_codepage_windows_949_copy_to_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ) { - static char *function = "libuna_codepage_windows_949_copy_to_byte_stream"; - uint16_t byte_stream_value = 0x001a; + static char *function = "libuna_codepage_windows_949_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; if( byte_stream == NULL ) { @@ -8155,7 +8088,9 @@ int libuna_codepage_windows_949_copy_to_byte_stream( return( -1 ); } - if( *byte_stream_index >= byte_stream_size ) + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, @@ -8218,17 +8153,15 @@ int libuna_codepage_windows_949_copy_to_byte_stream( unicode_character -= 0xff00; byte_stream_value = libuna_codepage_windows_949_unicode_to_byte_stream_base_0xff00[ unicode_character ]; } - byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); - - byte_stream_value >>= 8; - - if( byte_stream_value != 0 ) + do { - *byte_stream_index += 1; + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); - byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); + byte_stream_value >>= 8; } - *byte_stream_index += 1; + while( byte_stream_value != 0 ); + + *byte_stream_index = safe_byte_stream_index; return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_949.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_949.h similarity index 92% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_949.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_949.h index e90a8cb..044a6e5 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_949.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_949.h @@ -1,7 +1,7 @@ /* * Windows 949 codepage (Korean) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,6 @@ #include #include -#include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" @@ -33,13 +32,11 @@ extern "C" { #endif -LIBUNA_EXTERN \ int libuna_codepage_windows_949_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ); -LIBUNA_EXTERN \ int libuna_codepage_windows_949_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, @@ -47,7 +44,6 @@ int libuna_codepage_windows_949_copy_from_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ); -LIBUNA_EXTERN \ int libuna_codepage_windows_949_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_950.c b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_950.c similarity index 93% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_950.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_950.c index faec903..ee4513d 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_950.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_950.c @@ -1,7 +1,7 @@ /* * Windows 950 codepage (Traditional Chinese) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -26,10 +26,9 @@ #include "libuna_libcerror.h" #include "libuna_types.h" -/* Extended ASCII to Unicode character lookup table for Windows 950 codepage +/* Extended ASCII to Unicode character lookup tables for the Windows 950 codepage * Unknown are filled with the Unicode replacement character 0xfffd */ - const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa140[ 63 ] = { 0x3000, 0xff0c, 0x3001, 0x3002, 0xff0e, 0x2027, 0xff1b, 0xff1a, 0xff1f, 0xff01, 0xfe30, 0x2026, 0x2025, 0xfe50, 0xfe51, 0xfe52, @@ -2269,10 +2268,9 @@ const uint16_t libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf9a1[ 9 0x2551, 0x2550, 0x256d, 0x256e, 0x2570, 0x256f, 0x2593, }; -/* Unicode to ASCII character lookup table for Windows 950 codepage +/* Unicode to ASCII character lookup tables for the Windows 950 codepage * Unknown are filled with the ASCII replacement character 0x1a */ - const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0x0080[ 128 ] = { 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, 0x001a, @@ -5314,9 +5312,9 @@ const uint16_t libuna_codepage_windows_950_unicode_to_byte_stream_base_0xfe00[ 5 }; -/* Determines the size of a byte stream character from an Unicode character +/* Determines the size of a Windows 950 encoded byte stream from an Unicode character * Adds the size to the byte stream character size value - * Returns 1 if successful or -1 on error + * Returns 1 if successful, 0 if the byte stream character is valid but not supported since it requires special handling or -1 on error */ int libuna_codepage_windows_950_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, @@ -5412,9 +5410,11 @@ int libuna_codepage_windows_950_copy_from_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ) { - static char *function = "libuna_codepage_windows_950_copy_from_byte_stream"; - uint8_t additional_character = 0; - uint8_t byte_stream_character = 0; + static char *function = "libuna_codepage_windows_950_copy_from_byte_stream"; + libuna_unicode_character_t safe_unicode_character = 0xfffd; + size_t safe_byte_stream_index = 0; + uint8_t additional_character = 0; + uint8_t byte_stream_character = 0; if( unicode_character == NULL ) { @@ -5460,7 +5460,9 @@ int libuna_codepage_windows_950_copy_from_byte_stream( return( -1 ); } - if( *byte_stream_index >= byte_stream_size ) + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, @@ -5471,17 +5473,17 @@ int libuna_codepage_windows_950_copy_from_byte_stream( return( -1 ); } - byte_stream_character = byte_stream[ *byte_stream_index ]; + byte_stream_character = byte_stream[ safe_byte_stream_index ]; if( byte_stream_character < 0x80 ) { - *unicode_character = byte_stream_character; + safe_unicode_character = byte_stream_character; } - else if( ( *byte_stream_index + 1 ) <= byte_stream_size ) + else if( ( safe_byte_stream_index + 1 ) <= byte_stream_size ) { - *byte_stream_index += 1; + safe_byte_stream_index += 1; - additional_character = byte_stream[ *byte_stream_index ]; + additional_character = byte_stream[ safe_byte_stream_index ]; if( ( byte_stream_character >= 0xa1 ) && ( byte_stream_character <= 0xa2 ) ) @@ -5494,11 +5496,11 @@ int libuna_codepage_windows_950_copy_from_byte_stream( switch( byte_stream_character ) { case 0xa1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa140[ additional_character ]; break; case 0xa2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa240[ additional_character ]; break; } } @@ -5510,18 +5512,14 @@ int libuna_codepage_windows_950_copy_from_byte_stream( switch( byte_stream_character ) { case 0xa1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa1a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa1a1[ additional_character ]; break; case 0xa2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa2a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa2a1[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xa3 ) { @@ -5530,22 +5528,18 @@ int libuna_codepage_windows_950_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa340[ additional_character ]; } else if( ( additional_character >= 0xa1 ) && ( additional_character < 0xc0 ) ) { additional_character -= 0xa1; - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa3a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa3a1[ additional_character ]; } else if( additional_character == 0xe1 ) { - *unicode_character = 0x20ac; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = 0x20ac; } } else if( ( byte_stream_character >= 0xa4 ) @@ -5559,139 +5553,139 @@ int libuna_codepage_windows_950_copy_from_byte_stream( switch( byte_stream_character ) { case 0xa4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa440[ additional_character ]; break; case 0xa5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa540[ additional_character ]; break; case 0xa6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa640[ additional_character ]; break; case 0xa7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa740[ additional_character ]; break; case 0xa8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa840[ additional_character ]; break; case 0xa9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa940[ additional_character ]; break; case 0xaa: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaa40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaa40[ additional_character ]; break; case 0xab: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xab40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xab40[ additional_character ]; break; case 0xac: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xac40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xac40[ additional_character ]; break; case 0xad: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xad40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xad40[ additional_character ]; break; case 0xae: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xae40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xae40[ additional_character ]; break; case 0xaf: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaf40[ additional_character ]; break; case 0xb0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb040[ additional_character ]; break; case 0xb1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb140[ additional_character ]; break; case 0xb2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb240[ additional_character ]; break; case 0xb3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb340[ additional_character ]; break; case 0xb4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb440[ additional_character ]; break; case 0xb5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb540[ additional_character ]; break; case 0xb6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb640[ additional_character ]; break; case 0xb7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb740[ additional_character ]; break; case 0xb8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb840[ additional_character ]; break; case 0xb9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb940[ additional_character ]; break; case 0xba: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xba40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xba40[ additional_character ]; break; case 0xbb: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbb40[ additional_character ]; break; case 0xbc: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbc40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbc40[ additional_character ]; break; case 0xbd: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbd40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbd40[ additional_character ]; break; case 0xbe: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbe40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbe40[ additional_character ]; break; case 0xbf: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbf40[ additional_character ]; break; case 0xc0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc040[ additional_character ]; break; case 0xc1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc140[ additional_character ]; break; case 0xc2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc240[ additional_character ]; break; case 0xc3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc340[ additional_character ]; break; case 0xc4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc440[ additional_character ]; break; case 0xc5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc540[ additional_character ]; break; } } @@ -5703,146 +5697,142 @@ int libuna_codepage_windows_950_copy_from_byte_stream( switch( byte_stream_character ) { case 0xa4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa4a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa4a1[ additional_character ]; break; case 0xa5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa5a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa5a1[ additional_character ]; break; case 0xa6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa6a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa6a1[ additional_character ]; break; case 0xa7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa7a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa7a1[ additional_character ]; break; case 0xa8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa8a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa8a1[ additional_character ]; break; case 0xa9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa9a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xa9a1[ additional_character ]; break; case 0xaa: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaaa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaaa1[ additional_character ]; break; case 0xab: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaba1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaba1[ additional_character ]; break; case 0xac: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaca1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaca1[ additional_character ]; break; case 0xad: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xada1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xada1[ additional_character ]; break; case 0xae: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaea1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xaea1[ additional_character ]; break; case 0xaf: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xafa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xafa1[ additional_character ]; break; case 0xb0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb0a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb0a1[ additional_character ]; break; case 0xb1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb1a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb1a1[ additional_character ]; break; case 0xb2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb2a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb2a1[ additional_character ]; break; case 0xb3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb3a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb3a1[ additional_character ]; break; case 0xb4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb4a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb4a1[ additional_character ]; break; case 0xb5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb5a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb5a1[ additional_character ]; break; case 0xb6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb6a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb6a1[ additional_character ]; break; case 0xb7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb7a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb7a1[ additional_character ]; break; case 0xb8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb8a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb8a1[ additional_character ]; break; case 0xb9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb9a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xb9a1[ additional_character ]; break; case 0xba: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbaa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbaa1[ additional_character ]; break; case 0xbb: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbba1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbba1[ additional_character ]; break; case 0xbc: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbca1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbca1[ additional_character ]; break; case 0xbd: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbda1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbda1[ additional_character ]; break; case 0xbe: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbea1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbea1[ additional_character ]; break; case 0xbf: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbfa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xbfa1[ additional_character ]; break; case 0xc0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc0a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc0a1[ additional_character ]; break; case 0xc1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc1a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc1a1[ additional_character ]; break; case 0xc2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc2a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc2a1[ additional_character ]; break; case 0xc3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc3a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc3a1[ additional_character ]; break; case 0xc4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc4a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc4a1[ additional_character ]; break; case 0xc5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc5a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc5a1[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } } else if( byte_stream_character == 0xc6 ) { @@ -5851,11 +5841,7 @@ int libuna_codepage_windows_950_copy_from_byte_stream( { additional_character -= 0x40; - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc640[ additional_character ]; - } - else - { - *unicode_character = 0xfffd; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc640[ additional_character ]; } } else if( ( byte_stream_character >= 0xc9 ) @@ -5869,199 +5855,199 @@ int libuna_codepage_windows_950_copy_from_byte_stream( switch( byte_stream_character ) { case 0xc9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc940[ additional_character ]; break; case 0xca: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xca40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xca40[ additional_character ]; break; case 0xcb: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcb40[ additional_character ]; break; case 0xcc: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcc40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcc40[ additional_character ]; break; case 0xcd: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcd40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcd40[ additional_character ]; break; case 0xce: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xce40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xce40[ additional_character ]; break; case 0xcf: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcf40[ additional_character ]; break; case 0xd0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd040[ additional_character ]; break; case 0xd1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd140[ additional_character ]; break; case 0xd2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd240[ additional_character ]; break; case 0xd3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd340[ additional_character ]; break; case 0xd4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd440[ additional_character ]; break; case 0xd5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd540[ additional_character ]; break; case 0xd6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd640[ additional_character ]; break; case 0xd7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd740[ additional_character ]; break; case 0xd8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd840[ additional_character ]; break; case 0xd9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd940[ additional_character ]; break; case 0xda: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xda40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xda40[ additional_character ]; break; case 0xdb: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdb40[ additional_character ]; break; case 0xdc: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdc40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdc40[ additional_character ]; break; case 0xdd: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdd40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdd40[ additional_character ]; break; case 0xde: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xde40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xde40[ additional_character ]; break; case 0xdf: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdf40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdf40[ additional_character ]; break; case 0xe0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe040[ additional_character ]; break; case 0xe1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe140[ additional_character ]; break; case 0xe2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe240[ additional_character ]; break; case 0xe3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe340[ additional_character ]; break; case 0xe4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe440[ additional_character ]; break; case 0xe5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe540[ additional_character ]; break; case 0xe6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe640[ additional_character ]; break; case 0xe7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe740[ additional_character ]; break; case 0xe8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe840[ additional_character ]; break; case 0xe9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe940[ additional_character ]; break; case 0xea: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xea40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xea40[ additional_character ]; break; case 0xeb: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeb40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeb40[ additional_character ]; break; case 0xec: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xec40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xec40[ additional_character ]; break; case 0xed: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xed40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xed40[ additional_character ]; break; case 0xee: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xee40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xee40[ additional_character ]; break; case 0xef: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xef40[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xef40[ additional_character ]; break; case 0xf0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf040[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf040[ additional_character ]; break; case 0xf1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf140[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf140[ additional_character ]; break; case 0xf2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf240[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf240[ additional_character ]; break; case 0xf3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf340[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf340[ additional_character ]; break; case 0xf4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf440[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf440[ additional_character ]; break; case 0xf5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf540[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf540[ additional_character ]; break; case 0xf6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf640[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf640[ additional_character ]; break; case 0xf7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf740[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf740[ additional_character ]; break; case 0xf8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf840[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf840[ additional_character ]; break; case 0xf9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf940[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf940[ additional_character ]; break; } } @@ -6073,217 +6059,206 @@ int libuna_codepage_windows_950_copy_from_byte_stream( switch( byte_stream_character ) { case 0xc9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc9a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xc9a1[ additional_character ]; break; case 0xca: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcaa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcaa1[ additional_character ]; break; case 0xcb: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcba1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcba1[ additional_character ]; break; case 0xcc: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcca1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcca1[ additional_character ]; break; case 0xcd: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcda1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcda1[ additional_character ]; break; case 0xce: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcea1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcea1[ additional_character ]; break; case 0xcf: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcfa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xcfa1[ additional_character ]; break; case 0xd0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd0a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd0a1[ additional_character ]; break; case 0xd1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd1a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd1a1[ additional_character ]; break; case 0xd2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd2a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd2a1[ additional_character ]; break; case 0xd3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd3a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd3a1[ additional_character ]; break; case 0xd4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd4a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd4a1[ additional_character ]; break; case 0xd5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd5a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd5a1[ additional_character ]; break; case 0xd6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd6a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd6a1[ additional_character ]; break; case 0xd7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd7a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd7a1[ additional_character ]; break; case 0xd8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd8a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd8a1[ additional_character ]; break; case 0xd9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd9a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xd9a1[ additional_character ]; break; case 0xda: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdaa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdaa1[ additional_character ]; break; case 0xdb: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdba1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdba1[ additional_character ]; break; case 0xdc: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdca1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdca1[ additional_character ]; break; case 0xdd: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdda1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdda1[ additional_character ]; break; case 0xde: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdea1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdea1[ additional_character ]; break; case 0xdf: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdfa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xdfa1[ additional_character ]; break; case 0xe0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe0a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe0a1[ additional_character ]; break; case 0xe1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe1a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe1a1[ additional_character ]; break; case 0xe2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe2a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe2a1[ additional_character ]; break; case 0xe3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe3a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe3a1[ additional_character ]; break; case 0xe4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe4a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe4a1[ additional_character ]; break; case 0xe5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe5a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe5a1[ additional_character ]; break; case 0xe6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe6a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe6a1[ additional_character ]; break; case 0xe7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe7a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe7a1[ additional_character ]; break; case 0xe8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe8a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe8a1[ additional_character ]; break; case 0xe9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe9a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xe9a1[ additional_character ]; break; case 0xea: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeaa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeaa1[ additional_character ]; break; case 0xeb: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeba1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeba1[ additional_character ]; break; case 0xec: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeca1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeca1[ additional_character ]; break; case 0xed: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeda1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeda1[ additional_character ]; break; case 0xee: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeea1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xeea1[ additional_character ]; break; case 0xef: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xefa1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xefa1[ additional_character ]; break; case 0xf0: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf0a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf0a1[ additional_character ]; break; case 0xf1: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf1a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf1a1[ additional_character ]; break; case 0xf2: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf2a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf2a1[ additional_character ]; break; case 0xf3: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf3a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf3a1[ additional_character ]; break; case 0xf4: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf4a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf4a1[ additional_character ]; break; case 0xf5: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf5a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf5a1[ additional_character ]; break; case 0xf6: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf6a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf6a1[ additional_character ]; break; case 0xf7: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf7a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf7a1[ additional_character ]; break; case 0xf8: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf8a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf8a1[ additional_character ]; break; case 0xf9: - *unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf9a1[ additional_character ]; + safe_unicode_character = libuna_codepage_windows_950_byte_stream_to_unicode_base_0xf9a1[ additional_character ]; break; } } - else - { - *unicode_character = 0xfffd; - } - } - else - { - *unicode_character = 0xfffd; } } - else - { - *unicode_character = 0xfffd; - } - *byte_stream_index += 1; + *unicode_character = safe_unicode_character; + *byte_stream_index = safe_byte_stream_index + 1; return( 1 ); } @@ -6298,8 +6273,9 @@ int libuna_codepage_windows_950_copy_to_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ) { - static char *function = "libuna_codepage_windows_950_copy_to_byte_stream"; - uint16_t byte_stream_value = 0x001a; + static char *function = "libuna_codepage_windows_950_copy_to_byte_stream"; + size_t safe_byte_stream_index = 0; + uint16_t byte_stream_value = 0x001a; if( byte_stream == NULL ) { @@ -6334,7 +6310,9 @@ int libuna_codepage_windows_950_copy_to_byte_stream( return( -1 ); } - if( *byte_stream_index >= byte_stream_size ) + safe_byte_stream_index = *byte_stream_index; + + if( safe_byte_stream_index >= byte_stream_size ) { libcerror_error_set( error, @@ -6397,17 +6375,15 @@ int libuna_codepage_windows_950_copy_to_byte_stream( unicode_character -= 0xfe00; byte_stream_value = libuna_codepage_windows_950_unicode_to_byte_stream_base_0xfe00[ unicode_character ]; } - byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); - - byte_stream_value >>= 8; - - if( byte_stream_value != 0 ) + do { - *byte_stream_index += 1; + byte_stream[ safe_byte_stream_index++ ] = (uint8_t) ( byte_stream_value & 0x00ff ); - byte_stream[ *byte_stream_index ] = (uint8_t) ( byte_stream_value & 0x00ff ); + byte_stream_value >>= 8; } - *byte_stream_index += 1; + while( byte_stream_value != 0 ); + + *byte_stream_index = safe_byte_stream_index; return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_950.h b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_950.h similarity index 92% rename from libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_950.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_950.h index d95a85b..21da39e 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_codepage_windows_950.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_codepage_windows_950.h @@ -1,7 +1,7 @@ /* * Windows 950 codepage (Traditional Chinese) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -25,7 +25,6 @@ #include #include -#include "libuna_extern.h" #include "libuna_libcerror.h" #include "libuna_types.h" @@ -33,13 +32,11 @@ extern "C" { #endif -LIBUNA_EXTERN \ int libuna_codepage_windows_950_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, size_t *byte_stream_character_size, libcerror_error_t **error ); -LIBUNA_EXTERN \ int libuna_codepage_windows_950_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, const uint8_t *byte_stream, @@ -47,7 +44,6 @@ int libuna_codepage_windows_950_copy_from_byte_stream( size_t *byte_stream_index, libcerror_error_t **error ); -LIBUNA_EXTERN \ int libuna_codepage_windows_950_copy_to_byte_stream( libuna_unicode_character_t unicode_character, uint8_t *byte_stream, diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_definitions.h b/libesedb-sys/libesedb-20230824/libuna/libuna_definitions.h similarity index 81% rename from libesedb-sys/libesedb-20210424/libuna/libuna_definitions.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_definitions.h index 6f89131..2a96a23 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_definitions.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_definitions.h @@ -1,7 +1,7 @@ /* * The internal definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -35,11 +35,11 @@ #else #include -#define LIBUNA_VERSION 20201204 +#define LIBUNA_VERSION 20230710 /* The libuna version string */ -#define LIBUNA_VERSION_STRING "20201204" +#define LIBUNA_VERSION_STRING "20230710" /* The endian definitions */ @@ -71,6 +71,31 @@ enum LIBUNA_CODEPAGES LIBUNA_CODEPAGE_KOI8_R = 20866, LIBUNA_CODEPAGE_KOI8_U = 21866, + LIBUNA_CODEPAGE_MAC_ROMAN = 10000, + LIBUNA_CODEPAGE_MAC_JAPANESE = 10001, + LIBUNA_CODEPAGE_MAC_CHINESETRAD = 10002, + LIBUNA_CODEPAGE_MAC_KOREAN = 10003, + LIBUNA_CODEPAGE_MAC_ARABIC = 10004, + LIBUNA_CODEPAGE_MAC_HEBREW = 10005, + LIBUNA_CODEPAGE_MAC_GREEK = 10006, + LIBUNA_CODEPAGE_MAC_RUSSIAN = 10007, + LIBUNA_CODEPAGE_MAC_CHINESESIMP = 10008, + LIBUNA_CODEPAGE_MAC_ROMANIAN = 10010, + LIBUNA_CODEPAGE_MAC_UKRAINIAN = 10017, + LIBUNA_CODEPAGE_MAC_THAI = 10021, + LIBUNA_CODEPAGE_MAC_CENTRALEURROMAN = 10029, + LIBUNA_CODEPAGE_MAC_ICELANDIC = 10079, + LIBUNA_CODEPAGE_MAC_TURKISH = 10081, + LIBUNA_CODEPAGE_MAC_CROATIAN = 10082, + + LIBUNA_CODEPAGE_MAC_CYRILLIC = 11007, + LIBUNA_CODEPAGE_MAC_SYMBOL = 11033, + LIBUNA_CODEPAGE_MAC_DINGBATS = 11034, + LIBUNA_CODEPAGE_MAC_CELTIC = 11039, + LIBUNA_CODEPAGE_MAC_GAELIC = 11040, + LIBUNA_CODEPAGE_MAC_FARSI = 11140, + LIBUNA_CODEPAGE_MAC_INUIT = 11236, + LIBUNA_CODEPAGE_OEM_437 = 437, LIBUNA_CODEPAGE_OEM_720 = 720, LIBUNA_CODEPAGE_OEM_737 = 737, @@ -83,6 +108,14 @@ enum LIBUNA_CODEPAGES LIBUNA_CODEPAGE_OEM_862 = 862, LIBUNA_CODEPAGE_OEM_866 = 866, + LIBUNA_CODEPAGE_UTF16_LITTLE_ENDIAN = 1200, + LIBUNA_CODEPAGE_UTF16_BIG_ENDIAN = 1201, + LIBUNA_CODEPAGE_UTF32_LITTLE_ENDIAN = 12000, + LIBUNA_CODEPAGE_UTF32_BIG_ENDIAN = 12001, + LIBUNA_CODEPAGE_UTF7 = 65000, + LIBUNA_CODEPAGE_UTF8 = 65001, + LIBUNA_CODEPAGE_SCSU = 65002, + LIBUNA_CODEPAGE_WINDOWS_874 = 874, LIBUNA_CODEPAGE_WINDOWS_932 = 932, LIBUNA_CODEPAGE_WINDOWS_936 = 936, @@ -154,6 +187,30 @@ enum LIBUNA_CODEPAGES #define LIBUNA_CODEPAGE_OEM_CHINESE_TRADITIONAL LIBUNA_CODEPAGE_WINDOWS_950 #define LIBUNA_CODEPAGE_OEM_VIETNAMESE LIBUNA_CODEPAGE_WINDOWS_1258 +#define LIBUNA_CODEPAGE_MACOS_ROMAN LIBUNA_CODEPAGE_MAC_ROMAN +#define LIBUNA_CODEPAGE_MACOS_JAPANESE LIBUNA_CODEPAGE_MAC_JAPANESE +#define LIBUNA_CODEPAGE_MACOS_CHINESE_TRADITIONAL LIBUNA_CODEPAGE_MAC_CHINESETRAD +#define LIBUNA_CODEPAGE_MACOS_KOREAN LIBUNA_CODEPAGE_MAC_KOREAN +#define LIBUNA_CODEPAGE_MACOS_ARABIC LIBUNA_CODEPAGE_MAC_ARABIC +#define LIBUNA_CODEPAGE_MACOS_HEBREW LIBUNA_CODEPAGE_MAC_HEBREW +#define LIBUNA_CODEPAGE_MACOS_GREEK LIBUNA_CODEPAGE_MAC_GREEK +#define LIBUNA_CODEPAGE_MACOS_RUSSIAN LIBUNA_CODEPAGE_MAC_RUSSIAN +#define LIBUNA_CODEPAGE_MACOS_CHINESE_SIMPLIFIED LIBUNA_CODEPAGE_MAC_CHINESESIMP +#define LIBUNA_CODEPAGE_MACOS_ROMANIAN LIBUNA_CODEPAGE_MAC_ROMANIAN +#define LIBUNA_CODEPAGE_MACOS_UKRAINIAN LIBUNA_CODEPAGE_MAC_UKRAINIAN +#define LIBUNA_CODEPAGE_MACOS_THAI LIBUNA_CODEPAGE_MAC_THAI +#define LIBUNA_CODEPAGE_MACOS_CENTRALEURROMAN LIBUNA_CODEPAGE_MAC_CENTRALEURROMAN +#define LIBUNA_CODEPAGE_MACOS_ICELANDIC LIBUNA_CODEPAGE_MAC_ICELANDIC +#define LIBUNA_CODEPAGE_MACOS_TURKISH LIBUNA_CODEPAGE_MAC_TURKISH +#define LIBUNA_CODEPAGE_MACOS_CROATIAN LIBUNA_CODEPAGE_MAC_CROATIAN + +#define LIBUNA_CODEPAGE_MACOS_CYRILLIC LIBUNA_CODEPAGE_MAC_CYRILLIC +#define LIBUNA_CODEPAGE_MACOS_SYMBOL LIBUNA_CODEPAGE_MAC_SYMBOL +#define LIBUNA_CODEPAGE_MACOS_CELTIC LIBUNA_CODEPAGE_MAC_CELTIC +#define LIBUNA_CODEPAGE_MACOS_GAELIC LIBUNA_CODEPAGE_MAC_GAELIC +#define LIBUNA_CODEPAGE_MACOS_FARSI LIBUNA_CODEPAGE_MAC_FARSI +#define LIBUNA_CODEPAGE_MACOS_INUIT LIBUNA_CODEPAGE_MAC_INUIT + #define LIBUNA_CODEPAGE_WINDOWS_THAI LIBUNA_CODEPAGE_WINDOWS_874 #define LIBUNA_CODEPAGE_WINDOWS_JAPANESE LIBUNA_CODEPAGE_WINDOWS_932 #define LIBUNA_CODEPAGE_WINDOWS_CHINESE_SIMPLIFIED LIBUNA_CODEPAGE_WINDOWS_936 @@ -331,6 +388,8 @@ enum LIBUNA_BASE64_FLAGS LIBUNA_BASE64_FLAG_STRIP_WHITESPACE = 0x01 }; +#define LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE 0x8000 + #endif /* !defined( HAVE_LOCAL_LIBUNA ) */ #define LIBUNA_BASE32_VARIANT_ENCODING_BYTE_STREAM 0 @@ -365,8 +424,7 @@ enum LIBUNA_STRIP_MODES #define LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END 0x0000dbffUL #define LIBUNA_UNICODE_CHARACTER_MAX 0x0010ffffUL -#define LIBUNA_UTF16_CHARACTER_MAX 0x0010ffffUL -#define LIBUNA_UTF32_CHARACTER_MAX 0x7fffffffUL +#define LIBUNA_UCS_CHARACTER_MAX 0x7fffffffUL #define LIBUNA_ASCII_REPLACEMENT_CHARACTER 0x1a diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_error.c b/libesedb-sys/libesedb-20230824/libuna/libuna_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_error.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_error.c index 7976917..2e4ca19 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_error.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_error.h b/libesedb-sys/libesedb-20230824/libuna/libuna_error.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libuna/libuna_error.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_error.h index de98217..d990c2d 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_error.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_extern.h b/libesedb-sys/libesedb-20230824/libuna/libuna_extern.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_extern.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_extern.h index ffdab20..8f170ee 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_extern.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_extern.h @@ -1,7 +1,7 @@ /* * The internal extern definition * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_libcerror.h b/libesedb-sys/libesedb-20230824/libuna/libuna_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_libcerror.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_libcerror.h index 2e01e46..d358f76 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_libcerror.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_scsu.c b/libesedb-sys/libesedb-20230824/libuna/libuna_scsu.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_scsu.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_scsu.c index 4e886f4..dc9ad1c 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_scsu.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_scsu.c @@ -1,7 +1,7 @@ /* * Standard Compression Scheme for Unicode (SCSU) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_scsu.h b/libesedb-sys/libesedb-20230824/libuna/libuna_scsu.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libuna/libuna_scsu.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_scsu.h index 1635974..6626c8c 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_scsu.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_scsu.h @@ -1,7 +1,7 @@ /* * Standard Compression Scheme for Unicode (SCSU) functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_support.c b/libesedb-sys/libesedb-20230824/libuna/libuna_support.c similarity index 94% rename from libesedb-sys/libesedb-20210424/libuna/libuna_support.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_support.c index ea2e33c..71cb59d 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_support.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_support.c @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_support.h b/libesedb-sys/libesedb-20230824/libuna/libuna_support.h similarity index 94% rename from libesedb-sys/libesedb-20210424/libuna/libuna_support.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_support.h index 78ca978..659f70f 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_support.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_support.h @@ -1,7 +1,7 @@ /* * Support functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_types.h b/libesedb-sys/libesedb-20230824/libuna/libuna_types.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_types.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_types.h index 55bd39a..584dcde 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_types.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_types.h @@ -1,7 +1,7 @@ /* * The internal type definitions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_unicode_character.c b/libesedb-sys/libesedb-20230824/libuna/libuna_unicode_character.c similarity index 68% rename from libesedb-sys/libesedb-20210424/libuna/libuna_unicode_character.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_unicode_character.c index 52e56ce..f6a76cc 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_unicode_character.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_unicode_character.c @@ -1,7 +1,7 @@ /* * Unicode character functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -38,6 +38,24 @@ #include "libuna_codepage_iso_8859_16.h" #include "libuna_codepage_koi8_r.h" #include "libuna_codepage_koi8_u.h" +#include "libuna_codepage_mac_arabic.h" +#include "libuna_codepage_mac_celtic.h" +#include "libuna_codepage_mac_centraleurroman.h" +#include "libuna_codepage_mac_croatian.h" +#include "libuna_codepage_mac_cyrillic.h" +#include "libuna_codepage_mac_dingbats.h" +#include "libuna_codepage_mac_farsi.h" +#include "libuna_codepage_mac_gaelic.h" +#include "libuna_codepage_mac_greek.h" +#include "libuna_codepage_mac_icelandic.h" +#include "libuna_codepage_mac_inuit.h" +#include "libuna_codepage_mac_roman.h" +#include "libuna_codepage_mac_romanian.h" +#include "libuna_codepage_mac_russian.h" +#include "libuna_codepage_mac_symbol.h" +#include "libuna_codepage_mac_thai.h" +#include "libuna_codepage_mac_turkish.h" +#include "libuna_codepage_mac_ukrainian.h" #include "libuna_codepage_windows_874.h" #include "libuna_codepage_windows_932.h" #include "libuna_codepage_windows_936.h" @@ -102,7 +120,7 @@ uint8_t libuna_unicode_character_utf7_valid_base64_character[ 256 ] = { /* Determines the size of a byte stream character from an Unicode character * Adds the size to the byte stream character size value - * Returns 1 if successful or -1 on error + * Returns 1 if successful, 0 if the byte stream character is valid but not supported since it requires special handling or -1 on error */ int libuna_unicode_character_size_to_byte_stream( libuna_unicode_character_t unicode_character, @@ -147,6 +165,22 @@ int libuna_unicode_character_size_to_byte_stream( case LIBUNA_CODEPAGE_ISO_8859_16: case LIBUNA_CODEPAGE_KOI8_R: case LIBUNA_CODEPAGE_KOI8_U: + case LIBUNA_CODEPAGE_MAC_ARABIC: + case LIBUNA_CODEPAGE_MAC_CELTIC: + case LIBUNA_CODEPAGE_MAC_CENTRALEURROMAN: + case LIBUNA_CODEPAGE_MAC_CROATIAN: + case LIBUNA_CODEPAGE_MAC_CYRILLIC: + case LIBUNA_CODEPAGE_MAC_DINGBATS: + case LIBUNA_CODEPAGE_MAC_FARSI: + case LIBUNA_CODEPAGE_MAC_GAELIC: + case LIBUNA_CODEPAGE_MAC_GREEK: + case LIBUNA_CODEPAGE_MAC_ICELANDIC: + case LIBUNA_CODEPAGE_MAC_INUIT: + case LIBUNA_CODEPAGE_MAC_ROMAN: + case LIBUNA_CODEPAGE_MAC_ROMANIAN: + case LIBUNA_CODEPAGE_MAC_RUSSIAN: + case LIBUNA_CODEPAGE_MAC_TURKISH: + case LIBUNA_CODEPAGE_MAC_UKRAINIAN: case LIBUNA_CODEPAGE_WINDOWS_874: case LIBUNA_CODEPAGE_WINDOWS_1250: case LIBUNA_CODEPAGE_WINDOWS_1251: @@ -160,6 +194,20 @@ int libuna_unicode_character_size_to_byte_stream( safe_byte_stream_character_size += 1; break; + case LIBUNA_CODEPAGE_MAC_SYMBOL: + result = libuna_codepage_mac_symbol_unicode_character_size_to_byte_stream( + unicode_character, + &safe_byte_stream_character_size, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_THAI: + result = libuna_codepage_mac_thai_unicode_character_size_to_byte_stream( + unicode_character, + &safe_byte_stream_character_size, + error ); + break; + case LIBUNA_CODEPAGE_WINDOWS_932: result = libuna_codepage_windows_932_unicode_character_size_to_byte_stream( unicode_character, @@ -199,7 +247,7 @@ int libuna_unicode_character_size_to_byte_stream( return( -1 ); } - if( result != 1 ) + if( result == -1 ) { libcerror_error_set( error, @@ -216,7 +264,7 @@ int libuna_unicode_character_size_to_byte_stream( } /* Copies an Unicode character from a byte stream - * Returns 1 if successful or -1 on error + * Returns 1 if successful, 0 if the byte stream character is valid but not supported since it requires special handling or -1 on error */ int libuna_unicode_character_copy_from_byte_stream( libuna_unicode_character_t *unicode_character, @@ -535,48 +583,192 @@ int libuna_unicode_character_copy_from_byte_stream( break; case LIBUNA_CODEPAGE_KOI8_R: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; + result = libuna_codepage_koi8_r_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - safe_unicode_character = libuna_codepage_koi8_r_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; + case LIBUNA_CODEPAGE_KOI8_U: + result = libuna_codepage_koi8_u_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + case LIBUNA_CODEPAGE_MAC_ARABIC: + result = libuna_codepage_mac_arabic_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; - case LIBUNA_CODEPAGE_KOI8_U: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; + case LIBUNA_CODEPAGE_MAC_CELTIC: + result = libuna_codepage_mac_celtic_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - safe_unicode_character = libuna_codepage_koi8_u_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; + case LIBUNA_CODEPAGE_MAC_CENTRALEURROMAN: + result = libuna_codepage_mac_centraleurroman_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_CROATIAN: + result = libuna_codepage_mac_croatian_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + case LIBUNA_CODEPAGE_MAC_CYRILLIC: + result = libuna_codepage_mac_cyrillic_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; - case LIBUNA_CODEPAGE_WINDOWS_874: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; + case LIBUNA_CODEPAGE_MAC_DINGBATS: + result = libuna_codepage_mac_dingbats_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - safe_unicode_character = libuna_codepage_windows_874_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; + case LIBUNA_CODEPAGE_MAC_FARSI: + result = libuna_codepage_mac_farsi_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_GAELIC: + result = libuna_codepage_mac_gaelic_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_GREEK: + result = libuna_codepage_mac_greek_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_ICELANDIC: + result = libuna_codepage_mac_icelandic_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_INUIT: + result = libuna_codepage_mac_inuit_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_ROMAN: + result = libuna_codepage_mac_roman_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_ROMANIAN: + result = libuna_codepage_mac_romanian_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_RUSSIAN: + result = libuna_codepage_mac_russian_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_SYMBOL: + result = libuna_codepage_mac_symbol_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_THAI: + result = libuna_codepage_mac_thai_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_TURKISH: + result = libuna_codepage_mac_turkish_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + + case LIBUNA_CODEPAGE_MAC_UKRAINIAN: + result = libuna_codepage_mac_ukrainian_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + case LIBUNA_CODEPAGE_WINDOWS_874: + result = libuna_codepage_windows_874_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; case LIBUNA_CODEPAGE_WINDOWS_932: @@ -616,159 +808,84 @@ int libuna_unicode_character_copy_from_byte_stream( break; case LIBUNA_CODEPAGE_WINDOWS_1250: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1250_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - + result = libuna_codepage_windows_1250_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; case LIBUNA_CODEPAGE_WINDOWS_1251: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1251_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - + result = libuna_codepage_windows_1251_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; case LIBUNA_CODEPAGE_WINDOWS_1252: - if( ( byte_stream_character < 0x80 ) - || ( byte_stream_character >= 0xa0 ) ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1252_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - + result = libuna_codepage_windows_1252_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; case LIBUNA_CODEPAGE_WINDOWS_1253: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1253_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - + result = libuna_codepage_windows_1253_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; case LIBUNA_CODEPAGE_WINDOWS_1254: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else if( byte_stream_character < 0xa0 ) - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - else if( byte_stream_character < 0xd0 ) - { - safe_unicode_character = byte_stream_character; - } - else if( byte_stream_character < 0xe0 ) - { - byte_stream_character -= 0xd0; - - safe_unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xd0[ byte_stream_character ]; - } - else if( byte_stream_character < 0xf0 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0xf0; - - safe_unicode_character = libuna_codepage_windows_1254_byte_stream_to_unicode_base_0xf0[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - - break; + result = libuna_codepage_windows_1254_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; case LIBUNA_CODEPAGE_WINDOWS_1255: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1255_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - + result = libuna_codepage_windows_1255_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; case LIBUNA_CODEPAGE_WINDOWS_1256: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1256_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - + result = libuna_codepage_windows_1256_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; case LIBUNA_CODEPAGE_WINDOWS_1257: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1257_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - + result = libuna_codepage_windows_1257_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; case LIBUNA_CODEPAGE_WINDOWS_1258: - if( byte_stream_character < 0x80 ) - { - safe_unicode_character = byte_stream_character; - } - else - { - byte_stream_character -= 0x80; - - safe_unicode_character = libuna_codepage_windows_1258_byte_stream_to_unicode_base_0x80[ byte_stream_character ]; - } - safe_byte_stream_index += 1; - + result = libuna_codepage_windows_1258_copy_from_byte_stream( + &safe_unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; default: @@ -782,7 +899,7 @@ int libuna_unicode_character_copy_from_byte_stream( return( -1 ); } - if( result != 1 ) + if( result == -1 ) { libcerror_error_set( error, @@ -800,7 +917,7 @@ int libuna_unicode_character_copy_from_byte_stream( } /* Copies an Unicode character to a byte stream - * Returns 1 if successful or -1 on error + * Returns 1 if successful, 0 if the Unicode character is valid but not supported since it requires special handling or -1 on error */ int libuna_unicode_character_copy_to_byte_stream( libuna_unicode_character_t unicode_character, @@ -1697,427 +1814,277 @@ int libuna_unicode_character_copy_to_byte_stream( break; case LIBUNA_CODEPAGE_KOI8_R: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x0410 ) - && ( unicode_character < 0x0450 ) ) - { - unicode_character -= 0x0410; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x0410[ unicode_character ]; - } - else if( ( unicode_character >= 0x2550 ) - && ( unicode_character < 0x2570 ) ) - { - unicode_character -= 0x2550; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_koi8_r_unicode_to_byte_stream_base_0x2550[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x00a0: - byte_stream[ safe_byte_stream_index ] = 0x9a; - break; + result = libuna_codepage_koi8_r_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x00a9: - byte_stream[ safe_byte_stream_index ] = 0xbf; - break; + case LIBUNA_CODEPAGE_KOI8_U: + result = libuna_codepage_koi8_u_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x00b0: - byte_stream[ safe_byte_stream_index ] = 0x9c; - break; + case LIBUNA_CODEPAGE_MAC_ARABIC: + result = libuna_codepage_mac_arabic_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x00b2: - byte_stream[ safe_byte_stream_index ] = 0x9d; - break; + case LIBUNA_CODEPAGE_MAC_CELTIC: + result = libuna_codepage_mac_celtic_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x00b7: - byte_stream[ safe_byte_stream_index ] = 0x9e; - break; + case LIBUNA_CODEPAGE_MAC_CENTRALEURROMAN: + result = libuna_codepage_mac_centraleurroman_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x00f7: - byte_stream[ safe_byte_stream_index ] = 0x9f; - break; + case LIBUNA_CODEPAGE_MAC_CROATIAN: + result = libuna_codepage_mac_croatian_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x0401: - byte_stream[ safe_byte_stream_index ] = 0xb3; - break; + case LIBUNA_CODEPAGE_MAC_CYRILLIC: + result = libuna_codepage_mac_cyrillic_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x0451: - byte_stream[ safe_byte_stream_index ] = 0xa3; - break; + case LIBUNA_CODEPAGE_MAC_DINGBATS: + result = libuna_codepage_mac_dingbats_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2219: - byte_stream[ safe_byte_stream_index ] = 0x95; - break; + case LIBUNA_CODEPAGE_MAC_FARSI: + result = libuna_codepage_mac_farsi_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x221a: - byte_stream[ safe_byte_stream_index ] = 0x96; - break; + case LIBUNA_CODEPAGE_MAC_GAELIC: + result = libuna_codepage_mac_gaelic_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2248: - byte_stream[ safe_byte_stream_index ] = 0x97; - break; + case LIBUNA_CODEPAGE_MAC_GREEK: + result = libuna_codepage_mac_greek_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2264: - byte_stream[ safe_byte_stream_index ] = 0x98; - break; + case LIBUNA_CODEPAGE_MAC_ICELANDIC: + result = libuna_codepage_mac_icelandic_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2265: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; + case LIBUNA_CODEPAGE_MAC_INUIT: + result = libuna_codepage_mac_inuit_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2320: - byte_stream[ safe_byte_stream_index ] = 0x93; - break; + case LIBUNA_CODEPAGE_MAC_ROMAN: + result = libuna_codepage_mac_roman_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2321: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; + case LIBUNA_CODEPAGE_MAC_ROMANIAN: + result = libuna_codepage_mac_romanian_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2500: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; + case LIBUNA_CODEPAGE_MAC_RUSSIAN: + result = libuna_codepage_mac_russian_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2502: - byte_stream[ safe_byte_stream_index ] = 0x81; - break; + case LIBUNA_CODEPAGE_MAC_SYMBOL: + result = libuna_codepage_mac_symbol_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x250c: - byte_stream[ safe_byte_stream_index ] = 0x82; - break; + case LIBUNA_CODEPAGE_MAC_THAI: + result = libuna_codepage_mac_thai_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2510: - byte_stream[ safe_byte_stream_index ] = 0x83; - break; + case LIBUNA_CODEPAGE_MAC_TURKISH: + result = libuna_codepage_mac_turkish_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2514: - byte_stream[ safe_byte_stream_index ] = 0x84; - break; + case LIBUNA_CODEPAGE_MAC_UKRAINIAN: + result = libuna_codepage_mac_ukrainian_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2518: - byte_stream[ safe_byte_stream_index ] = 0x85; - break; + case LIBUNA_CODEPAGE_WINDOWS_874: + result = libuna_codepage_windows_874_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x251c: - byte_stream[ safe_byte_stream_index ] = 0x86; - break; + case LIBUNA_CODEPAGE_WINDOWS_932: + result = libuna_codepage_windows_932_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2524: - byte_stream[ safe_byte_stream_index ] = 0x87; - break; - - case 0x252c: - byte_stream[ safe_byte_stream_index ] = 0x88; - break; - - case 0x2534: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; - - case 0x253c: - byte_stream[ safe_byte_stream_index ] = 0x8a; - break; - - case 0x2580: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; - - case 0x2584: - byte_stream[ safe_byte_stream_index ] = 0x8c; - break; - - case 0x2588: - byte_stream[ safe_byte_stream_index ] = 0x8d; - break; - - case 0x258c: - byte_stream[ safe_byte_stream_index ] = 0x8e; - break; - - case 0x2590: - byte_stream[ safe_byte_stream_index ] = 0x8f; - break; - - case 0x2591: - byte_stream[ safe_byte_stream_index ] = 0x90; - break; - - case 0x2592: - byte_stream[ safe_byte_stream_index ] = 0x91; - break; - - case 0x2593: - byte_stream[ safe_byte_stream_index ] = 0x92; - break; - - case 0x25a0: - byte_stream[ safe_byte_stream_index ] = 0x94; - break; - - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; + case LIBUNA_CODEPAGE_WINDOWS_936: + result = libuna_codepage_windows_936_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + case LIBUNA_CODEPAGE_WINDOWS_949: + result = libuna_codepage_windows_949_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; - case LIBUNA_CODEPAGE_KOI8_U: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x0410 ) - && ( unicode_character < 0x0450 ) ) - { - unicode_character -= 0x0410; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x0410[ unicode_character ]; - } - else if( ( unicode_character >= 0x2550 ) - && ( unicode_character < 0x2570 ) ) - { - unicode_character -= 0x2550; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_koi8_u_unicode_to_byte_stream_base_0x2550[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x00a0: - byte_stream[ safe_byte_stream_index ] = 0x9a; - break; - - case 0x00a9: - byte_stream[ safe_byte_stream_index ] = 0xbf; - break; - - case 0x00b0: - byte_stream[ safe_byte_stream_index ] = 0x9c; - break; - - case 0x00b2: - byte_stream[ safe_byte_stream_index ] = 0x9d; - break; - - case 0x00b7: - byte_stream[ safe_byte_stream_index ] = 0x9e; - break; - - case 0x00f7: - byte_stream[ safe_byte_stream_index ] = 0x9f; - break; - - case 0x0401: - byte_stream[ safe_byte_stream_index ] = 0xb3; - break; - - case 0x0404: - byte_stream[ safe_byte_stream_index ] = 0xb4; - break; - - case 0x0406: - byte_stream[ safe_byte_stream_index ] = 0xb6; - break; - - case 0x0407: - byte_stream[ safe_byte_stream_index ] = 0xb7; - break; - - case 0x0451: - byte_stream[ safe_byte_stream_index ] = 0xa3; - break; - - case 0x0454: - byte_stream[ safe_byte_stream_index ] = 0xa4; - break; - - case 0x0456: - byte_stream[ safe_byte_stream_index ] = 0xa6; - break; - - case 0x0457: - byte_stream[ safe_byte_stream_index ] = 0xa7; - break; - - case 0x0490: - byte_stream[ safe_byte_stream_index ] = 0xbd; - break; - - case 0x0491: - byte_stream[ safe_byte_stream_index ] = 0xad; - break; - - case 0x2219: - byte_stream[ safe_byte_stream_index ] = 0x95; - break; - - case 0x221a: - byte_stream[ safe_byte_stream_index ] = 0x96; - break; - - case 0x2248: - byte_stream[ safe_byte_stream_index ] = 0x97; - break; - - case 0x2264: - byte_stream[ safe_byte_stream_index ] = 0x98; - break; - - case 0x2265: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; - - case 0x2320: - byte_stream[ safe_byte_stream_index ] = 0x93; - break; - - case 0x2321: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; - - case 0x2500: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; - - case 0x2502: - byte_stream[ safe_byte_stream_index ] = 0x81; - break; - - case 0x250c: - byte_stream[ safe_byte_stream_index ] = 0x82; - break; - - case 0x2510: - byte_stream[ safe_byte_stream_index ] = 0x83; - break; - - case 0x2514: - byte_stream[ safe_byte_stream_index ] = 0x84; - break; - - case 0x2518: - byte_stream[ safe_byte_stream_index ] = 0x85; - break; - - case 0x251c: - byte_stream[ safe_byte_stream_index ] = 0x86; - break; - - case 0x2524: - byte_stream[ safe_byte_stream_index ] = 0x87; - break; - - case 0x252c: - byte_stream[ safe_byte_stream_index ] = 0x88; - break; - - case 0x2534: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; - - case 0x253c: - byte_stream[ safe_byte_stream_index ] = 0x8a; - break; - - case 0x2580: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; - - case 0x2584: - byte_stream[ safe_byte_stream_index ] = 0x8c; - break; - - case 0x2588: - byte_stream[ safe_byte_stream_index ] = 0x8d; - break; - - case 0x258c: - byte_stream[ safe_byte_stream_index ] = 0x8e; - break; - - case 0x2590: - byte_stream[ safe_byte_stream_index ] = 0x8f; - break; - - case 0x2591: - byte_stream[ safe_byte_stream_index ] = 0x90; - break; - - case 0x2592: - byte_stream[ safe_byte_stream_index ] = 0x91; - break; - - case 0x2593: - byte_stream[ safe_byte_stream_index ] = 0x92; - break; - - case 0x25a0: - byte_stream[ safe_byte_stream_index ] = 0x94; - break; - - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; - + case LIBUNA_CODEPAGE_WINDOWS_950: + result = libuna_codepage_windows_950_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; - case LIBUNA_CODEPAGE_WINDOWS_874: - if( ( unicode_character < 0x0080 ) - || ( unicode_character == 0x00a0 ) ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x0e00 ) - && ( unicode_character < 0x0e60 ) ) - { - unicode_character -= 0x0e00; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_874_unicode_to_byte_stream_base_0x0e00[ unicode_character ]; - } - else if( ( unicode_character >= 0x2018 ) - && ( unicode_character < 0x2020 ) ) - { - unicode_character -= 0x2018; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_874_unicode_to_byte_stream_base_0x2018[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x2013: - byte_stream[ safe_byte_stream_index ] = 0x96; - break; - - case 0x2014: - byte_stream[ safe_byte_stream_index ] = 0x97; - break; - - case 0x2022: - byte_stream[ safe_byte_stream_index ] = 0x95; - break; + case LIBUNA_CODEPAGE_WINDOWS_1250: + result = libuna_codepage_windows_1250_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x2026: - byte_stream[ safe_byte_stream_index ] = 0x85; - break; + case LIBUNA_CODEPAGE_WINDOWS_1251: + result = libuna_codepage_windows_1251_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; + case LIBUNA_CODEPAGE_WINDOWS_1252: + result = libuna_codepage_windows_1252_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; + case LIBUNA_CODEPAGE_WINDOWS_1253: + result = libuna_codepage_windows_1253_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); + break; + case LIBUNA_CODEPAGE_WINDOWS_1254: + result = libuna_codepage_windows_1254_copy_to_byte_stream( + unicode_character, + byte_stream, + byte_stream_size, + &safe_byte_stream_index, + error ); break; - case LIBUNA_CODEPAGE_WINDOWS_932: - result = libuna_codepage_windows_932_copy_to_byte_stream( + case LIBUNA_CODEPAGE_WINDOWS_1255: + result = libuna_codepage_windows_1255_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, @@ -2125,8 +2092,8 @@ int libuna_unicode_character_copy_to_byte_stream( error ); break; - case LIBUNA_CODEPAGE_WINDOWS_936: - result = libuna_codepage_windows_936_copy_to_byte_stream( + case LIBUNA_CODEPAGE_WINDOWS_1256: + result = libuna_codepage_windows_1256_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, @@ -2134,8 +2101,8 @@ int libuna_unicode_character_copy_to_byte_stream( error ); break; - case LIBUNA_CODEPAGE_WINDOWS_949: - result = libuna_codepage_windows_949_copy_to_byte_stream( + case LIBUNA_CODEPAGE_WINDOWS_1257: + result = libuna_codepage_windows_1257_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, @@ -2143,8 +2110,8 @@ int libuna_unicode_character_copy_to_byte_stream( error ); break; - case LIBUNA_CODEPAGE_WINDOWS_950: - result = libuna_codepage_windows_950_copy_to_byte_stream( + case LIBUNA_CODEPAGE_WINDOWS_1258: + result = libuna_codepage_windows_1258_copy_to_byte_stream( unicode_character, byte_stream, byte_stream_size, @@ -2152,1031 +2119,1126 @@ int libuna_unicode_character_copy_to_byte_stream( error ); break; - case LIBUNA_CODEPAGE_WINDOWS_1250: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x0120 ) ) - { - unicode_character -= 0x00a0; + default: + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported codepage: %d.", + function, + codepage ); - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; - } - else if( ( unicode_character >= 0x0138 ) - && ( unicode_character < 0x0180 ) ) - { - unicode_character -= 0x0138; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x0138[ unicode_character ]; - } - else if( ( unicode_character >= 0x02d8 ) - && ( unicode_character < 0x02e0 ) ) - { - unicode_character -= 0x02d8; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x02d8[ unicode_character ]; - } - else if( ( unicode_character >= 0x2010 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2010; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2010[ unicode_character ]; - } - else if( ( unicode_character >= 0x2030 ) - && ( unicode_character < 0x2040 ) ) - { - unicode_character -= 0x2030; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1250_unicode_to_byte_stream_base_0x2030[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x02c7: - byte_stream[ safe_byte_stream_index ] = 0xa1; - break; - - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; - - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; - - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; - - break; - - case LIBUNA_CODEPAGE_WINDOWS_1251: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x00c0 ) ) - { - unicode_character -= 0x00a0; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; - } - else if( ( unicode_character >= 0x0400 ) - && ( unicode_character < 0x0460 ) ) - { - unicode_character -= 0x0400; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x0400[ unicode_character ]; - } - else if( ( unicode_character >= 0x2010 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2010; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1251_unicode_to_byte_stream_base_0x2010[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x0490: - byte_stream[ safe_byte_stream_index ] = 0xa5; - break; - - case 0x0491: - byte_stream[ safe_byte_stream_index ] = 0xb4; - break; - - case 0x2030: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; - - case 0x2039: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; - - case 0x203a: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; - - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x88; - break; - - case 0x2116: - byte_stream[ safe_byte_stream_index ] = 0xb9; - break; - - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; - - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; - - break; - - case LIBUNA_CODEPAGE_WINDOWS_1252: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x0100 ) ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x2010 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2010; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1252_unicode_to_byte_stream_base_0x2010[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x0152: - byte_stream[ safe_byte_stream_index ] = 0x8c; - break; - - case 0x0153: - byte_stream[ safe_byte_stream_index ] = 0x9c; - break; - - case 0x0160: - byte_stream[ safe_byte_stream_index ] = 0x8a; - break; - - case 0x0161: - byte_stream[ safe_byte_stream_index ] = 0x9a; - break; - - case 0x0178: - byte_stream[ safe_byte_stream_index ] = 0x9f; - break; - - case 0x017d: - byte_stream[ safe_byte_stream_index ] = 0x8e; - break; - - case 0x017e: - byte_stream[ safe_byte_stream_index ] = 0x9e; - break; - - case 0x0192: - byte_stream[ safe_byte_stream_index ] = 0x83; - break; - - case 0x02c6: - byte_stream[ safe_byte_stream_index ] = 0x88; - break; - - case 0x02dc: - byte_stream[ safe_byte_stream_index ] = 0x98; - break; - - case 0x2030: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; - - case 0x2039: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; - - case 0x203a: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; - - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; - - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; - - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; - - break; - - case LIBUNA_CODEPAGE_WINDOWS_1253: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x00c0 ) ) - { - unicode_character -= 0x00a0; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; - } - else if( ( unicode_character >= 0x0380 ) - && ( unicode_character < 0x03d0 ) ) - { - unicode_character -= 0x0380; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x0380[ unicode_character ]; - } - else if( ( unicode_character >= 0x2010 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2010; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1253_unicode_to_byte_stream_base_0x2010[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x0192: - byte_stream[ safe_byte_stream_index ] = 0x83; - break; - - case 0x2030: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; - - case 0x2039: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; - - case 0x203a: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; - - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; - - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; - - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; - - break; - - case LIBUNA_CODEPAGE_WINDOWS_1254: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x00d0 ) ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00d0 ) - && ( unicode_character < 0x0100 ) ) - { - unicode_character -= 0x00d0; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x00d0[ unicode_character ]; - } - else if( ( unicode_character >= 0x2010 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2010; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1254_unicode_to_byte_stream_base_0x2010[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x011e: - byte_stream[ safe_byte_stream_index ] = 0xd0; - break; - - case 0x011f: - byte_stream[ safe_byte_stream_index ] = 0xf0; - break; - - case 0x0130: - byte_stream[ safe_byte_stream_index ] = 0xdd; - break; - - case 0x0131: - byte_stream[ safe_byte_stream_index ] = 0xfd; - break; - - case 0x0152: - byte_stream[ safe_byte_stream_index ] = 0x8c; - break; - - case 0x0153: - byte_stream[ safe_byte_stream_index ] = 0x9c; - break; - - case 0x015e: - byte_stream[ safe_byte_stream_index ] = 0xde; - break; - - case 0x015f: - byte_stream[ safe_byte_stream_index ] = 0xfe; - break; - - case 0x0160: - byte_stream[ safe_byte_stream_index ] = 0x8a; - break; - - case 0x0161: - byte_stream[ safe_byte_stream_index ] = 0x9a; - break; - - case 0x0178: - byte_stream[ safe_byte_stream_index ] = 0x9f; - break; - - case 0x0192: - byte_stream[ safe_byte_stream_index ] = 0x83; - break; - - case 0x02c6: - byte_stream[ safe_byte_stream_index ] = 0x88; - break; - - case 0x02dc: - byte_stream[ safe_byte_stream_index ] = 0x98; - break; - - case 0x2030: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; - - case 0x2039: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; - - case 0x203a: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; - - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; - - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; - - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; - - break; - - case LIBUNA_CODEPAGE_WINDOWS_1255: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x00c0 ) ) - { - unicode_character -= 0x00a0; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; - } - else if( ( unicode_character >= 0x05b0 ) - && ( unicode_character < 0x05c8 ) ) - { - unicode_character -= 0x05b0; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05b0[ unicode_character ]; - } - else if( ( unicode_character >= 0x05d0 ) - && ( unicode_character < 0x05f8 ) ) - { - unicode_character -= 0x05d0; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x05d0[ unicode_character ]; - } - else if( ( unicode_character >= 0x2010 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2010; - - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1255_unicode_to_byte_stream_base_0x2010[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x00d7: - byte_stream[ safe_byte_stream_index ] = 0xaa; - break; - - case 0x00f7: - byte_stream[ safe_byte_stream_index ] = 0xba; - break; - - case 0x0192: - byte_stream[ safe_byte_stream_index ] = 0x83; - break; - - case 0x02c6: - byte_stream[ safe_byte_stream_index ] = 0x88; - break; - - case 0x02dc: - byte_stream[ safe_byte_stream_index ] = 0x98; - break; - - case 0x200e: - byte_stream[ safe_byte_stream_index ] = 0xfd; - break; - - case 0x200f: - byte_stream[ safe_byte_stream_index ] = 0xfe; - break; - - case 0x2030: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; - - case 0x2039: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; - - case 0x203a: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; - - case 0x20aa: - byte_stream[ safe_byte_stream_index ] = 0xa4; - break; + return( -1 ); + } + if( result == -1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_COPY_FAILED, + "%s: unable to copy Unicode character to byte stream.", + function ); - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; + return( -1 ); + } + *byte_stream_index = safe_byte_stream_index; - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; + return( result ); +} - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; +/* Determines the size of an UCS-2 character from an Unicode character + * Adds the size to the UCS-2 character size value + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_size_to_ucs2( + libuna_unicode_character_t unicode_character, + size_t *ucs2_character_size, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_size_to_ucs2"; - break; + if( ucs2_character_size == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-2 character size.", + function ); - case LIBUNA_CODEPAGE_WINDOWS_1256: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x00c0 ) ) - { - unicode_character -= 0x00a0; + return( -1 ); + } + /* Determine if the Unicode character is valid + * UCS-2 with surrogate pairs supports upto 0x10ffff characters + */ + if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; - } - else if( ( unicode_character >= 0x00e0 ) - && ( unicode_character < 0x0100 ) ) - { - unicode_character -= 0x00e0; + return( -1 ); + } + if( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) + { + *ucs2_character_size += 2; + } + else + { + *ucs2_character_size += 1; + } + return( 1 ); +} - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x00e0[ unicode_character ]; - } - else if( ( unicode_character >= 0x0618 ) - && ( unicode_character < 0x0658 ) ) - { - unicode_character -= 0x0618; +/* Copies an Unicode character from an UCS-2 string + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_copy_from_ucs2( + libuna_unicode_character_t *unicode_character, + const libuna_utf16_character_t *ucs2_string, + size_t ucs2_string_size, + size_t *ucs2_string_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_copy_from_ucs2"; + libuna_utf16_character_t ucs2_surrogate = 0; + libuna_unicode_character_t safe_unicode_character = 0; + size_t safe_ucs2_string_index = 0; - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x0618[ unicode_character ]; - } - else if( ( unicode_character >= 0x2008 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2008; + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1256_unicode_to_byte_stream_base_0x2008[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x00d7: - byte_stream[ safe_byte_stream_index ] = 0xd7; - break; + return( -1 ); + } + if( ucs2_string == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-2 string.", + function ); - case 0x0152: - byte_stream[ safe_byte_stream_index ] = 0x8c; - break; + return( -1 ); + } + if( ucs2_string_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid UCS-2 string size value exceeds maximum.", + function ); - case 0x0153: - byte_stream[ safe_byte_stream_index ] = 0x9c; - break; + return( -1 ); + } + if( ucs2_string_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-2 string index.", + function ); - case 0x0192: - byte_stream[ safe_byte_stream_index ] = 0x83; - break; + return( -1 ); + } + safe_ucs2_string_index = *ucs2_string_index; - case 0x02c6: - byte_stream[ safe_byte_stream_index ] = 0x88; - break; + if( safe_ucs2_string_index >= ucs2_string_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UCS-2 string too small.", + function ); - case 0x060c: - byte_stream[ safe_byte_stream_index ] = 0xa1; - break; + return( -1 ); + } + safe_unicode_character = ucs2_string[ safe_ucs2_string_index ]; + safe_ucs2_string_index += 1; - case 0x0679: - byte_stream[ safe_byte_stream_index ] = 0x8a; - break; + /* Determine if the UCS-2 character is within the high surrogate range + */ + if( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END ) ) + { + if( safe_ucs2_string_index >= ucs2_string_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: missing surrogate UCS-2 character bytes.", + function ); - case 0x067e: - byte_stream[ safe_byte_stream_index ] = 0x81; - break; + return( -1 ); + } + ucs2_surrogate = ucs2_string[ safe_ucs2_string_index ]; - case 0x0686: - byte_stream[ safe_byte_stream_index ] = 0x8d; - break; + /* Determine if the UCS-2 character is within the low surrogate range + */ + if( ( ucs2_surrogate >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) + && ( ucs2_surrogate <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + { + safe_unicode_character -= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START; + safe_unicode_character <<= 10; + safe_unicode_character += ucs2_surrogate - LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START; + safe_unicode_character += 0x010000; - case 0x0688: - byte_stream[ safe_byte_stream_index ] = 0x8f; - break; + safe_ucs2_string_index += 1; + } + } + /* Determine if the Unicode character is valid + * UCS-2 with surrogate pairs supports upto 0x10ffff characters + */ + if( safe_unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); - case 0x0691: - byte_stream[ safe_byte_stream_index ] = 0x9a; - break; + return( -1 ); + } + *unicode_character = safe_unicode_character; + *ucs2_string_index = safe_ucs2_string_index; - case 0x0698: - byte_stream[ safe_byte_stream_index ] = 0x8e; - break; + return( 1 ); +} - case 0x06a9: - byte_stream[ safe_byte_stream_index ] = 0x98; - break; +/* Copies an Unicode character into a UCS-2 string + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_copy_to_ucs2( + libuna_unicode_character_t unicode_character, + libuna_utf16_character_t *ucs2_string, + size_t ucs2_string_size, + size_t *ucs2_string_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_copy_to_ucs2"; + size_t safe_ucs2_string_index = 0; - case 0x06af: - byte_stream[ safe_byte_stream_index ] = 0x90; - break; + if( ucs2_string == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-2 string.", + function ); - case 0x06ba: - byte_stream[ safe_byte_stream_index ] = 0x9f; - break; + return( -1 ); + } + if( ucs2_string_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid UCS-2 string size value exceeds maximum.", + function ); - case 0x06be: - byte_stream[ safe_byte_stream_index ] = 0xaa; - break; + return( -1 ); + } + if( ucs2_string_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-2 string index.", + function ); - case 0x06c1: - byte_stream[ safe_byte_stream_index ] = 0xc0; - break; + return( -1 ); + } + safe_ucs2_string_index = *ucs2_string_index; - case 0x06d2: - byte_stream[ safe_byte_stream_index ] = 0xff; - break; + if( safe_ucs2_string_index >= ucs2_string_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UCS-2 string too small.", + function ); - case 0x2030: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; + return( -1 ); + } + /* Determine if the Unicode character is valid + */ + if( unicode_character > LIBUNA_UCS_CHARACTER_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); - case 0x2039: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; + return( -1 ); + } + if( unicode_character <= LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) + { + ucs2_string[ safe_ucs2_string_index++ ] = (libuna_utf16_character_t) unicode_character; + } + else + { + if( ( ucs2_string_size < 2 ) + || ( safe_ucs2_string_index > ( ucs2_string_size - 2 ) ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UCS-2 string too small.", + function ); - case 0x203a: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; + return( -1 ); + } + unicode_character -= 0x010000; + ucs2_string[ safe_ucs2_string_index++ ] = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); + ucs2_string[ safe_ucs2_string_index++ ] = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); + } + *ucs2_string_index = safe_ucs2_string_index; - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; + return( 1 ); +} - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; +/* Determines the size of an UCS-4 character from an Unicode character + * Adds the size to the UCS-4 character size value + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_size_to_ucs4( + libuna_unicode_character_t unicode_character, + size_t *ucs4_character_size, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_size_to_ucs4"; - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; + LIBUNA_UNREFERENCED_PARAMETER( unicode_character ) - break; + if( ucs4_character_size == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-4 character size.", + function ); - case LIBUNA_CODEPAGE_WINDOWS_1257: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x0180 ) ) - { - unicode_character -= 0x00a0; + return( -1 ); + } + if( unicode_character > LIBUNA_UCS_CHARACTER_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x00a0[ unicode_character ]; - } - else if( ( unicode_character >= 0x2010 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2010; + return( -1 ); + } + *ucs4_character_size += 1; - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1257_unicode_to_byte_stream_base_0x2010[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x02c7: - byte_stream[ safe_byte_stream_index ] = 0x8e; - break; + return( 1 ); +} - case 0x02d9: - byte_stream[ safe_byte_stream_index ] = 0xff; - break; +/* Copies an Unicode character from an UCS-4 string + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_copy_from_ucs4( + libuna_unicode_character_t *unicode_character, + const libuna_utf32_character_t *ucs4_string, + size_t ucs4_string_size, + size_t *ucs4_string_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_copy_from_ucs4"; + libuna_unicode_character_t safe_unicode_character = 0; + size_t safe_ucs4_string_index = 0; - case 0x02db: - byte_stream[ safe_byte_stream_index ] = 0x9e; - break; + if( unicode_character == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid Unicode character.", + function ); - case 0x2030: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; + return( -1 ); + } + if( ucs4_string == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-4 string.", + function ); - case 0x2039: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; + return( -1 ); + } + if( ucs4_string_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid UCS-4 string size value exceeds maximum.", + function ); - case 0x203a: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; + return( -1 ); + } + if( ucs4_string_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-4 string index.", + function ); - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; + return( -1 ); + } + safe_ucs4_string_index = *ucs4_string_index; - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; + if( safe_ucs4_string_index >= ucs4_string_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UCS-4 string too small.", + function ); - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; - } - safe_byte_stream_index += 1; + return( -1 ); + } + safe_unicode_character = ucs4_string[ safe_ucs4_string_index ]; - break; + /* Determine if the Unicode character is valid + */ + if( safe_unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); - case LIBUNA_CODEPAGE_WINDOWS_1258: - if( unicode_character < 0x0080 ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00a0 ) - && ( unicode_character < 0x00c0 ) ) - { - byte_stream[ safe_byte_stream_index ] = (uint8_t) unicode_character; - } - else if( ( unicode_character >= 0x00c0 ) - && ( unicode_character < 0x0108 ) ) - { - unicode_character -= 0x00c0; + return( -1 ); + } + *unicode_character = safe_unicode_character; + *ucs4_string_index = safe_ucs4_string_index + 1; - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x00c0[ unicode_character ]; - } - else if( ( unicode_character >= 0x2010 ) - && ( unicode_character < 0x2028 ) ) - { - unicode_character -= 0x2010; + return( 1 ); +} - byte_stream[ safe_byte_stream_index ] = libuna_codepage_windows_1258_unicode_to_byte_stream_base_0x2010[ unicode_character ]; - } - else switch( unicode_character ) - { - case 0x0110: - byte_stream[ safe_byte_stream_index ] = 0xd0; - break; +/* Copies an Unicode character into a UCS-4 string + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_copy_to_ucs4( + libuna_unicode_character_t unicode_character, + libuna_utf32_character_t *ucs4_string, + size_t ucs4_string_size, + size_t *ucs4_string_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_copy_to_ucs4"; + size_t safe_ucs4_string_index = 0; - case 0x0111: - byte_stream[ safe_byte_stream_index ] = 0xf0; - break; + if( ucs4_string == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-4 string.", + function ); - case 0x0152: - byte_stream[ safe_byte_stream_index ] = 0x8c; - break; + return( -1 ); + } + if( ucs4_string_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid UCS-4 string size value exceeds maximum.", + function ); - case 0x0153: - byte_stream[ safe_byte_stream_index ] = 0x9c; - break; + return( -1 ); + } + if( ucs4_string_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UCS-4 string index.", + function ); - case 0x0178: - byte_stream[ safe_byte_stream_index ] = 0x9f; - break; + return( -1 ); + } + safe_ucs4_string_index = *ucs4_string_index; - case 0x0192: - byte_stream[ safe_byte_stream_index ] = 0x83; - break; + if( safe_ucs4_string_index >= ucs4_string_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UCS-4 string too small.", + function ); - case 0x01a0: - byte_stream[ safe_byte_stream_index ] = 0xd5; - break; + return( -1 ); + } + /* Determine if the Unicode character is valid + */ + if( unicode_character > LIBUNA_UCS_CHARACTER_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); - case 0x01a1: - byte_stream[ safe_byte_stream_index ] = 0xf5; - break; + return( -1 ); + } + ucs4_string[ safe_ucs4_string_index ] = (libuna_utf32_character_t) unicode_character; - case 0x01af: - byte_stream[ safe_byte_stream_index ] = 0xdd; - break; + *ucs4_string_index = safe_ucs4_string_index + 1; - case 0x01b0: - byte_stream[ safe_byte_stream_index ] = 0xfd; - break; + return( 1 ); +} - case 0x02c6: - byte_stream[ safe_byte_stream_index ] = 0x88; - break; +/* Determines the size of an UTF-7 stream character from an Unicode character + * Adds the size to the UTF-7 stream character size value + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_size_to_utf7_stream( + libuna_unicode_character_t unicode_character, + size_t *utf7_stream_character_size, + uint32_t *utf7_stream_base64_data, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_size_to_utf7_stream"; + libuna_utf16_character_t utf16_surrogate = 0; + size_t safe_utf7_stream_character_size = 0; + uint32_t base64_triplet = 0; + uint32_t safe_utf7_stream_base64_data = 0; + uint8_t base64_encode_character = 0; + uint8_t byte_bit_shift = 0; + uint8_t current_byte = 0; + uint8_t number_of_bytes = 0; - case 0x02dc: - byte_stream[ safe_byte_stream_index ] = 0x98; - break; + if( utf7_stream_character_size == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UTF-7 stream character size.", + function ); - case 0x0300: - byte_stream[ safe_byte_stream_index ] = 0xcc; - break; + return( -1 ); + } + if( utf7_stream_base64_data == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UTF-7 stream base64 data.", + function ); - case 0x0301: - byte_stream[ safe_byte_stream_index ] = 0xec; - break; + return( -1 ); + } + safe_utf7_stream_character_size = *utf7_stream_character_size; + safe_utf7_stream_base64_data = *utf7_stream_base64_data; - case 0x0303: - byte_stream[ safe_byte_stream_index ] = 0xde; - break; + /* Determine if the Unicode character is valid + */ + if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); - case 0x0309: - byte_stream[ safe_byte_stream_index ] = 0xd2; - break; + return( -1 ); + } + /* The + character must be escaped + */ + if( unicode_character == (libuna_unicode_character_t) '+' ) + { + } + /* Allow for the end of string character + */ + else if( unicode_character == 0 ) + { + } + else if( ( unicode_character >= 256 ) + || ( libuna_unicode_character_utf7_valid_directly_encoded_character[ (uint8_t) unicode_character ] == 0 ) ) + { + base64_encode_character = 1; + } + if( base64_encode_character == 0 ) + { + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) + { + safe_utf7_stream_base64_data = 0; + } + safe_utf7_stream_character_size += 1; - case 0x0323: - byte_stream[ safe_byte_stream_index ] = 0xf2; - break; + /* The + character must be escaped + */ + if( unicode_character == (libuna_unicode_character_t) '+' ) + { + safe_utf7_stream_character_size += 1; + } + } + else + { + /* Escape the base64 encoded characters with a + + */ + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) + { + safe_utf7_stream_character_size += 1; + } + /* Otherwise continue the previously base64 encoded characters + */ + else + { + base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; + number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; + current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; - case 0x2030: - byte_stream[ safe_byte_stream_index ] = 0x89; - break; + if( number_of_bytes > 0 ) + { + if( safe_utf7_stream_character_size < (size_t) ( number_of_bytes + 1 ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid UTF-7 stream character size value out of bounds.", + function ); - case 0x2039: - byte_stream[ safe_byte_stream_index ] = 0x8b; - break; + return( -1 ); + } + /* Correct the size for the last partial base64 stream + */ + safe_utf7_stream_character_size -= number_of_bytes + 1; + } + if( safe_utf7_stream_character_size < 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid UTF-7 stream character size value out of bounds.", + function ); - case 0x203a: - byte_stream[ safe_byte_stream_index ] = 0x9b; - break; + return( -1 ); + } + /* Correct the size for the base64 stream termination character + */ + safe_utf7_stream_character_size -= 1; + } + safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; - case 0x20ab: - byte_stream[ safe_byte_stream_index ] = 0xfe; - break; + if( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) + { + unicode_character -= 0x010000; - case 0x20ac: - byte_stream[ safe_byte_stream_index ] = 0x80; - break; + utf16_surrogate = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); - case 0x2122: - byte_stream[ safe_byte_stream_index ] = 0x99; - break; + byte_bit_shift = 16 - ( current_byte * 8 ); + base64_triplet += (uint32_t) ( ( utf16_surrogate >> 8 ) & 0xff ) << byte_bit_shift; + current_byte += 1; + number_of_bytes += 1; - default: - byte_stream[ safe_byte_stream_index ] = 0x1a; - break; + if( number_of_bytes == 3 ) + { + safe_utf7_stream_character_size += 4; + number_of_bytes = 0; + current_byte = 0; + base64_triplet = 0; } - safe_byte_stream_index += 1; + byte_bit_shift = 16 - ( current_byte * 8 ); + base64_triplet += (uint32_t) ( utf16_surrogate & 0xff ) << byte_bit_shift; + current_byte += 1; + number_of_bytes += 1; - break; + if( number_of_bytes == 3 ) + { + safe_utf7_stream_character_size += 4; + number_of_bytes = 0; + current_byte = 0; + base64_triplet = 0; + } + unicode_character = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); + } + byte_bit_shift = 16 - ( current_byte * 8 ); + base64_triplet += (uint32_t) ( ( unicode_character >> 8 ) & 0xff ) << byte_bit_shift; + current_byte += 1; + number_of_bytes += 1; - default: - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported codepage: %d.", - function, - codepage ); + if( number_of_bytes == 3 ) + { + safe_utf7_stream_character_size += 4; + number_of_bytes = 0; + current_byte = 0; + base64_triplet = 0; + } + byte_bit_shift = 16 - ( current_byte * 8 ); + base64_triplet += (uint32_t) ( unicode_character & 0xff ) << byte_bit_shift; + current_byte += 1; + number_of_bytes += 1; - return( -1 ); + if( number_of_bytes == 3 ) + { + safe_utf7_stream_character_size += 4; + number_of_bytes = 0; + current_byte = 0; + base64_triplet = 0; + } + /* Terminate the base64 encoded characters + */ + if( number_of_bytes > 0 ) + { + safe_utf7_stream_character_size += number_of_bytes + 1; + } + safe_utf7_stream_character_size += 1; } - if( result != 1 ) + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_COPY_FAILED, - "%s: unable to copy Unicode character to byte stream.", - function ); - - return( -1 ); + safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; + safe_utf7_stream_base64_data |= (uint32_t) current_byte << 28; + safe_utf7_stream_base64_data |= (uint32_t) number_of_bytes << 24; + safe_utf7_stream_base64_data |= base64_triplet & 0x00ffffff; } - *byte_stream_index = safe_byte_stream_index; + *utf7_stream_character_size = safe_utf7_stream_character_size; + *utf7_stream_base64_data = safe_utf7_stream_base64_data; return( 1 ); } -/* Determines the size of an UTF-7 stream character from an Unicode character - * Adds the size to the UTF-7 stream character size value +/* Copies an Unicode character from an UTF-7 stream + * The bits of the base64 data contain: + * 0 - 23 the base64 triplet + * 24 - 25 the number of bytes in the triplet + * 26 - 27 unused + * 28 - 29 the current byte + * 30 unused + * 31 flag to indicate the current UTF-7 characters are (modified) base64 encoded + * * Returns 1 if successful or -1 on error */ -int libuna_unicode_character_size_to_utf7_stream( - libuna_unicode_character_t unicode_character, - size_t *utf7_stream_character_size, +int libuna_unicode_character_copy_from_utf7_stream( + libuna_unicode_character_t *unicode_character, + const uint8_t *utf7_stream, + size_t utf7_stream_size, + size_t *utf7_stream_index, uint32_t *utf7_stream_base64_data, libcerror_error_t **error ) { - static char *function = "libuna_unicode_character_size_to_utf7_stream"; - libuna_utf16_character_t utf16_surrogate = 0; - size_t safe_utf7_stream_character_size = 0; - uint32_t base64_triplet = 0; - uint32_t safe_utf7_stream_base64_data = 0; - uint8_t base64_encode_character = 0; - uint8_t byte_bit_shift = 0; - uint8_t current_byte = 0; - uint8_t number_of_bytes = 0; + static char *function = "libuna_unicode_character_copy_from_utf7_stream"; + libuna_unicode_character_t safe_unicode_character = 0; + libuna_utf16_character_t utf16_surrogate = 0; + size_t safe_utf7_stream_index = 0; + uint32_t base64_triplet = 0; + uint32_t safe_utf7_stream_base64_data = 0; + uint8_t byte_bit_shift = 0; + uint8_t current_byte = 0; + uint8_t number_of_bytes = 0; + uint8_t padding_size = 0; + uint8_t utf7_character_value = 0; - if( utf7_stream_character_size == NULL ) + if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid UTF-7 stream character size.", + "%s: invalid Unicode character.", function ); return( -1 ); } - if( utf7_stream_base64_data == NULL ) + if( utf7_stream == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid UTF-7 stream base64 data.", + "%s: invalid UTF-7 stream.", function ); return( -1 ); } - safe_utf7_stream_character_size = *utf7_stream_character_size; - safe_utf7_stream_base64_data = *utf7_stream_base64_data; + if( utf7_stream_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid UTF-7 stream size value exceeds maximum.", + function ); - /* Determine if the Unicode character is valid - */ - if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) + return( -1 ); + } + if( utf7_stream_index == NULL ) { - unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UTF-7 stream index.", + function ); + + return( -1 ); } - /* The + character must be escaped - */ - if( unicode_character == (libuna_unicode_character_t) '+' ) + if( utf7_stream_base64_data == NULL ) { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UTF-7 base64 data.", + function ); + + return( -1 ); } - /* Allow for the end of string character - */ - else if( unicode_character == 0 ) + safe_utf7_stream_index = *utf7_stream_index; + safe_utf7_stream_base64_data = *utf7_stream_base64_data; + + if( safe_utf7_stream_index >= utf7_stream_size ) { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UTF-7 stream too small.", + function ); + + return( -1 ); } - else if( ( unicode_character >= 256 ) - || ( libuna_unicode_character_utf7_valid_directly_encoded_character[ (uint8_t) unicode_character ] == 0 ) ) + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { - base64_encode_character = 1; + base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; + number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; + current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; + + if( current_byte >= number_of_bytes ) + { + if( safe_utf7_stream_index >= utf7_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid UTF-7 stream character size value out of bounds.", + function ); + + return( -1 ); + } + utf7_character_value = utf7_stream[ safe_utf7_stream_index ]; + + /* Any character not in the modified base64 alphabet terminates the base64 encoded sequence + */ + if( libuna_unicode_character_utf7_valid_base64_character[ utf7_character_value ] == 0 ) + { + safe_utf7_stream_base64_data = 0; + } + } } - if( base64_encode_character == 0 ) + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) { - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) + if( safe_utf7_stream_index >= utf7_stream_size ) { - safe_utf7_stream_base64_data = 0; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid UTF-7 stream character size value out of bounds.", + function ); + + return( -1 ); } - safe_utf7_stream_character_size += 1; + utf7_character_value = utf7_stream[ safe_utf7_stream_index ]; - /* The + character must be escaped + /* Determine if the character is modified base64 encoded + * or a + character */ - if( unicode_character == (libuna_unicode_character_t) '+' ) + if( utf7_character_value == (uint8_t) '+' ) { - safe_utf7_stream_character_size += 1; + if( ( safe_utf7_stream_index + 1 ) >= utf7_stream_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, + "%s: invalid UTF-7 stream character size value out of bounds.", + function ); + + return( -1 ); + } + if( utf7_stream[ safe_utf7_stream_index + 1 ] != (uint8_t) '-' ) + { + safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; + + safe_utf7_stream_index++; + } + } + /* Allow for the end of string character + */ + else if( utf7_character_value == 0 ) + { + } + else if( libuna_unicode_character_utf7_valid_directly_encoded_character[ utf7_character_value ] == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid directly encoded UTF-7 character byte: 0x%02" PRIx8 ".", + function, + utf7_character_value ); + + return( -1 ); } } - else + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) { - /* Escape the base64 encoded characters with a + - */ - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) + safe_unicode_character = utf7_stream[ safe_utf7_stream_index++ ]; + + if( ( safe_unicode_character == (libuna_unicode_character_t) '+' ) + && ( utf7_stream[ safe_utf7_stream_index ] == (uint8_t) '-' ) ) { - safe_utf7_stream_character_size += 1; + safe_utf7_stream_index++; } - /* Otherwise continue the previously base64 encoded characters - */ - else + } + else if( ( number_of_bytes == 0 ) + || ( current_byte >= number_of_bytes ) ) + { + if( libuna_base64_triplet_copy_from_base64_stream( + &base64_triplet, + utf7_stream, + utf7_stream_size - 1, + &safe_utf7_stream_index, + &padding_size, + LIBUNA_BASE64_VARIANT_UTF7, + error ) != 1 ) { - base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; - number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; - current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_CONVERSION, + LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, + "%s: unable to copy base64 encoded UTF-7 characters.", + function ); - if( number_of_bytes > 0 ) + return( -1 ); + } + if( padding_size > 2 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported padding in base64 encoded UTF-7 characters.", + function ); + + return( -1 ); + } + number_of_bytes = 3 - padding_size; + current_byte = 0; + } + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) + { + byte_bit_shift = 16 - ( current_byte * 8 ); + safe_unicode_character = ( ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL ) << 8; + current_byte += 1; + + if( current_byte >= number_of_bytes ) + { + if( libuna_base64_triplet_copy_from_base64_stream( + &base64_triplet, + utf7_stream, + utf7_stream_size - 1, + &safe_utf7_stream_index, + &padding_size, + LIBUNA_BASE64_VARIANT_UTF7, + error ) != 1 ) { - if( safe_utf7_stream_character_size < (size_t) ( number_of_bytes + 1 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid UTF-7 stream character size value out of bounds.", - function ); + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_CONVERSION, + LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, + "%s: unable to copy base64 encoded UTF-7 characters.", + function ); - return( -1 ); - } - /* Correct the size for the last partial base64 stream - */ - safe_utf7_stream_character_size -= number_of_bytes + 1; + return( -1 ); } - if( safe_utf7_stream_character_size < 1 ) + if( padding_size > 2 ) { libcerror_error_set( error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid UTF-7 stream character size value out of bounds.", + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported padding in base64 encoded UTF-7 characters.", function ); return( -1 ); } - /* Correct the size for the base64 stream termination character - */ - safe_utf7_stream_character_size -= 1; + number_of_bytes = 3 - padding_size; + current_byte = 0; } - safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; + byte_bit_shift = 16 - ( current_byte * 8 ); + safe_unicode_character += ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL; + current_byte += 1; - if( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) + if( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END ) ) { - unicode_character -= 0x010000; + if( current_byte >= number_of_bytes ) + { + if( libuna_base64_triplet_copy_from_base64_stream( + &base64_triplet, + utf7_stream, + utf7_stream_size - 1, + &safe_utf7_stream_index, + &padding_size, + LIBUNA_BASE64_VARIANT_UTF7, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_CONVERSION, + LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, + "%s: unable to copy base64 encoded UTF-7 characters.", + function ); - utf16_surrogate = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); + return( -1 ); + } + if( padding_size > 2 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported padding in base64 encoded UTF-7 characters.", + function ); + + return( -1 ); + } + number_of_bytes = 3 - padding_size; + current_byte = 0; + } + byte_bit_shift = 16 - ( current_byte * 8 ); + utf16_surrogate = ( ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL ) << 8; + current_byte += 1; + + if( current_byte >= number_of_bytes ) + { + if( libuna_base64_triplet_copy_from_base64_stream( + &base64_triplet, + utf7_stream, + utf7_stream_size - 1, + &safe_utf7_stream_index, + &padding_size, + LIBUNA_BASE64_VARIANT_UTF7, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_GET_FAILED, + "%s: unable to retrieve base64 encoded UTF-7 characters.", + function ); + + return( -1 ); + } + if( padding_size > 2 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported padding in base64 encoded UTF-7 characters.", + function ); + return( -1 ); + } + number_of_bytes = 3 - padding_size; + current_byte = 0; + } byte_bit_shift = 16 - ( current_byte * 8 ); - base64_triplet += (uint32_t) ( ( utf16_surrogate >> 8 ) & 0xff ) << byte_bit_shift; + utf16_surrogate += ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL; current_byte += 1; - number_of_bytes += 1; - if( number_of_bytes == 3 ) + /* Determine if the UTF-16 character is within the low surrogate range + */ + if( ( utf16_surrogate >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) + && ( utf16_surrogate <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { - safe_utf7_stream_character_size += 4; - number_of_bytes = 0; - current_byte = 0; - base64_triplet = 0; + safe_unicode_character -= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START; + safe_unicode_character <<= 10; + safe_unicode_character += utf16_surrogate - LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START; + safe_unicode_character += 0x010000; } - byte_bit_shift = 16 - ( current_byte * 8 ); - base64_triplet += (uint32_t) ( utf16_surrogate & 0xff ) << byte_bit_shift; - current_byte += 1; - number_of_bytes += 1; - - if( number_of_bytes == 3 ) + else { - safe_utf7_stream_character_size += 4; - number_of_bytes = 0; - current_byte = 0; - base64_triplet = 0; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported low surrogate UTF-16 character.", + function ); + + return( -1 ); } - unicode_character = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); } - byte_bit_shift = 16 - ( current_byte * 8 ); - base64_triplet += (uint32_t) ( ( unicode_character >> 8 ) & 0xff ) << byte_bit_shift; - current_byte += 1; - number_of_bytes += 1; - - if( number_of_bytes == 3 ) + if( safe_utf7_stream_index >= utf7_stream_size ) { - safe_utf7_stream_character_size += 4; - number_of_bytes = 0; - current_byte = 0; - base64_triplet = 0; - } - byte_bit_shift = 16 - ( current_byte * 8 ); - base64_triplet += (uint32_t) ( unicode_character & 0xff ) << byte_bit_shift; - current_byte += 1; - number_of_bytes += 1; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UTF-7 stream too small.", + function ); - if( number_of_bytes == 3 ) - { - safe_utf7_stream_character_size += 4; - number_of_bytes = 0; - current_byte = 0; - base64_triplet = 0; + return( -1 ); } - /* Terminate the base64 encoded characters - */ - if( number_of_bytes > 0 ) + if( ( current_byte >= number_of_bytes ) + && ( utf7_stream[ safe_utf7_stream_index ] == (uint8_t) '-' ) ) { - safe_utf7_stream_character_size += number_of_bytes + 1; + safe_utf7_stream_base64_data = 0; + + safe_utf7_stream_index++; } - safe_utf7_stream_character_size += 1; } if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { @@ -3185,13 +3247,14 @@ int libuna_unicode_character_size_to_utf7_stream( safe_utf7_stream_base64_data |= (uint32_t) number_of_bytes << 24; safe_utf7_stream_base64_data |= base64_triplet & 0x00ffffff; } - *utf7_stream_character_size = safe_utf7_stream_character_size; - *utf7_stream_base64_data = safe_utf7_stream_base64_data; + *unicode_character = safe_unicode_character; + *utf7_stream_index = safe_utf7_stream_index; + *utf7_stream_base64_data = safe_utf7_stream_base64_data; return( 1 ); } -/* Copies an Unicode character from an UTF-7 stream +/* Copies an Unicode character into a UTF-7 stream * The bits of the base64 data contain: * 0 - 23 the base64 triplet * 24 - 25 the number of bytes in the triplet @@ -3202,37 +3265,24 @@ int libuna_unicode_character_size_to_utf7_stream( * * Returns 1 if successful or -1 on error */ -int libuna_unicode_character_copy_from_utf7_stream( - libuna_unicode_character_t *unicode_character, - const uint8_t *utf7_stream, +int libuna_unicode_character_copy_to_utf7_stream( + libuna_unicode_character_t unicode_character, + uint8_t *utf7_stream, size_t utf7_stream_size, size_t *utf7_stream_index, uint32_t *utf7_stream_base64_data, libcerror_error_t **error ) { - static char *function = "libuna_unicode_character_copy_from_utf7_stream"; - libuna_unicode_character_t safe_unicode_character = 0; - libuna_utf16_character_t utf16_surrogate = 0; - size_t safe_utf7_stream_index = 0; - uint32_t base64_triplet = 0; - uint32_t safe_utf7_stream_base64_data = 0; - uint8_t byte_bit_shift = 0; - uint8_t current_byte = 0; - uint8_t number_of_bytes = 0; - uint8_t padding_size = 0; - uint8_t utf7_character_value = 0; - - if( unicode_character == NULL ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid Unicode character.", - function ); + static char *function = "libuna_unicode_character_copy_to_utf7_stream"; + libuna_utf16_character_t utf16_surrogate = 0; + size_t safe_utf7_stream_index = 0; + uint32_t base64_triplet = 0; + uint32_t safe_utf7_stream_base64_data = 0; + uint8_t base64_encode_character = 0; + uint8_t byte_bit_shift = 0; + uint8_t current_byte = 0; + uint8_t number_of_bytes = 0; - return( -1 ); - } if( utf7_stream == NULL ) { libcerror_error_set( @@ -3272,7 +3322,7 @@ int libuna_unicode_character_copy_from_utf7_stream( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid UTF-7 base64 data.", + "%s: invalid UTF-7 stream base64 data.", function ); return( -1 ); @@ -3280,283 +3330,302 @@ int libuna_unicode_character_copy_from_utf7_stream( safe_utf7_stream_index = *utf7_stream_index; safe_utf7_stream_base64_data = *utf7_stream_base64_data; - if( safe_utf7_stream_index >= utf7_stream_size ) + /* Determine if the Unicode character is valid + */ + if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) { libcerror_error_set( error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: UTF-7 stream too small.", + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", function ); return( -1 ); } - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) + /* A-Z is not a continous range on an EBCDIC based system + * it consists of the ranges: A-I, J-R, S-Z + */ + if( ( unicode_character >= 0x41 ) + && ( unicode_character <= 0x49 ) ) { - base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; - number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; - current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; - - if( current_byte >= number_of_bytes ) - { - if( safe_utf7_stream_index >= utf7_stream_size ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid UTF-7 stream character size value out of bounds.", - function ); - - return( -1 ); - } - utf7_character_value = utf7_stream[ safe_utf7_stream_index ]; - - /* Any character not in the modified base64 alphabet terminates the base64 encoded sequence - */ - if( libuna_unicode_character_utf7_valid_base64_character[ utf7_character_value ] == 0 ) - { - safe_utf7_stream_base64_data = 0; - } - } + unicode_character = ( unicode_character - 0x41 ) + (libuna_unicode_character_t) 'A'; } - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) + else if( ( unicode_character >= 0x4a ) + && ( unicode_character <= 0x52 ) ) { - if( safe_utf7_stream_index >= utf7_stream_size ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid UTF-7 stream character size value out of bounds.", - function ); - - return( -1 ); - } - utf7_character_value = utf7_stream[ safe_utf7_stream_index ]; - - /* Determine if the character is modified base64 encoded - * or a + character - */ - if( utf7_character_value == (uint8_t) '+' ) - { - if( ( safe_utf7_stream_index + 1 ) >= utf7_stream_size ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_VALUE_OUT_OF_BOUNDS, - "%s: invalid UTF-7 stream character size value out of bounds.", - function ); - - return( -1 ); - } - if( utf7_stream[ safe_utf7_stream_index + 1 ] != (uint8_t) '-' ) - { - safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; - - safe_utf7_stream_index++; - } - } - /* Allow for the end of string character - */ - else if( utf7_character_value == 0 ) - { - } - else if( libuna_unicode_character_utf7_valid_directly_encoded_character[ utf7_character_value ] == 0 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: invalid directly encoded UTF-7 character byte: 0x%02" PRIx8 ".", - function, - utf7_character_value ); - - return( -1 ); - } + unicode_character = ( unicode_character - 0x4a ) + (libuna_unicode_character_t) 'J'; } - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) + else if( ( unicode_character >= 0x53 ) + && ( unicode_character <= 0x5a ) ) { - safe_unicode_character = utf7_stream[ safe_utf7_stream_index++ ]; - - if( ( safe_unicode_character == (libuna_unicode_character_t) '+' ) - && ( utf7_stream[ safe_utf7_stream_index ] == (uint8_t) '-' ) ) - { - safe_utf7_stream_index++; - } + unicode_character = ( unicode_character - 0x53 ) + (libuna_unicode_character_t) 'S'; + } + /* a-z is not a continous range on an EBCDIC based system + * it consists of the ranges: a-i, j-r, s-z + */ + else if( ( unicode_character >= 0x61 ) + && ( unicode_character <= 0x69 ) ) + { + unicode_character = ( unicode_character - 0x61 ) + (libuna_unicode_character_t) 'a'; + } + else if( ( unicode_character >= 0x6a ) + && ( unicode_character <= 0x72 ) ) + { + unicode_character = ( unicode_character - 0x6a ) + (libuna_unicode_character_t) 'j'; + } + else if( ( unicode_character >= 0x73 ) + && ( unicode_character <= 0x7a ) ) + { + unicode_character = ( unicode_character - 0x73 ) + (libuna_unicode_character_t) 's'; + } + /* 0-9 + */ + else if( ( unicode_character >= 0x30 ) + && ( unicode_character <= 0x39 ) ) + { + unicode_character = ( unicode_character - 0x30 ) + (libuna_unicode_character_t) '0'; + } + /* The + character must be escaped + */ + else if( unicode_character == (libuna_unicode_character_t) '+' ) + { + } + /* Allow for the end of string character + */ + else if( unicode_character == 0 ) + { + } + else if( ( unicode_character >= 256 ) + || ( libuna_unicode_character_utf7_valid_directly_encoded_character[ (uint8_t) unicode_character ] == 0 ) ) + { + base64_encode_character = 1; } - else if( ( number_of_bytes == 0 ) - || ( current_byte >= number_of_bytes ) ) + if( base64_encode_character == 0 ) { - if( libuna_base64_triplet_copy_from_base64_stream( - &base64_triplet, - utf7_stream, - utf7_stream_size - 1, - &safe_utf7_stream_index, - &padding_size, - LIBUNA_BASE64_VARIANT_UTF7, - error ) != 1 ) + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_CONVERSION, - LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, - "%s: unable to copy base64 encoded UTF-7 characters.", - function ); - - return( -1 ); + safe_utf7_stream_base64_data = 0; } - if( padding_size > 2 ) + if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported padding in base64 encoded UTF-7 characters.", + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UTF-7 stream too small.", function ); return( -1 ); } - number_of_bytes = 3 - padding_size; - current_byte = 0; - } - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) - { - byte_bit_shift = 16 - ( current_byte * 8 ); - safe_unicode_character = ( ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL ) << 8; - current_byte += 1; + utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) unicode_character; - if( current_byte >= number_of_bytes ) + /* The + character must be escaped + */ + if( unicode_character == (libuna_unicode_character_t) '+' ) { - if( libuna_base64_triplet_copy_from_base64_stream( - &base64_triplet, - utf7_stream, - utf7_stream_size - 1, - &safe_utf7_stream_index, - &padding_size, - LIBUNA_BASE64_VARIANT_UTF7, - error ) != 1 ) + if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, - LIBCERROR_ERROR_DOMAIN_CONVERSION, - LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, - "%s: unable to copy base64 encoded UTF-7 characters.", + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UTF-7 stream too small.", function ); return( -1 ); } - if( padding_size > 2 ) + utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '-'; + } + } + else + { + /* Escape the base64 encoded chracters with a + + */ + if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) + { + if( safe_utf7_stream_index >= utf7_stream_size ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported padding in base64 encoded UTF-7 characters.", + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UTF-7 stream too small.", function ); return( -1 ); } - number_of_bytes = 3 - padding_size; - current_byte = 0; + utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '+'; } - byte_bit_shift = 16 - ( current_byte * 8 ); - safe_unicode_character += ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL; - current_byte += 1; + /* Otherwise continue the previously base64 encoded characters + */ + else + { + base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; + number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; + current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; - if( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) - && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END ) ) + if( number_of_bytes > 0 ) + { + /* Correct the index for the last partial base64 stream + */ + safe_utf7_stream_index -= number_of_bytes + 1; + } + /* Correct the index for the base64 stream termination character + */ + safe_utf7_stream_index -= 1; + } + safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; + + if( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) { - if( current_byte >= number_of_bytes ) + unicode_character -= 0x010000; + + utf16_surrogate = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) + + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); + + byte_bit_shift = 16 - ( current_byte * 8 ); + base64_triplet += (uint32_t) ( ( utf16_surrogate >> 8 ) & 0xff ) << byte_bit_shift; + current_byte += 1; + number_of_bytes += 1; + + if( number_of_bytes == 3 ) { - if( libuna_base64_triplet_copy_from_base64_stream( - &base64_triplet, + if( libuna_base64_triplet_copy_to_base64_stream( + base64_triplet, utf7_stream, - utf7_stream_size - 1, + utf7_stream_size, &safe_utf7_stream_index, - &padding_size, + 0, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, - LIBCERROR_ERROR_DOMAIN_CONVERSION, - LIBCERROR_CONVERSION_ERROR_OUTPUT_FAILED, - "%s: unable to copy base64 encoded UTF-7 characters.", - function ); - - return( -1 ); - } - if( padding_size > 2 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported padding in base64 encoded UTF-7 characters.", + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set base64 encoded UTF-7 characters.", function ); return( -1 ); } - number_of_bytes = 3 - padding_size; + number_of_bytes = 0; current_byte = 0; + base64_triplet = 0; } - byte_bit_shift = 16 - ( current_byte * 8 ); - utf16_surrogate = ( ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL ) << 8; - current_byte += 1; + byte_bit_shift = 16 - ( current_byte * 8 ); + base64_triplet += (uint32_t) ( utf16_surrogate & 0xff ) << byte_bit_shift; + current_byte += 1; + number_of_bytes += 1; - if( current_byte >= number_of_bytes ) + if( number_of_bytes == 3 ) { - if( libuna_base64_triplet_copy_from_base64_stream( - &base64_triplet, + if( libuna_base64_triplet_copy_to_base64_stream( + base64_triplet, utf7_stream, - utf7_stream_size - 1, + utf7_stream_size, &safe_utf7_stream_index, - &padding_size, + 0, LIBUNA_BASE64_VARIANT_UTF7, error ) != 1 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_GET_FAILED, - "%s: unable to retrieve base64 encoded UTF-7 characters.", - function ); - - return( -1 ); - } - if( padding_size > 2 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported padding in base64 encoded UTF-7 characters.", + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set base64 encoded UTF-7 characters.", function ); return( -1 ); } - number_of_bytes = 3 - padding_size; + number_of_bytes = 0; current_byte = 0; + base64_triplet = 0; } - byte_bit_shift = 16 - ( current_byte * 8 ); - utf16_surrogate += ( base64_triplet >> byte_bit_shift ) & 0x000000ffUL; - current_byte += 1; + unicode_character = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) + + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); + } + byte_bit_shift = 16 - ( current_byte * 8 ); + base64_triplet += (uint32_t) ( ( unicode_character >> 8 ) & 0xff ) << byte_bit_shift; + current_byte += 1; + number_of_bytes += 1; - /* Determine if the UTF-16 character is within the low surrogate range - */ - if( ( utf16_surrogate >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) - && ( utf16_surrogate <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + if( number_of_bytes == 3 ) + { + if( libuna_base64_triplet_copy_to_base64_stream( + base64_triplet, + utf7_stream, + utf7_stream_size, + &safe_utf7_stream_index, + 0, + LIBUNA_BASE64_VARIANT_UTF7, + error ) != 1 ) { - safe_unicode_character -= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START; - safe_unicode_character <<= 10; - safe_unicode_character += utf16_surrogate - LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START; - safe_unicode_character += 0x010000; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set base64 encoded UTF-7 characters.", + function ); + + return( -1 ); } - else + number_of_bytes = 0; + current_byte = 0; + base64_triplet = 0; + } + byte_bit_shift = 16 - ( current_byte * 8 ); + base64_triplet += (uint32_t) ( unicode_character & 0xff ) << byte_bit_shift; + current_byte += 1; + number_of_bytes += 1; + + if( number_of_bytes == 3 ) + { + if( libuna_base64_triplet_copy_to_base64_stream( + base64_triplet, + utf7_stream, + utf7_stream_size, + &safe_utf7_stream_index, + 0, + LIBUNA_BASE64_VARIANT_UTF7, + error ) != 1 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set base64 encoded UTF-7 characters.", + function ); + + return( -1 ); + } + number_of_bytes = 0; + current_byte = 0; + base64_triplet = 0; + } + /* Terminate the base64 encoded characters + */ + if( number_of_bytes > 0 ) + { + if( libuna_base64_triplet_copy_to_base64_stream( + base64_triplet, + utf7_stream, + utf7_stream_size, + &safe_utf7_stream_index, + 3 - number_of_bytes, + LIBUNA_BASE64_VARIANT_UTF7, + error ) != 1 ) { - safe_unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_SET_FAILED, + "%s: unable to set base64 encoded UTF-7 characters.", + function ); + + return( -1 ); } } if( safe_utf7_stream_index >= utf7_stream_size ) @@ -3570,13 +3639,7 @@ int libuna_unicode_character_copy_from_utf7_stream( return( -1 ); } - if( ( current_byte >= number_of_bytes ) - && ( utf7_stream[ safe_utf7_stream_index ] == (uint8_t) '-' ) ) - { - safe_utf7_stream_base64_data = 0; - - safe_utf7_stream_index++; - } + utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '-'; } if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) { @@ -3585,414 +3648,542 @@ int libuna_unicode_character_copy_from_utf7_stream( safe_utf7_stream_base64_data |= (uint32_t) number_of_bytes << 24; safe_utf7_stream_base64_data |= base64_triplet & 0x00ffffff; } - *unicode_character = safe_unicode_character; *utf7_stream_index = safe_utf7_stream_index; *utf7_stream_base64_data = safe_utf7_stream_base64_data; return( 1 ); } -/* Copies an Unicode character into a UTF-7 stream - * The bits of the base64 data contain: - * 0 - 23 the base64 triplet - * 24 - 25 the number of bytes in the triplet - * 26 - 27 unused - * 28 - 29 the current byte - * 30 unused - * 31 flag to indicate the current UTF-7 characters are (modified) base64 encoded - * +/* Determines the size of an UTF-8 character from an Unicode character + * This function supports upto U+10FFFF (4 byte UTF-8 characters) + * Adds the size to the UTF-8 character size value * Returns 1 if successful or -1 on error */ -int libuna_unicode_character_copy_to_utf7_stream( +int libuna_unicode_character_size_to_utf8( libuna_unicode_character_t unicode_character, - uint8_t *utf7_stream, - size_t utf7_stream_size, - size_t *utf7_stream_index, - uint32_t *utf7_stream_base64_data, + size_t *utf8_character_size, libcerror_error_t **error ) { - static char *function = "libuna_unicode_character_copy_to_utf7_stream"; - libuna_utf16_character_t utf16_surrogate = 0; - size_t safe_utf7_stream_index = 0; - uint32_t base64_triplet = 0; - uint32_t safe_utf7_stream_base64_data = 0; - uint8_t base64_encode_character = 0; - uint8_t byte_bit_shift = 0; - uint8_t current_byte = 0; - uint8_t number_of_bytes = 0; + static char *function = "libuna_unicode_character_size_to_utf8"; + size_t safe_utf8_character_size = 0; - if( utf7_stream == NULL ) + if( utf8_character_size == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid UTF-7 stream.", + "%s: invalid UTF-8 character size.", function ); return( -1 ); } - if( utf7_stream_size > (size_t) SSIZE_MAX ) + /* Determine if the Unicode character is valid + */ + if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) { libcerror_error_set( error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, - "%s: invalid UTF-7 stream size value exceeds maximum.", + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", function ); return( -1 ); } - if( utf7_stream_index == NULL ) + /* RFC 3629 limits the UTF-8 character to consist of a maximum of 4 bytes + * while its predecessor RFC 2279 allowed up to 6 bytes + */ + if( unicode_character < 0x00000080UL ) + { + safe_utf8_character_size += 1; + } + else if( unicode_character < 0x00000800UL ) + { + safe_utf8_character_size += 2; + } + else if( unicode_character < 0x00010000UL ) + { + safe_utf8_character_size += 3; + } + else + { + safe_utf8_character_size += 4; + } + *utf8_character_size += safe_utf8_character_size; + + return( 1 ); +} + +/* Copies an Unicode character from an UTF-8 string + * This function supports upto U+10FFFF (4 byte UTF-8 characters) + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_copy_from_utf8( + libuna_unicode_character_t *unicode_character, + const libuna_utf8_character_t *utf8_string, + size_t utf8_string_size, + size_t *utf8_string_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_copy_from_utf8"; + libuna_unicode_character_t safe_unicode_character = 0; + size_t safe_utf8_string_index = 0; + uint8_t byte_value1 = 0; + uint8_t byte_value2 = 0; + uint8_t byte_value3 = 0; + uint8_t byte_value4 = 0; + uint8_t utf8_character_additional_bytes = 0; + int result = 0; + + if( unicode_character == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid UTF-7 stream index.", + "%s: invalid Unicode character.", function ); return( -1 ); } - if( utf7_stream_base64_data == NULL ) + if( utf8_string == NULL ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, - "%s: invalid UTF-7 stream base64 data.", + "%s: invalid UTF-8 string.", function ); return( -1 ); } - safe_utf7_stream_index = *utf7_stream_index; - safe_utf7_stream_base64_data = *utf7_stream_base64_data; - - /* Determine if the Unicode character is valid - */ - if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) - { - unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; - } - /* A-Z is not a continous range on an EBCDIC based system - * it consists of the ranges: A-I, J-R, S-Z - */ - if( ( unicode_character >= 0x41 ) - && ( unicode_character <= 0x49 ) ) + if( utf8_string_size > (size_t) SSIZE_MAX ) { - unicode_character = ( unicode_character - 0x41 ) + (libuna_unicode_character_t) 'A'; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid UTF-8 string size value exceeds maximum.", + function ); + + return( -1 ); } - else if( ( unicode_character >= 0x4a ) - && ( unicode_character <= 0x52 ) ) + if( utf8_string_index == NULL ) { - unicode_character = ( unicode_character - 0x4a ) + (libuna_unicode_character_t) 'J'; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UTF-8 string index.", + function ); + + return( -1 ); } - else if( ( unicode_character >= 0x53 ) - && ( unicode_character <= 0x5a ) ) + safe_utf8_string_index = *utf8_string_index; + + if( safe_utf8_string_index >= utf8_string_size ) { - unicode_character = ( unicode_character - 0x53 ) + (libuna_unicode_character_t) 'S'; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UTF-8 string too small.", + function ); + + return( -1 ); } - /* a-z is not a continous range on an EBCDIC based system - * it consists of the ranges: a-i, j-r, s-z + /* Determine the number of additional bytes of the UTF-8 character */ - else if( ( unicode_character >= 0x61 ) - && ( unicode_character <= 0x69 ) ) + byte_value1 = utf8_string[ safe_utf8_string_index ]; + + /* Determine the UTF-8 character and make sure it is valid + * RFC 3629 limits the UTF-8 character to consist of a maximum of 4 bytes + * while its predecessor RFC 2279 allowed up to 6 bytes + */ + if( byte_value1 > 0xf4 ) { - unicode_character = ( unicode_character - 0x61 ) + (libuna_unicode_character_t) 'a'; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid 1st UTF-8 character byte: 0x%02" PRIx8 ".", + function, + byte_value1 ); + + return( -1 ); } - else if( ( unicode_character >= 0x6a ) - && ( unicode_character <= 0x72 ) ) + if( byte_value1 < 0xc0 ) { - unicode_character = ( unicode_character - 0x6a ) + (libuna_unicode_character_t) 'j'; + utf8_character_additional_bytes = 0; } - else if( ( unicode_character >= 0x73 ) - && ( unicode_character <= 0x7a ) ) + else if( byte_value1 < 0xe0 ) { - unicode_character = ( unicode_character - 0x73 ) + (libuna_unicode_character_t) 's'; + utf8_character_additional_bytes = 1; } - /* 0-9 - */ - else if( ( unicode_character >= 0x30 ) - && ( unicode_character <= 0x39 ) ) + else if( byte_value1 < 0xf0 ) { - unicode_character = ( unicode_character - 0x30 ) + (libuna_unicode_character_t) '0'; + utf8_character_additional_bytes = 2; } - /* The + character must be escaped - */ - else if( unicode_character == (libuna_unicode_character_t) '+' ) + else { + utf8_character_additional_bytes = 3; } - /* Allow for the end of string character - */ - else if( unicode_character == 0 ) + if( ( ( (size_t) utf8_character_additional_bytes + 1 ) > utf8_string_size ) + || ( safe_utf8_string_index > ( utf8_string_size - ( utf8_character_additional_bytes + 1 ) ) ) ) { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: missing UTF-8 character bytes.", + function ); + + return( -1 ); } - else if( ( unicode_character >= 256 ) - || ( libuna_unicode_character_utf7_valid_directly_encoded_character[ (uint8_t) unicode_character ] == 0 ) ) + safe_unicode_character = byte_value1; + + if( utf8_character_additional_bytes == 0 ) { - base64_encode_character = 1; + if( byte_value1 >= 0x80 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid 1st UTF-8 character byte: 0x%02" PRIx8 ".", + function, + byte_value1 ); + + return( -1 ); + } } - if( base64_encode_character == 0 ) + if( utf8_character_additional_bytes >= 1 ) { - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) + byte_value2 = utf8_string[ safe_utf8_string_index + 1 ]; + + if( ( byte_value2 < 0x80 ) + || ( byte_value2 > 0xbf ) ) { - safe_utf7_stream_base64_data = 0; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", + function, + byte_value2 ); + + return( -1 ); + } + result = 1; + + switch( byte_value1 ) + { + case 0xe0: + if( ( byte_value2 < 0xa0 ) + || ( byte_value2 > 0xbf ) ) + { + result = 0; + } + break; + + case 0xed: + if( ( byte_value2 < 0x80 ) + || ( byte_value2 > 0x9f ) ) + { + result = 0; + } + break; + + case 0xf0: + if( ( byte_value2 < 0x90 ) + || ( byte_value2 > 0xbf ) ) + { + result = 0; + } + break; + + case 0xf4: + if( ( byte_value2 < 0x80 ) + || ( byte_value2 > 0xbf ) ) + { + result = 0; + } + break; + + default: + break; } - if( safe_utf7_stream_index >= utf7_stream_size ) + if( result == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: UTF-7 stream too small.", - function ); + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid 1st and 2nd UTF-8 character byte pair: 0x%02" PRIx8 " 0x%02" PRIx8 ".", + function, + byte_value1, + byte_value2 ); return( -1 ); } - utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) unicode_character; + safe_unicode_character <<= 6; + safe_unicode_character += byte_value2; - /* The + character must be escaped - */ - if( unicode_character == (libuna_unicode_character_t) '+' ) + if( utf8_character_additional_bytes == 1 ) { - if( safe_utf7_stream_index >= utf7_stream_size ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: UTF-7 stream too small.", - function ); - - return( -1 ); - } - utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '-'; + safe_unicode_character -= 0x03080; } } - else + if( utf8_character_additional_bytes >= 2 ) { - /* Escape the base64 encoded chracters with a + - */ - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) == 0 ) - { - if( safe_utf7_stream_index >= utf7_stream_size ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: UTF-7 stream too small.", - function ); + byte_value3 = utf8_string[ safe_utf8_string_index + 2 ]; - return( -1 ); - } - utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '+'; - } - /* Otherwise continue the previously base64 encoded characters - */ - else + if( ( byte_value3 < 0x80 ) + || ( byte_value3 > 0xbf ) ) { - base64_triplet = safe_utf7_stream_base64_data & 0x00ffffff; - number_of_bytes = ( safe_utf7_stream_base64_data >> 24 ) & 0x03; - current_byte = ( safe_utf7_stream_base64_data >> 28 ) & 0x03; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid 3rd UTF-8 character byte: 0x%02" PRIx8 ".", + function, + byte_value3 ); - if( number_of_bytes > 0 ) - { - /* Correct the index for the last partial base64 stream - */ - safe_utf7_stream_index -= number_of_bytes + 1; - } - /* Correct the index for the base64 stream termination character - */ - safe_utf7_stream_index -= 1; + return( -1 ); } - safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; + result = 1; - if( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) + switch( byte_value2 ) { - unicode_character -= 0x010000; + case 0xe0: + if( ( byte_value2 < 0xa0 ) + || ( byte_value2 > 0xbf ) ) + { + result = 0; + } + break; - utf16_surrogate = (libuna_utf16_character_t) ( ( unicode_character >> 10 ) - + LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ); + case 0xed: + if( ( byte_value2 < 0x80 ) + || ( byte_value2 > 0x9f ) ) + { + result = 0; + } + break; - byte_bit_shift = 16 - ( current_byte * 8 ); - base64_triplet += (uint32_t) ( ( utf16_surrogate >> 8 ) & 0xff ) << byte_bit_shift; - current_byte += 1; - number_of_bytes += 1; + default: + break; + } + if( result == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid 2nd and 3rd UTF-8 character byte pair: 0x%02" PRIx8 " 0x%02" PRIx8 ".", + function, + byte_value2, + byte_value3 ); - if( number_of_bytes == 3 ) - { - if( libuna_base64_triplet_copy_to_base64_stream( - base64_triplet, - utf7_stream, - utf7_stream_size, - &safe_utf7_stream_index, - 0, - LIBUNA_BASE64_VARIANT_UTF7, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set base64 encoded UTF-7 characters.", - function ); + return( -1 ); + } + safe_unicode_character <<= 6; + safe_unicode_character += byte_value3; - return( -1 ); - } - number_of_bytes = 0; - current_byte = 0; - base64_triplet = 0; - } - byte_bit_shift = 16 - ( current_byte * 8 ); - base64_triplet += (uint32_t) ( utf16_surrogate & 0xff ) << byte_bit_shift; - current_byte += 1; - number_of_bytes += 1; + if( utf8_character_additional_bytes == 2 ) + { + safe_unicode_character -= 0x0e2080; + } + } + if( utf8_character_additional_bytes >= 3 ) + { + byte_value4 = utf8_string[ safe_utf8_string_index + 3 ]; - if( number_of_bytes == 3 ) - { - if( libuna_base64_triplet_copy_to_base64_stream( - base64_triplet, - utf7_stream, - utf7_stream_size, - &safe_utf7_stream_index, - 0, - LIBUNA_BASE64_VARIANT_UTF7, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set base64 encoded UTF-7 characters.", - function ); + if( ( byte_value4 < 0x80 ) + || ( byte_value4 > 0xbf ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid 4th UTF-8 character byte: 0x%02" PRIx8 ".", + function, + byte_value4 ); - return( -1 ); - } - number_of_bytes = 0; - current_byte = 0; - base64_triplet = 0; - } - unicode_character = (libuna_utf16_character_t) ( ( unicode_character & 0x03ff ) - + LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ); + return( -1 ); } - byte_bit_shift = 16 - ( current_byte * 8 ); - base64_triplet += (uint32_t) ( ( unicode_character >> 8 ) & 0xff ) << byte_bit_shift; - current_byte += 1; - number_of_bytes += 1; + safe_unicode_character <<= 6; + safe_unicode_character += byte_value4; - if( number_of_bytes == 3 ) + if( utf8_character_additional_bytes == 3 ) { - if( libuna_base64_triplet_copy_to_base64_stream( - base64_triplet, - utf7_stream, - utf7_stream_size, - &safe_utf7_stream_index, - 0, - LIBUNA_BASE64_VARIANT_UTF7, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set base64 encoded UTF-7 characters.", - function ); + safe_unicode_character -= 0x03c82080; + } + } + /* Determine if the Unicode character is valid + */ + if( ( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( safe_unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); + } + *unicode_character = safe_unicode_character; + *utf8_string_index = safe_utf8_string_index + 1 + utf8_character_additional_bytes; + + return( 1 ); +} + +/* Copies an Unicode character into a UTF-8 string + * This function supports upto U+10FFFF (4 byte UTF-8 characters) + * Returns 1 if successful or -1 on error + */ +int libuna_unicode_character_copy_to_utf8( + libuna_unicode_character_t unicode_character, + libuna_utf8_character_t *utf8_string, + size_t utf8_string_size, + size_t *utf8_string_index, + libcerror_error_t **error ) +{ + static char *function = "libuna_unicode_character_copy_to_utf8"; + size_t safe_utf8_string_index = 0; + size_t utf8_character_iterator = 0; + uint8_t utf8_character_additional_bytes = 0; + uint8_t utf8_first_character_mark = 0; + + if( utf8_string == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UTF-8 string.", + function ); + + return( -1 ); + } + if( utf8_string_size > (size_t) SSIZE_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM, + "%s: invalid UTF-8 string size value exceeds maximum.", + function ); + + return( -1 ); + } + if( utf8_string_index == NULL ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_INVALID_VALUE, + "%s: invalid UTF-8 string index.", + function ); - return( -1 ); - } - number_of_bytes = 0; - current_byte = 0; - base64_triplet = 0; - } - byte_bit_shift = 16 - ( current_byte * 8 ); - base64_triplet += (uint32_t) ( unicode_character & 0xff ) << byte_bit_shift; - current_byte += 1; - number_of_bytes += 1; + return( -1 ); + } + safe_utf8_string_index = *utf8_string_index; - if( number_of_bytes == 3 ) - { - if( libuna_base64_triplet_copy_to_base64_stream( - base64_triplet, - utf7_stream, - utf7_stream_size, - &safe_utf7_stream_index, - 0, - LIBUNA_BASE64_VARIANT_UTF7, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set base64 encoded UTF-7 characters.", - function ); + if( safe_utf8_string_index >= utf8_string_size ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UTF-8 string too small.", + function ); - return( -1 ); - } - number_of_bytes = 0; - current_byte = 0; - base64_triplet = 0; - } - /* Terminate the base64 encoded characters - */ - if( number_of_bytes > 0 ) - { - if( libuna_base64_triplet_copy_to_base64_stream( - base64_triplet, - utf7_stream, - utf7_stream_size, - &safe_utf7_stream_index, - 3 - number_of_bytes, - LIBUNA_BASE64_VARIANT_UTF7, - error ) != 1 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_SET_FAILED, - "%s: unable to set base64 encoded UTF-7 characters.", - function ); + return( -1 ); + } + /* Determine if the Unicode character is valid + */ + if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); - return( -1 ); - } - } - if( safe_utf7_stream_index >= utf7_stream_size ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: UTF-7 stream too small.", - function ); + return( -1 ); + } + /* Determine how many UTF-8 character bytes are required + */ + if( unicode_character < 0x080 ) + { + utf8_character_additional_bytes = 0; + utf8_first_character_mark = 0; + } + else if( unicode_character < 0x0800 ) + { + utf8_character_additional_bytes = 1; + utf8_first_character_mark = 0x0c0; + } + else if( unicode_character < 0x010000 ) + { + utf8_character_additional_bytes = 2; + utf8_first_character_mark = 0x0e0; + } + else + { + utf8_character_additional_bytes = 3; + utf8_first_character_mark = 0x0f0; + } + /* Convert Unicode character into UTF-8 character bytes + */ + if( ( utf8_character_additional_bytes > utf8_string_size ) + || ( safe_utf8_string_index >= ( utf8_string_size - utf8_character_additional_bytes ) ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: UTF-8 string too small.", + function ); - return( -1 ); - } - utf7_stream[ safe_utf7_stream_index++ ] = (uint8_t) '-'; + return( -1 ); } - if( ( safe_utf7_stream_base64_data & LIBUNA_UTF7_IS_BASE64_ENCODED ) != 0 ) + for( utf8_character_iterator = safe_utf8_string_index + utf8_character_additional_bytes; + utf8_character_iterator > safe_utf8_string_index; + utf8_character_iterator-- ) { - safe_utf7_stream_base64_data = LIBUNA_UTF7_IS_BASE64_ENCODED; - safe_utf7_stream_base64_data |= (uint32_t) current_byte << 28; - safe_utf7_stream_base64_data |= (uint32_t) number_of_bytes << 24; - safe_utf7_stream_base64_data |= base64_triplet & 0x00ffffff; + utf8_string[ utf8_character_iterator ] = (libuna_utf8_character_t) ( ( unicode_character & 0x0bf ) | 0x080 ); + + unicode_character >>= 6; } - *utf7_stream_index = safe_utf7_stream_index; - *utf7_stream_base64_data = safe_utf7_stream_base64_data; + utf8_string[ safe_utf8_string_index ] = (libuna_utf8_character_t) ( unicode_character | utf8_first_character_mark ); + + *utf8_string_index = safe_utf8_string_index + 1 + utf8_character_additional_bytes; return( 1 ); } /* Determines the size of an UTF-8 character from an Unicode character + * This function supports upto U+7FFFFFF (6 byte UTF-8 characters) * Adds the size to the UTF-8 character size value * Returns 1 if successful or -1 on error */ -int libuna_unicode_character_size_to_utf8( +int libuna_unicode_character_size_to_utf8_rfc2279( libuna_unicode_character_t unicode_character, size_t *utf8_character_size, libcerror_error_t **error ) { - static char *function = "libuna_unicode_character_size_to_utf8"; + static char *function = "libuna_unicode_character_size_to_utf8_rfc2279"; size_t safe_utf8_character_size = 0; if( utf8_character_size == NULL ) @@ -4006,6 +4197,20 @@ int libuna_unicode_character_size_to_utf8( return( -1 ); } + if( unicode_character > LIBUNA_UCS_CHARACTER_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); + } + /* RFC 3629 limits the UTF-8 character to consist of a maximum of 4 bytes + * while its predecessor RFC 2279 allowed up to 6 bytes + */ if( unicode_character < 0x00000080UL ) { safe_utf8_character_size += 1; @@ -4018,31 +4223,11 @@ int libuna_unicode_character_size_to_utf8( { safe_utf8_character_size += 3; } - else if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) - { - safe_utf8_character_size += 3; - } - else - { - safe_utf8_character_size += 4; - } - -/* If UTF-8 USC support is needed it should be implemented in - * utf8_usc or something, but for now leave this here as a reminder - - else if( unicode_character < 0x010000 ) - { - safe_utf8_character_size += 3; - } - else if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) - { - safe_utf8_character_size += 2; - } - else if( unicode_character < 0x0200000 ) + else if( unicode_character < 0x00200000UL ) { safe_utf8_character_size += 4; } - else if( unicode_character < 0x0400000 ) + else if( unicode_character < 0x04000000UL ) { safe_utf8_character_size += 5; } @@ -4050,23 +4235,23 @@ int libuna_unicode_character_size_to_utf8( { safe_utf8_character_size += 6; } -*/ *utf8_character_size += safe_utf8_character_size; return( 1 ); } /* Copies an Unicode character from an UTF-8 string + * This function supports upto U+7FFFFFF (6 byte UTF-8 characters) * Returns 1 if successful or -1 on error */ -int libuna_unicode_character_copy_from_utf8( +int libuna_unicode_character_copy_from_utf8_rfc2279( libuna_unicode_character_t *unicode_character, const libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { - static char *function = "libuna_unicode_character_copy_from_utf8"; + static char *function = "libuna_unicode_character_copy_from_utf8_rfc2279"; libuna_unicode_character_t safe_unicode_character = 0; size_t safe_utf8_string_index = 0; uint8_t byte_value1 = 0; @@ -4074,6 +4259,7 @@ int libuna_unicode_character_copy_from_utf8( uint8_t byte_value3 = 0; uint8_t byte_value4 = 0; uint8_t byte_value5 = 0; + uint8_t byte_value6 = 0; uint8_t utf8_character_additional_bytes = 0; if( unicode_character == NULL ) @@ -4137,6 +4323,22 @@ int libuna_unicode_character_copy_from_utf8( */ byte_value1 = utf8_string[ safe_utf8_string_index ]; + /* Determine the UTF-8 character and make sure it is valid + * RFC 3629 limits the UTF-8 character to consist of a maximum of 4 bytes + * while its predecessor RFC 2279 allowed up to 6 bytes + */ + if( byte_value1 > 0xfd ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, + "%s: invalid 1st UTF-8 character byte: 0x%02" PRIx8 ".", + function, + byte_value1 ); + + return( -1 ); + } if( byte_value1 < 0xc0 ) { utf8_character_additional_bytes = 0; @@ -4165,117 +4367,41 @@ int libuna_unicode_character_copy_from_utf8( || ( safe_utf8_string_index > ( utf8_string_size - ( utf8_character_additional_bytes + 1 ) ) ) ) { libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, - "%s: missing UTF-8 character bytes.", - function ); - - return( -1 ); - } - /* Determine the UTF-8 character and make sure it is valid - * Unicode limits the UTF-8 character to consist of a maximum of 4 bytes - * while ISO 10646 Universal Character Set (UCS) allows up to 6 bytes - */ - if( byte_value1 > 0xf4 ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: invalid 1st UTF-8 character byte: 0x%02" PRIx8 ".", - function, - byte_value1 ); - - return( -1 ); - } - safe_unicode_character = byte_value1; - - if( utf8_character_additional_bytes == 0 ) - { - if( ( byte_value1 >= 0x80 ) - && ( byte_value1 < 0xc2 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: invalid 1st UTF-8 character byte: 0x%02" PRIx8 ".", - function, - byte_value1 ); - - return( -1 ); - } - } - if( utf8_character_additional_bytes >= 1 ) - { - byte_value2 = utf8_string[ safe_utf8_string_index + 1 ]; - - if( byte_value2 > 0xbf ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", - function, - byte_value2 ); - - return( -1 ); - } - if( ( byte_value1 == 0xe0 ) - && ( byte_value2 < 0xa0 ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", - function, - byte_value2 ); + error, + LIBCERROR_ERROR_DOMAIN_ARGUMENTS, + LIBCERROR_ARGUMENT_ERROR_VALUE_TOO_SMALL, + "%s: missing UTF-8 character bytes.", + function ); - return( -1 ); - } - else if( ( byte_value1 == 0xed ) - && ( byte_value2 > 0x9f ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", - function, - byte_value2 ); + return( -1 ); + } + /* Determine the UTF-8 character and make sure it is valid + * RFC 3629 limits the UTF-8 character to consist of a maximum of 4 bytes + * while its predecessor RFC 2279 allowed up to 6 bytes + */ + safe_unicode_character = byte_value1; - return( -1 ); - } - else if( ( byte_value1 == 0xf0 ) - && ( byte_value2 < 0x90 ) ) + if( utf8_character_additional_bytes == 0 ) + { + if( byte_value1 >= 0x80 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_ARGUMENTS, LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", + "%s: invalid 1st UTF-8 character byte: 0x%02" PRIx8 ".", function, - byte_value2 ); + byte_value1 ); return( -1 ); } - else if( ( byte_value1 == 0xf4 ) - && ( byte_value2 > 0x8f ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: invalid 2nd UTF-8 character byte: 0x%02" PRIx8 ".", - function, - byte_value2 ); + } + if( utf8_character_additional_bytes >= 1 ) + { + byte_value2 = utf8_string[ safe_utf8_string_index + 1 ]; - return( -1 ); - } - else if( byte_value2 < 0x80 ) + if( ( byte_value2 < 0x80 ) + || ( byte_value2 > 0xbf ) ) { libcerror_error_set( error, @@ -4372,8 +4498,10 @@ int libuna_unicode_character_copy_from_utf8( } if( utf8_character_additional_bytes == 5 ) { - if( ( utf8_string[ safe_utf8_string_index + 5 ] < 0x80 ) - || ( utf8_string[ safe_utf8_string_index + 5 ] > 0xbf ) ) + byte_value6 = utf8_string[ safe_utf8_string_index + 5 ]; + + if( ( byte_value6 < 0x80 ) + || ( byte_value6 > 0xbf ) ) { libcerror_error_set( error, @@ -4381,19 +4509,26 @@ int libuna_unicode_character_copy_from_utf8( LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, "%s: invalid 6th UTF-8 character byte: 0x%02" PRIx8 ".", function, - utf8_string[ safe_utf8_string_index + 5 ] ); + byte_value6 ); return( -1 ); } safe_unicode_character <<= 6; - safe_unicode_character += utf8_string[ safe_utf8_string_index + 5 ]; + safe_unicode_character += byte_value6; safe_unicode_character -= 0x082082080; } /* Determine if the Unicode character is valid */ - if( safe_unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) + if( safe_unicode_character > LIBUNA_UCS_CHARACTER_MAX ) { - safe_unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } *unicode_character = safe_unicode_character; *utf8_string_index = safe_utf8_string_index + 1 + utf8_character_additional_bytes; @@ -4402,16 +4537,17 @@ int libuna_unicode_character_copy_from_utf8( } /* Copies an Unicode character into a UTF-8 string + * This function supports upto U+7FFFFFF (6 byte UTF-8 characters) * Returns 1 if successful or -1 on error */ -int libuna_unicode_character_copy_to_utf8( +int libuna_unicode_character_copy_to_utf8_rfc2279( libuna_unicode_character_t unicode_character, libuna_utf8_character_t *utf8_string, size_t utf8_string_size, size_t *utf8_string_index, libcerror_error_t **error ) { - static char *function = "libuna_unicode_character_copy_to_utf8"; + static char *function = "libuna_unicode_character_copy_to_utf8_rfc2279"; size_t safe_utf8_string_index = 0; size_t utf8_character_iterator = 0; uint8_t utf8_character_additional_bytes = 0; @@ -4465,9 +4601,16 @@ int libuna_unicode_character_copy_to_utf8( } /* Determine if the Unicode character is valid */ - if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) + if( unicode_character > LIBUNA_UCS_CHARACTER_MAX ) { - unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } /* Determine how many UTF-8 character bytes are required */ @@ -4552,8 +4695,20 @@ int libuna_unicode_character_size_to_utf16( return( -1 ); } - if( ( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) - && ( unicode_character <= LIBUNA_UTF16_CHARACTER_MAX ) ) + if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); + } + if( unicode_character > LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) { *utf16_character_size += 2; } @@ -4670,15 +4825,30 @@ int libuna_unicode_character_copy_from_utf16( } else { - safe_unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported low surrogate UTF-16 character.", + function ); + + return( -1 ); } } /* Determine if the Unicode character is valid */ - else if( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) - && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + if( ( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( safe_unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) { - safe_unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } *unicode_character = safe_unicode_character; *utf16_string_index = safe_utf16_string_index; @@ -4748,10 +4918,17 @@ int libuna_unicode_character_copy_to_utf16( /* Determine if the Unicode character is valid */ if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) - && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) - || ( unicode_character > LIBUNA_UTF16_CHARACTER_MAX ) ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) { - unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } if( unicode_character <= LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) { @@ -4795,6 +4972,7 @@ int libuna_unicode_character_copy_from_utf16_stream( libuna_unicode_character_t safe_unicode_character = 0; libuna_utf16_character_t utf16_surrogate = 0; size_t safe_utf16_stream_index = 0; + int byte_order_without_flags = 0; if( unicode_character == NULL ) { @@ -4840,8 +5018,10 @@ int libuna_unicode_character_copy_from_utf16_stream( return( -1 ); } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) + byte_order_without_flags = byte_order & 0xff; + + if( ( byte_order_without_flags != LIBUNA_ENDIAN_BIG ) + && ( byte_order_without_flags != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, @@ -4866,13 +5046,13 @@ int libuna_unicode_character_copy_from_utf16_stream( return( -1 ); } - if( byte_order == LIBUNA_ENDIAN_BIG ) + if( byte_order_without_flags == LIBUNA_ENDIAN_BIG ) { safe_unicode_character = utf16_stream[ safe_utf16_stream_index ]; safe_unicode_character <<= 8; safe_unicode_character += utf16_stream[ safe_utf16_stream_index + 1 ]; } - else if( byte_order == LIBUNA_ENDIAN_LITTLE ) + else if( byte_order_without_flags == LIBUNA_ENDIAN_LITTLE ) { safe_unicode_character = utf16_stream[ safe_utf16_stream_index + 1 ]; safe_unicode_character <<= 8; @@ -4885,63 +5065,86 @@ int libuna_unicode_character_copy_from_utf16_stream( if( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported UTF-16 character.", - function ); - - return( -1 ); - } - /* Determine if the UTF-16 character is within the high surrogate range - */ - if( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) - && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END ) ) - { - if( safe_utf16_stream_index > ( utf16_stream_size - 2 ) ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) { libcerror_error_set( error, LIBCERROR_ERROR_DOMAIN_RUNTIME, LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, - "%s: missing surrogate UTF-16 character bytes.", + "%s: unsupported UTF-16 character.", function ); return( -1 ); } - if( byte_order == LIBUNA_ENDIAN_BIG ) + } + /* Determine if the UTF-16 character is within the high surrogate range + */ + if( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_END ) ) + { + if( safe_utf16_stream_index > ( utf16_stream_size - 2 ) ) { - utf16_surrogate = utf16_stream[ safe_utf16_stream_index ]; - utf16_surrogate <<= 8; - utf16_surrogate += utf16_stream[ safe_utf16_stream_index + 1 ]; + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: missing surrogate UTF-16 character bytes.", + function ); + + return( -1 ); + } } - else if( byte_order == LIBUNA_ENDIAN_LITTLE ) + else { - utf16_surrogate = utf16_stream[ safe_utf16_stream_index + 1 ]; - utf16_surrogate <<= 8; - utf16_surrogate += utf16_stream[ safe_utf16_stream_index ]; - } - safe_utf16_stream_index += 2; + if( byte_order_without_flags == LIBUNA_ENDIAN_BIG ) + { + utf16_surrogate = utf16_stream[ safe_utf16_stream_index ]; + utf16_surrogate <<= 8; + utf16_surrogate += utf16_stream[ safe_utf16_stream_index + 1 ]; + } + else if( byte_order_without_flags == LIBUNA_ENDIAN_LITTLE ) + { + utf16_surrogate = utf16_stream[ safe_utf16_stream_index + 1 ]; + utf16_surrogate <<= 8; + utf16_surrogate += utf16_stream[ safe_utf16_stream_index ]; + } + /* Determine if the UTF-16 character is within the low surrogate range + */ + if( ( utf16_surrogate >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) + && ( utf16_surrogate <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + { + safe_unicode_character -= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START; + safe_unicode_character <<= 10; + safe_unicode_character += utf16_surrogate - LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START; + safe_unicode_character += 0x010000; - /* Determine if the UTF-16 character is within the low surrogate range - */ - if( ( utf16_surrogate < LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) - || ( utf16_surrogate > LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_RUNTIME, - LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported low surrogate UTF-16 character.", - function ); + safe_utf16_stream_index += 2; + } + else if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported low surrogate UTF-16 character.", + function ); - return( -1 ); + return( -1 ); + } } - safe_unicode_character -= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START; - safe_unicode_character <<= 10; - safe_unicode_character += utf16_surrogate - LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START; - safe_unicode_character += 0x010000; + } + if( safe_unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } *unicode_character = safe_unicode_character; *utf16_stream_index = safe_utf16_stream_index; @@ -4963,6 +5166,7 @@ int libuna_unicode_character_copy_to_utf16_stream( static char *function = "libuna_unicode_character_copy_to_utf16_stream"; libuna_utf16_character_t utf16_surrogate = 0; size_t safe_utf16_stream_index = 0; + int byte_order_without_flags = 0; if( utf16_stream == NULL ) { @@ -4997,8 +5201,10 @@ int libuna_unicode_character_copy_to_utf16_stream( return( -1 ); } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) + byte_order_without_flags = byte_order & 0xff; + + if( ( byte_order_without_flags != LIBUNA_ENDIAN_BIG ) + && ( byte_order_without_flags != LIBUNA_ENDIAN_LITTLE ) ) { libcerror_error_set( error, @@ -5013,9 +5219,7 @@ int libuna_unicode_character_copy_to_utf16_stream( /* Determine if the Unicode character is valid */ - if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) - && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) - || ( unicode_character > LIBUNA_UTF16_CHARACTER_MAX ) ) + if( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) { libcerror_error_set( error, @@ -5026,6 +5230,21 @@ int libuna_unicode_character_copy_to_utf16_stream( return( -1 ); } + if( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + { + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); + } + } if( unicode_character <= LIBUNA_UNICODE_BASIC_MULTILINGUAL_PLANE_MAX ) { if( ( utf16_stream_size < 2 ) @@ -5112,7 +5331,7 @@ int libuna_unicode_character_copy_to_utf16_stream( * Returns 1 if successful or -1 on error */ int libuna_unicode_character_size_to_utf32( - libuna_unicode_character_t unicode_character LIBUNA_ATTRIBUTE_UNUSED, + libuna_unicode_character_t unicode_character, size_t *utf32_character_size, libcerror_error_t **error ) { @@ -5131,6 +5350,19 @@ int libuna_unicode_character_size_to_utf32( return( -1 ); } + if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) + { + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); + } *utf32_character_size += 1; return( 1 ); @@ -5207,16 +5439,22 @@ int libuna_unicode_character_copy_from_utf32( return( -1 ); } + safe_unicode_character = utf32_string[ safe_utf32_string_index ]; + /* Determine if the Unicode character is valid */ - if( ( utf32_string[ safe_utf32_string_index ] >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) - && ( utf32_string[ safe_utf32_string_index ] <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) - { - safe_unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; - } - else + if( ( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( safe_unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) { - safe_unicode_character = utf32_string[ safe_utf32_string_index ]; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } *unicode_character = safe_unicode_character; *utf32_string_index = safe_utf32_string_index + 1; @@ -5286,15 +5524,20 @@ int libuna_unicode_character_copy_to_utf32( /* Determine if the Unicode character is valid */ if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) - && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) - || ( unicode_character > LIBUNA_UTF32_CHARACTER_MAX ) ) - { - utf32_string[ safe_utf32_string_index ] = (libuna_utf32_character_t) LIBUNA_UNICODE_REPLACEMENT_CHARACTER; - } - else + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) { - utf32_string[ safe_utf32_string_index ] = (libuna_utf32_character_t) unicode_character; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } + utf32_string[ safe_utf32_string_index ] = (libuna_utf32_character_t) unicode_character; + *utf32_string_index = safe_utf32_string_index + 1; return( 1 ); @@ -5407,10 +5650,18 @@ int libuna_unicode_character_copy_from_utf32_stream( } /* Determine if the Unicode character is valid */ - if( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_START ) - && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + if( ( ( safe_unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) + && ( safe_unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( safe_unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) { - safe_unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } *unicode_character = safe_unicode_character; *utf32_stream_index = safe_utf32_stream_index + 4; @@ -5494,10 +5745,17 @@ int libuna_unicode_character_copy_to_utf32_stream( /* Determine if the Unicode character is valid */ if( ( ( unicode_character >= LIBUNA_UNICODE_SURROGATE_HIGH_RANGE_START ) - && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) - || ( unicode_character > LIBUNA_UTF32_CHARACTER_MAX ) ) + && ( unicode_character <= LIBUNA_UNICODE_SURROGATE_LOW_RANGE_END ) ) + || ( unicode_character > LIBUNA_UNICODE_CHARACTER_MAX ) ) { - unicode_character = LIBUNA_UNICODE_REPLACEMENT_CHARACTER; + libcerror_error_set( + error, + LIBCERROR_ERROR_DOMAIN_RUNTIME, + LIBCERROR_RUNTIME_ERROR_UNSUPPORTED_VALUE, + "%s: unsupported Unicode character.", + function ); + + return( -1 ); } if( byte_order == LIBUNA_ENDIAN_BIG ) { diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_unicode_character.h b/libesedb-sys/libesedb-20230824/libuna/libuna_unicode_character.h similarity index 73% rename from libesedb-sys/libesedb-20210424/libuna/libuna_unicode_character.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_unicode_character.h index b550122..f99c764 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_unicode_character.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_unicode_character.h @@ -1,7 +1,7 @@ /* * Unicode character functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -59,6 +59,50 @@ int libuna_unicode_character_copy_to_byte_stream( int codepage, libcerror_error_t **error ); +LIBUNA_EXTERN \ +int libuna_unicode_character_size_to_ucs2( + libuna_unicode_character_t unicode_character, + size_t *ucs2_character_size, + libcerror_error_t **error ); + +LIBUNA_EXTERN \ +int libuna_unicode_character_copy_from_ucs2( + libuna_unicode_character_t *unicode_character, + const libuna_utf16_character_t *ucs2_string, + size_t ucs2_string_size, + size_t *ucs2_string_index, + libcerror_error_t **error ); + +LIBUNA_EXTERN \ +int libuna_unicode_character_copy_to_ucs2( + libuna_unicode_character_t unicode_character, + libuna_utf16_character_t *ucs2_string, + size_t ucs2_string_size, + size_t *ucs2_string_index, + libcerror_error_t **error ); + +LIBUNA_EXTERN \ +int libuna_unicode_character_size_to_ucs4( + libuna_unicode_character_t unicode_character, + size_t *ucs4_character_size, + libcerror_error_t **error ); + +LIBUNA_EXTERN \ +int libuna_unicode_character_copy_from_ucs4( + libuna_unicode_character_t *unicode_character, + const libuna_utf32_character_t *ucs4_string, + size_t ucs4_string_size, + size_t *ucs4_string_index, + libcerror_error_t **error ); + +LIBUNA_EXTERN \ +int libuna_unicode_character_copy_to_ucs4( + libuna_unicode_character_t unicode_character, + libuna_utf32_character_t *ucs4_string, + size_t ucs4_string_size, + size_t *ucs4_string_index, + libcerror_error_t **error ); + LIBUNA_EXTERN \ int libuna_unicode_character_size_to_utf7_stream( libuna_unicode_character_t unicode_character, @@ -106,6 +150,28 @@ int libuna_unicode_character_copy_to_utf8( size_t *utf8_string_index, libcerror_error_t **error ); +LIBUNA_EXTERN \ +int libuna_unicode_character_size_to_utf8_rfc2279( + libuna_unicode_character_t unicode_character, + size_t *utf8_character_size, + libcerror_error_t **error ); + +LIBUNA_EXTERN \ +int libuna_unicode_character_copy_from_utf8_rfc2279( + libuna_unicode_character_t *unicode_character, + const libuna_utf8_character_t *utf8_string, + size_t utf8_string_size, + size_t *utf8_string_index, + libcerror_error_t **error ); + +LIBUNA_EXTERN \ +int libuna_unicode_character_copy_to_utf8_rfc2279( + libuna_unicode_character_t unicode_character, + libuna_utf8_character_t *utf8_string, + size_t utf8_string_size, + size_t *utf8_string_index, + libcerror_error_t **error ); + LIBUNA_EXTERN \ int libuna_unicode_character_size_to_utf16( libuna_unicode_character_t unicode_character, diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_unused.h b/libesedb-sys/libesedb-20230824/libuna/libuna_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/libuna/libuna_unused.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_unused.h index 233470f..2e9e57e 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_unused.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_url_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_url_stream.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_url_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_url_stream.c index ab91d85..515fe4a 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_url_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_url_stream.c @@ -1,7 +1,7 @@ /* * Percent or URL encoded stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_url_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_url_stream.h similarity index 96% rename from libesedb-sys/libesedb-20210424/libuna/libuna_url_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_url_stream.h index a71c4b8..ee91b4c 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_url_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_url_stream.h @@ -1,7 +1,7 @@ /* * Percent or URL encoded stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf16_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_utf16_stream.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf16_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf16_stream.c index f871a54..0b07ef3 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf16_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf16_stream.c @@ -1,7 +1,7 @@ /* * UTF-16 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -122,6 +122,7 @@ int libuna_utf16_stream_size_from_utf8( { static char *function = "libuna_utf16_stream_size_from_utf8"; libuna_unicode_character_t unicode_character = 0; + size_t safe_utf16_stream_size = 0; size_t utf8_string_index = 0; if( utf8_string == NULL ) @@ -159,7 +160,7 @@ int libuna_utf16_stream_size_from_utf8( } /* Add the byte order mark */ - *utf16_stream_size = 1; + safe_utf16_stream_size = 1; while( utf8_string_index < utf8_string_size ) { @@ -185,7 +186,7 @@ int libuna_utf16_stream_size_from_utf8( */ if( libuna_unicode_character_size_to_utf16( unicode_character, - utf16_stream_size, + &safe_utf16_stream_size, error ) != 1 ) { libcerror_error_set( @@ -204,7 +205,7 @@ int libuna_utf16_stream_size_from_utf8( } /* Convert the number of characters into bytes */ - *utf16_stream_size *= 2; + *utf16_stream_size = safe_utf16_stream_size * 2; return( 1 ); } @@ -355,6 +356,7 @@ int libuna_utf16_stream_size_from_utf16( { static char *function = "libuna_utf16_stream_size_from_utf16"; libuna_unicode_character_t unicode_character = 0; + size_t safe_utf16_stream_size = 0; size_t utf16_string_index = 0; if( utf16_string == NULL ) @@ -392,7 +394,7 @@ int libuna_utf16_stream_size_from_utf16( } /* Add the byte order mark */ - *utf16_stream_size = 1; + safe_utf16_stream_size = 1; while( utf16_string_index < utf16_string_size ) { @@ -418,7 +420,7 @@ int libuna_utf16_stream_size_from_utf16( */ if( libuna_unicode_character_size_to_utf16( unicode_character, - utf16_stream_size, + &safe_utf16_stream_size, error ) != 1 ) { libcerror_error_set( @@ -437,7 +439,7 @@ int libuna_utf16_stream_size_from_utf16( } /* Convert the number of characters into bytes */ - *utf16_stream_size *= 2; + *utf16_stream_size = safe_utf16_stream_size * 2; return( 1 ); } @@ -588,6 +590,7 @@ int libuna_utf16_stream_size_from_utf32( { static char *function = "libuna_utf16_stream_size_from_utf32"; libuna_unicode_character_t unicode_character = 0; + size_t safe_utf16_stream_size = 0; size_t utf32_string_index = 0; if( utf32_string == NULL ) @@ -625,7 +628,7 @@ int libuna_utf16_stream_size_from_utf32( } /* Add the byte order mark */ - *utf16_stream_size += 1; + safe_utf16_stream_size += 1; while( utf32_string_index < utf32_string_size ) { @@ -651,7 +654,7 @@ int libuna_utf16_stream_size_from_utf32( */ if( libuna_unicode_character_size_to_utf16( unicode_character, - utf16_stream_size, + &safe_utf16_stream_size, error ) != 1 ) { libcerror_error_set( @@ -670,7 +673,7 @@ int libuna_utf16_stream_size_from_utf32( } /* Convert the number of characters into bytes */ - *utf16_stream_size *= 2; + *utf16_stream_size = safe_utf16_stream_size * 2; return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf16_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_utf16_stream.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf16_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf16_stream.h index 2e7771f..d9dfee2 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf16_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf16_stream.h @@ -1,7 +1,7 @@ /* * UTF-16 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf16_string.c b/libesedb-sys/libesedb-20230824/libuna/libuna_utf16_string.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf16_string.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf16_string.c index 49c0fb8..2d72e71 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf16_string.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf16_string.c @@ -1,7 +1,7 @@ /* * UTF-16 string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -119,6 +119,10 @@ int libuna_utf16_string_size_from_byte_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -285,6 +289,10 @@ int libuna_utf16_string_with_index_copy_from_byte_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -544,6 +552,10 @@ int libuna_utf16_string_size_from_utf7_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -708,6 +720,10 @@ int libuna_utf16_string_with_index_copy_from_utf7_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -965,6 +981,10 @@ int libuna_utf16_string_size_from_utf8( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1127,6 +1147,10 @@ int libuna_utf16_string_with_index_copy_from_utf8( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1249,6 +1273,10 @@ int libuna_utf16_string_size_from_utf8_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1422,6 +1450,10 @@ int libuna_utf16_string_with_index_copy_from_utf8_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1611,9 +1643,10 @@ int libuna_utf16_string_size_from_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf16_string_size_from_utf16_stream"; - size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; + size_t utf16_stream_index = 0; int read_byte_order = 0; + int result = 0; if( utf16_stream == NULL ) { @@ -1686,18 +1719,6 @@ int libuna_utf16_string_size_from_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character @@ -1721,10 +1742,21 @@ int libuna_utf16_string_size_from_utf16_stream( } /* Determine how many UTF-16 character bytes are required */ - if( libuna_unicode_character_size_to_utf16( - unicode_character, - utf16_string_size, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_size_to_utf16( + unicode_character, + utf16_string_size, + error ); + } + else + { + result = libuna_unicode_character_size_to_ucs2( + unicode_character, + utf16_string_size, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -1735,6 +1767,10 @@ int libuna_utf16_string_size_from_utf16_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1793,9 +1829,10 @@ int libuna_utf16_string_with_index_copy_from_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf16_string_with_index_copy_from_utf16_stream"; - size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; + size_t utf16_stream_index = 0; int read_byte_order = 0; + int result = 0; if( utf16_string == NULL ) { @@ -1885,18 +1922,6 @@ int libuna_utf16_string_with_index_copy_from_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character @@ -1920,12 +1945,25 @@ int libuna_utf16_string_with_index_copy_from_utf16_stream( } /* Convert the Unicode character into UTF-16 character bytes */ - if( libuna_unicode_character_copy_to_utf16( - unicode_character, - utf16_string, - utf16_string_size, - utf16_string_index, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_copy_to_utf16( + unicode_character, + utf16_string, + utf16_string_size, + utf16_string_index, + error ); + } + else + { + result = libuna_unicode_character_copy_to_ucs2( + unicode_character, + utf16_string, + utf16_string_size, + utf16_string_index, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -1936,6 +1974,10 @@ int libuna_utf16_string_with_index_copy_from_utf16_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1971,11 +2013,12 @@ int libuna_utf16_string_compare_with_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf16_string_compare_with_utf16_stream"; + libuna_unicode_character_t utf16_stream_unicode_character = 0; + libuna_unicode_character_t utf16_unicode_character = 0; size_t utf16_stream_index = 0; size_t utf16_string_index = 0; - libuna_unicode_character_t utf16_unicode_character = 0; - libuna_unicode_character_t utf16_stream_unicode_character = 0; int read_byte_order = 0; + int result = 0; if( utf16_string == NULL ) { @@ -2054,18 +2097,6 @@ int libuna_utf16_string_compare_with_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } if( ( utf16_string_size >= 1 ) && ( utf16_string[ utf16_string_size - 1 ] == 0 ) ) { @@ -2084,12 +2115,25 @@ int libuna_utf16_string_compare_with_utf16_stream( { /* Convert the UTF-16 character bytes into an Unicode character */ - if( libuna_unicode_character_copy_from_utf16( - &utf16_unicode_character, - utf16_string, - utf16_string_size, - &utf16_string_index, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_copy_from_utf16( + &utf16_unicode_character, + utf16_string, + utf16_string_size, + &utf16_string_index, + error ); + } + else + { + result = libuna_unicode_character_copy_from_ucs2( + &utf16_unicode_character, + utf16_string, + utf16_string_size, + &utf16_string_index, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -2229,6 +2273,10 @@ int libuna_utf16_string_size_from_utf32( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2391,6 +2439,10 @@ int libuna_utf16_string_with_index_copy_from_utf32( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2646,18 +2698,6 @@ int libuna_utf16_string_size_from_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf32_stream_index + 3 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character @@ -2695,6 +2735,10 @@ int libuna_utf16_string_size_from_utf32_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2849,18 +2893,6 @@ int libuna_utf16_string_with_index_copy_from_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf32_stream_index + 3 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character @@ -2900,6 +2932,10 @@ int libuna_utf16_string_with_index_copy_from_utf32_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -3022,18 +3058,6 @@ int libuna_utf16_string_compare_with_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } if( ( utf16_string_size >= 1 ) && ( utf16_string[ utf16_string_size - 1 ] == 0 ) ) { diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf16_string.h b/libesedb-sys/libesedb-20230824/libuna/libuna_utf16_string.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf16_string.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf16_string.h index 4f4ef94..33e1b90 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf16_string.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf16_string.h @@ -1,7 +1,7 @@ /* * UTF-16 string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf32_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_utf32_stream.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf32_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf32_stream.c index 7b0f6a5..55a9ec4 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf32_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf32_stream.c @@ -1,7 +1,7 @@ /* * UTF-32 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -126,6 +126,7 @@ int libuna_utf32_stream_size_from_utf8( { static char *function = "libuna_utf32_stream_size_from_utf8"; libuna_unicode_character_t unicode_character = 0; + size_t safe_utf32_stream_size = 0; size_t utf8_string_index = 0; if( utf8_string == NULL ) @@ -163,7 +164,7 @@ int libuna_utf32_stream_size_from_utf8( } /* Add the byte order mark */ - *utf32_stream_size = 1; + safe_utf32_stream_size = 1; while( utf8_string_index < utf8_string_size ) { @@ -189,7 +190,7 @@ int libuna_utf32_stream_size_from_utf8( */ if( libuna_unicode_character_size_to_utf32( unicode_character, - utf32_stream_size, + &safe_utf32_stream_size, error ) != 1 ) { libcerror_error_set( @@ -208,7 +209,7 @@ int libuna_utf32_stream_size_from_utf8( } /* Convert the number of characters into bytes */ - *utf32_stream_size *= 4; + *utf32_stream_size = safe_utf32_stream_size * 4; return( 1 ); } @@ -359,6 +360,7 @@ int libuna_utf32_stream_size_from_utf16( { static char *function = "libuna_utf32_stream_size_from_utf16"; libuna_unicode_character_t unicode_character = 0; + size_t safe_utf32_stream_size = 0; size_t utf16_string_index = 0; if( utf16_string == NULL ) @@ -396,7 +398,7 @@ int libuna_utf32_stream_size_from_utf16( } /* Add the byte order mark */ - *utf32_stream_size = 1; + safe_utf32_stream_size = 1; while( utf16_string_index < utf16_string_size ) { @@ -422,7 +424,7 @@ int libuna_utf32_stream_size_from_utf16( */ if( libuna_unicode_character_size_to_utf32( unicode_character, - utf32_stream_size, + &safe_utf32_stream_size, error ) != 1 ) { libcerror_error_set( @@ -441,7 +443,7 @@ int libuna_utf32_stream_size_from_utf16( } /* Convert the number of characters into bytes */ - *utf32_stream_size *= 4; + *utf32_stream_size = safe_utf32_stream_size * 4; return( 1 ); } @@ -592,6 +594,7 @@ int libuna_utf32_stream_size_from_utf32( { static char *function = "libuna_utf32_stream_size_from_utf32"; libuna_unicode_character_t unicode_character = 0; + size_t safe_utf32_stream_size = 0; size_t utf32_string_index = 0; if( utf32_string == NULL ) @@ -629,7 +632,7 @@ int libuna_utf32_stream_size_from_utf32( } /* Add the byte order mark */ - *utf32_stream_size = 1; + safe_utf32_stream_size = 1; while( utf32_string_index < utf32_string_size ) { @@ -655,7 +658,7 @@ int libuna_utf32_stream_size_from_utf32( */ if( libuna_unicode_character_size_to_utf32( unicode_character, - utf32_stream_size, + &safe_utf32_stream_size, error ) != 1 ) { libcerror_error_set( @@ -674,7 +677,7 @@ int libuna_utf32_stream_size_from_utf32( } /* Convert the number of characters into bytes */ - *utf32_stream_size *= 4; + *utf32_stream_size = safe_utf32_stream_size * 4; return( 1 ); } diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf32_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_utf32_stream.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf32_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf32_stream.h index 9eecc98..e7865dd 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf32_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf32_stream.h @@ -1,7 +1,7 @@ /* * UTF-32 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf32_string.c b/libesedb-sys/libesedb-20230824/libuna/libuna_utf32_string.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf32_string.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf32_string.c index 2be0e07..45de7b0 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf32_string.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf32_string.c @@ -1,7 +1,7 @@ /* * UTF-32 string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -119,6 +119,10 @@ int libuna_utf32_string_size_from_byte_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -285,6 +289,10 @@ int libuna_utf32_string_with_index_copy_from_byte_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -544,6 +552,10 @@ int libuna_utf32_string_size_from_utf7_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -708,6 +720,10 @@ int libuna_utf32_string_with_index_copy_from_utf7_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -965,6 +981,10 @@ int libuna_utf32_string_size_from_utf8( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1127,6 +1147,10 @@ int libuna_utf32_string_with_index_copy_from_utf8( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1249,6 +1273,10 @@ int libuna_utf32_string_size_from_utf8_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1422,6 +1450,10 @@ int libuna_utf32_string_with_index_copy_from_utf8_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1688,6 +1720,10 @@ int libuna_utf32_string_size_from_utf16( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1850,6 +1886,10 @@ int libuna_utf32_string_with_index_copy_from_utf16( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1884,9 +1924,10 @@ int libuna_utf32_string_size_from_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf32_string_size_from_utf16_stream"; - size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; + size_t utf16_stream_index = 0; int read_byte_order = 0; + int result = 0; if( utf16_stream == NULL ) { @@ -1959,18 +2000,6 @@ int libuna_utf32_string_size_from_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character @@ -1994,10 +2023,21 @@ int libuna_utf32_string_size_from_utf16_stream( } /* Determine how many UTF-8 character bytes are required */ - if( libuna_unicode_character_size_to_utf32( - unicode_character, - utf32_string_size, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_size_to_utf32( + unicode_character, + utf32_string_size, + error ); + } + else + { + result = libuna_unicode_character_size_to_ucs4( + unicode_character, + utf32_string_size, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -2008,6 +2048,10 @@ int libuna_utf32_string_size_from_utf16_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2066,9 +2110,10 @@ int libuna_utf32_string_with_index_copy_from_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf32_string_with_index_copy_from_utf16_stream"; - size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; + size_t utf16_stream_index = 0; int read_byte_order = 0; + int result = 0; if( utf32_string == NULL ) { @@ -2158,18 +2203,6 @@ int libuna_utf32_string_with_index_copy_from_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character @@ -2193,12 +2226,25 @@ int libuna_utf32_string_with_index_copy_from_utf16_stream( } /* Convert the Unicode character into UTF-32 character bytes */ - if( libuna_unicode_character_copy_to_utf32( - unicode_character, - utf32_string, - utf32_string_size, - utf32_string_index, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_copy_to_utf32( + unicode_character, + utf32_string, + utf32_string_size, + utf32_string_index, + error ); + } + else + { + result = libuna_unicode_character_copy_to_ucs4( + unicode_character, + utf32_string, + utf32_string_size, + utf32_string_index, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -2209,6 +2255,10 @@ int libuna_utf32_string_with_index_copy_from_utf16_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2244,11 +2294,12 @@ int libuna_utf32_string_compare_with_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf32_string_compare_with_utf16_stream"; + libuna_unicode_character_t utf16_stream_unicode_character = 0; + libuna_unicode_character_t utf32_unicode_character = 0; size_t utf16_stream_index = 0; size_t utf32_string_index = 0; - libuna_unicode_character_t utf32_unicode_character = 0; - libuna_unicode_character_t utf16_stream_unicode_character = 0; int read_byte_order = 0; + int result = 0; if( utf32_string == NULL ) { @@ -2327,18 +2378,6 @@ int libuna_utf32_string_compare_with_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } if( ( utf32_string_size >= 1 ) && ( utf32_string[ utf32_string_size - 1 ] == 0 ) ) { @@ -2357,12 +2396,25 @@ int libuna_utf32_string_compare_with_utf16_stream( { /* Convert the UTF-32 character bytes into an Unicode character */ - if( libuna_unicode_character_copy_from_utf32( - &utf32_unicode_character, - utf32_string, - utf32_string_size, - &utf32_string_index, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_copy_from_utf32( + &utf32_unicode_character, + utf32_string, + utf32_string_size, + &utf32_string_index, + error ); + } + else + { + result = libuna_unicode_character_copy_from_ucs4( + &utf32_unicode_character, + utf32_string, + utf32_string_size, + &utf32_string_index, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -2504,18 +2556,6 @@ int libuna_utf32_string_size_from_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf32_stream_index + 1 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character @@ -2553,6 +2593,10 @@ int libuna_utf32_string_size_from_utf32_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2707,18 +2751,6 @@ int libuna_utf32_string_with_index_copy_from_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf32_stream_index + 1 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character @@ -2758,6 +2790,10 @@ int libuna_utf32_string_with_index_copy_from_utf32_stream( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2880,18 +2916,6 @@ int libuna_utf32_string_compare_with_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } if( ( utf32_string_size >= 1 ) && ( utf32_string[ utf32_string_size - 1 ] == 0 ) ) { diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf32_string.h b/libesedb-sys/libesedb-20230824/libuna/libuna_utf32_string.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf32_string.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf32_string.h index 0404231..45f12b8 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf32_string.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf32_string.h @@ -1,7 +1,7 @@ /* * UTF-32 string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf7_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_utf7_stream.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf7_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf7_stream.c index 716e89e..8dccb05 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf7_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf7_stream.c @@ -1,7 +1,7 @@ /* * UTF-7 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf7_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_utf7_stream.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf7_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf7_stream.h index a3f8f92..5fffd63 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf7_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf7_stream.h @@ -1,7 +1,7 @@ /* * UTF-7 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf8_stream.c b/libesedb-sys/libesedb-20230824/libuna/libuna_utf8_stream.c similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf8_stream.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf8_stream.c index e209dae..1893dad 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf8_stream.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf8_stream.c @@ -1,7 +1,7 @@ /* * UTF-8 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf8_stream.h b/libesedb-sys/libesedb-20230824/libuna/libuna_utf8_stream.h similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf8_stream.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf8_stream.h index 24480a9..081b7e6 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf8_stream.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf8_stream.h @@ -1,7 +1,7 @@ /* * UTF-8 stream functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf8_string.c b/libesedb-sys/libesedb-20230824/libuna/libuna_utf8_string.c similarity index 97% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf8_string.c rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf8_string.c index 8a0beaa..b7199d5 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf8_string.c +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf8_string.c @@ -1,7 +1,7 @@ /* * UTF-8 string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -1439,6 +1439,10 @@ int libuna_utf8_string_size_from_utf16( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1601,6 +1605,10 @@ int libuna_utf8_string_with_index_copy_from_utf16( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -1777,9 +1785,10 @@ int libuna_utf8_string_size_from_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf8_string_size_from_utf16_stream"; - size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; + size_t utf16_stream_index = 0; int read_byte_order = 0; + int result = 0; if( utf16_stream == NULL ) { @@ -1852,18 +1861,6 @@ int libuna_utf8_string_size_from_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character @@ -1887,10 +1884,21 @@ int libuna_utf8_string_size_from_utf16_stream( } /* Determine how many UTF-8 character bytes are required */ - if( libuna_unicode_character_size_to_utf8( - unicode_character, - utf8_string_size, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_size_to_utf8( + unicode_character, + utf8_string_size, + error ); + } + else + { + result = libuna_unicode_character_size_to_utf8_rfc2279( + unicode_character, + utf8_string_size, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -1963,9 +1971,10 @@ int libuna_utf8_string_with_index_copy_from_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf8_string_with_index_copy_from_utf16_stream"; - size_t utf16_stream_index = 0; libuna_unicode_character_t unicode_character = 0; + size_t utf16_stream_index = 0; int read_byte_order = 0; + int result = 0; if( utf8_string == NULL ) { @@ -2055,18 +2064,6 @@ int libuna_utf8_string_with_index_copy_from_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf16_stream_index + 1 ) < utf16_stream_size ) { /* Convert the UTF-16 stream bytes into an Unicode character @@ -2090,12 +2087,25 @@ int libuna_utf8_string_with_index_copy_from_utf16_stream( } /* Convert the Unicode character into UTF-8 character bytes */ - if( libuna_unicode_character_copy_to_utf8( - unicode_character, - utf8_string, - utf8_string_size, - utf8_string_index, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_copy_to_utf8( + unicode_character, + utf8_string, + utf8_string_size, + utf8_string_index, + error ); + } + else + { + result = libuna_unicode_character_copy_to_utf8_rfc2279( + unicode_character, + utf8_string, + utf8_string_size, + utf8_string_index, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -2145,11 +2155,12 @@ int libuna_utf8_string_compare_with_utf16_stream( libcerror_error_t **error ) { static char *function = "libuna_utf8_string_compare_with_utf16_stream"; + libuna_unicode_character_t utf16_stream_unicode_character = 0; + libuna_unicode_character_t utf8_unicode_character = 0; size_t utf16_stream_index = 0; size_t utf8_string_index = 0; - libuna_unicode_character_t utf8_unicode_character = 0; - libuna_unicode_character_t utf16_stream_unicode_character = 0; int read_byte_order = 0; + int result = 0; if( utf8_string == NULL ) { @@ -2228,18 +2239,6 @@ int libuna_utf8_string_compare_with_utf16_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } if( ( utf8_string_size >= 1 ) && ( utf8_string[ utf8_string_size - 1 ] == 0 ) ) { @@ -2258,12 +2257,25 @@ int libuna_utf8_string_compare_with_utf16_stream( { /* Convert the UTF-8 character bytes into an Unicode character */ - if( libuna_unicode_character_copy_from_utf8( - &utf8_unicode_character, - utf8_string, - utf8_string_size, - &utf8_string_index, - error ) != 1 ) + if( ( byte_order & LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE ) == 0 ) + { + result = libuna_unicode_character_copy_from_utf8( + &utf8_unicode_character, + utf8_string, + utf8_string_size, + &utf8_string_index, + error ); + } + else + { + result = libuna_unicode_character_copy_from_utf8_rfc2279( + &utf8_unicode_character, + utf8_string, + utf8_string_size, + &utf8_string_index, + error ); + } + if( result != 1 ) { libcerror_error_set( error, @@ -2403,6 +2415,10 @@ int libuna_utf8_string_size_from_utf32( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2565,6 +2581,10 @@ int libuna_utf8_string_with_index_copy_from_utf32( return( -1 ); } + if( unicode_character == 0 ) + { + break; + } } /* Check if the string is terminated with an end-of-string character */ @@ -2820,18 +2840,6 @@ int libuna_utf8_string_size_from_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf32_stream_index + 3 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character @@ -3027,18 +3035,6 @@ int libuna_utf8_string_with_index_copy_from_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } while( ( utf32_stream_index + 3 ) < utf32_stream_size ) { /* Convert the UTF-32 stream bytes into an Unicode character @@ -3204,18 +3200,6 @@ int libuna_utf8_string_compare_with_utf32_stream( byte_order = read_byte_order; } } - if( ( byte_order != LIBUNA_ENDIAN_BIG ) - && ( byte_order != LIBUNA_ENDIAN_LITTLE ) ) - { - libcerror_error_set( - error, - LIBCERROR_ERROR_DOMAIN_ARGUMENTS, - LIBCERROR_ARGUMENT_ERROR_UNSUPPORTED_VALUE, - "%s: unsupported byte order.", - function ); - - return( -1 ); - } if( ( utf8_string_size >= 1 ) && ( utf8_string[ utf8_string_size - 1 ] == 0 ) ) { diff --git a/libesedb-sys/libesedb-20210424/libuna/libuna_utf8_string.h b/libesedb-sys/libesedb-20230824/libuna/libuna_utf8_string.h similarity index 99% rename from libesedb-sys/libesedb-20210424/libuna/libuna_utf8_string.h rename to libesedb-sys/libesedb-20230824/libuna/libuna_utf8_string.h index 1f59f02..d23aefc 100644 --- a/libesedb-sys/libesedb-20210424/libuna/libuna_utf8_string.h +++ b/libesedb-sys/libesedb-20230824/libuna/libuna_utf8_string.h @@ -1,7 +1,7 @@ /* * UTF-8 string functions * - * Copyright (C) 2008-2020, Joachim Metz + * Copyright (C) 2008-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/ltmain.sh b/libesedb-sys/libesedb-20230824/ltmain.sh similarity index 93% rename from libesedb-sys/libesedb-20210424/ltmain.sh rename to libesedb-sys/libesedb-20230824/ltmain.sh index 7f3523d..eb78732 100644 --- a/libesedb-sys/libesedb-20210424/ltmain.sh +++ b/libesedb-sys/libesedb-20230824/ltmain.sh @@ -1,12 +1,12 @@ -#! /bin/sh -## DO NOT EDIT - This file generated from ./build-aux/ltmain.in -## by inline-source v2014-01-03.01 +#! /usr/bin/env sh +## DO NOT EDIT - This file generated from /mnt/share/cygpkgs/libtool/libtool.x86_64/src/libtool-2.4.7/build-aux/ltmain.in +## by inline-source v2019-02-19.15 -# libtool (GNU libtool) 2.4.6 +# libtool (GNU libtool) 2.4.7 # Provide generalized library-building support services. # Written by Gordon Matzigkeit , 1996 -# Copyright (C) 1996-2015 Free Software Foundation, Inc. +# Copyright (C) 1996-2019, 2021-2022 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. @@ -31,8 +31,8 @@ PROGRAM=libtool PACKAGE=libtool -VERSION=2.4.6 -package_revision=2.4.6 +VERSION=2.4.7 +package_revision=2.4.7 ## ------ ## @@ -64,34 +64,25 @@ package_revision=2.4.6 # libraries, which are installed to $pkgauxdir. # Set a version string for this script. -scriptversion=2015-01-20.17; # UTC +scriptversion=2019-02-19.15; # UTC # General shell script boiler plate, and helper functions. # Written by Gary V. Vaughan, 2004 -# Copyright (C) 2004-2015 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. - -# This program 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. - -# As a special exception to the GNU General Public License, if you distribute -# this file as part of a program or library that is built using GNU Libtool, -# you may include this file under the same distribution terms that you use -# for the rest of that program. - -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNES 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 . +# This is free software. There is NO warranty; not even for +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# Copyright (C) 2004-2019, 2021 Bootstrap Authors +# +# This file is dual licensed under the terms of the MIT license +# , and GPL version 2 or later +# . You must apply one of +# these licenses when using or redistributing this software or any of +# the files within it. See the URLs above, or the file `LICENSE` +# included in the Bootstrap distribution for the full license texts. -# Please report bugs or propose patches to gary@gnu.org. +# Please report bugs or propose patches to: +# ## ------ ## @@ -139,9 +130,12 @@ do _G_safe_locale=\"$_G_var=C; \$_G_safe_locale\" fi" done - -# CDPATH. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH +# These NLS vars are set unconditionally (bootstrap issue #24). Unset those +# in case the environment reset is needed later and the $save_* variant is not +# defined (see the code above). +LC_ALL=C +LANGUAGE=C +export LANGUAGE LC_ALL # Make sure IFS has a sensible default sp=' ' @@ -159,6 +153,26 @@ if test "${PATH_SEPARATOR+set}" != set; then fi +# func_unset VAR +# -------------- +# Portably unset VAR. +# In some shells, an 'unset VAR' statement leaves a non-zero return +# status if VAR is already unset, which might be problematic if the +# statement is used at the end of a function (thus poisoning its return +# value) or when 'set -e' is active (causing even a spurious abort of +# the script in this case). +func_unset () +{ + { eval $1=; (eval unset $1) >/dev/null 2>&1 && eval unset $1 || : ; } +} + + +# Make sure CDPATH doesn't cause `cd` commands to output the target dir. +func_unset CDPATH + +# Make sure ${,E,F}GREP behave sanely. +func_unset GREP_OPTIONS + ## ------------------------- ## ## Locate command utilities. ## @@ -259,7 +273,7 @@ test -z "$SED" && { rm -f conftest.in conftest.tmp conftest.nl conftest.out } - func_path_progs "sed gsed" func_check_prog_sed $PATH:/usr/xpg4/bin + func_path_progs "sed gsed" func_check_prog_sed "$PATH:/usr/xpg4/bin" rm -f conftest.sed SED=$func_path_progs_result } @@ -295,7 +309,7 @@ test -z "$GREP" && { rm -f conftest.in conftest.tmp conftest.nl conftest.out } - func_path_progs "grep ggrep" func_check_prog_grep $PATH:/usr/xpg4/bin + func_path_progs "grep ggrep" func_check_prog_grep "$PATH:/usr/xpg4/bin" GREP=$func_path_progs_result } @@ -360,6 +374,35 @@ sed_double_backslash="\ s/\\([^$_G_bs]\\)$_G_bs2$_G_dollar/\\1$_G_bs2$_G_bs$_G_dollar/g s/\n//g" +# require_check_ifs_backslash +# --------------------------- +# Check if we can use backslash as IFS='\' separator, and set +# $check_ifs_backshlash_broken to ':' or 'false'. +require_check_ifs_backslash=func_require_check_ifs_backslash +func_require_check_ifs_backslash () +{ + _G_save_IFS=$IFS + IFS='\' + _G_check_ifs_backshlash='a\\b' + for _G_i in $_G_check_ifs_backshlash + do + case $_G_i in + a) + check_ifs_backshlash_broken=false + ;; + '') + break + ;; + *) + check_ifs_backshlash_broken=: + break + ;; + esac + done + IFS=$_G_save_IFS + require_check_ifs_backslash=: +} + ## ----------------- ## ## Global variables. ## @@ -580,16 +623,16 @@ if test yes = "$_G_HAVE_PLUSEQ_OP"; then { $debug_cmd - func_quote_for_eval "$2" - eval "$1+=\\ \$func_quote_for_eval_result" + func_quote_arg pretty "$2" + eval "$1+=\\ \$func_quote_arg_result" }' else func_append_quoted () { $debug_cmd - func_quote_for_eval "$2" - eval "$1=\$$1\\ \$func_quote_for_eval_result" + func_quote_arg pretty "$2" + eval "$1=\$$1\\ \$func_quote_arg_result" } fi @@ -1091,85 +1134,203 @@ func_relative_path () } -# func_quote_for_eval ARG... -# -------------------------- -# Aesthetically quote ARGs to be evaled later. -# This function returns two values: -# i) func_quote_for_eval_result -# double-quoted, suitable for a subsequent eval -# ii) func_quote_for_eval_unquoted_result -# has all characters that are still active within double -# quotes backslashified. -func_quote_for_eval () +# func_quote_portable EVAL ARG +# ---------------------------- +# Internal function to portably implement func_quote_arg. Note that we still +# keep attention to performance here so we as much as possible try to avoid +# calling sed binary (so far O(N) complexity as long as func_append is O(1)). +func_quote_portable () { $debug_cmd - func_quote_for_eval_unquoted_result= - func_quote_for_eval_result= - while test 0 -lt $#; do - case $1 in - *[\\\`\"\$]*) - _G_unquoted_arg=`printf '%s\n' "$1" |$SED "$sed_quote_subst"` ;; - *) - _G_unquoted_arg=$1 ;; - esac - if test -n "$func_quote_for_eval_unquoted_result"; then - func_append func_quote_for_eval_unquoted_result " $_G_unquoted_arg" - else - func_append func_quote_for_eval_unquoted_result "$_G_unquoted_arg" + $require_check_ifs_backslash + + func_quote_portable_result=$2 + + # one-time-loop (easy break) + while true + do + if $1; then + func_quote_portable_result=`$ECHO "$2" | $SED \ + -e "$sed_double_quote_subst" -e "$sed_double_backslash"` + break fi - case $_G_unquoted_arg in - # Double-quote args containing shell metacharacters to delay - # word splitting, command substitution and variable expansion - # for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - _G_quoted_arg=\"$_G_unquoted_arg\" + # Quote for eval. + case $func_quote_portable_result in + *[\\\`\"\$]*) + # Fallback to sed for $func_check_bs_ifs_broken=:, or when the string + # contains the shell wildcard characters. + case $check_ifs_backshlash_broken$func_quote_portable_result in + :*|*[\[\*\?]*) + func_quote_portable_result=`$ECHO "$func_quote_portable_result" \ + | $SED "$sed_quote_subst"` + break + ;; + esac + + func_quote_portable_old_IFS=$IFS + for _G_char in '\' '`' '"' '$' + do + # STATE($1) PREV($2) SEPARATOR($3) + set start "" "" + func_quote_portable_result=dummy"$_G_char$func_quote_portable_result$_G_char"dummy + IFS=$_G_char + for _G_part in $func_quote_portable_result + do + case $1 in + quote) + func_append func_quote_portable_result "$3$2" + set quote "$_G_part" "\\$_G_char" + ;; + start) + set first "" "" + func_quote_portable_result= + ;; + first) + set quote "$_G_part" "" + ;; + esac + done + done + IFS=$func_quote_portable_old_IFS ;; - *) - _G_quoted_arg=$_G_unquoted_arg - ;; + *) ;; esac - - if test -n "$func_quote_for_eval_result"; then - func_append func_quote_for_eval_result " $_G_quoted_arg" - else - func_append func_quote_for_eval_result "$_G_quoted_arg" - fi - shift + break done + + func_quote_portable_unquoted_result=$func_quote_portable_result + case $func_quote_portable_result in + # double-quote args containing shell metacharacters to delay + # word splitting, command substitution and variable expansion + # for a subsequent eval. + # many bourne shells cannot handle close brackets correctly + # in scan sets, so we specify it separately. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") + func_quote_portable_result=\"$func_quote_portable_result\" + ;; + esac } -# func_quote_for_expand ARG -# ------------------------- -# Aesthetically quote ARG to be evaled later; same as above, -# but do not quote variable references. -func_quote_for_expand () -{ - $debug_cmd +# func_quotefast_eval ARG +# ----------------------- +# Quote one ARG (internal). This is equivalent to 'func_quote_arg eval ARG', +# but optimized for speed. Result is stored in $func_quotefast_eval. +if test xyes = `(x=; printf -v x %q yes; echo x"$x") 2>/dev/null`; then + printf -v _GL_test_printf_tilde %q '~' + if test '\~' = "$_GL_test_printf_tilde"; then + func_quotefast_eval () + { + printf -v func_quotefast_eval_result %q "$1" + } + else + # Broken older Bash implementations. Make those faster too if possible. + func_quotefast_eval () + { + case $1 in + '~'*) + func_quote_portable false "$1" + func_quotefast_eval_result=$func_quote_portable_result + ;; + *) + printf -v func_quotefast_eval_result %q "$1" + ;; + esac + } + fi +else + func_quotefast_eval () + { + func_quote_portable false "$1" + func_quotefast_eval_result=$func_quote_portable_result + } +fi - case $1 in - *[\\\`\"]*) - _G_arg=`$ECHO "$1" | $SED \ - -e "$sed_double_quote_subst" -e "$sed_double_backslash"` ;; - *) - _G_arg=$1 ;; + +# func_quote_arg MODEs ARG +# ------------------------ +# Quote one ARG to be evaled later. MODEs argument may contain zero or more +# specifiers listed below separated by ',' character. This function returns two +# values: +# i) func_quote_arg_result +# double-quoted (when needed), suitable for a subsequent eval +# ii) func_quote_arg_unquoted_result +# has all characters that are still active within double +# quotes backslashified. Available only if 'unquoted' is specified. +# +# Available modes: +# ---------------- +# 'eval' (default) +# - escape shell special characters +# 'expand' +# - the same as 'eval'; but do not quote variable references +# 'pretty' +# - request aesthetic output, i.e. '"a b"' instead of 'a\ b'. This might +# be used later in func_quote to get output like: 'echo "a b"' instead +# of 'echo a\ b'. This is slower than default on some shells. +# 'unquoted' +# - produce also $func_quote_arg_unquoted_result which does not contain +# wrapping double-quotes. +# +# Examples for 'func_quote_arg pretty,unquoted string': +# +# string | *_result | *_unquoted_result +# ------------+-----------------------+------------------- +# " | \" | \" +# a b | "a b" | a b +# "a b" | "\"a b\"" | \"a b\" +# * | "*" | * +# z="${x-$y}" | "z=\"\${x-\$y}\"" | z=\"\${x-\$y}\" +# +# Examples for 'func_quote_arg pretty,unquoted,expand string': +# +# string | *_result | *_unquoted_result +# --------------+---------------------+-------------------- +# z="${x-$y}" | "z=\"${x-$y}\"" | z=\"${x-$y}\" +func_quote_arg () +{ + _G_quote_expand=false + case ,$1, in + *,expand,*) + _G_quote_expand=: + ;; esac - case $_G_arg in - # Double-quote args containing shell metacharacters to delay - # word splitting and command substitution for a subsequent eval. - # Many Bourne shells cannot handle close brackets correctly - # in scan sets, so we specify it separately. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"") - _G_arg=\"$_G_arg\" + case ,$1, in + *,pretty,*|*,expand,*|*,unquoted,*) + func_quote_portable $_G_quote_expand "$2" + func_quote_arg_result=$func_quote_portable_result + func_quote_arg_unquoted_result=$func_quote_portable_unquoted_result + ;; + *) + # Faster quote-for-eval for some shells. + func_quotefast_eval "$2" + func_quote_arg_result=$func_quotefast_eval_result ;; esac +} - func_quote_for_expand_result=$_G_arg + +# func_quote MODEs ARGs... +# ------------------------ +# Quote all ARGs to be evaled later and join them into single command. See +# func_quote_arg's description for more info. +func_quote () +{ + $debug_cmd + _G_func_quote_mode=$1 ; shift + func_quote_result= + while test 0 -lt $#; do + func_quote_arg "$_G_func_quote_mode" "$1" + if test -n "$func_quote_result"; then + func_append func_quote_result " $func_quote_arg_result" + else + func_append func_quote_result "$func_quote_arg_result" + fi + shift + done } @@ -1215,8 +1376,8 @@ func_show_eval () _G_cmd=$1 _G_fail_exp=${2-':'} - func_quote_for_expand "$_G_cmd" - eval "func_notquiet $func_quote_for_expand_result" + func_quote_arg pretty,expand "$_G_cmd" + eval "func_notquiet $func_quote_arg_result" $opt_dry_run || { eval "$_G_cmd" @@ -1241,8 +1402,8 @@ func_show_eval_locale () _G_fail_exp=${2-':'} $opt_quiet || { - func_quote_for_expand "$_G_cmd" - eval "func_echo $func_quote_for_expand_result" + func_quote_arg expand,pretty "$_G_cmd" + eval "func_echo $func_quote_arg_result" } $opt_dry_run || { @@ -1369,30 +1530,26 @@ func_lt_ver () # End: #! /bin/sh -# Set a version string for this script. -scriptversion=2014-01-07.03; # UTC - # A portable, pluggable option parser for Bourne shell. # Written by Gary V. Vaughan, 2010 -# Copyright (C) 2010-2015 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. - -# This program 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. +# This is free software. There is NO warranty; not even for +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. +# +# Copyright (C) 2010-2019, 2021 Bootstrap Authors +# +# This file is dual licensed under the terms of the MIT license +# , and GPL version 2 or later +# . You must apply one of +# these licenses when using or redistributing this software or any of +# the files within it. See the URLs above, or the file `LICENSE` +# included in the Bootstrap distribution for the full license texts. -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . +# Please report bugs or propose patches to: +# -# Please report bugs or propose patches to gary@gnu.org. +# Set a version string for this script. +scriptversion=2019-02-19.15; # UTC ## ------ ## @@ -1415,7 +1572,7 @@ scriptversion=2014-01-07.03; # UTC # # In order for the '--version' option to work, you will need to have a # suitably formatted comment like the one at the top of this file -# starting with '# Written by ' and ending with '# warranty; '. +# starting with '# Written by ' and ending with '# Copyright'. # # For '-h' and '--help' to work, you will also need a one line # description of your script's purpose in a comment directly above the @@ -1427,7 +1584,7 @@ scriptversion=2014-01-07.03; # UTC # to display verbose messages only when your user has specified # '--verbose'. # -# After sourcing this file, you can plug processing for additional +# After sourcing this file, you can plug in processing for additional # options by amending the variables from the 'Configuration' section # below, and following the instructions in the 'Option parsing' # section further down. @@ -1476,8 +1633,8 @@ fatal_help="Try '\$progname --help' for more information." ## ------------------------- ## # This section contains functions for adding, removing, and running hooks -# to the main code. A hook is just a named list of of function, that can -# be run in order later on. +# in the main code. A hook is just a list of function names that can be +# run in order later on. # func_hookable FUNC_NAME # ----------------------- @@ -1510,7 +1667,8 @@ func_add_hook () # func_remove_hook FUNC_NAME HOOK_FUNC # ------------------------------------ -# Remove HOOK_FUNC from the list of functions called by FUNC_NAME. +# Remove HOOK_FUNC from the list of hook functions to be called by +# FUNC_NAME. func_remove_hook () { $debug_cmd @@ -1519,10 +1677,28 @@ func_remove_hook () } +# func_propagate_result FUNC_NAME_A FUNC_NAME_B +# --------------------------------------------- +# If the *_result variable of FUNC_NAME_A _is set_, assign its value to +# *_result variable of FUNC_NAME_B. +func_propagate_result () +{ + $debug_cmd + + func_propagate_result_result=: + if eval "test \"\${${1}_result+set}\" = set" + then + eval "${2}_result=\$${1}_result" + else + func_propagate_result_result=false + fi +} + + # func_run_hooks FUNC_NAME [ARG]... # --------------------------------- # Run all hook functions registered to FUNC_NAME. -# It is assumed that the list of hook functions contains nothing more +# It's assumed that the list of hook functions contains nothing more # than a whitespace-delimited list of legal shell function names, and # no effort is wasted trying to catch shell meta-characters or preserve # whitespace. @@ -1532,22 +1708,19 @@ func_run_hooks () case " $hookable_fns " in *" $1 "*) ;; - *) func_fatal_error "'$1' does not support hook funcions.n" ;; + *) func_fatal_error "'$1' does not support hook functions." ;; esac eval _G_hook_fns=\$$1_hooks; shift for _G_hook in $_G_hook_fns; do - eval $_G_hook '"$@"' - - # store returned options list back into positional - # parameters for next 'cmd' execution. - eval _G_hook_result=\$${_G_hook}_result - eval set dummy "$_G_hook_result"; shift + func_unset "${_G_hook}_result" + eval $_G_hook '${1+"$@"}' + func_propagate_result $_G_hook func_run_hooks + if $func_propagate_result_result; then + eval set dummy "$func_run_hooks_result"; shift + fi done - - func_quote_for_eval ${1+"$@"} - func_run_hooks_result=$func_quote_for_eval_result } @@ -1557,10 +1730,18 @@ func_run_hooks () ## --------------- ## # In order to add your own option parsing hooks, you must accept the -# full positional parameter list in your hook function, remove any -# options that you action, and then pass back the remaining unprocessed -# options in '_result', escaped suitably for -# 'eval'. Like this: +# full positional parameter list from your hook function. You may remove +# or edit any options that you action, and then pass back the remaining +# unprocessed options in '_result', escaped +# suitably for 'eval'. +# +# The '_result' variable is automatically unset +# before your hook gets called; for best performance, only set the +# *_result variable when necessary (i.e. don't call the 'func_quote' +# function unnecessarily because it can be an expensive operation on some +# machines). +# +# Like this: # # my_options_prep () # { @@ -1570,9 +1751,8 @@ func_run_hooks () # usage_message=$usage_message' # -s, --silent don'\''t print informational messages # ' -# -# func_quote_for_eval ${1+"$@"} -# my_options_prep_result=$func_quote_for_eval_result +# # No change in '$@' (ignored completely by this hook). Leave +# # my_options_prep_result variable intact. # } # func_add_hook func_options_prep my_options_prep # @@ -1581,25 +1761,36 @@ func_run_hooks () # { # $debug_cmd # -# # Note that for efficiency, we parse as many options as we can +# args_changed=false +# +# # Note that, for efficiency, we parse as many options as we can # # recognise in a loop before passing the remainder back to the # # caller on the first unrecognised argument we encounter. # while test $# -gt 0; do # opt=$1; shift # case $opt in -# --silent|-s) opt_silent=: ;; +# --silent|-s) opt_silent=: +# args_changed=: +# ;; # # Separate non-argument short options: # -s*) func_split_short_opt "$_G_opt" # set dummy "$func_split_short_opt_name" \ # "-$func_split_short_opt_arg" ${1+"$@"} # shift +# args_changed=: # ;; -# *) set dummy "$_G_opt" "$*"; shift; break ;; +# *) # Make sure the first unrecognised option "$_G_opt" +# # is added back to "$@" in case we need it later, +# # if $args_changed was set to 'true'. +# set dummy "$_G_opt" ${1+"$@"}; shift; break ;; # esac # done # -# func_quote_for_eval ${1+"$@"} -# my_silent_option_result=$func_quote_for_eval_result +# # Only call 'func_quote' here if we processed at least one argument. +# if $args_changed; then +# func_quote eval ${1+"$@"} +# my_silent_option_result=$func_quote_result +# fi # } # func_add_hook func_parse_options my_silent_option # @@ -1610,17 +1801,26 @@ func_run_hooks () # # $opt_silent && $opt_verbose && func_fatal_help "\ # '--silent' and '--verbose' options are mutually exclusive." -# -# func_quote_for_eval ${1+"$@"} -# my_option_validation_result=$func_quote_for_eval_result # } # func_add_hook func_validate_options my_option_validation # -# You'll alse need to manually amend $usage_message to reflect the extra +# You'll also need to manually amend $usage_message to reflect the extra # options you parse. It's preferable to append if you can, so that # multiple option parsing hooks can be added safely. +# func_options_finish [ARG]... +# ---------------------------- +# Finishing the option parse loop (call 'func_options' hooks ATM). +func_options_finish () +{ + $debug_cmd + + func_run_hooks func_options ${1+"$@"} + func_propagate_result func_run_hooks func_options_finish +} + + # func_options [ARG]... # --------------------- # All the functions called inside func_options are hookable. See the @@ -1630,17 +1830,27 @@ func_options () { $debug_cmd - func_options_prep ${1+"$@"} - eval func_parse_options \ - ${func_options_prep_result+"$func_options_prep_result"} - eval func_validate_options \ - ${func_parse_options_result+"$func_parse_options_result"} + _G_options_quoted=false - eval func_run_hooks func_options \ - ${func_validate_options_result+"$func_validate_options_result"} + for my_func in options_prep parse_options validate_options options_finish + do + func_unset func_${my_func}_result + func_unset func_run_hooks_result + eval func_$my_func '${1+"$@"}' + func_propagate_result func_$my_func func_options + if $func_propagate_result_result; then + eval set dummy "$func_options_result"; shift + _G_options_quoted=: + fi + done - # save modified positional parameters for caller - func_options_result=$func_run_hooks_result + $_G_options_quoted || { + # As we (func_options) are top-level options-parser function and + # nobody quoted "$@" for us yet, we need to do it explicitly for + # caller. + func_quote eval ${1+"$@"} + func_options_result=$func_quote_result + } } @@ -1649,9 +1859,8 @@ func_options () # All initialisations required before starting the option parse loop. # Note that when calling hook functions, we pass through the list of # positional parameters. If a hook function modifies that list, and -# needs to propogate that back to rest of this script, then the complete -# modified list must be put in 'func_run_hooks_result' before -# returning. +# needs to propagate that back to rest of this script, then the complete +# modified list must be put in 'func_run_hooks_result' before returning. func_hookable func_options_prep func_options_prep () { @@ -1662,9 +1871,7 @@ func_options_prep () opt_warning_types= func_run_hooks func_options_prep ${1+"$@"} - - # save modified positional parameters for caller - func_options_prep_result=$func_run_hooks_result + func_propagate_result func_run_hooks func_options_prep } @@ -1676,25 +1883,32 @@ func_parse_options () { $debug_cmd - func_parse_options_result= - + _G_parse_options_requote=false # this just eases exit handling while test $# -gt 0; do # Defer to hook functions for initial option parsing, so they # get priority in the event of reusing an option name. func_run_hooks func_parse_options ${1+"$@"} - - # Adjust func_parse_options positional parameters to match - eval set dummy "$func_run_hooks_result"; shift + func_propagate_result func_run_hooks func_parse_options + if $func_propagate_result_result; then + eval set dummy "$func_parse_options_result"; shift + # Even though we may have changed "$@", we passed the "$@" array + # down into the hook and it quoted it for us (because we are in + # this if-branch). No need to quote it again. + _G_parse_options_requote=false + fi # Break out of the loop if we already parsed every option. test $# -gt 0 || break + # We expect that one of the options parsed in this function matches + # and thus we remove _G_opt from "$@" and need to re-quote. + _G_match_parse_options=: _G_opt=$1 shift case $_G_opt in --debug|-x) debug_cmd='set -x' - func_echo "enabling shell trace mode" + func_echo "enabling shell trace mode" >&2 $debug_cmd ;; @@ -1704,7 +1918,10 @@ func_parse_options () ;; --warnings|--warning|-W) - test $# = 0 && func_missing_arg $_G_opt && break + if test $# = 0 && func_missing_arg $_G_opt; then + _G_parse_options_requote=: + break + fi case " $warning_categories $1" in *" $1 "*) # trailing space prevents matching last $1 above @@ -1757,15 +1974,24 @@ func_parse_options () shift ;; - --) break ;; + --) _G_parse_options_requote=: ; break ;; -*) func_fatal_help "unrecognised option: '$_G_opt'" ;; - *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; + *) set dummy "$_G_opt" ${1+"$@"}; shift + _G_match_parse_options=false + break + ;; esac + + if $_G_match_parse_options; then + _G_parse_options_requote=: + fi done - # save modified positional parameters for caller - func_quote_for_eval ${1+"$@"} - func_parse_options_result=$func_quote_for_eval_result + if $_G_parse_options_requote; then + # save modified positional parameters for caller + func_quote eval ${1+"$@"} + func_parse_options_result=$func_quote_result + fi } @@ -1782,12 +2008,10 @@ func_validate_options () test -n "$opt_warning_types" || opt_warning_types=" $warning_categories" func_run_hooks func_validate_options ${1+"$@"} + func_propagate_result func_run_hooks func_validate_options # Bail if the options were screwed! $exit_cmd $EXIT_FAILURE - - # save modified positional parameters for caller - func_validate_options_result=$func_run_hooks_result } @@ -1843,8 +2067,8 @@ func_missing_arg () # func_split_equals STRING # ------------------------ -# Set func_split_equals_lhs and func_split_equals_rhs shell variables after -# splitting STRING at the '=' sign. +# Set func_split_equals_lhs and func_split_equals_rhs shell variables +# after splitting STRING at the '=' sign. test -z "$_G_HAVE_XSI_OPS" \ && (eval 'x=a/b/c; test 5aa/bb/cc = "${#x}${x%%/*}${x%/*}${x#*/}${x##*/}"') 2>/dev/null \ @@ -1859,8 +2083,9 @@ then func_split_equals_lhs=${1%%=*} func_split_equals_rhs=${1#*=} - test "x$func_split_equals_lhs" = "x$1" \ - && func_split_equals_rhs= + if test "x$func_split_equals_lhs" = "x$1"; then + func_split_equals_rhs= + fi }' else # ...otherwise fall back to using expr, which is often a shell builtin. @@ -1870,7 +2095,7 @@ else func_split_equals_lhs=`expr "x$1" : 'x\([^=]*\)'` func_split_equals_rhs= - test "x$func_split_equals_lhs" = "x$1" \ + test "x$func_split_equals_lhs=" = "x$1" \ || func_split_equals_rhs=`expr "x$1" : 'x[^=]*=\(.*\)$'` } fi #func_split_equals @@ -1896,7 +2121,7 @@ else { $debug_cmd - func_split_short_opt_name=`expr "x$1" : 'x-\(.\)'` + func_split_short_opt_name=`expr "x$1" : 'x\(-.\)'` func_split_short_opt_arg=`expr "x$1" : 'x-.\(.*\)$'` } fi #func_split_short_opt @@ -1938,31 +2163,44 @@ func_usage_message () # func_version # ------------ # Echo version message to standard output and exit. +# The version message is extracted from the calling file's header +# comments, with leading '# ' stripped: +# 1. First display the progname and version +# 2. Followed by the header comment line matching /^# Written by / +# 3. Then a blank line followed by the first following line matching +# /^# Copyright / +# 4. Immediately followed by any lines between the previous matches, +# except lines preceding the intervening completely blank line. +# For example, see the header comments of this file. func_version () { $debug_cmd printf '%s\n' "$progname $scriptversion" $SED -n ' - /(C)/!b go - :more - /\./!{ - N - s|\n# | | - b more - } - :go - /^# Written by /,/# warranty; / { - s|^# || - s|^# *$|| - s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| - p + /^# Written by /!b + s|^# ||; p; n + + :fwd2blnk + /./ { + n + b fwd2blnk } - /^# Written by / { - s|^# || - p + p; n + + :holdwrnt + s|^# || + s|^# *$|| + /^Copyright /!{ + /./H + n + b holdwrnt } - /^warranty; /q' < "$progpath" + + s|\((C)\)[ 0-9,-]*[ ,-]\([1-9][0-9]* \)|\1 \2| + G + s|\(\n\)\n*|\1|g + p; q' < "$progpath" exit $? } @@ -1972,12 +2210,12 @@ func_version () # mode: shell-script # sh-indentation: 2 # eval: (add-hook 'before-save-hook 'time-stamp) -# time-stamp-pattern: "10/scriptversion=%:y-%02m-%02d.%02H; # UTC" +# time-stamp-pattern: "30/scriptversion=%:y-%02m-%02d.%02H; # UTC" # time-stamp-time-zone: "UTC" # End: # Set a version string. -scriptversion='(GNU libtool) 2.4.6' +scriptversion='(GNU libtool) 2.4.7' # func_echo ARG... @@ -2068,12 +2306,12 @@ include the following information: compiler: $LTCC compiler flags: $LTCFLAGS linker: $LD (gnu? $with_gnu_ld) - version: $progname (GNU libtool) 2.4.6 + version: $progname (GNU libtool) 2.4.7 automake: `($AUTOMAKE --version) 2>/dev/null |$SED 1q` autoconf: `($AUTOCONF --version) 2>/dev/null |$SED 1q` Report bugs to . -GNU libtool home page: . +GNU libtool home page: . General help using GNU software: ." exit 0 } @@ -2270,6 +2508,8 @@ libtool_options_prep () nonopt= preserve_args= + _G_rc_lt_options_prep=: + # Shorthand for --mode=foo, only valid as the first argument case $1 in clean|clea|cle|cl) @@ -2293,11 +2533,16 @@ libtool_options_prep () uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u) shift; set dummy --mode uninstall ${1+"$@"}; shift ;; + *) + _G_rc_lt_options_prep=false + ;; esac - # Pass back the list of options. - func_quote_for_eval ${1+"$@"} - libtool_options_prep_result=$func_quote_for_eval_result + if $_G_rc_lt_options_prep; then + # Pass back the list of options. + func_quote eval ${1+"$@"} + libtool_options_prep_result=$func_quote_result + fi } func_add_hook func_options_prep libtool_options_prep @@ -2309,9 +2554,12 @@ libtool_parse_options () { $debug_cmd + _G_rc_lt_parse_options=false + # Perform our own loop to consume as many options as possible in # each iteration. while test $# -gt 0; do + _G_match_lt_parse_options=: _G_opt=$1 shift case $_G_opt in @@ -2386,15 +2634,20 @@ libtool_parse_options () func_append preserve_args " $_G_opt" ;; - # An option not handled by this hook function: - *) set dummy "$_G_opt" ${1+"$@"}; shift; break ;; + # An option not handled by this hook function: + *) set dummy "$_G_opt" ${1+"$@"} ; shift + _G_match_lt_parse_options=false + break + ;; esac + $_G_match_lt_parse_options && _G_rc_lt_parse_options=: done - - # save modified positional parameters for caller - func_quote_for_eval ${1+"$@"} - libtool_parse_options_result=$func_quote_for_eval_result + if $_G_rc_lt_parse_options; then + # save modified positional parameters for caller + func_quote eval ${1+"$@"} + libtool_parse_options_result=$func_quote_result + fi } func_add_hook func_parse_options libtool_parse_options @@ -2451,8 +2704,8 @@ libtool_validate_options () } # Pass back the unparsed argument list - func_quote_for_eval ${1+"$@"} - libtool_validate_options_result=$func_quote_for_eval_result + func_quote eval ${1+"$@"} + libtool_validate_options_result=$func_quote_result } func_add_hook func_validate_options libtool_validate_options @@ -3418,8 +3671,8 @@ func_mode_compile () esac done - func_quote_for_eval "$libobj" - test "X$libobj" != "X$func_quote_for_eval_result" \ + func_quote_arg pretty "$libobj" + test "X$libobj" != "X$func_quote_arg_result" \ && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \ && func_warning "libobj name '$libobj' may not contain shell special characters." func_dirname_and_basename "$obj" "/" "" @@ -3492,8 +3745,8 @@ compiler." func_to_tool_file "$srcfile" func_convert_file_msys_to_w32 srcfile=$func_to_tool_file_result - func_quote_for_eval "$srcfile" - qsrcfile=$func_quote_for_eval_result + func_quote_arg pretty "$srcfile" + qsrcfile=$func_quote_arg_result # Only build a PIC object if we are building libtool libraries. if test yes = "$build_libtool_libs"; then @@ -3648,7 +3901,8 @@ This mode accepts the following additional options: -prefer-non-pic try to build non-PIC objects only -shared do not build a '.o' file suitable for static linking -static only build a '.o' file suitable for static linking - -Wc,FLAG pass FLAG directly to the compiler + -Wc,FLAG + -Xcompiler FLAG pass FLAG directly to the compiler COMPILE-COMMAND is a command to be used in creating a 'standard' object file from the given SOURCEFILE. @@ -3754,6 +4008,8 @@ The following components of LINK-COMMAND are treated specially: -weak LIBNAME declare that the target provides the LIBNAME interface -Wc,FLAG -Xcompiler FLAG pass linker-specific FLAG directly to the compiler + -Wa,FLAG + -Xassembler FLAG pass linker-specific FLAG directly to the assembler -Wl,FLAG -Xlinker FLAG pass linker-specific FLAG directly to the linker -XCClinker FLAG pass link-specific FLAG to the compiler driver (CC) @@ -4096,8 +4352,8 @@ func_mode_install () case $nonopt in *shtool*) :;; *) false;; esac then # Aesthetically quote it. - func_quote_for_eval "$nonopt" - install_prog="$func_quote_for_eval_result " + func_quote_arg pretty "$nonopt" + install_prog="$func_quote_arg_result " arg=$1 shift else @@ -4107,8 +4363,8 @@ func_mode_install () # The real first argument should be the name of the installation program. # Aesthetically quote it. - func_quote_for_eval "$arg" - func_append install_prog "$func_quote_for_eval_result" + func_quote_arg pretty "$arg" + func_append install_prog "$func_quote_arg_result" install_shared_prog=$install_prog case " $install_prog " in *[\\\ /]cp\ *) install_cp=: ;; @@ -4165,12 +4421,12 @@ func_mode_install () esac # Aesthetically quote the argument. - func_quote_for_eval "$arg" - func_append install_prog " $func_quote_for_eval_result" + func_quote_arg pretty "$arg" + func_append install_prog " $func_quote_arg_result" if test -n "$arg2"; then - func_quote_for_eval "$arg2" + func_quote_arg pretty "$arg2" fi - func_append install_shared_prog " $func_quote_for_eval_result" + func_append install_shared_prog " $func_quote_arg_result" done test -z "$install_prog" && \ @@ -4181,8 +4437,8 @@ func_mode_install () if test -n "$install_override_mode" && $no_mode; then if $install_cp; then :; else - func_quote_for_eval "$install_override_mode" - func_append install_shared_prog " -m $func_quote_for_eval_result" + func_quote_arg pretty "$install_override_mode" + func_append install_shared_prog " -m $func_quote_arg_result" fi fi @@ -4478,8 +4734,8 @@ func_mode_install () relink_command=`$ECHO "$relink_command" | $SED 's%@OUTPUT@%'"$outputname"'%g'` $opt_quiet || { - func_quote_for_expand "$relink_command" - eval "func_echo $func_quote_for_expand_result" + func_quote_arg expand,pretty "$relink_command" + eval "func_echo $func_quote_arg_result" } if eval "$relink_command"; then : else @@ -5258,7 +5514,8 @@ else if test \"\$libtool_execute_magic\" != \"$magic\"; then file=\"\$0\"" - qECHO=`$ECHO "$ECHO" | $SED "$sed_quote_subst"` + func_quote_arg pretty "$ECHO" + qECHO=$func_quote_arg_result $ECHO "\ # A function that is used when there is no print builtin or printf. @@ -5268,7 +5525,7 @@ func_fallback_echo () \$1 _LTECHO_EOF' } - ECHO=\"$qECHO\" + ECHO=$qECHO fi # Very basic option parsing. These options are (a) specific to @@ -6611,9 +6868,9 @@ func_mode_link () while test "$#" -gt 0; do arg=$1 shift - func_quote_for_eval "$arg" - qarg=$func_quote_for_eval_unquoted_result - func_append libtool_args " $func_quote_for_eval_result" + func_quote_arg pretty,unquoted "$arg" + qarg=$func_quote_arg_unquoted_result + func_append libtool_args " $func_quote_arg_result" # If the previous option needs an argument, assign it. if test -n "$prev"; then @@ -6849,6 +7106,13 @@ func_mode_link () prev= continue ;; + xassembler) + func_append compiler_flags " -Xassembler $qarg" + prev= + func_append compile_command " -Xassembler $qarg" + func_append finalize_command " -Xassembler $qarg" + continue + ;; xcclinker) func_append linker_flags " $qarg" func_append compiler_flags " $qarg" @@ -7019,7 +7283,7 @@ func_mode_link () # These systems don't actually have a C library (as such) test X-lc = "X$arg" && continue ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) # Do not include libc due to us having libc/libc_r. test X-lc = "X$arg" && continue ;; @@ -7039,7 +7303,7 @@ func_mode_link () esac elif test X-lc_r = "X$arg"; then case $host in - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig*) + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-bitrig* | *-*-midnightbsd*) # Do not include libc_r directly, use -pthread flag. continue ;; @@ -7069,8 +7333,20 @@ func_mode_link () prev=xcompiler continue ;; - - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe \ + # Solaris ld rejects as of 11.4. Refer to Oracle bug 22985199. + -pthread) + case $host in + *solaris2*) ;; + *) + case "$new_inherited_linker_flags " in + *" $arg "*) ;; + * ) func_append new_inherited_linker_flags " $arg" ;; + esac + ;; + esac + continue + ;; + -mt|-mthreads|-kthread|-Kthread|-pthreads|--thread-safe \ |-threads|-fopenmp|-openmp|-mp|-xopenmp|-omp|-qsmp=*) func_append compiler_flags " $arg" func_append compile_command " $arg" @@ -7211,9 +7487,9 @@ func_mode_link () save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs - func_quote_for_eval "$flag" - func_append arg " $func_quote_for_eval_result" - func_append compiler_flags " $func_quote_for_eval_result" + func_quote_arg pretty "$flag" + func_append arg " $func_quote_arg_result" + func_append compiler_flags " $func_quote_arg_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" @@ -7227,16 +7503,21 @@ func_mode_link () save_ifs=$IFS; IFS=, for flag in $args; do IFS=$save_ifs - func_quote_for_eval "$flag" - func_append arg " $wl$func_quote_for_eval_result" - func_append compiler_flags " $wl$func_quote_for_eval_result" - func_append linker_flags " $func_quote_for_eval_result" + func_quote_arg pretty "$flag" + func_append arg " $wl$func_quote_arg_result" + func_append compiler_flags " $wl$func_quote_arg_result" + func_append linker_flags " $func_quote_arg_result" done IFS=$save_ifs func_stripname ' ' '' "$arg" arg=$func_stripname_result ;; + -Xassembler) + prev=xassembler + continue + ;; + -Xcompiler) prev=xcompiler continue @@ -7254,8 +7535,8 @@ func_mode_link () # -msg_* for osf cc -msg_*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result + func_quote_arg pretty "$arg" + arg=$func_quote_arg_result ;; # Flags to be passed through unchanged, with rationale: @@ -7274,12 +7555,18 @@ func_mode_link () # -O*, -g*, -flto*, -fwhopr*, -fuse-linker-plugin GCC link-time optimization # -specs=* GCC specs files # -stdlib=* select c++ std lib with clang + # -fsanitize=* Clang/GCC memory and address sanitizer + # -fuse-ld=* Linker select flags for GCC + # -Wa,* Pass flags directly to the assembler -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \ -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*|--sysroot=*| \ -O*|-g*|-flto*|-fwhopr*|-fuse-linker-plugin|-fstack-protector*|-stdlib=*| \ - -specs=*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result + -fopenacc|-fopenmp|-ftree-parallelize-loops=*|-fcilkplus|-fgnu-tm| \ + -ffast-math|-funsafe-math-optimizations|-fvtable-verify*| \ + -shared-libgcc|-static-libgcc|-static-libgfortran|-static-libstdc++| \ + -specs=*|-fsanitize=*|-fuse-ld=*|-Wa,*) + func_quote_arg pretty "$arg" + arg=$func_quote_arg_result func_append compile_command " $arg" func_append finalize_command " $arg" func_append compiler_flags " $arg" @@ -7300,15 +7587,15 @@ func_mode_link () continue else # Otherwise treat like 'Some other compiler flag' below - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result + func_quote_arg pretty "$arg" + arg=$func_quote_arg_result fi ;; # Some other compiler flag. -* | +*) - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result + func_quote_arg pretty "$arg" + arg=$func_quote_arg_result ;; *.$objext) @@ -7428,8 +7715,8 @@ func_mode_link () *) # Unknown arguments in both finalize_command and compile_command need # to be aesthetically quoted because they are evaled later. - func_quote_for_eval "$arg" - arg=$func_quote_for_eval_result + func_quote_arg pretty "$arg" + arg=$func_quote_arg_result ;; esac # arg @@ -7764,8 +8051,15 @@ func_mode_link () fi case $linkmode in lib) - # Linking convenience modules into shared libraries is allowed, - # but linking other static libraries is non-portable. + # Linking convenience modules and compiler provided static libraries + # into shared libraries is allowed, but linking other static + # libraries is non-portable. + case $deplib in + */libgcc*.$libext | */libclang_rt*.$libext) + deplibs="$deplib $deplibs" + continue + ;; + esac case " $dlpreconveniencelibs " in *" $deplib "*) ;; *) @@ -8634,7 +8928,7 @@ func_mode_link () test CXX = "$tagname" && { case $host_os in linux*) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 func_suncc_cstd_abi @@ -8807,7 +9101,7 @@ func_mode_link () # case $version_type in # correct linux to gnu/linux during the next big refactor - darwin|freebsd-elf|linux|osf|windows|none) + darwin|freebsd-elf|linux|midnightbsd-elf|osf|windows|none) func_arith $number_major + $number_minor current=$func_arith_result age=$number_minor @@ -8898,7 +9192,7 @@ func_mode_link () versuffix=.$current.$revision ;; - freebsd-elf) + freebsd-elf | midnightbsd-elf) func_arith $current - $age major=.$func_arith_result versuffix=$major.$age.$revision @@ -9124,7 +9418,7 @@ func_mode_link () *-*-netbsd*) # Don't link with libc until the a.out ld.so is fixed. ;; - *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*) + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly* | *-*-midnightbsd*) # Do not include libc due to us having libc/libc_r. ;; *-*-sco3.2v5* | *-*-sco5v6*) @@ -9935,8 +10229,8 @@ EOF for cmd in $concat_cmds; do IFS=$save_ifs $opt_quiet || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" + func_quote_arg expand,pretty "$cmd" + eval "func_echo $func_quote_arg_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? @@ -10029,8 +10323,8 @@ EOF eval cmd=\"$cmd\" IFS=$save_ifs $opt_quiet || { - func_quote_for_expand "$cmd" - eval "func_echo $func_quote_for_expand_result" + func_quote_arg expand,pretty "$cmd" + eval "func_echo $func_quote_arg_result" } $opt_dry_run || eval "$cmd" || { lt_exit=$? @@ -10504,12 +10798,13 @@ EOF elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + func_quote_arg pretty "$var_value" + relink_command="$var=$func_quote_arg_result; export $var; $relink_command" fi done - relink_command="(cd `pwd`; $relink_command)" - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + func_quote eval cd "`pwd`" + func_quote_arg pretty,unquoted "($func_quote_result; $relink_command)" + relink_command=$func_quote_arg_unquoted_result fi # Only actually do things if not in dry run mode. @@ -10749,13 +11044,15 @@ EOF elif eval var_value=\$$var; test -z "$var_value"; then relink_command="$var=; export $var; $relink_command" else - func_quote_for_eval "$var_value" - relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command" + func_quote_arg pretty,unquoted "$var_value" + relink_command="$var=$func_quote_arg_unquoted_result; export $var; $relink_command" fi done # Quote the link command for shipping. - relink_command="(cd `pwd`; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" - relink_command=`$ECHO "$relink_command" | $SED "$sed_quote_subst"` + func_quote eval cd "`pwd`" + relink_command="($func_quote_result; $SHELL \"$progpath\" $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)" + func_quote_arg pretty,unquoted "$relink_command" + relink_command=$func_quote_arg_unquoted_result if test yes = "$hardcode_automatic"; then relink_command= fi diff --git a/libesedb-sys/libesedb-20210424/m4/common.m4 b/libesedb-sys/libesedb-20230824/m4/common.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/common.m4 rename to libesedb-sys/libesedb-20230824/m4/common.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/gettext.m4 b/libesedb-sys/libesedb-20230824/m4/gettext.m4 similarity index 77% rename from libesedb-sys/libesedb-20210424/m4/gettext.m4 rename to libesedb-sys/libesedb-20230824/m4/gettext.m4 index f84e6a5..4f25a27 100644 --- a/libesedb-sys/libesedb-20210424/m4/gettext.m4 +++ b/libesedb-sys/libesedb-20230824/m4/gettext.m4 @@ -1,16 +1,16 @@ -# gettext.m4 serial 63 (gettext-0.18) -dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. +# gettext.m4 serial 71 (gettext-0.20.2) +dnl Copyright (C) 1995-2014, 2016, 2018-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Lesser General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. +dnl by the GNU Lesser General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: @@ -20,22 +20,20 @@ dnl Bruno Haible , 2000-2006, 2008-2010. dnl Macro to add for using GNU gettext. dnl Usage: AM_GNU_GETTEXT([INTLSYMBOL], [NEEDSYMBOL], [INTLDIR]). -dnl INTLSYMBOL can be one of 'external', 'no-libtool', 'use-libtool'. The -dnl default (if it is not specified or empty) is 'no-libtool'. -dnl INTLSYMBOL should be 'external' for packages with no intl directory, -dnl and 'no-libtool' or 'use-libtool' for packages with an intl directory. +dnl INTLSYMBOL must be one of 'external', 'use-libtool'. +dnl INTLSYMBOL should be 'external' for packages other than GNU gettext, and +dnl 'use-libtool' for the packages 'gettext-runtime' and 'gettext-tools'. dnl If INTLSYMBOL is 'use-libtool', then a libtool library dnl $(top_builddir)/intl/libintl.la will be created (shared and/or static, dnl depending on --{enable,disable}-{shared,static} and on the presence of -dnl AM-DISABLE-SHARED). If INTLSYMBOL is 'no-libtool', a static library -dnl $(top_builddir)/intl/libintl.a will be created. +dnl AM-DISABLE-SHARED). dnl If NEEDSYMBOL is specified and is 'need-ngettext', then GNU gettext dnl implementations (in libc or libintl) without the ngettext() function dnl will be ignored. If NEEDSYMBOL is specified and is dnl 'need-formatstring-macros', then GNU gettext implementations that don't dnl support the ISO C 99 formatstring macros will be ignored. dnl INTLDIR is used to find the intl libraries. If empty, -dnl the value `$(top_builddir)/intl/' is used. +dnl the value '$(top_builddir)/intl/' is used. dnl dnl The result of the configuration is one of three cases: dnl 1) GNU gettext, as included in the intl subdirectory, will be compiled @@ -57,19 +55,17 @@ dnl AC_DEFUN([AM_GNU_GETTEXT], [ dnl Argument checking. - ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [no-libtool], , [ifelse([$1], [use-libtool], , + ifelse([$1], [], , [ifelse([$1], [external], , [ifelse([$1], [use-libtool], , [errprint([ERROR: invalid first argument to AM_GNU_GETTEXT -])])])])]) +])])])]) ifelse(ifelse([$1], [], [old])[]ifelse([$1], [no-libtool], [old]), [old], - [AC_DIAGNOSE([obsolete], [Use of AM_GNU_GETTEXT without [external] argument is deprecated.])]) + [errprint([ERROR: Use of AM_GNU_GETTEXT without [external] argument is no longer supported. +])]) ifelse([$2], [], , [ifelse([$2], [need-ngettext], , [ifelse([$2], [need-formatstring-macros], , [errprint([ERROR: invalid second argument to AM_GNU_GETTEXT ])])])]) define([gt_included_intl], - ifelse([$1], [external], - ifdef([AM_GNU_GETTEXT_][INTL_SUBDIR], [yes], [no]), - [yes])) - define([gt_libtool_suffix_prefix], ifelse([$1], [use-libtool], [l], [])) + ifelse([$1], [external], [no], [yes])) gt_NEEDS_INIT AM_GNU_GETTEXT_NEED([$2]) @@ -91,13 +87,12 @@ AC_DEFUN([AM_GNU_GETTEXT], dnl again, outside any 'if'. There are two solutions: dnl - Invoke AM_ICONV_LINKFLAGS_BODY here, outside any 'if'. dnl - Control the expansions in more detail using AC_PROVIDE_IFELSE. - dnl Since AC_PROVIDE_IFELSE is only in autoconf >= 2.52 and not - dnl documented, we avoid it. + dnl Since AC_PROVIDE_IFELSE is not documented, we avoid it. ifelse(gt_included_intl, yes, , [ AC_REQUIRE([AM_ICONV_LINKFLAGS_BODY]) ]) - dnl Sometimes, on MacOS X, libintl requires linking with CoreFoundation. + dnl Sometimes, on Mac OS X, libintl requires linking with CoreFoundation. gt_INTL_MACOSX dnl Set USE_NLS. @@ -157,12 +152,23 @@ changequote([,])dnl fi AC_CACHE_CHECK([for GNU gettext in libc], [$gt_func_gnugettext_libc], - [AC_TRY_LINK([#include -$gt_revision_test_code + [AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; -extern int *_nl_domain_bindings;], - [bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings], +extern int *_nl_domain_bindings; +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_domain_bindings) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + ]], + [[ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ]])], [eval "$gt_func_gnugettext_libc=yes"], [eval "$gt_func_gnugettext_libc=no"])]) @@ -183,35 +189,57 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_b gt_save_LIBS="$LIBS" LIBS="$LIBS $LIBINTL" dnl Now see whether libintl exists and does not depend on libiconv. - AC_TRY_LINK([#include -$gt_revision_test_code + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif -const char *_nl_expand_alias (const char *);], - [bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], +const char *_nl_expand_alias (const char *); +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + ]], + [[ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ]])], [eval "$gt_func_gnugettext_libintl=yes"], [eval "$gt_func_gnugettext_libintl=no"]) dnl Now see whether libintl exists and depends on libiconv. if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then LIBS="$LIBS $LIBICONV" - AC_TRY_LINK([#include -$gt_revision_test_code + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#ifndef __GNU_GETTEXT_SUPPORTED_REVISION extern int _nl_msg_cat_cntr; extern #ifdef __cplusplus "C" #endif -const char *_nl_expand_alias (const char *);], - [bindtextdomain ("", ""); -return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("")], - [LIBINTL="$LIBINTL $LIBICONV" - LTLIBINTL="$LTLIBINTL $LTLIBICONV" - eval "$gt_func_gnugettext_libintl=yes" - ]) +const char *_nl_expand_alias (const char *); +#define __GNU_GETTEXT_SYMBOL_EXPRESSION (_nl_msg_cat_cntr + *_nl_expand_alias ("")) +#else +#define __GNU_GETTEXT_SYMBOL_EXPRESSION 0 +#endif +$gt_revision_test_code + ]], + [[ +bindtextdomain ("", ""); +return * gettext ("")$gt_expression_test_code + __GNU_GETTEXT_SYMBOL_EXPRESSION + ]])], + [LIBINTL="$LIBINTL $LIBICONV" + LTLIBINTL="$LTLIBINTL $LTLIBICONV" + eval "$gt_func_gnugettext_libintl=yes" + ]) fi CPPFLAGS="$gt_save_CPPFLAGS" LIBS="$gt_save_LIBS"]) @@ -245,8 +273,8 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a dnl Mark actions used to generate GNU NLS library. BUILD_INCLUDED_LIBINTL=yes USE_INCLUDED_LIBINTL=yes - LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LIBICONV $LIBTHREAD" - LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.[]gt_libtool_suffix_prefix[]a $LTLIBICONV $LTLIBTHREAD" + LIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LIBICONV $LIBTHREAD" + LTLIBINTL="ifelse([$3],[],\${top_builddir}/intl,[$3])/libintl.la $LTLIBICONV $LTLIBTHREAD" LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` fi @@ -314,43 +342,14 @@ return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_a fi ifelse(gt_included_intl, yes, [ - dnl If this is used in GNU gettext we have to set BUILD_INCLUDED_LIBINTL - dnl to 'yes' because some of the testsuite requires it. - if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then - BUILD_INCLUDED_LIBINTL=yes - fi + dnl In GNU gettext we have to set BUILD_INCLUDED_LIBINTL to 'yes' + dnl because some of the testsuite requires it. + BUILD_INCLUDED_LIBINTL=yes dnl Make all variables we use known to autoconf. AC_SUBST([BUILD_INCLUDED_LIBINTL]) AC_SUBST([USE_INCLUDED_LIBINTL]) AC_SUBST([CATOBJEXT]) - - dnl For backward compatibility. Some configure.ins may be using this. - nls_cv_header_intl= - nls_cv_header_libgt= - - dnl For backward compatibility. Some Makefiles may be using this. - DATADIRNAME=share - AC_SUBST([DATADIRNAME]) - - dnl For backward compatibility. Some Makefiles may be using this. - INSTOBJEXT=.mo - AC_SUBST([INSTOBJEXT]) - - dnl For backward compatibility. Some Makefiles may be using this. - GENCAT=gencat - AC_SUBST([GENCAT]) - - dnl For backward compatibility. Some Makefiles may be using this. - INTLOBJS= - if test "$USE_INCLUDED_LIBINTL" = yes; then - INTLOBJS="\$(GETTOBJS)" - fi - AC_SUBST([INTLOBJS]) - - dnl Enable libtool support if the surrounding package wishes it. - INTL_LIBTOOL_SUFFIX_PREFIX=gt_libtool_suffix_prefix - AC_SUBST([INTL_LIBTOOL_SUFFIX_PREFIX]) ]) dnl For backward compatibility. Some Makefiles may be using this. @@ -381,3 +380,7 @@ AC_DEFUN([AM_GNU_GETTEXT_NEED], dnl Usage: AM_GNU_GETTEXT_VERSION([gettext-version]) AC_DEFUN([AM_GNU_GETTEXT_VERSION], []) + + +dnl Usage: AM_GNU_GETTEXT_REQUIRE_VERSION([gettext-version]) +AC_DEFUN([AM_GNU_GETTEXT_REQUIRE_VERSION], []) diff --git a/libesedb-sys/libesedb-20230824/m4/host-cpu-c-abi.m4 b/libesedb-sys/libesedb-20230824/m4/host-cpu-c-abi.m4 new file mode 100644 index 0000000..6db2aa2 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/m4/host-cpu-c-abi.m4 @@ -0,0 +1,675 @@ +# host-cpu-c-abi.m4 serial 13 +dnl Copyright (C) 2002-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible and Sam Steingold. + +dnl Sets the HOST_CPU variable to the canonical name of the CPU. +dnl Sets the HOST_CPU_C_ABI variable to the canonical name of the CPU with its +dnl C language ABI (application binary interface). +dnl Also defines __${HOST_CPU}__ and __${HOST_CPU_C_ABI}__ as C macros in +dnl config.h. +dnl +dnl This canonical name can be used to select a particular assembly language +dnl source file that will interoperate with C code on the given host. +dnl +dnl For example: +dnl * 'i386' and 'sparc' are different canonical names, because code for i386 +dnl will not run on SPARC CPUs and vice versa. They have different +dnl instruction sets. +dnl * 'sparc' and 'sparc64' are different canonical names, because code for +dnl 'sparc' and code for 'sparc64' cannot be linked together: 'sparc' code +dnl contains 32-bit instructions, whereas 'sparc64' code contains 64-bit +dnl instructions. A process on a SPARC CPU can be in 32-bit mode or in 64-bit +dnl mode, but not both. +dnl * 'mips' and 'mipsn32' are different canonical names, because they use +dnl different argument passing and return conventions for C functions, and +dnl although the instruction set of 'mips' is a large subset of the +dnl instruction set of 'mipsn32'. +dnl * 'mipsn32' and 'mips64' are different canonical names, because they use +dnl different sizes for the C types like 'int' and 'void *', and although +dnl the instruction sets of 'mipsn32' and 'mips64' are the same. +dnl * The same canonical name is used for different endiannesses. You can +dnl determine the endianness through preprocessor symbols: +dnl - 'arm': test __ARMEL__. +dnl - 'mips', 'mipsn32', 'mips64': test _MIPSEB vs. _MIPSEL. +dnl - 'powerpc64': test _BIG_ENDIAN vs. _LITTLE_ENDIAN. +dnl * The same name 'i386' is used for CPUs of type i386, i486, i586 +dnl (Pentium), AMD K7, Pentium II, Pentium IV, etc., because +dnl - Instructions that do not exist on all of these CPUs (cmpxchg, +dnl MMX, SSE, SSE2, 3DNow! etc.) are not frequently used. If your +dnl assembly language source files use such instructions, you will +dnl need to make the distinction. +dnl - Speed of execution of the common instruction set is reasonable across +dnl the entire family of CPUs. If you have assembly language source files +dnl that are optimized for particular CPU types (like GNU gmp has), you +dnl will need to make the distinction. +dnl See . +AC_DEFUN([gl_HOST_CPU_C_ABI], +[ + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([gl_C_ASM]) + AC_CACHE_CHECK([host CPU and C ABI], [gl_cv_host_cpu_c_abi], + [case "$host_cpu" in + +changequote(,)dnl + i[34567]86 ) +changequote([,])dnl + gl_cv_host_cpu_c_abi=i386 + ;; + + x86_64 ) + # On x86_64 systems, the C compiler may be generating code in one of + # these ABIs: + # - 64-bit instruction set, 64-bit pointers, 64-bit 'long': x86_64. + # - 64-bit instruction set, 64-bit pointers, 32-bit 'long': x86_64 + # with native Windows (mingw, MSVC). + # - 64-bit instruction set, 32-bit pointers, 32-bit 'long': x86_64-x32. + # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': i386. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if (defined __x86_64__ || defined __amd64__ \ + || defined _M_X64 || defined _M_AMD64) + int ok; + #else + error fail + #endif + ]])], + [AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __ILP32__ || defined _ILP32 + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=x86_64-x32], + [gl_cv_host_cpu_c_abi=x86_64])], + [gl_cv_host_cpu_c_abi=i386]) + ;; + +changequote(,)dnl + alphaev[4-8] | alphaev56 | alphapca5[67] | alphaev6[78] ) +changequote([,])dnl + gl_cv_host_cpu_c_abi=alpha + ;; + + arm* | aarch64 ) + # Assume arm with EABI. + # On arm64 systems, the C compiler may be generating code in one of + # these ABIs: + # - aarch64 instruction set, 64-bit pointers, 64-bit 'long': arm64. + # - aarch64 instruction set, 32-bit pointers, 32-bit 'long': arm64-ilp32. + # - 32-bit instruction set, 32-bit pointers, 32-bit 'long': arm or armhf. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#ifdef __aarch64__ + int ok; + #else + error fail + #endif + ]])], + [AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __ILP32__ || defined _ILP32 + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=arm64-ilp32], + [gl_cv_host_cpu_c_abi=arm64])], + [# Don't distinguish little-endian and big-endian arm, since they + # don't require different machine code for simple operations and + # since the user can distinguish them through the preprocessor + # defines __ARMEL__ vs. __ARMEB__. + # But distinguish arm which passes floating-point arguments and + # return values in integer registers (r0, r1, ...) - this is + # gcc -mfloat-abi=soft or gcc -mfloat-abi=softfp - from arm which + # passes them in float registers (s0, s1, ...) and double registers + # (d0, d1, ...) - this is gcc -mfloat-abi=hard. GCC 4.6 or newer + # sets the preprocessor defines __ARM_PCS (for the first case) and + # __ARM_PCS_VFP (for the second case), but older GCC does not. + echo 'double ddd; void func (double dd) { ddd = dd; }' > conftest.c + # Look for a reference to the register d0 in the .s file. + AC_TRY_COMMAND(${CC-cc} $CFLAGS $CPPFLAGS $gl_c_asm_opt conftest.c) >/dev/null 2>&1 + if LC_ALL=C grep 'd0,' conftest.$gl_asmext >/dev/null; then + gl_cv_host_cpu_c_abi=armhf + else + gl_cv_host_cpu_c_abi=arm + fi + rm -f conftest* + ]) + ;; + + hppa1.0 | hppa1.1 | hppa2.0* | hppa64 ) + # On hppa, the C compiler may be generating 32-bit code or 64-bit + # code. In the latter case, it defines _LP64 and __LP64__. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#ifdef __LP64__ + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=hppa64], + [gl_cv_host_cpu_c_abi=hppa]) + ;; + + ia64* ) + # On ia64 on HP-UX, the C compiler may be generating 64-bit code or + # 32-bit code. In the latter case, it defines _ILP32. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#ifdef _ILP32 + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=ia64-ilp32], + [gl_cv_host_cpu_c_abi=ia64]) + ;; + + mips* ) + # We should also check for (_MIPS_SZPTR == 64), but gcc keeps this + # at 32. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined _MIPS_SZLONG && (_MIPS_SZLONG == 64) + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=mips64], + [# In the n32 ABI, _ABIN32 is defined, _ABIO32 is not defined (but + # may later get defined by ), and _MIPS_SIM == _ABIN32. + # In the 32 ABI, _ABIO32 is defined, _ABIN32 is not defined (but + # may later get defined by ), and _MIPS_SIM == _ABIO32. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if (_MIPS_SIM == _ABIN32) + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=mipsn32], + [gl_cv_host_cpu_c_abi=mips])]) + ;; + + powerpc* ) + # Different ABIs are in use on AIX vs. Mac OS X vs. Linux,*BSD. + # No need to distinguish them here; the caller may distinguish + # them based on the OS. + # On powerpc64 systems, the C compiler may still be generating + # 32-bit code. And on powerpc-ibm-aix systems, the C compiler may + # be generating 64-bit code. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __powerpc64__ || defined _ARCH_PPC64 + int ok; + #else + error fail + #endif + ]])], + [# On powerpc64, there are two ABIs on Linux: The AIX compatible + # one and the ELFv2 one. The latter defines _CALL_ELF=2. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined _CALL_ELF && _CALL_ELF == 2 + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=powerpc64-elfv2], + [gl_cv_host_cpu_c_abi=powerpc64]) + ], + [gl_cv_host_cpu_c_abi=powerpc]) + ;; + + rs6000 ) + gl_cv_host_cpu_c_abi=powerpc + ;; + + riscv32 | riscv64 ) + # There are 2 architectures (with variants): rv32* and rv64*. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if __riscv_xlen == 64 + int ok; + #else + error fail + #endif + ]])], + [cpu=riscv64], + [cpu=riscv32]) + # There are 6 ABIs: ilp32, ilp32f, ilp32d, lp64, lp64f, lp64d. + # Size of 'long' and 'void *': + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __LP64__ + int ok; + #else + error fail + #endif + ]])], + [main_abi=lp64], + [main_abi=ilp32]) + # Float ABIs: + # __riscv_float_abi_double: + # 'float' and 'double' are passed in floating-point registers. + # __riscv_float_abi_single: + # 'float' are passed in floating-point registers. + # __riscv_float_abi_soft: + # No values are passed in floating-point registers. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __riscv_float_abi_double + int ok; + #else + error fail + #endif + ]])], + [float_abi=d], + [AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __riscv_float_abi_single + int ok; + #else + error fail + #endif + ]])], + [float_abi=f], + [float_abi='']) + ]) + gl_cv_host_cpu_c_abi="${cpu}-${main_abi}${float_abi}" + ;; + + s390* ) + # On s390x, the C compiler may be generating 64-bit (= s390x) code + # or 31-bit (= s390) code. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __LP64__ || defined __s390x__ + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=s390x], + [gl_cv_host_cpu_c_abi=s390]) + ;; + + sparc | sparc64 ) + # UltraSPARCs running Linux have `uname -m` = "sparc64", but the + # C compiler still generates 32-bit code. + AC_COMPILE_IFELSE( + [AC_LANG_SOURCE( + [[#if defined __sparcv9 || defined __arch64__ + int ok; + #else + error fail + #endif + ]])], + [gl_cv_host_cpu_c_abi=sparc64], + [gl_cv_host_cpu_c_abi=sparc]) + ;; + + *) + gl_cv_host_cpu_c_abi="$host_cpu" + ;; + esac + ]) + + dnl In most cases, $HOST_CPU and $HOST_CPU_C_ABI are the same. + HOST_CPU=`echo "$gl_cv_host_cpu_c_abi" | sed -e 's/-.*//'` + HOST_CPU_C_ABI="$gl_cv_host_cpu_c_abi" + AC_SUBST([HOST_CPU]) + AC_SUBST([HOST_CPU_C_ABI]) + + # This was + # AC_DEFINE_UNQUOTED([__${HOST_CPU}__]) + # AC_DEFINE_UNQUOTED([__${HOST_CPU_C_ABI}__]) + # earlier, but KAI C++ 3.2d doesn't like this. + sed -e 's/-/_/g' >> confdefs.h < -#include ], - [iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd);], + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#include + ]], + [[iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);]])], [am_cv_func_iconv=yes]) if test "$am_cv_func_iconv" != yes; then am_save_LIBS="$LIBS" LIBS="$LIBS $LIBICONV" - AC_TRY_LINK([#include -#include ], - [iconv_t cd = iconv_open("",""); - iconv(cd,NULL,NULL,NULL,NULL); - iconv_close(cd);], + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[ +#include +#include + ]], + [[iconv_t cd = iconv_open("",""); + iconv(cd,NULL,NULL,NULL,NULL); + iconv_close(cd);]])], [am_cv_lib_iconv=yes] [am_cv_func_iconv=yes]) LIBS="$am_save_LIBS" @@ -58,33 +67,43 @@ AC_DEFUN([AM_ICONV_LINK], ]) if test "$am_cv_func_iconv" = yes; then AC_CACHE_CHECK([for working iconv], [am_cv_func_iconv_works], [ - dnl This tests against bugs in AIX 5.1, HP-UX 11.11, Solaris 10. + dnl This tests against bugs in AIX 5.1, AIX 6.1..7.1, HP-UX 11.11, + dnl Solaris 10. am_save_LIBS="$LIBS" if test $am_cv_lib_iconv = yes; then LIBS="$LIBS $LIBICONV" fi - AC_TRY_RUN([ + am_cv_func_iconv_works=no + for ac_iconv_const in '' 'const'; do + AC_RUN_IFELSE( + [AC_LANG_PROGRAM( + [[ #include #include -int main () -{ + +#ifndef ICONV_CONST +# define ICONV_CONST $ac_iconv_const +#endif + ]], + [[int result = 0; /* Test against AIX 5.1 bug: Failures are not distinguishable from successful returns. */ { iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); if (cd_utf8_to_88591 != (iconv_t)(-1)) { - static const char input[] = "\342\202\254"; /* EURO SIGN */ + static ICONV_CONST char input[] = "\342\202\254"; /* EURO SIGN */ char buf[10]; - const char *inptr = input; + ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_utf8_to_88591, - (char **) &inptr, &inbytesleft, + &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) - return 1; + result |= 1; + iconv_close (cd_utf8_to_88591); } } /* Test against Solaris 10 bug: Failures are not distinguishable from @@ -93,17 +112,37 @@ int main () iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); if (cd_ascii_to_88591 != (iconv_t)(-1)) { - static const char input[] = "\263"; + static ICONV_CONST char input[] = "\263"; char buf[10]; - const char *inptr = input; + ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_ascii_to_88591, - (char **) &inptr, &inbytesleft, + &inptr, &inbytesleft, &outptr, &outbytesleft); if (res == 0) - return 1; + result |= 2; + iconv_close (cd_ascii_to_88591); + } + } + /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ + { + iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); + if (cd_88591_to_utf8 != (iconv_t)(-1)) + { + static ICONV_CONST char input[] = "\304"; + static char buf[2] = { (char)0xDE, (char)0xAD }; + ICONV_CONST char *inptr = input; + size_t inbytesleft = 1; + char *outptr = buf; + size_t outbytesleft = 1; + size_t res = iconv (cd_88591_to_utf8, + &inptr, &inbytesleft, + &outptr, &outbytesleft); + if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) + result |= 4; + iconv_close (cd_88591_to_utf8); } } #if 0 /* This bug could be worked around by the caller. */ @@ -112,37 +151,53 @@ int main () iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); if (cd_88591_to_utf8 != (iconv_t)(-1)) { - static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; + static ICONV_CONST char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; char buf[50]; - const char *inptr = input; + ICONV_CONST char *inptr = input; size_t inbytesleft = strlen (input); char *outptr = buf; size_t outbytesleft = sizeof (buf); size_t res = iconv (cd_88591_to_utf8, - (char **) &inptr, &inbytesleft, + &inptr, &inbytesleft, &outptr, &outbytesleft); if ((int)res > 0) - return 1; + result |= 8; + iconv_close (cd_88591_to_utf8); } } #endif /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is provided. */ - if (/* Try standardized names. */ - iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) - /* Try IRIX, OSF/1 names. */ - && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) - /* Try AIX names. */ - && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) - /* Try HP-UX names. */ - && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) - return 1; - return 0; -}], [am_cv_func_iconv_works=yes], [am_cv_func_iconv_works=no], - [case "$host_os" in - aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; - *) am_cv_func_iconv_works="guessing yes" ;; - esac]) + { + /* Try standardized names. */ + iconv_t cd1 = iconv_open ("UTF-8", "EUC-JP"); + /* Try IRIX, OSF/1 names. */ + iconv_t cd2 = iconv_open ("UTF-8", "eucJP"); + /* Try AIX names. */ + iconv_t cd3 = iconv_open ("UTF-8", "IBM-eucJP"); + /* Try HP-UX names. */ + iconv_t cd4 = iconv_open ("utf8", "eucJP"); + if (cd1 == (iconv_t)(-1) && cd2 == (iconv_t)(-1) + && cd3 == (iconv_t)(-1) && cd4 == (iconv_t)(-1)) + result |= 16; + if (cd1 != (iconv_t)(-1)) + iconv_close (cd1); + if (cd2 != (iconv_t)(-1)) + iconv_close (cd2); + if (cd3 != (iconv_t)(-1)) + iconv_close (cd3); + if (cd4 != (iconv_t)(-1)) + iconv_close (cd4); + } + return result; +]])], + [am_cv_func_iconv_works=yes], , + [case "$host_os" in + aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; + *) am_cv_func_iconv_works="guessing yes" ;; + esac]) + test "$am_cv_func_iconv_works" = no || break + done LIBS="$am_save_LIBS" ]) case "$am_cv_func_iconv_works" in @@ -183,32 +238,51 @@ m4_define([gl_iconv_AC_DEFUN], m4_version_prereq([2.64], [[AC_DEFUN_ONCE( [$1], [$2])]], - [[AC_DEFUN( - [$1], [$2])]])) + [m4_ifdef([gl_00GNULIB], + [[AC_DEFUN_ONCE( + [$1], [$2])]], + [[AC_DEFUN( + [$1], [$2])]])])) gl_iconv_AC_DEFUN([AM_ICONV], [ AM_ICONV_LINK if test "$am_cv_func_iconv" = yes; then AC_MSG_CHECKING([for iconv declaration]) AC_CACHE_VAL([am_cv_proto_iconv], [ - AC_TRY_COMPILE([ + AC_COMPILE_IFELSE( + [AC_LANG_PROGRAM( + [[ #include #include extern #ifdef __cplusplus "C" #endif -#if defined(__STDC__) || defined(__cplusplus) +#if defined(__STDC__) || defined(_MSC_VER) || defined(__cplusplus) size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); #else size_t iconv(); #endif -], [], [am_cv_proto_iconv_arg1=""], [am_cv_proto_iconv_arg1="const"]) + ]], + [[]])], + [am_cv_proto_iconv_arg1=""], + [am_cv_proto_iconv_arg1="const"]) am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);"]) am_cv_proto_iconv=`echo "[$]am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` AC_MSG_RESULT([ $am_cv_proto_iconv]) - AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], - [Define as const if the declaration of iconv() needs const.]) + else + dnl When compiling GNU libiconv on a system that does not have iconv yet, + dnl pick the POSIX compliant declaration without 'const'. + am_cv_proto_iconv_arg1="" fi + AC_DEFINE_UNQUOTED([ICONV_CONST], [$am_cv_proto_iconv_arg1], + [Define as const if the declaration of iconv() needs const.]) + dnl Also substitute ICONV_CONST in the gnulib generated . + m4_ifdef([gl_ICONV_H_DEFAULTS], + [AC_REQUIRE([gl_ICONV_H_DEFAULTS]) + if test -n "$am_cv_proto_iconv_arg1"; then + ICONV_CONST="const" + fi + ]) ]) diff --git a/libesedb-sys/libesedb-20230824/m4/intlmacosx.m4 b/libesedb-sys/libesedb-20230824/m4/intlmacosx.m4 new file mode 100644 index 0000000..ebd9937 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/m4/intlmacosx.m4 @@ -0,0 +1,65 @@ +# intlmacosx.m4 serial 8 (gettext-0.20.2) +dnl Copyright (C) 2004-2014, 2016, 2019-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. +dnl +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Lesser General Public +dnl License but which still want to provide support for the GNU gettext +dnl functionality. +dnl Please note that the actual code of the GNU gettext library is covered +dnl by the GNU Lesser General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. +dnl They are *not* in the public domain. + +dnl Checks for special options needed on Mac OS X. +dnl Defines INTL_MACOSX_LIBS. +AC_DEFUN([gt_INTL_MACOSX], +[ + dnl Check for API introduced in Mac OS X 10.4. + AC_CACHE_CHECK([for CFPreferencesCopyAppValue], + [gt_cv_func_CFPreferencesCopyAppValue], + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[CFPreferencesCopyAppValue(NULL, NULL)]])], + [gt_cv_func_CFPreferencesCopyAppValue=yes], + [gt_cv_func_CFPreferencesCopyAppValue=no]) + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then + AC_DEFINE([HAVE_CFPREFERENCESCOPYAPPVALUE], [1], + [Define to 1 if you have the Mac OS X function CFPreferencesCopyAppValue in the CoreFoundation framework.]) + fi + dnl Don't check for the API introduced in Mac OS X 10.5, CFLocaleCopyCurrent, + dnl because in macOS 10.13.4 it has the following behaviour: + dnl When two or more languages are specified in the + dnl "System Preferences > Language & Region > Preferred Languages" panel, + dnl it returns en_CC where CC is the territory (even when English is not among + dnl the preferred languages!). What we want instead is what + dnl CFLocaleCopyCurrent returned in earlier macOS releases and what + dnl CFPreferencesCopyAppValue still returns, namely ll_CC where ll is the + dnl first among the preferred languages and CC is the territory. + AC_CACHE_CHECK([for CFLocaleCopyPreferredLanguages], [gt_cv_func_CFLocaleCopyPreferredLanguages], + [gt_save_LIBS="$LIBS" + LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" + AC_LINK_IFELSE( + [AC_LANG_PROGRAM( + [[#include ]], + [[CFLocaleCopyPreferredLanguages();]])], + [gt_cv_func_CFLocaleCopyPreferredLanguages=yes], + [gt_cv_func_CFLocaleCopyPreferredLanguages=no]) + LIBS="$gt_save_LIBS"]) + if test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then + AC_DEFINE([HAVE_CFLOCALECOPYPREFERREDLANGUAGES], [1], + [Define to 1 if you have the Mac OS X function CFLocaleCopyPreferredLanguages in the CoreFoundation framework.]) + fi + INTL_MACOSX_LIBS= + if test $gt_cv_func_CFPreferencesCopyAppValue = yes \ + || test $gt_cv_func_CFLocaleCopyPreferredLanguages = yes; then + INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" + fi + AC_SUBST([INTL_MACOSX_LIBS]) +]) diff --git a/libesedb-sys/libesedb-20230824/m4/lib-ld.m4 b/libesedb-sys/libesedb-20230824/m4/lib-ld.m4 new file mode 100644 index 0000000..98c348f --- /dev/null +++ b/libesedb-sys/libesedb-20230824/m4/lib-ld.m4 @@ -0,0 +1,168 @@ +# lib-ld.m4 serial 9 +dnl Copyright (C) 1996-2003, 2009-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl Subroutines of libtool.m4, +dnl with replacements s/_*LT_PATH/AC_LIB_PROG/ and s/lt_/acl_/ to avoid +dnl collision with libtool.m4. + +dnl From libtool-2.4. Sets the variable with_gnu_ld to yes or no. +AC_DEFUN([AC_LIB_PROG_LD_GNU], +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], [acl_cv_prog_gnu_ld], +[# I'd rather use --version here, but apparently some GNU lds only accept -v. +case `$LD -v 2>&1 /dev/null 2>&1 \ + && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + || PATH_SEPARATOR=';' + } +fi + +if test -n "$LD"; then + AC_MSG_CHECKING([for ld]) +elif test "$GCC" = yes; then + AC_MSG_CHECKING([for ld used by $CC]) +elif test "$with_gnu_ld" = yes; then + AC_MSG_CHECKING([for GNU ld]) +else + AC_MSG_CHECKING([for non-GNU ld]) +fi +if test -n "$LD"; then + # Let the user override the test with a path. + : +else + AC_CACHE_VAL([acl_cv_path_LD], + [ + acl_cv_path_LD= # Final result of this test + ac_prog=ld # Program to search in $PATH + if test "$GCC" = yes; then + # Check if gcc -print-prog-name=ld gives a path. + case $host in + *-*-mingw*) + # gcc leaves a trailing carriage return which upsets mingw + acl_output=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; + *) + acl_output=`($CC -print-prog-name=ld) 2>&5` ;; + esac + case $acl_output in + # Accept absolute paths. + [[\\/]]* | ?:[[\\/]]*) + re_direlt='/[[^/]][[^/]]*/\.\./' + # Canonicalize the pathname of ld + acl_output=`echo "$acl_output" | sed 's%\\\\%/%g'` + while echo "$acl_output" | grep "$re_direlt" > /dev/null 2>&1; do + acl_output=`echo $acl_output | sed "s%$re_direlt%/%"` + done + # Got the pathname. No search in PATH is needed. + acl_cv_path_LD="$acl_output" + ac_prog= + ;; + "") + # If it fails, then pretend we aren't using GCC. + ;; + *) + # If it is relative, then search for the first ld in PATH. + with_gnu_ld=unknown + ;; + esac + fi + if test -n "$ac_prog"; then + # Search for $ac_prog in $PATH. + acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR + for ac_dir in $PATH; do + IFS="$acl_save_ifs" + test -z "$ac_dir" && ac_dir=. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then + acl_cv_path_LD="$ac_dir/$ac_prog" + # Check to see if the program is GNU ld. I'd rather use --version, + # but apparently some variants of GNU ld only accept -v. + # Break only if it was the GNU/non-GNU ld that we prefer. + case `"$acl_cv_path_LD" -v 2>&1 = 1.10 to complain if config.rpath is missing. - m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])]) + dnl Complain if config.rpath is missing. + AC_REQUIRE_AUX_FILE([config.rpath]) AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host @@ -157,15 +160,15 @@ dnl package. This declaration must occur before an AC_LIB_LINKFLAGS or similar dnl macro call that searches for libname. AC_DEFUN([AC_LIB_FROMPACKAGE], [ - pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_frompackage_]NAME, [$2]) popdef([NAME]) pushdef([PACK],[$2]) - pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) define([acl_libsinpackage_]PACKUP, - m4_ifdef([acl_libsinpackage_]PACKUP, [acl_libsinpackage_]PACKUP[[, ]],)[lib$1]) + m4_ifdef([acl_libsinpackage_]PACKUP, [m4_defn([acl_libsinpackage_]PACKUP)[, ]],)[lib$1]) popdef([PACKUP]) popdef([PACK]) ]) @@ -178,23 +181,23 @@ dnl in ${LIB${NAME}_PREFIX}/$acl_libdirstem. AC_DEFUN([AC_LIB_LINKFLAGS_BODY], [ AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) - pushdef([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([NAME],[m4_translit([$1],[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACK],[m4_ifdef([acl_frompackage_]NAME, [acl_frompackage_]NAME, lib[$1])]) - pushdef([PACKUP],[translit(PACK,[abcdefghijklmnopqrstuvwxyz./-], - [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])]) + pushdef([PACKUP],[m4_translit(PACK,[abcdefghijklmnopqrstuvwxyz./+-], + [ABCDEFGHIJKLMNOPQRSTUVWXYZ____])]) pushdef([PACKLIBS],[m4_ifdef([acl_frompackage_]NAME, [acl_libsinpackage_]PACKUP, lib[$1])]) - dnl Autoconf >= 2.61 supports dots in --with options. - pushdef([P_A_C_K],[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]),[2.61]),[-1],[translit(PACK,[.],[_])],PACK)]) dnl By default, look in $includedir and $libdir. use_additional=yes AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" + eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" + eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" ]) - AC_ARG_WITH(P_A_C_K[-prefix], -[[ --with-]]P_A_C_K[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib - --without-]]P_A_C_K[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], + AC_ARG_WITH(PACK[-prefix], +[[ --with-]]PACK[[-prefix[=DIR] search for ]PACKLIBS[ in DIR/include and DIR/lib + --without-]]PACK[[-prefix don't search for ]PACKLIBS[ in includedir and libdir]], [ if test "X$withval" = "Xno"; then use_additional=no @@ -203,17 +206,23 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], AC_LIB_WITH_FINAL_PREFIX([ eval additional_includedir=\"$includedir\" eval additional_libdir=\"$libdir\" + eval additional_libdir2=\"$exec_prefix/$acl_libdirstem2\" + eval additional_libdir3=\"$exec_prefix/$acl_libdirstem3\" ]) else additional_includedir="$withval/include" additional_libdir="$withval/$acl_libdirstem" - if test "$acl_libdirstem2" != "$acl_libdirstem" \ - && ! test -d "$withval/$acl_libdirstem"; then - additional_libdir="$withval/$acl_libdirstem2" - fi + additional_libdir2="$withval/$acl_libdirstem2" + additional_libdir3="$withval/$acl_libdirstem3" fi fi ]) + if test "X$additional_libdir2" = "X$additional_libdir"; then + additional_libdir2= + fi + if test "X$additional_libdir3" = "X$additional_libdir"; then + additional_libdir3= + fi dnl Search the library and its dependencies in $additional_libdir and dnl $LDFLAGS. Using breadth-first-seach. LIB[]NAME= @@ -242,7 +251,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], names_already_handled="$names_already_handled $name" dnl See if it was already located by an earlier AC_LIB_LINKFLAGS dnl or AC_LIB_HAVE_LINKFLAGS call. - uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` eval value=\"\$HAVE_LIB$uppername\" if test -n "$value"; then if test "$value" = yes; then @@ -269,48 +278,54 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], shrext= fi if test $use_additional = yes; then - dir="$additional_libdir" - dnl The same code as in the loop below: - dnl First look for a shared library. - if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then - found_dir="$dir" - found_so="$dir/$libname$shrext" - else - if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then - ver=`(cd "$dir" && \ - for f in "$libname$shrext".*; do echo "$f"; done \ - | sed -e "s,^$libname$shrext\\\\.,," \ - | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ - | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then - found_dir="$dir" - found_so="$dir/$libname$shrext.$ver" + for additional_libdir_variable in additional_libdir additional_libdir2 additional_libdir3; do + if test "X$found_dir" = "X"; then + eval dir=\$$additional_libdir_variable + if test -n "$dir"; then + dnl The same code as in the loop below: + dnl First look for a shared library. + if test -n "$acl_shlibext"; then + if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then + found_dir="$dir" + found_so="$dir/$libname$shrext" + else + if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then + ver=`(cd "$dir" && \ + for f in "$libname$shrext".*; do echo "$f"; done \ + | sed -e "s,^$libname$shrext\\\\.,," \ + | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ + | sed 1q ) 2>/dev/null` + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then + found_dir="$dir" + found_so="$dir/$libname$shrext.$ver" + fi + else + eval library_names=\"$acl_library_names_spec\" + for f in $library_names; do + if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then + found_dir="$dir" + found_so="$dir/$f" + break + fi + done + fi + fi fi - else - eval library_names=\"$acl_library_names_spec\" - for f in $library_names; do - if test -f "$dir/$f"; then + dnl Then look for a static library. + if test "X$found_dir" = "X"; then + if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" - found_so="$dir/$f" - break + found_a="$dir/$libname.$acl_libext" fi - done + fi + if test "X$found_dir" != "X"; then + if test -f "$dir/$libname.la"; then + found_la="$dir/$libname.la" + fi + fi fi fi - fi - dnl Then look for a static library. - if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then - found_dir="$dir" - found_a="$dir/$libname.$acl_libext" - fi - fi - if test "X$found_dir" != "X"; then - if test -f "$dir/$libname.la"; then - found_la="$dir/$libname.la" - fi - fi + done fi if test "X$found_dir" = "X"; then for x in $LDFLAGS $LTLIB[]NAME; do @@ -320,7 +335,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], dir=`echo "X$x" | sed -e 's/^X-L//'` dnl First look for a shared library. if test -n "$acl_shlibext"; then - if test -f "$dir/$libname$shrext"; then + if test -f "$dir/$libname$shrext" && acl_is_expected_elfclass < "$dir/$libname$shrext"; then found_dir="$dir" found_so="$dir/$libname$shrext" else @@ -330,14 +345,14 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], | sed -e "s,^$libname$shrext\\\\.,," \ | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ | sed 1q ) 2>/dev/null` - if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then + if test -n "$ver" && test -f "$dir/$libname$shrext.$ver" && acl_is_expected_elfclass < "$dir/$libname$shrext.$ver"; then found_dir="$dir" found_so="$dir/$libname$shrext.$ver" fi else eval library_names=\"$acl_library_names_spec\" for f in $library_names; do - if test -f "$dir/$f"; then + if test -f "$dir/$f" && acl_is_expected_elfclass < "$dir/$f"; then found_dir="$dir" found_so="$dir/$f" break @@ -348,7 +363,7 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], fi dnl Then look for a static library. if test "X$found_dir" = "X"; then - if test -f "$dir/$libname.$acl_libext"; then + if test -f "$dir/$libname.$acl_libext" && ${AR-ar} -p "$dir/$libname.$acl_libext" | acl_is_expected_elfclass; then found_dir="$dir" found_a="$dir/$libname.$acl_libext" fi @@ -374,7 +389,8 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], dnl standard /usr/lib. if test "$enable_rpath" = no \ || test "X$found_dir" = "X/usr/$acl_libdirstem" \ - || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then + || test "X$found_dir" = "X/usr/$acl_libdirstem2" \ + || test "X$found_dir" = "X/usr/$acl_libdirstem3"; then dnl No hardcoding is needed. LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so" else @@ -474,6 +490,13 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], fi additional_includedir="$basedir/include" ;; + */$acl_libdirstem3 | */$acl_libdirstem3/) + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem3/"'*$,,'` + if test "$name" = '$1'; then + LIB[]NAME[]_PREFIX="$basedir" + fi + additional_includedir="$basedir/include" + ;; esac if test "X$additional_includedir" != "X"; then dnl Potentially add $additional_includedir to $INCNAME. @@ -524,19 +547,21 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], for dep in $dependency_libs; do case "$dep" in -L*) - additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` - dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME. + dependency_libdir=`echo "X$dep" | sed -e 's/^X-L//'` + dnl Potentially add $dependency_libdir to $LIBNAME and $LTLIBNAME. dnl But don't add it dnl 1. if it's the standard /usr/lib, dnl 2. if it's /usr/local/lib and we are using GCC on Linux, dnl 3. if it's already present in $LDFLAGS or the already dnl constructed $LIBNAME, dnl 4. if it doesn't exist as a directory. - if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ - && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then + if test "X$dependency_libdir" != "X/usr/$acl_libdirstem" \ + && test "X$dependency_libdir" != "X/usr/$acl_libdirstem2" \ + && test "X$dependency_libdir" != "X/usr/$acl_libdirstem3"; then haveit= - if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ - || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then + if test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem" \ + || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem2" \ + || test "X$dependency_libdir" = "X/usr/local/$acl_libdirstem3"; then if test -n "$GCC"; then case $host_os in linux* | gnu* | k*bsd*-gnu) haveit=yes;; @@ -547,29 +572,29 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], haveit= for x in $LDFLAGS $LIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then + if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LIBNAME. - LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir" + if test -d "$dependency_libdir"; then + dnl Really add $dependency_libdir to $LIBNAME. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$dependency_libdir" fi fi haveit= for x in $LDFLAGS $LTLIB[]NAME; do AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) - if test "X$x" = "X-L$additional_libdir"; then + if test "X$x" = "X-L$dependency_libdir"; then haveit=yes break fi done if test -z "$haveit"; then - if test -d "$additional_libdir"; then - dnl Really add $additional_libdir to $LTLIBNAME. - LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir" + if test -d "$dependency_libdir"; then + dnl Really add $dependency_libdir to $LTLIBNAME. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$dependency_libdir" fi fi fi @@ -667,7 +692,6 @@ AC_DEFUN([AC_LIB_LINKFLAGS_BODY], LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir" done fi - popdef([P_A_C_K]) popdef([PACKLIBS]) popdef([PACKUP]) popdef([PACK]) @@ -718,7 +742,8 @@ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], dir="$next" dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ - && test "X$dir" != "X/usr/$acl_libdirstem2"; then + && test "X$dir" != "X/usr/$acl_libdirstem2" \ + && test "X$dir" != "X/usr/$acl_libdirstem3"; then rpathdirs="$rpathdirs $dir" fi next= @@ -728,7 +753,8 @@ AC_DEFUN([AC_LIB_LINKFLAGS_FROM_LIBS], -L*) dir=`echo "X$opt" | sed -e 's,^X-L,,'` dnl No need to hardcode the standard /usr/lib. if test "X$dir" != "X/usr/$acl_libdirstem" \ - && test "X$dir" != "X/usr/$acl_libdirstem2"; then + && test "X$dir" != "X/usr/$acl_libdirstem2" \ + && test "X$dir" != "X/usr/$acl_libdirstem3"; then rpathdirs="$rpathdirs $dir" fi next= ;; diff --git a/libesedb-sys/libesedb-20230824/m4/lib-prefix.m4 b/libesedb-sys/libesedb-20230824/m4/lib-prefix.m4 new file mode 100644 index 0000000..c8a0b46 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/m4/lib-prefix.m4 @@ -0,0 +1,320 @@ +# lib-prefix.m4 serial 17 +dnl Copyright (C) 2001-2005, 2008-2020 Free Software Foundation, Inc. +dnl This file is free software; the Free Software Foundation +dnl gives unlimited permission to copy and/or distribute it, +dnl with or without modifications, as long as this notice is preserved. + +dnl From Bruno Haible. + +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed +dnl to access previously installed libraries. The basic assumption is that +dnl a user will want packages to use other packages he previously installed +dnl with the same --prefix option. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate +dnl libraries, but is otherwise very convenient. +AC_DEFUN([AC_LIB_PREFIX], +[ + AC_BEFORE([$0], [AC_LIB_LINKFLAGS]) + AC_REQUIRE([AC_PROG_CC]) + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([AC_LIB_PREPARE_MULTILIB]) + AC_REQUIRE([AC_LIB_PREPARE_PREFIX]) + dnl By default, look in $includedir and $libdir. + use_additional=yes + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + AC_ARG_WITH([lib-prefix], +[[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib + --without-lib-prefix don't search for libraries in includedir and libdir]], +[ + if test "X$withval" = "Xno"; then + use_additional=no + else + if test "X$withval" = "X"; then + AC_LIB_WITH_FINAL_PREFIX([ + eval additional_includedir=\"$includedir\" + eval additional_libdir=\"$libdir\" + ]) + else + additional_includedir="$withval/include" + additional_libdir="$withval/$acl_libdirstem" + fi + fi +]) + if test $use_additional = yes; then + dnl Potentially add $additional_includedir to $CPPFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/include, + dnl 2. if it's already present in $CPPFLAGS, + dnl 3. if it's /usr/local/include and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_includedir" != "X/usr/include"; then + haveit= + for x in $CPPFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-I$additional_includedir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_includedir" = "X/usr/local/include"; then + if test -n "$GCC"; then + case $host_os in + linux* | gnu* | k*bsd*-gnu) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_includedir"; then + dnl Really add $additional_includedir to $CPPFLAGS. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir" + fi + fi + fi + fi + dnl Potentially add $additional_libdir to $LDFLAGS. + dnl But don't add it + dnl 1. if it's the standard /usr/lib, + dnl 2. if it's already present in $LDFLAGS, + dnl 3. if it's /usr/local/lib and we are using GCC on Linux, + dnl 4. if it doesn't exist as a directory. + if test "X$additional_libdir" != "X/usr/$acl_libdirstem"; then + haveit= + for x in $LDFLAGS; do + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"]) + if test "X$x" = "X-L$additional_libdir"; then + haveit=yes + break + fi + done + if test -z "$haveit"; then + if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem"; then + if test -n "$GCC"; then + case $host_os in + linux*) haveit=yes;; + esac + fi + fi + if test -z "$haveit"; then + if test -d "$additional_libdir"; then + dnl Really add $additional_libdir to $LDFLAGS. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir" + fi + fi + fi + fi + fi +]) + +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix, +dnl acl_final_exec_prefix, containing the values to which $prefix and +dnl $exec_prefix will expand at the end of the configure script. +AC_DEFUN([AC_LIB_PREPARE_PREFIX], +[ + dnl Unfortunately, prefix and exec_prefix get only finally determined + dnl at the end of configure. + if test "X$prefix" = "XNONE"; then + acl_final_prefix="$ac_default_prefix" + else + acl_final_prefix="$prefix" + fi + if test "X$exec_prefix" = "XNONE"; then + acl_final_exec_prefix='${prefix}' + else + acl_final_exec_prefix="$exec_prefix" + fi + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the +dnl variables prefix and exec_prefix bound to the values they will have +dnl at the end of the configure script. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX], +[ + acl_save_prefix="$prefix" + prefix="$acl_final_prefix" + acl_save_exec_prefix="$exec_prefix" + exec_prefix="$acl_final_exec_prefix" + $1 + exec_prefix="$acl_save_exec_prefix" + prefix="$acl_save_prefix" +]) + +dnl AC_LIB_PREPARE_MULTILIB creates +dnl - a function acl_is_expected_elfclass, that tests whether standard input +dn; has a 32-bit or 64-bit ELF header, depending on the host CPU ABI, +dnl - 3 variables acl_libdirstem, acl_libdirstem2, acl_libdirstem3, containing +dnl the basename of the libdir to try in turn, either "lib" or "lib64" or +dnl "lib/64" or "lib32" or "lib/sparcv9" or "lib/amd64" or similar. +AC_DEFUN([AC_LIB_PREPARE_MULTILIB], +[ + dnl There is no formal standard regarding lib, lib32, and lib64. + dnl On most glibc systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib64 and 32-bit libraries go under $prefix/lib. However, on + dnl Arch Linux based distributions, it's the opposite: 32-bit libraries go + dnl under $prefix/lib32 and 64-bit libraries go under $prefix/lib. + dnl We determine the compiler's default mode by looking at the compiler's + dnl library search path. If at least one of its elements ends in /lib64 or + dnl points to a directory whose absolute pathname ends in /lib64, we use that + dnl for 64-bit ABIs. Similarly for 32-bit ABIs. Otherwise we use the default, + dnl namely "lib". + dnl On Solaris systems, the current practice is that on a system supporting + dnl 32-bit and 64-bit instruction sets or ABIs, 64-bit libraries go under + dnl $prefix/lib/64 (which is a symlink to either $prefix/lib/sparcv9 or + dnl $prefix/lib/amd64) and 32-bit libraries go under $prefix/lib. + AC_REQUIRE([AC_CANONICAL_HOST]) + AC_REQUIRE([gl_HOST_CPU_C_ABI_32BIT]) + + AC_CACHE_CHECK([for ELF binary format], [gl_cv_elf], + [AC_EGREP_CPP([Extensible Linking Format], + [#ifdef __ELF__ + Extensible Linking Format + #endif + ], + [gl_cv_elf=yes], + [gl_cv_elf=no]) + ]) + if test $gl_cv_elf; then + # Extract the ELF class of a file (5th byte) in decimal. + # Cf. https://en.wikipedia.org/wiki/Executable_and_Linkable_Format#File_header + if od -A x < /dev/null >/dev/null 2>/dev/null; then + # Use POSIX od. + func_elfclass () + { + od -A n -t d1 -j 4 -N 1 + } + else + # Use BSD hexdump. + func_elfclass () + { + dd bs=1 count=1 skip=4 2>/dev/null | hexdump -e '1/1 "%3d "' + echo + } + fi +changequote(,)dnl + case $HOST_CPU_C_ABI_32BIT in + yes) + # 32-bit ABI. + acl_is_expected_elfclass () + { + test "`func_elfclass | sed -e 's/[ ]//g'`" = 1 + } + ;; + no) + # 64-bit ABI. + acl_is_expected_elfclass () + { + test "`func_elfclass | sed -e 's/[ ]//g'`" = 2 + } + ;; + *) + # Unknown. + acl_is_expected_elfclass () + { + : + } + ;; + esac +changequote([,])dnl + else + acl_is_expected_elfclass () + { + : + } + fi + + dnl Allow the user to override the result by setting acl_cv_libdirstems. + AC_CACHE_CHECK([for the common suffixes of directories in the library search path], + [acl_cv_libdirstems], + [dnl Try 'lib' first, because that's the default for libdir in GNU, see + dnl . + acl_libdirstem=lib + acl_libdirstem2= + acl_libdirstem3= + case "$host_os" in + solaris*) + dnl See Solaris 10 Software Developer Collection > Solaris 64-bit Developer's Guide > The Development Environment + dnl . + dnl "Portable Makefiles should refer to any library directories using the 64 symbolic link." + dnl But we want to recognize the sparcv9 or amd64 subdirectory also if the + dnl symlink is missing, so we set acl_libdirstem2 too. + if test $HOST_CPU_C_ABI_32BIT = no; then + acl_libdirstem2=lib/64 + case "$host_cpu" in + sparc*) acl_libdirstem3=lib/sparcv9 ;; + i*86 | x86_64) acl_libdirstem3=lib/amd64 ;; + esac + fi + ;; + *) + dnl If $CC generates code for a 32-bit ABI, the libraries are + dnl surely under $prefix/lib or $prefix/lib32, not $prefix/lib64. + dnl Similarly, if $CC generates code for a 64-bit ABI, the libraries + dnl are surely under $prefix/lib or $prefix/lib64, not $prefix/lib32. + dnl Find the compiler's search path. However, non-system compilers + dnl sometimes have odd library search paths. But we can't simply invoke + dnl '/usr/bin/gcc -print-search-dirs' because that would not take into + dnl account the -m32/-m31 or -m64 options from the $CC or $CFLAGS. + searchpath=`(LC_ALL=C $CC $CPPFLAGS $CFLAGS -print-search-dirs) 2>/dev/null \ + | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` + if test $HOST_CPU_C_ABI_32BIT != no; then + # 32-bit or unknown ABI. + if test -d /usr/lib32; then + acl_libdirstem2=lib32 + fi + fi + if test $HOST_CPU_C_ABI_32BIT != yes; then + # 64-bit or unknown ABI. + if test -d /usr/lib64; then + acl_libdirstem3=lib64 + fi + fi + if test -n "$searchpath"; then + acl_save_IFS="${IFS= }"; IFS=":" + for searchdir in $searchpath; do + if test -d "$searchdir"; then + case "$searchdir" in + */lib32/ | */lib32 ) acl_libdirstem2=lib32 ;; + */lib64/ | */lib64 ) acl_libdirstem3=lib64 ;; + */../ | */.. ) + # Better ignore directories of this form. They are misleading. + ;; + *) searchdir=`cd "$searchdir" && pwd` + case "$searchdir" in + */lib32 ) acl_libdirstem2=lib32 ;; + */lib64 ) acl_libdirstem3=lib64 ;; + esac ;; + esac + fi + done + IFS="$acl_save_IFS" + if test $HOST_CPU_C_ABI_32BIT = yes; then + # 32-bit ABI. + acl_libdirstem3= + fi + if test $HOST_CPU_C_ABI_32BIT = no; then + # 64-bit ABI. + acl_libdirstem2= + fi + fi + ;; + esac + test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" + test -n "$acl_libdirstem3" || acl_libdirstem3="$acl_libdirstem" + acl_cv_libdirstems="$acl_libdirstem,$acl_libdirstem2,$acl_libdirstem3" + ]) + dnl Decompose acl_cv_libdirstems into acl_libdirstem, acl_libdirstem2, and + dnl acl_libdirstem3. +changequote(,)dnl + acl_libdirstem=`echo "$acl_cv_libdirstems" | sed -e 's/,.*//'` + acl_libdirstem2=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,//' -e 's/,.*//'` + acl_libdirstem3=`echo "$acl_cv_libdirstems" | sed -e 's/^[^,]*,[^,]*,//' -e 's/,.*//'` +changequote([,])dnl +]) diff --git a/libesedb-sys/libesedb-20210424/m4/libbfio.m4 b/libesedb-sys/libesedb-20230824/m4/libbfio.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libbfio.m4 rename to libesedb-sys/libesedb-20230824/m4/libbfio.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libcdata.m4 b/libesedb-sys/libesedb-20230824/m4/libcdata.m4 similarity index 96% rename from libesedb-sys/libesedb-20210424/m4/libcdata.m4 rename to libesedb-sys/libesedb-20230824/m4/libcdata.m4 index e7bd2f5..9b57679 100644 --- a/libesedb-sys/libesedb-20210424/m4/libcdata.m4 +++ b/libesedb-sys/libesedb-20230824/m4/libcdata.m4 @@ -1,6 +1,6 @@ dnl Checks for libcdata required headers and functions dnl -dnl Version: 20191221 +dnl Version: 20230108 dnl Function to detect if libcdata is available dnl ac_libcdata_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments @@ -26,7 +26,7 @@ AC_DEFUN([AX_LIBCDATA_CHECK_LIB], [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libcdata], - [libcdata >= 20190112], + [libcdata >= 20230108], [ac_cv_libcdata=yes], [ac_cv_libcdata=check]) ]) @@ -128,7 +128,7 @@ AC_DEFUN([AX_LIBCDATA_CHECK_LIB], dnl Balanced tree functions AC_CHECK_LIB( cdata, - libfdata_btree_initialize, + libcdata_btree_initialize, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) AC_CHECK_LIB( @@ -238,11 +238,21 @@ AC_DEFUN([AX_LIBCDATA_CHECK_LIB], libcdata_list_insert_element, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) + AC_CHECK_LIB( + cdata, + libcdata_list_insert_element_with_existing, + [ac_cv_libcdata_dummy=yes], + [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_insert_value, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) + AC_CHECK_LIB( + cdata, + libcdata_list_insert_value_with_existing, + [ac_cv_libcdata_dummy=yes], + [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_list_remove_element, @@ -357,6 +367,11 @@ AC_DEFUN([AX_LIBCDATA_CHECK_LIB], libcdata_range_list_range_is_present, [ac_cv_libcdata_dummy=yes], [ac_cv_libcdata=no]) + AC_CHECK_LIB( + cdata, + libcdata_range_list_range_has_overlapping_range, + [ac_cv_libcdata_dummy=yes], + [ac_cv_libcdata=no]) AC_CHECK_LIB( cdata, libcdata_range_list_get_spanning_range, diff --git a/libesedb-sys/libesedb-20210424/m4/libcerror.m4 b/libesedb-sys/libesedb-20230824/m4/libcerror.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libcerror.m4 rename to libesedb-sys/libesedb-20230824/m4/libcerror.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libcfile.m4 b/libesedb-sys/libesedb-20230824/m4/libcfile.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libcfile.m4 rename to libesedb-sys/libesedb-20230824/m4/libcfile.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libclocale.m4 b/libesedb-sys/libesedb-20230824/m4/libclocale.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libclocale.m4 rename to libesedb-sys/libesedb-20230824/m4/libclocale.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libcnotify.m4 b/libesedb-sys/libesedb-20230824/m4/libcnotify.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libcnotify.m4 rename to libesedb-sys/libesedb-20230824/m4/libcnotify.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libcpath.m4 b/libesedb-sys/libesedb-20230824/m4/libcpath.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libcpath.m4 rename to libesedb-sys/libesedb-20230824/m4/libcpath.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libcsplit.m4 b/libesedb-sys/libesedb-20230824/m4/libcsplit.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libcsplit.m4 rename to libesedb-sys/libesedb-20230824/m4/libcsplit.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libcthreads.m4 b/libesedb-sys/libesedb-20230824/m4/libcthreads.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libcthreads.m4 rename to libesedb-sys/libesedb-20230824/m4/libcthreads.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libfcache.m4 b/libesedb-sys/libesedb-20230824/m4/libfcache.m4 similarity index 99% rename from libesedb-sys/libesedb-20210424/m4/libfcache.m4 rename to libesedb-sys/libesedb-20230824/m4/libfcache.m4 index 2fb9ec9..86e56cc 100644 --- a/libesedb-sys/libesedb-20210424/m4/libfcache.m4 +++ b/libesedb-sys/libesedb-20230824/m4/libfcache.m4 @@ -1,6 +1,6 @@ dnl Checks for libfcache required headers and functions dnl -dnl Version: 20191109 +dnl Version: 20230115 dnl Function to detect if libfcache is available dnl ac_libfcache_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments @@ -184,7 +184,7 @@ AC_DEFUN([AX_LIBFCACHE_CHECK_LOCAL], AC_STRUCT_TM dnl Headers included in libfcache/libfcache_date_time.h - AC_HEADER_TIME + AC_CHECK_HEADERS([sys/time.h]) dnl Date and time functions used in libfcache/libfcache_date_time.h AC_CHECK_FUNCS([clock_gettime time]) diff --git a/libesedb-sys/libesedb-20210424/m4/libfdata.m4 b/libesedb-sys/libesedb-20230824/m4/libfdata.m4 similarity index 99% rename from libesedb-sys/libesedb-20210424/m4/libfdata.m4 rename to libesedb-sys/libesedb-20230824/m4/libfdata.m4 index 483cb64..718b4fb 100644 --- a/libesedb-sys/libesedb-20210424/m4/libfdata.m4 +++ b/libesedb-sys/libesedb-20230824/m4/libfdata.m4 @@ -1,6 +1,6 @@ dnl Functions for libfdata dnl -dnl Version: 20201130 +dnl Version: 20230318 dnl Function to detect if libfdata is available dnl ac_libfdata_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments @@ -125,9 +125,6 @@ AC_DEFUN([AX_LIBFDATA_CHECK_LIB], [ac_cv_libfdata_dummy=yes], [ac_cv_libfdata=no]) - dnl Balanced tree functions - dnl TODO: add functions - dnl List functions AC_CHECK_LIB( fdata, diff --git a/libesedb-sys/libesedb-20210424/m4/libfdatetime.m4 b/libesedb-sys/libesedb-20230824/m4/libfdatetime.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libfdatetime.m4 rename to libesedb-sys/libesedb-20230824/m4/libfdatetime.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libfguid.m4 b/libesedb-sys/libesedb-20230824/m4/libfguid.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libfguid.m4 rename to libesedb-sys/libesedb-20230824/m4/libfguid.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libfmapi.m4 b/libesedb-sys/libesedb-20230824/m4/libfmapi.m4 similarity index 95% rename from libesedb-sys/libesedb-20210424/m4/libfmapi.m4 rename to libesedb-sys/libesedb-20230824/m4/libfmapi.m4 index 915c769..e572c56 100644 --- a/libesedb-sys/libesedb-20210424/m4/libfmapi.m4 +++ b/libesedb-sys/libesedb-20230824/m4/libfmapi.m4 @@ -1,6 +1,6 @@ dnl Checks for libfmapi required headers and functions dnl -dnl Version: 20190308 +dnl Version: 20230404 dnl Function to detect if libfmapi is available dnl ac_libfmapi_dummy is used to prevent AC_CHECK_LIB adding unnecessary -l arguments @@ -26,7 +26,7 @@ AC_DEFUN([AX_LIBFMAPI_CHECK_LIB], [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libfmapi], - [libfmapi >= 20180714], + [libfmapi >= 20230404], [ac_cv_libfmapi=yes], [ac_cv_libfmapi=check]) ]) @@ -169,6 +169,18 @@ AC_DEFUN([AX_LIBFMAPI_CHECK_LIB], [ac_cv_libfmapi_dummy=yes], [ac_cv_libfmapi=no]) + dnl LZFu (de)compression functions + AC_CHECK_LIB( + fmapi, + libfmapi_lzfu_get_uncompressed_data_size, + [ac_cv_libfmapi_dummy=yes], + [ac_cv_libfmapi=no]) + AC_CHECK_LIB( + fmapi, + libfmapi_lzfu_decompress, + [ac_cv_libfmapi_dummy=yes], + [ac_cv_libfmapi=no]) + ac_cv_libfmapi_LIBADD="-lfmapi"]) ]) AS_IF( diff --git a/libesedb-sys/libesedb-20210424/m4/libfvalue.m4 b/libesedb-sys/libesedb-20230824/m4/libfvalue.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libfvalue.m4 rename to libesedb-sys/libesedb-20230824/m4/libfvalue.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libfwnt.m4 b/libesedb-sys/libesedb-20230824/m4/libfwnt.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libfwnt.m4 rename to libesedb-sys/libesedb-20230824/m4/libfwnt.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libmapidb.m4 b/libesedb-sys/libesedb-20230824/m4/libmapidb.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/libmapidb.m4 rename to libesedb-sys/libesedb-20230824/m4/libmapidb.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/libtool.m4 b/libesedb-sys/libesedb-20230824/m4/libtool.m4 similarity index 97% rename from libesedb-sys/libesedb-20210424/m4/libtool.m4 rename to libesedb-sys/libesedb-20230824/m4/libtool.m4 index a644432..e2fc159 100644 --- a/libesedb-sys/libesedb-20210424/m4/libtool.m4 +++ b/libesedb-sys/libesedb-20230824/m4/libtool.m4 @@ -1,6 +1,7 @@ # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*- # -# Copyright (C) 1996-2001, 2003-2015 Free Software Foundation, Inc. +# Copyright (C) 1996-2001, 2003-2019, 2021-2022 Free Software +# Foundation, Inc. # Written by Gordon Matzigkeit, 1996 # # This file is free software; the Free Software Foundation gives @@ -31,7 +32,7 @@ m4_define([_LT_COPYING], [dnl # along with this program. If not, see . ]) -# serial 58 LT_INIT +# serial 59 LT_INIT # LT_PREREQ(VERSION) @@ -181,6 +182,7 @@ m4_require([_LT_FILEUTILS_DEFAULTS])dnl m4_require([_LT_CHECK_SHELL_FEATURES])dnl m4_require([_LT_PATH_CONVERSION_FUNCTIONS])dnl m4_require([_LT_CMD_RELOAD])dnl +m4_require([_LT_DECL_FILECMD])dnl m4_require([_LT_CHECK_MAGIC_METHOD])dnl m4_require([_LT_CHECK_SHAREDLIB_FROM_LINKLIB])dnl m4_require([_LT_CMD_OLD_ARCHIVE])dnl @@ -219,8 +221,8 @@ esac ofile=libtool can_build_shared=yes -# All known linkers require a '.a' archive for static linking (except MSVC, -# which needs '.lib'). +# All known linkers require a '.a' archive for static linking (except MSVC and +# ICC, which need '.lib'). libext=a with_gnu_ld=$lt_cv_prog_gnu_ld @@ -778,7 +780,7 @@ _LT_EOF # if finds mixed CR/LF and LF-only lines. Since sed operates in # text mode, it properly converts lines to CR/LF. This bash problem # is reportedly fixed, but why not run on old versions too? - sed '$q' "$ltmain" >> "$cfgfile" \ + $SED '$q' "$ltmain" >> "$cfgfile" \ || (rm -f "$cfgfile"; exit 1) mv -f "$cfgfile" "$ofile" || @@ -1042,8 +1044,8 @@ int forced_loaded() { return 2;} _LT_EOF echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&AS_MESSAGE_LOG_FD $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&AS_MESSAGE_LOG_FD - echo "$AR cru libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD - $AR cru libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD + echo "$AR $AR_FLAGS libconftest.a conftest.o" >&AS_MESSAGE_LOG_FD + $AR $AR_FLAGS libconftest.a conftest.o 2>&AS_MESSAGE_LOG_FD echo "$RANLIB libconftest.a" >&AS_MESSAGE_LOG_FD $RANLIB libconftest.a 2>&AS_MESSAGE_LOG_FD cat > conftest.c << _LT_EOF @@ -1067,17 +1069,12 @@ _LT_EOF _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; darwin1.*) _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - darwin*) # darwin 5.x on - # if running on 10.5 or later, the deployment target defaults - # 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]]*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; - 10.[[012]][[,.]]*) - _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; - 10.*) - _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; + darwin*) + case $MACOSX_DEPLOYMENT_TARGET,$host in + 10.[[012]],*|,*powerpc*-darwin[[5-8]]*) + _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; + *) + _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; esac ;; esac @@ -1126,12 +1123,12 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES], output_verbose_link_cmd=func_echo_all _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" - _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" + _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dar_export_syms$_lt_dsymutil" + _LT_TAGVAR(module_expsym_cmds, $1)="$SED -e 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dar_export_syms$_lt_dsymutil" m4_if([$1], [CXX], [ if test yes != "$lt_cv_apple_cc_single_mod"; then _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" - _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" + _LT_TAGVAR(archive_expsym_cmds, $1)="$SED 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" fi ],[]) else @@ -1245,7 +1242,8 @@ _LT_DECL([], [ECHO], [1], [An echo program that protects backslashes]) # _LT_WITH_SYSROOT # ---------------- AC_DEFUN([_LT_WITH_SYSROOT], -[AC_MSG_CHECKING([for sysroot]) +[m4_require([_LT_DECL_SED])dnl +AC_MSG_CHECKING([for sysroot]) AC_ARG_WITH([sysroot], [AS_HELP_STRING([--with-sysroot@<:@=DIR@:>@], [Search for dependent libraries within DIR (or the compiler's sysroot @@ -1262,7 +1260,7 @@ case $with_sysroot in #( fi ;; #( /*) - lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` + lt_sysroot=`echo "$with_sysroot" | $SED -e "$sed_quote_subst"` ;; #( no|'') ;; #( @@ -1292,7 +1290,7 @@ ia64-*-hpux*) # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *ELF-32*) HPUX_IA64_MODE=32 ;; @@ -1309,7 +1307,7 @@ ia64-*-hpux*) echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then if test yes = "$lt_cv_prog_gnu_ld"; then - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -melf32bsmip" ;; @@ -1321,7 +1319,7 @@ ia64-*-hpux*) ;; esac else - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *32-bit*) LD="${LD-ld} -32" ;; @@ -1343,7 +1341,7 @@ mips64*-*linux*) echo '[#]line '$LINENO' "configure"' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then emul=elf - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *32-bit*) emul="${emul}32" ;; @@ -1351,7 +1349,7 @@ mips64*-*linux*) emul="${emul}64" ;; esac - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *MSB*) emul="${emul}btsmip" ;; @@ -1359,7 +1357,7 @@ mips64*-*linux*) emul="${emul}ltsmip" ;; esac - case `/usr/bin/file conftest.$ac_objext` in + case `$FILECMD conftest.$ac_objext` in *N32*) emul="${emul}n32" ;; @@ -1379,14 +1377,14 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # not appear in the list. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in + case `$FILECMD conftest.o` in *32-bit*) case $host in x86_64-*kfreebsd*-gnu) LD="${LD-ld} -m elf_i386_fbsd" ;; x86_64-*linux*) - case `/usr/bin/file conftest.o` in + case `$FILECMD conftest.o` in *x86-64*) LD="${LD-ld} -m elf32_x86_64" ;; @@ -1454,7 +1452,7 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*) # options accordingly. echo 'int i;' > conftest.$ac_ext if AC_TRY_EVAL(ac_compile); then - case `/usr/bin/file conftest.o` in + case `$FILECMD conftest.o` in *64-bit*) case $lt_cv_prog_gnu_ld in yes*) @@ -1493,9 +1491,22 @@ need_locks=$enable_libtool_lock m4_defun([_LT_PROG_AR], [AC_CHECK_TOOLS(AR, [ar], false) : ${AR=ar} -: ${AR_FLAGS=cru} _LT_DECL([], [AR], [1], [The archiver]) -_LT_DECL([], [AR_FLAGS], [1], [Flags to create an archive]) + +# Use ARFLAGS variable as AR's operation code to sync the variable naming with +# Automake. If both AR_FLAGS and ARFLAGS are specified, AR_FLAGS should have +# higher priority because thats what people were doing historically (setting +# ARFLAGS for automake and AR_FLAGS for libtool). FIXME: Make the AR_FLAGS +# variable obsoleted/removed. + +test ${AR_FLAGS+y} || AR_FLAGS=${ARFLAGS-cr} +lt_ar_flags=$AR_FLAGS +_LT_DECL([], [lt_ar_flags], [0], [Flags to create an archive (by configure)]) + +# Make AR_FLAGS overridable by 'make ARFLAGS='. Don't try to run-time override +# by AR_FLAGS because that was never working and AR_FLAGS is about to die. +_LT_DECL([], [AR_FLAGS], [\@S|@{ARFLAGS-"\@S|@lt_ar_flags"}], + [Flags to create an archive]) AC_CACHE_CHECK([for archiver @FILE support], [lt_cv_ar_at_file], [lt_cv_ar_at_file=no @@ -1714,7 +1725,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl lt_cv_sys_max_cmd_len=8192; ;; - bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) + bitrig* | darwin* | dragonfly* | freebsd* | midnightbsd* | netbsd* | openbsd*) # This has been around since 386BSD, at least. Likely further. if test -x /sbin/sysctl; then lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` @@ -1757,7 +1768,7 @@ AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl sysv5* | sco5v6* | sysv4.2uw2*) kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` if test -n "$kargmax"; then - lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'` + lt_cv_sys_max_cmd_len=`echo $kargmax | $SED 's/.*[[ ]]//'` else lt_cv_sys_max_cmd_len=32768 fi @@ -2207,26 +2218,35 @@ m4_defun([_LT_CMD_STRIPLIB], striplib= old_striplib= AC_MSG_CHECKING([whether stripping libraries is possible]) -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" - AC_MSG_RESULT([yes]) +if test -z "$STRIP"; then + AC_MSG_RESULT([no]) else -# FIXME - insert some real tests, host_os isn't really good enough - case $host_os in - darwin*) - if test -n "$STRIP"; then + if $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then + old_striplib="$STRIP --strip-debug" + striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) + else + case $host_os in + darwin*) + # FIXME - insert some real tests, host_os isn't really good enough striplib="$STRIP -x" old_striplib="$STRIP -S" AC_MSG_RESULT([yes]) - else + ;; + freebsd*) + if $STRIP -V 2>&1 | $GREP "elftoolchain" >/dev/null; then + old_striplib="$STRIP --strip-debug" + striplib="$STRIP --strip-unneeded" + AC_MSG_RESULT([yes]) + else + AC_MSG_RESULT([no]) + fi + ;; + *) AC_MSG_RESULT([no]) - fi - ;; - *) - AC_MSG_RESULT([no]) - ;; - esac + ;; + esac + fi fi _LT_DECL([], [old_striplib], [1], [Commands to strip libraries]) _LT_DECL([], [striplib], [1]) @@ -2549,7 +2569,7 @@ cygwin* | mingw* | pw32* | cegcc*) case $host_os in cygwin*) # Cygwin DLLs use 'cyg' prefix rather than 'lib' - soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + soname_spec='`echo $libname | $SED -e 's/^lib/cyg/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' m4_if([$1], [],[ sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"]) ;; @@ -2559,14 +2579,14 @@ m4_if([$1], [],[ ;; pw32*) # pw32 DLLs use 'pw' prefix rather than 'lib' - library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' + library_names_spec='`echo $libname | $SED -e 's/^lib/pw/'``echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' ;; esac dynamic_linker='Win32 ld.exe' ;; - *,cl*) - # Native MSVC + *,cl* | *,icl*) + # Native MSVC or ICC libname_spec='$name' soname_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext' library_names_spec='$libname.dll.lib' @@ -2585,7 +2605,7 @@ m4_if([$1], [],[ done IFS=$lt_save_ifs # Convert to MSYS style. - sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's|\\\\|/|g' -e 's| \\([[a-zA-Z]]\\):| /\\1|g' -e 's|^ ||'` ;; cygwin*) # Convert to unix form, then to dos form, then back to unix form @@ -2622,7 +2642,7 @@ m4_if([$1], [],[ ;; *) - # Assume MSVC wrapper + # Assume MSVC and ICC wrapper library_names_spec='$libname`echo $release | $SED -e 's/[[.]]/-/g'`$versuffix$shared_ext $libname.lib' dynamic_linker='Win32 ld.exe' ;; @@ -2655,7 +2675,7 @@ dgux*) shlibpath_var=LD_LIBRARY_PATH ;; -freebsd* | dragonfly*) +freebsd* | dragonfly* | midnightbsd*) # DragonFly does not have aout. When/if they implement a new # versioning mechanism, adjust this. if test -x /usr/bin/objformat; then @@ -2867,9 +2887,6 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) # before this can be enabled. hardcode_into_libs=yes - # Add ABI-specific directories to the system library path. - sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" - # Ideally, we could use ldconfig to report *all* directores which are # searched for libraries, however this is still not possible. Aside from not # being certain /sbin/ldconfig is available, command @@ -2878,7 +2895,7 @@ linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) # appending ld.so.conf contents (and includes) to the search path. if test -f /etc/ld.so.conf; then lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` - sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" fi # We used to test for /lib/ld.so.1 and disable shared libraries on @@ -3457,7 +3474,7 @@ beos*) bsdi[[45]]*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)' - lt_cv_file_magic_cmd='/usr/bin/file -L' + lt_cv_file_magic_cmd='$FILECMD -L' lt_cv_file_magic_test_file=/shlib/libc.so ;; @@ -3491,14 +3508,14 @@ darwin* | rhapsody*) lt_cv_deplibs_check_method=pass_all ;; -freebsd* | dragonfly*) +freebsd* | dragonfly* | midnightbsd*) if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then case $host_cpu in i*86 ) # Not sure whether the presence of OpenBSD here was a mistake. # Let's accept both of them until this is cleared up. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library' - lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` ;; esac @@ -3512,7 +3529,7 @@ haiku*) ;; hpux10.20* | hpux11*) - lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_cmd=$FILECMD case $host_cpu in ia64*) lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64' @@ -3559,7 +3576,7 @@ netbsd*) newos6*) lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)' - lt_cv_file_magic_cmd=/usr/bin/file + lt_cv_file_magic_cmd=$FILECMD lt_cv_file_magic_test_file=/usr/lib/libnls.so ;; @@ -3686,13 +3703,13 @@ else mingw*) lt_bad_file=conftest.nm/nofile ;; *) lt_bad_file=/dev/null ;; esac - case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in + case `"$tmp_nm" -B $lt_bad_file 2>&1 | $SED '1q'` in *$lt_bad_file* | *'Invalid file or object type'*) lt_cv_path_NM="$tmp_nm -B" break 2 ;; *) - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in + case `"$tmp_nm" -p /dev/null 2>&1 | $SED '1q'` in */dev/null*) lt_cv_path_NM="$tmp_nm -p" break 2 @@ -3718,7 +3735,7 @@ else # Let the user override the test. else AC_CHECK_TOOLS(DUMPBIN, [dumpbin "link -dump"], :) - case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in + case `$DUMPBIN -symbols -headers /dev/null 2>&1 | $SED '1q'` in *COFF*) DUMPBIN="$DUMPBIN -symbols -headers" ;; @@ -3958,7 +3975,7 @@ esac if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Gets list of data symbols to import. - lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" + lt_cv_sys_global_symbol_to_import="$SED -n -e 's/^I .* \(.*\)$/\1/p'" # Adjust the below global symbol transforms to fixup imported variables. lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" @@ -3976,20 +3993,20 @@ fi # Transform an extracted symbol line into a proper C declaration. # Some systems (esp. on ia64) link data and code symbols differently, # so use this general approach. -lt_cv_sys_global_symbol_to_cdecl="sed -n"\ +lt_cv_sys_global_symbol_to_cdecl="$SED -n"\ $lt_cdecl_hook\ " -e 's/^T .* \(.*\)$/extern int \1();/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" # Transform an extracted symbol line into symbol name and symbol address -lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ +lt_cv_sys_global_symbol_to_c_name_address="$SED -n"\ $lt_c_name_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" # Transform an extracted symbol line into symbol name with lib prefix and # symbol address. -lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="$SED -n"\ $lt_c_name_lib_hook\ " -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ " -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ @@ -4013,7 +4030,7 @@ for ac_symprfx in "" "_"; do if test "$lt_cv_nm_interface" = "MS dumpbin"; then # Fake it for dumpbin and say T for any non-static function, # D for any global variable and I for any imported variable. - # Also find C++ and __fastcall symbols from MSVC++, + # Also find C++ and __fastcall symbols from MSVC++ or ICC, # which start with @ or ?. lt_cv_sys_global_symbol_pipe="$AWK ['"\ " {last_section=section; section=\$ 3};"\ @@ -4031,9 +4048,9 @@ for ac_symprfx in "" "_"; do " s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ " ' prfx=^$ac_symprfx]" else - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" + lt_cv_sys_global_symbol_pipe="$SED -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" fi - lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" + lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | $SED '/ __gnu_lto/d'" # Check to see that the pipe works correctly. pipe_works=no @@ -4320,7 +4337,7 @@ m4_if([$1], [CXX], [ ;; esac ;; - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnightbsd*) # FreeBSD uses GNU C++ ;; hpux9* | hpux10* | hpux11*) @@ -4403,7 +4420,7 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' @@ -4739,7 +4756,7 @@ m4_if([$1], [CXX], [ _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink' ;; *) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [[1-7]].* | *Sun*Fortran*\ 8.[[0-3]]*) # Sun Fortran 8.3 passes all unrecognized flags to the linker _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC' @@ -4922,7 +4939,7 @@ m4_if([$1], [CXX], [ if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else - _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi ;; pw32*) @@ -4930,7 +4947,7 @@ m4_if([$1], [CXX], [ ;; cygwin* | mingw* | cegcc*) case $cc_basename in - cl*) + cl* | icl*) _LT_TAGVAR(exclude_expsyms, $1)='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' ;; *) @@ -4987,15 +5004,15 @@ dnl Note also adjust exclude_expsyms for C++ above. case $host_os in cygwin* | mingw* | pw32* | cegcc*) - # FIXME: the MSVC++ port hasn't been tested in a loooong time + # FIXME: the MSVC++ and ICC port hasn't been tested in a loooong time # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. + # Microsoft Visual C++ or Intel C++ Compiler. if test yes != "$GCC"; then with_gnu_ld=no fi ;; interix*) - # we just hope/assume this is gcc and not c89 (= MSVC++) + # we just hope/assume this is gcc and not c89 (= MSVC++ or ICC) with_gnu_ld=yes ;; openbsd* | bitrig*) @@ -5047,7 +5064,7 @@ dnl Note also adjust exclude_expsyms for C++ above. _LT_TAGVAR(whole_archive_flag_spec, $1)= fi supports_anon_versioning=no - case `$LD -v | $SED -e 's/([^)]\+)\s\+//' 2>&1` in + case `$LD -v | $SED -e 's/([[^)]]\+)\s\+//' 2>&1` in *GNU\ gold*) supports_anon_versioning=yes ;; *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... @@ -5159,6 +5176,7 @@ _LT_EOF emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' ;; interix[[3-9]]*) @@ -5173,7 +5191,7 @@ _LT_EOF # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) @@ -5216,7 +5234,7 @@ _LT_EOF _LT_TAGVAR(compiler_needs_object, $1)=yes ;; esac - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C 5.9 _LT_TAGVAR(whole_archive_flag_spec, $1)='$wl--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` $wl--no-whole-archive' _LT_TAGVAR(compiler_needs_object, $1)=yes @@ -5228,7 +5246,7 @@ _LT_EOF if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi @@ -5244,7 +5262,7 @@ _LT_EOF _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' fi @@ -5376,7 +5394,7 @@ _LT_EOF if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && ([substr](\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' else - _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' + _LT_TAGVAR(export_symbols_cmds, $1)='`func_echo_all $NM | $SED -e '\''s/B\([[^B]]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && ([substr](\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' fi aix_use_runtimelinking=no @@ -5559,12 +5577,12 @@ _LT_EOF cygwin* | mingw* | pw32* | cegcc*) # When not using gcc, we currently assume that we are using - # Microsoft Visual C++. + # Microsoft Visual C++ or Intel C++ Compiler. # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. case $cc_basename in - cl*) - # Native MSVC + cl* | icl*) + # Native MSVC or ICC _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported _LT_TAGVAR(always_export_symbols, $1)=yes @@ -5605,7 +5623,7 @@ _LT_EOF fi' ;; *) - # Assume MSVC wrapper + # Assume MSVC and ICC wrapper _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' _LT_TAGVAR(allow_undefined_flag, $1)=unsupported # Tell ltmain to make .lib files, not .a files. @@ -5653,7 +5671,7 @@ _LT_EOF ;; # FreeBSD 3 and greater uses gcc -shared to do shared libraries. - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnightbsd*) _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir' _LT_TAGVAR(hardcode_direct, $1)=yes @@ -5864,6 +5882,7 @@ _LT_EOF emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' ;; osf3*) @@ -6634,8 +6653,8 @@ if test yes != "$_lt_caught_CXX_error"; then cygwin* | mingw* | pw32* | cegcc*) case $GXX,$cc_basename in - ,cl* | no,cl*) - # Native MSVC + ,cl* | no,cl* | ,icl* | no,icl*) + # Native MSVC or ICC # hardcode_libdir_flag_spec is actually meaningless, as there is # no search path for DLLs. _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' ' @@ -6733,6 +6752,7 @@ if test yes != "$_lt_caught_CXX_error"; then emximp -o $lib $output_objdir/$libname.def' _LT_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes + _LT_TAGVAR(file_list_spec, $1)='@' ;; dgux*) @@ -6763,7 +6783,7 @@ if test yes != "$_lt_caught_CXX_error"; then _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;; - freebsd* | dragonfly*) + freebsd* | dragonfly* | midnightbsd*) # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF # conventions _LT_TAGVAR(ld_shlibs, $1)=yes @@ -6900,7 +6920,7 @@ if test yes != "$_lt_caught_CXX_error"; then # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link # time. Moving up from 0x10000000 also allows more sbrk(2) space. _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' - _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' + _LT_TAGVAR(archive_expsym_cmds, $1)='$SED "s|^|_|" $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--retain-symbols-file,$output_objdir/$soname.expsym $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' ;; irix5* | irix6*) case $cc_basename in @@ -7040,13 +7060,13 @@ if test yes != "$_lt_caught_CXX_error"; then _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' if test yes = "$supports_anon_versioning"; then _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~ - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ + cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ echo "local: *; };" >> $output_objdir/$libname.ver~ $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' fi ;; *) - case `$CC -V 2>&1 | sed 5q` in + case `$CC -V 2>&1 | $SED 5q` in *Sun\ C*) # Sun C++ 5.9 _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs' @@ -7531,10 +7551,11 @@ if AC_TRY_EVAL(ac_compile); then # the conftest object file. pre_test_object_deps_done=no + eval std_shrext=\"$shrext_cmds\" for p in `eval "$output_verbose_link_cmd"`; do case $prev$p in - -L* | -R* | -l*) + -L* | -R* | -l* | *.${libext} | *${std_shrext}) # Some compilers place space between "-{L,R}" and the path. # Remove the space. if test x-L = "$p" || @@ -8192,6 +8213,14 @@ _LT_DECL([], [DLLTOOL], [1], [DLL creation program]) AC_SUBST([DLLTOOL]) ]) +# _LT_DECL_FILECMD +# ---------------- +# Check for a file(cmd) program that can be used to detect file type and magic +m4_defun([_LT_DECL_FILECMD], +[AC_CHECK_TOOL([FILECMD], [file], [:]) +_LT_DECL([], [FILECMD], [1], [A file(cmd) program that detects file types]) +])# _LD_DECL_FILECMD + # _LT_DECL_SED # ------------ # Check for a fully-functional sed program, that truncates diff --git a/libesedb-sys/libesedb-20210424/m4/libuna.m4 b/libesedb-sys/libesedb-20230824/m4/libuna.m4 similarity index 75% rename from libesedb-sys/libesedb-20210424/m4/libuna.m4 rename to libesedb-sys/libesedb-20230824/m4/libuna.m4 index 9e8a927..4462a91 100644 --- a/libesedb-sys/libesedb-20210424/m4/libuna.m4 +++ b/libesedb-sys/libesedb-20230824/m4/libuna.m4 @@ -1,6 +1,6 @@ dnl Checks for libuna or required headers and functions dnl -dnl Version: 20200711 +dnl Version: 20230702 dnl Function to detect if a specific libuna definition is available. AC_DEFUN([AX_LIBUNA_CHECK_DEFINITION], @@ -43,7 +43,7 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], [test "x$cross_compiling" != "xyes" && test "x$PKGCONFIG" != "x"], [PKG_CHECK_MODULES( [libuna], - [libuna >= 20200711], + [libuna >= 20230702], [ac_cv_libuna=yes], [ac_cv_libuna=check]) ]) @@ -225,6 +225,138 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + dnl Unicode character functions + AC_CHECK_LIB( + una, + libuna_unicode_character_size_to_byte_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_byte_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_byte_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_size_to_ucs2, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_ucs2, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_ucs2, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_size_to_ucs4, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_ucs4, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_ucs4, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_utf7_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_utf7_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_size_to_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_size_to_utf8_rfc2279, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_utf8_rfc2279, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_utf8_rfc2279, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_size_to_utf16, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_utf16, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_utf16, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_utf16_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_utf16_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_utf32, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_utf32, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_from_utf32_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_unicode_character_copy_to_utf32_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + dnl UTF-8 stream functions AC_CHECK_LIB( una, @@ -337,6 +469,11 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], libuna_utf8_string_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf8_string_compare_with_byte_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_utf7_stream, @@ -352,6 +489,11 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], libuna_utf8_string_with_index_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf8_string_compare_with_utf7_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_utf8_stream, @@ -369,47 +511,47 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_size_from_utf16_stream, + libuna_utf8_string_compare_with_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_copy_from_utf16_stream, + libuna_utf8_string_size_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_with_index_copy_from_utf16_stream, + libuna_utf8_string_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_size_from_utf32_stream, + libuna_utf8_string_with_index_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_copy_from_utf32_stream, + libuna_utf8_string_compare_with_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_with_index_copy_from_utf32_stream, + libuna_utf8_string_size_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_size_from_utf16, + libuna_utf8_string_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_copy_from_utf16, + libuna_utf8_string_with_index_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf8_string_with_index_copy_from_utf16, + libuna_utf8_string_compare_with_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( @@ -427,6 +569,31 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], libuna_utf8_string_with_index_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf8_string_compare_with_utf32, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf8_string_size_from_utf32_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf8_string_copy_from_utf32_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf8_string_with_index_copy_from_utf32_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf8_string_compare_with_utf32_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf8_string_size_from_scsu_stream, @@ -459,6 +626,11 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], libuna_utf16_string_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf16_string_compare_with_byte_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf7_stream, @@ -474,6 +646,27 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], libuna_utf16_string_with_index_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf16_string_compare_with_utf7_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf16_string_size_from_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf16_string_copy_from_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf16_string_with_index_copy_from_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + dnl libuna_utf16_string_compare_with_utf8 is implemented by libuna_utf8_string_compare_with_utf16 AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf8_stream, @@ -489,6 +682,11 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], libuna_utf16_string_with_index_copy_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf16_string_compare_with_utf8_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf16_string_size_from_utf16_stream, @@ -506,47 +704,47 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_size_from_utf32_stream, + libuna_utf16_string_compare_with_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_copy_from_utf32_stream, + libuna_utf16_string_size_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_with_index_copy_from_utf32_stream, + libuna_utf16_string_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_size_from_utf8, + libuna_utf16_string_with_index_copy_from_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_copy_from_utf8, + libuna_utf16_string_compare_with_utf32, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_with_index_copy_from_utf8, + libuna_utf16_string_size_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_size_from_utf32, + libuna_utf16_string_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_copy_from_utf32, + libuna_utf16_string_with_index_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf16_string_with_index_copy_from_utf32, + libuna_utf16_string_compare_with_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( @@ -581,6 +779,11 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], libuna_utf32_string_with_index_copy_from_byte_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf32_string_compare_with_byte_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_size_from_utf7_stream, @@ -596,11 +799,31 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], libuna_utf32_string_with_index_copy_from_utf7_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf32_string_compare_with_utf7_stream, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) AC_CHECK_LIB( una, libuna_utf32_string_size_from_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf32_string_size_from_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + una, + libuna_utf32_string_copy_from_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + AC_CHECK_LIB( + libuna_utf32_string_with_index_copy_from_utf8, + [ac_cv_libuna_dummy=yes], + [ac_cv_libuna=no]) + dnl libuna_utf32_string_compare_with_utf8 is implemented by libuna_utf8_string_compare_with_utf32 AC_CHECK_LIB( una, libuna_utf32_string_copy_from_utf8_stream, @@ -613,61 +836,63 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_size_from_utf16_stream, + libuna_utf32_string_compare_with_utf8_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_copy_from_utf16_stream, + libuna_utf32_string_size_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_with_index_copy_from_utf16_stream, + libuna_utf32_string_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_size_from_utf32_stream, + libuna_utf32_string_with_index_copy_from_utf16, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) + dnl libuna_utf32_string_compare_with_utf16 is implemented by libuna_utf16_string_compare_with_utf32 AC_CHECK_LIB( una, - libuna_utf32_string_copy_from_utf32_stream, + libuna_utf32_string_size_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_with_index_copy_from_utf32_stream, + libuna_utf32_string_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_size_from_utf8, + libuna_utf32_string_with_index_copy_from_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_copy_from_utf8, + libuna_utf32_string_compare_with_utf16_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( - libuna_utf32_string_with_index_copy_from_utf8, + una, + libuna_utf32_string_size_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_size_from_utf16, + libuna_utf32_string_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_copy_from_utf16, + libuna_utf32_string_with_index_copy_from_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( una, - libuna_utf32_string_with_index_copy_from_utf16, + libuna_utf32_string_compare_with_utf32_stream, [ac_cv_libuna_dummy=yes], [ac_cv_libuna=no]) AC_CHECK_LIB( @@ -708,6 +933,13 @@ AC_DEFUN([AX_LIBUNA_CHECK_LIB], [test "x$ac_cv_libuna_defines_compare_less" != xyes], [ac_cv_libuna=no]) + AX_LIBUNA_CHECK_DEFINITION( + LIBUNA_UTF16_STREAM_ALLOW_UNPAIRED_SURROGATE, + [ac_cv_libuna_defines_compare_greater]) + AS_IF( + [test "x$ac_cv_libuna_defines_utf16_stream_allow_unpaired_surrogate" != xyes], + [ac_cv_libuna=no]) + ac_cv_libuna_LIBADD="-luna"]) ]) AS_IF( diff --git a/libesedb-sys/libesedb-20210424/m4/ltoptions.m4 b/libesedb-sys/libesedb-20230824/m4/ltoptions.m4 similarity index 99% rename from libesedb-sys/libesedb-20210424/m4/ltoptions.m4 rename to libesedb-sys/libesedb-20230824/m4/ltoptions.m4 index 94b0829..b0b5e9c 100644 --- a/libesedb-sys/libesedb-20210424/m4/ltoptions.m4 +++ b/libesedb-sys/libesedb-20230824/m4/ltoptions.m4 @@ -1,7 +1,7 @@ # Helper functions for option handling. -*- Autoconf -*- # -# Copyright (C) 2004-2005, 2007-2009, 2011-2015 Free Software -# Foundation, Inc. +# Copyright (C) 2004-2005, 2007-2009, 2011-2019, 2021-2022 Free +# Software Foundation, Inc. # Written by Gary V. Vaughan, 2004 # # This file is free software; the Free Software Foundation gives diff --git a/libesedb-sys/libesedb-20210424/m4/ltsugar.m4 b/libesedb-sys/libesedb-20230824/m4/ltsugar.m4 similarity index 98% rename from libesedb-sys/libesedb-20210424/m4/ltsugar.m4 rename to libesedb-sys/libesedb-20230824/m4/ltsugar.m4 index 48bc934..902508b 100644 --- a/libesedb-sys/libesedb-20210424/m4/ltsugar.m4 +++ b/libesedb-sys/libesedb-20230824/m4/ltsugar.m4 @@ -1,6 +1,6 @@ # ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*- # -# Copyright (C) 2004-2005, 2007-2008, 2011-2015 Free Software +# Copyright (C) 2004-2005, 2007-2008, 2011-2019, 2021-2022 Free Software # Foundation, Inc. # Written by Gary V. Vaughan, 2004 # diff --git a/libesedb-sys/libesedb-20210424/m4/ltversion.m4 b/libesedb-sys/libesedb-20230824/m4/ltversion.m4 similarity index 66% rename from libesedb-sys/libesedb-20210424/m4/ltversion.m4 rename to libesedb-sys/libesedb-20230824/m4/ltversion.m4 index fa04b52..b155d0a 100644 --- a/libesedb-sys/libesedb-20210424/m4/ltversion.m4 +++ b/libesedb-sys/libesedb-20230824/m4/ltversion.m4 @@ -1,6 +1,7 @@ # ltversion.m4 -- version numbers -*- Autoconf -*- # -# Copyright (C) 2004, 2011-2015 Free Software Foundation, Inc. +# Copyright (C) 2004, 2011-2019, 2021-2022 Free Software Foundation, +# Inc. # Written by Scott James Remnant, 2004 # # This file is free software; the Free Software Foundation gives @@ -9,15 +10,15 @@ # @configure_input@ -# serial 4179 ltversion.m4 +# serial 4245 ltversion.m4 # This file is part of GNU Libtool -m4_define([LT_PACKAGE_VERSION], [2.4.6]) -m4_define([LT_PACKAGE_REVISION], [2.4.6]) +m4_define([LT_PACKAGE_VERSION], [2.4.7]) +m4_define([LT_PACKAGE_REVISION], [2.4.7]) AC_DEFUN([LTVERSION_VERSION], -[macro_version='2.4.6' -macro_revision='2.4.6' +[macro_version='2.4.7' +macro_revision='2.4.7' _LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?]) _LT_DECL(, macro_revision, 0) ]) diff --git a/libesedb-sys/libesedb-20210424/m4/lt~obsolete.m4 b/libesedb-sys/libesedb-20230824/m4/lt~obsolete.m4 similarity index 98% rename from libesedb-sys/libesedb-20210424/m4/lt~obsolete.m4 rename to libesedb-sys/libesedb-20230824/m4/lt~obsolete.m4 index c6b26f8..0f7a875 100644 --- a/libesedb-sys/libesedb-20210424/m4/lt~obsolete.m4 +++ b/libesedb-sys/libesedb-20230824/m4/lt~obsolete.m4 @@ -1,7 +1,7 @@ # lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*- # -# Copyright (C) 2004-2005, 2007, 2009, 2011-2015 Free Software -# Foundation, Inc. +# Copyright (C) 2004-2005, 2007, 2009, 2011-2019, 2021-2022 Free +# Software Foundation, Inc. # Written by Scott James Remnant, 2004. # # This file is free software; the Free Software Foundation gives diff --git a/libesedb-sys/libesedb-20210424/m4/nls.m4 b/libesedb-sys/libesedb-20230824/m4/nls.m4 similarity index 66% rename from libesedb-sys/libesedb-20210424/m4/nls.m4 rename to libesedb-sys/libesedb-20230824/m4/nls.m4 index 003704c..5a506fc 100644 --- a/libesedb-sys/libesedb-20210424/m4/nls.m4 +++ b/libesedb-sys/libesedb-20230824/m4/nls.m4 @@ -1,17 +1,17 @@ -# nls.m4 serial 5 (gettext-0.18) -dnl Copyright (C) 1995-2003, 2005-2006, 2008-2010 Free Software Foundation, -dnl Inc. +# nls.m4 serial 6 (gettext-0.20.2) +dnl Copyright (C) 1995-2003, 2005-2006, 2008-2014, 2016, 2019-2020 Free +dnl Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Lesser General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. +dnl by the GNU Lesser General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: diff --git a/libesedb-sys/libesedb-20210424/m4/po.m4 b/libesedb-sys/libesedb-20230824/m4/po.m4 similarity index 85% rename from libesedb-sys/libesedb-20210424/m4/po.m4 rename to libesedb-sys/libesedb-20230824/m4/po.m4 index 47f36a4..3778fd7 100644 --- a/libesedb-sys/libesedb-20210424/m4/po.m4 +++ b/libesedb-sys/libesedb-20230824/m4/po.m4 @@ -1,35 +1,36 @@ -# po.m4 serial 17 (gettext-0.18) -dnl Copyright (C) 1995-2010 Free Software Foundation, Inc. +# po.m4 serial 31 (gettext-0.20.2) +dnl Copyright (C) 1995-2014, 2016, 2018-2020 Free Software Foundation, Inc. dnl This file is free software; the Free Software Foundation dnl gives unlimited permission to copy and/or distribute it, dnl with or without modifications, as long as this notice is preserved. dnl -dnl This file can can be used in projects which are not available under -dnl the GNU General Public License or the GNU Library General Public +dnl This file can be used in projects which are not available under +dnl the GNU General Public License or the GNU Lesser General Public dnl License but which still want to provide support for the GNU gettext dnl functionality. dnl Please note that the actual code of the GNU gettext library is covered -dnl by the GNU Library General Public License, and the rest of the GNU -dnl gettext package package is covered by the GNU General Public License. +dnl by the GNU Lesser General Public License, and the rest of the GNU +dnl gettext package is covered by the GNU General Public License. dnl They are *not* in the public domain. dnl Authors: dnl Ulrich Drepper , 1995-2000. dnl Bruno Haible , 2000-2003. -AC_PREREQ([2.50]) +AC_PREREQ([2.60]) dnl Checks for all prerequisites of the po subdirectory. AC_DEFUN([AM_PO_SUBDIRS], [ AC_REQUIRE([AC_PROG_MAKE_SET])dnl AC_REQUIRE([AC_PROG_INSTALL])dnl - AC_REQUIRE([AM_PROG_MKDIR_P])dnl defined by automake + AC_REQUIRE([AC_PROG_MKDIR_P])dnl + AC_REQUIRE([AC_PROG_SED])dnl AC_REQUIRE([AM_NLS])dnl dnl Release version of the gettext macros. This is used to ensure that dnl the gettext macros and po/Makefile.in.in are in sync. - AC_SUBST([GETTEXT_MACRO_VERSION], [0.18]) + AC_SUBST([GETTEXT_MACRO_VERSION], [0.20]) dnl Perform the following tests also if --disable-nls has been given, dnl because they are needed for "make dist" to work. @@ -44,13 +45,6 @@ AC_DEFUN([AM_PO_SUBDIRS], AC_PATH_PROG([GMSGFMT], [gmsgfmt], [$MSGFMT]) dnl Test whether it is GNU msgfmt >= 0.15. -changequote(,)dnl - case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; - *) MSGFMT_015=$MSGFMT ;; - esac -changequote([,])dnl - AC_SUBST([MSGFMT_015]) changequote(,)dnl case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; @@ -82,11 +76,21 @@ changequote([,])dnl AM_PATH_PROG_WITH_TEST(MSGMERGE, msgmerge, [$ac_dir/$ac_word --update -q /dev/null /dev/null >&]AS_MESSAGE_LOG_FD[ 2>&1], :) - dnl Installation directories. - dnl Autoconf >= 2.60 defines localedir. For older versions of autoconf, we - dnl have to define it here, so that it can be used in po/Makefile. - test -n "$localedir" || localedir='${datadir}/locale' - AC_SUBST([localedir]) + dnl Test whether it is GNU msgmerge >= 0.20. + if LC_ALL=C $MSGMERGE --help | grep ' --for-msgfmt ' >/dev/null; then + MSGMERGE_FOR_MSGFMT_OPTION='--for-msgfmt' + else + dnl Test whether it is GNU msgmerge >= 0.12. + if LC_ALL=C $MSGMERGE --help | grep ' --no-fuzzy-matching ' >/dev/null; then + MSGMERGE_FOR_MSGFMT_OPTION='--no-fuzzy-matching --no-location --quiet' + else + dnl With these old versions, $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) is + dnl slow. But this is not a big problem, as such old gettext versions are + dnl hardly in use any more. + MSGMERGE_FOR_MSGFMT_OPTION='--no-location --quiet' + fi + fi + AC_SUBST([MSGMERGE_FOR_MSGFMT_OPTION]) dnl Support for AM_XGETTEXT_OPTION. test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= @@ -102,7 +106,7 @@ changequote([,])dnl case "$ac_file" in */Makefile.in) # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. @@ -118,7 +122,8 @@ changequote([,])dnl if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then rm -f "$ac_dir/POTFILES" test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" - cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" + gt_tab=`printf '\t'` + cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" POMAKEFILEDEPS="POTFILES.in" # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend # on $ac_dir but don't depend on user-specified configuration @@ -128,14 +133,11 @@ changequote([,])dnl if test -n "$OBSOLETE_ALL_LINGUAS"; then test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" fi - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_' + ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # The set of available languages was given in configure.in. - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' + ALL_LINGUAS=$OBSOLETE_ALL_LINGUAS fi # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) @@ -206,9 +208,8 @@ changequote([,])dnl esac done]], [# Capture the value of obsolete ALL_LINGUAS because we need it to compute - # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it - # from automake < 1.5. - eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' + # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. + OBSOLETE_ALL_LINGUAS="$ALL_LINGUAS" # Capture the value of LINGUAS because we need it to compute CATALOGS. LINGUAS="${LINGUAS-%UNSET%}" ]) @@ -226,7 +227,7 @@ AC_DEFUN([AM_POSTPROCESS_PO_MAKEFILE], changequote(,)dnl # Adjust a relative srcdir. ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` - ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" + ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` # In autoconf-2.13 it is called $ac_given_srcdir. # In autoconf-2.50 it is called $srcdir. @@ -254,6 +255,7 @@ EOT fi # A sed script that extracts the value of VARIABLE from a Makefile. + tab=`printf '\t'` sed_x_variable=' # Test if the hold space is empty. x @@ -261,9 +263,9 @@ s/P/P/ x ta # Yes it was empty. Look if we have the expected variable definition. -/^[ ]*VARIABLE[ ]*=/{ +/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=/{ # Seen the first line of the variable definition. - s/^[ ]*VARIABLE[ ]*=// + s/^['"${tab}"' ]*VARIABLE['"${tab}"' ]*=// ba } bd @@ -308,15 +310,13 @@ changequote([,])dnl fi if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then # The LINGUAS file contains the set of available languages. - ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` + ALL_LINGUAS=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" else # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS. sed_x_LINGUAS=`$gt_echo "$sed_x_variable" | sed -e '/^ *#/d' -e 's/VARIABLE/LINGUAS/g'` - ALL_LINGUAS_=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` + ALL_LINGUAS=`sed -n -e "$sed_x_LINGUAS" < "$ac_file"` fi - # Hide the ALL_LINGUAS assigment from automake < 1.5. - eval 'ALL_LINGUAS''=$ALL_LINGUAS_' # Compute POFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) # Compute UPDATEPOFILES @@ -326,9 +326,9 @@ changequote([,])dnl # Compute GMOFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) # Compute PROPERTIESFILES - # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).properties) + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(DOMAIN)_$(lang).properties) # Compute CLASSFILES - # as $(foreach lang, $(ALL_LINGUAS), $(top_srcdir)/$(DOMAIN)_$(lang).class) + # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(DOMAIN)_$(lang).class) # Compute QMFILES # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).qm) # Compute MSGFILES @@ -353,8 +353,8 @@ changequote([,])dnl UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" DUMMYPOFILES="$DUMMYPOFILES $lang.nop" GMOFILES="$GMOFILES $srcdirpre$lang.gmo" - PROPERTIESFILES="$PROPERTIESFILES \$(top_srcdir)/\$(DOMAIN)_$lang.properties" - CLASSFILES="$CLASSFILES \$(top_srcdir)/\$(DOMAIN)_$lang.class" + PROPERTIESFILES="$PROPERTIESFILES \$(srcdir)/\$(DOMAIN)_$lang.properties" + CLASSFILES="$CLASSFILES \$(srcdir)/\$(DOMAIN)_$lang.class" QMFILES="$QMFILES $srcdirpre$lang.qm" frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` MSGFILES="$MSGFILES $srcdirpre$frobbedlang.msg" @@ -405,14 +405,15 @@ changequote([,])dnl fi sed -e "s|@POTFILES_DEPS@|$POTFILES_DEPS|g" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@PROPERTIESFILES@|$PROPERTIESFILES|g" -e "s|@CLASSFILES@|$CLASSFILES|g" -e "s|@QMFILES@|$QMFILES|g" -e "s|@MSGFILES@|$MSGFILES|g" -e "s|@RESOURCESDLLFILES@|$RESOURCESDLLFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@JAVACATALOGS@|$JAVACATALOGS|g" -e "s|@QTCATALOGS@|$QTCATALOGS|g" -e "s|@TCLCATALOGS@|$TCLCATALOGS|g" -e "s|@CSHARPCATALOGS@|$CSHARPCATALOGS|g" -e 's,^#distdir:,distdir:,' < "$ac_file" > "$ac_file.tmp" + tab=`printf '\t'` if grep -l '@TCLCATALOGS@' "$ac_file" > /dev/null; then # Add dependencies that cannot be formulated as a simple suffix rule. for lang in $ALL_LINGUAS; do frobbedlang=`echo $lang | sed -e 's/\..*$//' -e 'y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/'` cat >> "$ac_file.tmp" <> "$ac_file.tmp" <conf$$.sh - echo "exit 0" >>conf$$.sh - chmod +x conf$$.sh - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then - PATH_SEPARATOR=';' - else - PATH_SEPARATOR=: - fi - rm -f conf$$.sh + # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which + # contains only /bin. Note that ksh looks also at the FPATH variable, + # so we have to set that as well for the test. + PATH_SEPARATOR=: + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ + || PATH_SEPARATOR=';' + } fi # Find out how to test for executable files. Don't use a zero-byte file, diff --git a/libesedb-sys/libesedb-20210424/m4/pthread.m4 b/libesedb-sys/libesedb-20230824/m4/pthread.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/pthread.m4 rename to libesedb-sys/libesedb-20230824/m4/pthread.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/python.m4 b/libesedb-sys/libesedb-20230824/m4/python.m4 similarity index 93% rename from libesedb-sys/libesedb-20210424/m4/python.m4 rename to libesedb-sys/libesedb-20230824/m4/python.m4 index 86d4497..307e15c 100644 --- a/libesedb-sys/libesedb-20210424/m4/python.m4 +++ b/libesedb-sys/libesedb-20230824/m4/python.m4 @@ -1,6 +1,6 @@ dnl Functions for Python bindings dnl -dnl Version: 20201230 +dnl Version: 20211114 dnl Function to check if the python binary is available dnl "python${PYTHON_VERSION} python python# python#.#" @@ -8,13 +8,13 @@ AC_DEFUN([AX_PROG_PYTHON], [AS_IF( [test "x${PYTHON_VERSION}" != x], [ax_python_progs="python${PYTHON_VERSION}"], - [ax_python_progs="python python3 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5"]) + [ax_python_progs="python python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0 python2 python2.7 python2.6 python2.5"]) AC_CHECK_PROGS( [PYTHON], [$ax_python_progs]) AS_IF( [test "x${PYTHON}" != x], - [ax_prog_python_version=`${PYTHON} -c "import sys; sys.stdout.write(sys.version[[:3]])" 2>/dev/null`; + [ax_prog_python_version=`${PYTHON} -c "import sys; sys.stdout.write('%d.%d' % (sys.version_info[[0]], sys.version_info[[1]]))" 2>/dev/null`; ax_prog_python_platform=`${PYTHON} -c "import sys; sys.stdout.write(sys.platform)" 2>/dev/null`; AC_SUBST( [PYTHON_PLATFORM], @@ -37,7 +37,7 @@ AC_DEFUN([AX_PROG_PYTHON2], [$ax_python2_progs]) AS_IF( [test "x${PYTHON2}" != x], - [ax_prog_python2_version=`${PYTHON2} -c "import sys; sys.stdout.write(sys.version[[:3]])" 2>/dev/null`; + [ax_prog_python2_version=`${PYTHON2} -c "import sys; sys.stdout.write('%d.%d' % (sys.version_info[[0]], sys.version_info[[1]]))" 2>/dev/null`; AC_SUBST( [PYTHON2_VERSION], [$ax_prog_python2_version]) @@ -58,13 +58,13 @@ AC_DEFUN([AX_PROG_PYTHON2], dnl Function to check if the python3 binary is available dnl "python3 python3.#" AC_DEFUN([AX_PROG_PYTHON3], - [ax_python3_progs="python3 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0" + [ax_python3_progs="python3 python3.11 python3.10 python3.9 python3.8 python3.7 python3.6 python3.5 python3.4 python3.3 python3.2 python3.1 python3.0" AC_CHECK_PROGS( [PYTHON3], [$ax_python3_progs]) AS_IF( [test "x${PYTHON3}" != x], - [ax_prog_python3_version=`${PYTHON3} -c "import sys; sys.stdout.write(sys.version[[:3]])" 2>/dev/null`; + [ax_prog_python3_version=`${PYTHON3} -c "import sys; sys.stdout.write('%d.%d' % (sys.version_info[[0]], sys.version_info[[1]]))" 2>/dev/null`; AC_SUBST( [PYTHON3_VERSION], [$ax_prog_python3_version]) @@ -95,7 +95,7 @@ AC_DEFUN([AX_PROG_PYTHON_CONFIG], [test "x${PYTHON_CONFIG}" = x], [AC_CHECK_PROGS( [PYTHON_CONFIG], - [python-config python3-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config python2-config python2.7-config python2.6-config python2.5-config]) + [python-config python3-config python3.11-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config python2-config python2.7-config python2.6-config python2.5-config]) ]) AS_IF( [test "x${PYTHON_CONFIG}" = x], @@ -131,7 +131,7 @@ AC_DEFUN([AX_PROG_PYTHON3_CONFIG], [test "x${PYTHON3_CONFIG}" = x], [AC_CHECK_PROGS( [PYTHON3_CONFIG], - [python3-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config]) + [python3-config python3.11-config python3.10-config python3.9-config python3.8-config python3.7-config python3.6-config python3.5-config python3.4-config python3.3-config python3.2-config python3.1-config python3.0-config]) ]) AS_IF( [test "x${PYTHON3_CONFIG}" = x], diff --git a/libesedb-sys/libesedb-20210424/m4/tests.m4 b/libesedb-sys/libesedb-20230824/m4/tests.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/tests.m4 rename to libesedb-sys/libesedb-20230824/m4/tests.m4 diff --git a/libesedb-sys/libesedb-20210424/m4/types.m4 b/libesedb-sys/libesedb-20230824/m4/types.m4 similarity index 100% rename from libesedb-sys/libesedb-20210424/m4/types.m4 rename to libesedb-sys/libesedb-20230824/m4/types.m4 diff --git a/libesedb-sys/libesedb-20210424/manuals/Makefile.am b/libesedb-sys/libesedb-20230824/manuals/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/manuals/Makefile.am rename to libesedb-sys/libesedb-20230824/manuals/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/manuals/Makefile.in b/libesedb-sys/libesedb-20230824/manuals/Makefile.in similarity index 94% rename from libesedb-sys/libesedb-20210424/manuals/Makefile.in rename to libesedb-sys/libesedb-20230824/manuals/Makefile.in index 1deffd6..9573c36 100644 --- a/libesedb-sys/libesedb-20210424/manuals/Makefile.in +++ b/libesedb-sys/libesedb-20230824/manuals/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -90,25 +90,26 @@ host_triplet = @host@ subdir = manuals ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -184,6 +185,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -199,8 +202,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -318,8 +323,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -526,6 +531,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -675,7 +681,6 @@ ctags CTAGS: cscope cscopelist: - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/manuals/esedbinfo.1 b/libesedb-sys/libesedb-20230824/manuals/esedbinfo.1 similarity index 100% rename from libesedb-sys/libesedb-20210424/manuals/esedbinfo.1 rename to libesedb-sys/libesedb-20230824/manuals/esedbinfo.1 diff --git a/libesedb-sys/libesedb-20210424/manuals/libesedb.3 b/libesedb-sys/libesedb-20230824/manuals/libesedb.3 similarity index 99% rename from libesedb-sys/libesedb-20210424/manuals/libesedb.3 rename to libesedb-sys/libesedb-20230824/manuals/libesedb.3 index 08534e7..48ab1fc 100644 --- a/libesedb-sys/libesedb-20210424/manuals/libesedb.3 +++ b/libesedb-sys/libesedb-20230824/manuals/libesedb.3 @@ -301,7 +301,7 @@ Please report bugs of any kind on the project issue tracker: https://github.com/ .Sh AUTHOR These man pages are generated from "libesedb.h". .Sh COPYRIGHT -Copyright (C) 2009-2021, Joachim Metz . +Copyright (C) 2009-2023, Joachim Metz . .sp This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. diff --git a/libesedb-sys/libesedb-20210424/missing b/libesedb-sys/libesedb-20230824/missing similarity index 99% rename from libesedb-sys/libesedb-20210424/missing rename to libesedb-sys/libesedb-20230824/missing index 8d0eaad..1fe1611 100644 --- a/libesedb-sys/libesedb-20210424/missing +++ b/libesedb-sys/libesedb-20230824/missing @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 1996-2020 Free Software Foundation, Inc. +# Copyright (C) 1996-2021 Free Software Foundation, Inc. # Originally written by Fran,cois Pinard , 1996. # This program is free software; you can redistribute it and/or modify diff --git a/libesedb-sys/libesedb-20210424/msvscpp/Makefile.am b/libesedb-sys/libesedb-20230824/msvscpp/Makefile.am similarity index 93% rename from libesedb-sys/libesedb-20210424/msvscpp/Makefile.am rename to libesedb-sys/libesedb-20230824/msvscpp/Makefile.am index f93ed73..57499b3 100644 --- a/libesedb-sys/libesedb-20210424/msvscpp/Makefile.am +++ b/libesedb-sys/libesedb-20230824/msvscpp/Makefile.am @@ -1,4 +1,7 @@ MSVSCPP_FILES = \ + esedb_test_block_descriptor/esedb_test_block_descriptor.vcproj \ + esedb_test_block_tree/esedb_test_block_tree.vcproj \ + esedb_test_block_tree_node/esedb_test_block_tree_node.vcproj \ esedb_test_catalog/esedb_test_catalog.vcproj \ esedb_test_catalog_definition/esedb_test_catalog_definition.vcproj \ esedb_test_checksum/esedb_test_checksum.vcproj \ diff --git a/libesedb-sys/libesedb-20210424/msvscpp/Makefile.in b/libesedb-sys/libesedb-20230824/msvscpp/Makefile.in similarity index 93% rename from libesedb-sys/libesedb-20210424/msvscpp/Makefile.in rename to libesedb-sys/libesedb-20230824/msvscpp/Makefile.in index 186ab07..20dd314 100644 --- a/libesedb-sys/libesedb-20210424/msvscpp/Makefile.in +++ b/libesedb-sys/libesedb-20230824/msvscpp/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -90,25 +90,26 @@ host_triplet = @host@ subdir = msvscpp ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -152,6 +153,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -167,8 +170,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -286,8 +291,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -494,6 +499,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -503,6 +509,9 @@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ MSVSCPP_FILES = \ + esedb_test_block_descriptor/esedb_test_block_descriptor.vcproj \ + esedb_test_block_tree/esedb_test_block_tree.vcproj \ + esedb_test_block_tree_node/esedb_test_block_tree_node.vcproj \ esedb_test_catalog/esedb_test_catalog.vcproj \ esedb_test_catalog_definition/esedb_test_catalog_definition.vcproj \ esedb_test_checksum/esedb_test_checksum.vcproj \ @@ -612,7 +621,6 @@ ctags CTAGS: cscope cscopelist: - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_descriptor/esedb_test_block_descriptor.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_descriptor/esedb_test_block_descriptor.vcproj new file mode 100644 index 0000000..2a4ec72 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_descriptor/esedb_test_block_descriptor.vcproj @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_tree/esedb_test_block_tree.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_tree/esedb_test_block_tree.vcproj new file mode 100644 index 0000000..d52e27b --- /dev/null +++ b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_tree/esedb_test_block_tree.vcproj @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_tree_node/esedb_test_block_tree_node.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_tree_node/esedb_test_block_tree_node.vcproj new file mode 100644 index 0000000..85e91ee --- /dev/null +++ b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_block_tree_node/esedb_test_block_tree_node.vcproj @@ -0,0 +1,222 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_catalog/esedb_test_catalog.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_catalog/esedb_test_catalog.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_catalog/esedb_test_catalog.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_catalog/esedb_test_catalog.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_catalog_definition/esedb_test_catalog_definition.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_catalog_definition/esedb_test_catalog_definition.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_catalog_definition/esedb_test_catalog_definition.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_catalog_definition/esedb_test_catalog_definition.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_checksum/esedb_test_checksum.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_checksum/esedb_test_checksum.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_checksum/esedb_test_checksum.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_checksum/esedb_test_checksum.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_column/esedb_test_column.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_column/esedb_test_column.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_column/esedb_test_column.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_column/esedb_test_column.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_column_type/esedb_test_column_type.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_column_type/esedb_test_column_type.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_column_type/esedb_test_column_type.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_column_type/esedb_test_column_type.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_compression/esedb_test_compression.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_compression/esedb_test_compression.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_compression/esedb_test_compression.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_compression/esedb_test_compression.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_data_definition/esedb_test_data_definition.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_data_definition/esedb_test_data_definition.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_data_definition/esedb_test_data_definition.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_data_definition/esedb_test_data_definition.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_data_segment/esedb_test_data_segment.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_data_segment/esedb_test_data_segment.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_data_segment/esedb_test_data_segment.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_data_segment/esedb_test_data_segment.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_database/esedb_test_database.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_database/esedb_test_database.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_database/esedb_test_database.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_database/esedb_test_database.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_error/esedb_test_error.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_error/esedb_test_error.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_error/esedb_test_error.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_error/esedb_test_error.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_file/esedb_test_file.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_file/esedb_test_file.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_file/esedb_test_file.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_file/esedb_test_file.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_file_header/esedb_test_file_header.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_file_header/esedb_test_file_header.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_file_header/esedb_test_file_header.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_file_header/esedb_test_file_header.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_index/esedb_test_index.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_index/esedb_test_index.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_index/esedb_test_index.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_index/esedb_test_index.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_io_handle/esedb_test_io_handle.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_io_handle/esedb_test_io_handle.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_io_handle/esedb_test_io_handle.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_io_handle/esedb_test_io_handle.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_leaf_page_descriptor/esedb_test_leaf_page_descriptor.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_leaf_page_descriptor/esedb_test_leaf_page_descriptor.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_leaf_page_descriptor/esedb_test_leaf_page_descriptor.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_leaf_page_descriptor/esedb_test_leaf_page_descriptor.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_long_value/esedb_test_long_value.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_long_value/esedb_test_long_value.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_long_value/esedb_test_long_value.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_long_value/esedb_test_long_value.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_multi_value/esedb_test_multi_value.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_multi_value/esedb_test_multi_value.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_multi_value/esedb_test_multi_value.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_multi_value/esedb_test_multi_value.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_notify/esedb_test_notify.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_notify/esedb_test_notify.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_notify/esedb_test_notify.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_notify/esedb_test_notify.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page/esedb_test_page.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page/esedb_test_page.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page/esedb_test_page.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page/esedb_test_page.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_header/esedb_test_page_header.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_header/esedb_test_page_header.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_header/esedb_test_page_header.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_header/esedb_test_page_header.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_tree/esedb_test_page_tree.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_tree/esedb_test_page_tree.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_tree/esedb_test_page_tree.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_tree/esedb_test_page_tree.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_tree_key/esedb_test_page_tree_key.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_tree_key/esedb_test_page_tree_key.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_tree_key/esedb_test_page_tree_key.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_tree_key/esedb_test_page_tree_key.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_tree_value/esedb_test_page_tree_value.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_tree_value/esedb_test_page_tree_value.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_tree_value/esedb_test_page_tree_value.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_tree_value/esedb_test_page_tree_value.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_value/esedb_test_page_value.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_value/esedb_test_page_value.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_page_value/esedb_test_page_value.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_page_value/esedb_test_page_value.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_record/esedb_test_record.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_record/esedb_test_record.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_record/esedb_test_record.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_record/esedb_test_record.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_root_page_header/esedb_test_root_page_header.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_root_page_header/esedb_test_root_page_header.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_root_page_header/esedb_test_root_page_header.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_root_page_header/esedb_test_root_page_header.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_space_tree/esedb_test_space_tree.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_space_tree/esedb_test_space_tree.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_space_tree/esedb_test_space_tree.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_space_tree/esedb_test_space_tree.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_space_tree_value/esedb_test_space_tree_value.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_space_tree_value/esedb_test_space_tree_value.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_space_tree_value/esedb_test_space_tree_value.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_space_tree_value/esedb_test_space_tree_value.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_support/esedb_test_support.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_support/esedb_test_support.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_support/esedb_test_support.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_support/esedb_test_support.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_table/esedb_test_table.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_table/esedb_test_table.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_table/esedb_test_table.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_table/esedb_test_table.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_table_definition/esedb_test_table_definition.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_table_definition/esedb_test_table_definition.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_table_definition/esedb_test_table_definition.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_table_definition/esedb_test_table_definition.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_tools_info_handle/esedb_test_tools_info_handle.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_tools_info_handle/esedb_test_tools_info_handle.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_tools_info_handle/esedb_test_tools_info_handle.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_tools_info_handle/esedb_test_tools_info_handle.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_tools_output/esedb_test_tools_output.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_tools_output/esedb_test_tools_output.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_tools_output/esedb_test_tools_output.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_tools_output/esedb_test_tools_output.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_tools_signal/esedb_test_tools_signal.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_tools_signal/esedb_test_tools_signal.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_tools_signal/esedb_test_tools_signal.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_tools_signal/esedb_test_tools_signal.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedb_test_tools_windows_search_compression/esedb_test_tools_windows_search_compression.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedb_test_tools_windows_search_compression/esedb_test_tools_windows_search_compression.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedb_test_tools_windows_search_compression/esedb_test_tools_windows_search_compression.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedb_test_tools_windows_search_compression/esedb_test_tools_windows_search_compression.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedbexport/esedbexport.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedbexport/esedbexport.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedbexport/esedbexport.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedbexport/esedbexport.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/esedbinfo/esedbinfo.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/esedbinfo/esedbinfo.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/esedbinfo/esedbinfo.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/esedbinfo/esedbinfo.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libbfio/libbfio.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libbfio/libbfio.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libbfio/libbfio.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libbfio/libbfio.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libcdata/libcdata.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libcdata/libcdata.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libcdata/libcdata.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libcdata/libcdata.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libcerror/libcerror.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libcerror/libcerror.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libcerror/libcerror.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libcerror/libcerror.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libcfile/libcfile.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libcfile/libcfile.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libcfile/libcfile.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libcfile/libcfile.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libclocale/libclocale.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libclocale/libclocale.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libclocale/libclocale.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libclocale/libclocale.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libcnotify/libcnotify.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libcnotify/libcnotify.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libcnotify/libcnotify.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libcnotify/libcnotify.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libcpath/libcpath.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libcpath/libcpath.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libcpath/libcpath.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libcpath/libcpath.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libcsplit/libcsplit.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libcsplit/libcsplit.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libcsplit/libcsplit.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libcsplit/libcsplit.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libcthreads/libcthreads.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libcthreads/libcthreads.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libcthreads/libcthreads.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libcthreads/libcthreads.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libesedb.sln b/libesedb-sys/libesedb-20230824/msvscpp/libesedb.sln similarity index 95% rename from libesedb-sys/libesedb-20210424/msvscpp/libesedb.sln rename to libesedb-sys/libesedb-20230824/msvscpp/libesedb.sln index 130a8e1..8232404 100644 --- a/libesedb-sys/libesedb-20210424/msvscpp/libesedb.sln +++ b/libesedb-sys/libesedb-20230824/msvscpp/libesedb.sln @@ -13,6 +13,24 @@ Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "libfguid", "libfguid\libfgu {BD3A95FA-A3DE-4B79-A889-A7E5ECA4B69C} = {BD3A95FA-A3DE-4B79-A889-A7E5ECA4B69C} EndProjectSection EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "esedb_test_block_descriptor", "esedb_test_block_descriptor\esedb_test_block_descriptor.vcproj", "{B6150876-2814-43CE-9ACD-29E734554366}" + ProjectSection(ProjectDependencies) = postProject + {A426611F-36ED-4F34-8CEC-12270B8954D9} = {A426611F-36ED-4F34-8CEC-12270B8954D9} + {BD3A95FA-A3DE-4B79-A889-A7E5ECA4B69C} = {BD3A95FA-A3DE-4B79-A889-A7E5ECA4B69C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "esedb_test_block_tree", "esedb_test_block_tree\esedb_test_block_tree.vcproj", "{23364642-06BB-49D4-A960-847B08ADE6B6}" + ProjectSection(ProjectDependencies) = postProject + {A426611F-36ED-4F34-8CEC-12270B8954D9} = {A426611F-36ED-4F34-8CEC-12270B8954D9} + {BD3A95FA-A3DE-4B79-A889-A7E5ECA4B69C} = {BD3A95FA-A3DE-4B79-A889-A7E5ECA4B69C} + EndProjectSection +EndProject +Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "esedb_test_block_tree_node", "esedb_test_block_tree_node\esedb_test_block_tree_node.vcproj", "{26334884-8C58-4F72-8ED5-763A5B37DC90}" + ProjectSection(ProjectDependencies) = postProject + {A426611F-36ED-4F34-8CEC-12270B8954D9} = {A426611F-36ED-4F34-8CEC-12270B8954D9} + {BD3A95FA-A3DE-4B79-A889-A7E5ECA4B69C} = {BD3A95FA-A3DE-4B79-A889-A7E5ECA4B69C} + EndProjectSection +EndProject Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "esedb_test_catalog", "esedb_test_catalog\esedb_test_catalog.vcproj", "{4065F2DD-616C-4C2A-BCA5-7CF87383DB12}" ProjectSection(ProjectDependencies) = postProject {41CFAFBF-A1C8-4704-AFEF-31979E6452B9} = {41CFAFBF-A1C8-4704-AFEF-31979E6452B9} @@ -461,6 +479,18 @@ Global {8C13E498-6369-4792-A0CF-B7134C54561B}.Release|Win32.Build.0 = Release|Win32 {8C13E498-6369-4792-A0CF-B7134C54561B}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 {8C13E498-6369-4792-A0CF-B7134C54561B}.VSDebug|Win32.Build.0 = VSDebug|Win32 + {B6150876-2814-43CE-9ACD-29E734554366}.Release|Win32.ActiveCfg = Release|Win32 + {B6150876-2814-43CE-9ACD-29E734554366}.Release|Win32.Build.0 = Release|Win32 + {B6150876-2814-43CE-9ACD-29E734554366}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 + {B6150876-2814-43CE-9ACD-29E734554366}.VSDebug|Win32.Build.0 = VSDebug|Win32 + {23364642-06BB-49D4-A960-847B08ADE6B6}.Release|Win32.ActiveCfg = Release|Win32 + {23364642-06BB-49D4-A960-847B08ADE6B6}.Release|Win32.Build.0 = Release|Win32 + {23364642-06BB-49D4-A960-847B08ADE6B6}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 + {23364642-06BB-49D4-A960-847B08ADE6B6}.VSDebug|Win32.Build.0 = VSDebug|Win32 + {26334884-8C58-4F72-8ED5-763A5B37DC90}.Release|Win32.ActiveCfg = Release|Win32 + {26334884-8C58-4F72-8ED5-763A5B37DC90}.Release|Win32.Build.0 = Release|Win32 + {26334884-8C58-4F72-8ED5-763A5B37DC90}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 + {26334884-8C58-4F72-8ED5-763A5B37DC90}.VSDebug|Win32.Build.0 = VSDebug|Win32 {4065F2DD-616C-4C2A-BCA5-7CF87383DB12}.Release|Win32.ActiveCfg = Release|Win32 {4065F2DD-616C-4C2A-BCA5-7CF87383DB12}.Release|Win32.Build.0 = Release|Win32 {4065F2DD-616C-4C2A-BCA5-7CF87383DB12}.VSDebug|Win32.ActiveCfg = VSDebug|Win32 diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libesedb/libesedb.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libesedb/libesedb.vcproj similarity index 96% rename from libesedb-sys/libesedb-20210424/msvscpp/libesedb/libesedb.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libesedb/libesedb.vcproj index 47937ee..8c145a4 100644 --- a/libesedb-sys/libesedb-20210424/msvscpp/libesedb/libesedb.vcproj +++ b/libesedb-sys/libesedb-20230824/msvscpp/libesedb/libesedb.vcproj @@ -173,6 +173,18 @@ RelativePath="..\..\libesedb\libesedb.c" > + + + + + + @@ -339,6 +351,18 @@ RelativePath="..\..\libesedb\esedb_page_values.h" > + + + + + + diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libfcache/libfcache.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libfcache/libfcache.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libfcache/libfcache.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libfcache/libfcache.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libfdata/libfdata.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libfdata/libfdata.vcproj similarity index 95% rename from libesedb-sys/libesedb-20210424/msvscpp/libfdata/libfdata.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libfdata/libfdata.vcproj index 5982d65..6a7f798 100644 --- a/libesedb-sys/libesedb-20210424/msvscpp/libfdata/libfdata.vcproj +++ b/libesedb-sys/libesedb-20230824/msvscpp/libfdata/libfdata.vcproj @@ -198,14 +198,6 @@ RelativePath="..\..\libfdata\libfdata_support.c" > - - - - @@ -288,14 +280,6 @@ RelativePath="..\..\libfdata\libfdata_support.h" > - - - - diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libfdatetime/libfdatetime.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libfdatetime/libfdatetime.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libfdatetime/libfdatetime.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libfdatetime/libfdatetime.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libfguid/libfguid.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libfguid/libfguid.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libfguid/libfguid.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libfguid/libfguid.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libfmapi/libfmapi.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libfmapi/libfmapi.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libfmapi/libfmapi.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libfmapi/libfmapi.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libfvalue/libfvalue.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libfvalue/libfvalue.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libfvalue/libfvalue.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libfvalue/libfvalue.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libfwnt/libfwnt.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libfwnt/libfwnt.vcproj similarity index 97% rename from libesedb-sys/libesedb-20210424/msvscpp/libfwnt/libfwnt.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libfwnt/libfwnt.vcproj index 2deecb5..28474a9 100644 --- a/libesedb-sys/libesedb-20210424/msvscpp/libfwnt/libfwnt.vcproj +++ b/libesedb-sys/libesedb-20230824/msvscpp/libfwnt/libfwnt.vcproj @@ -190,6 +190,10 @@ RelativePath="..\..\libfwnt\libfwnt_lzxpress.c" > + + @@ -268,6 +272,10 @@ RelativePath="..\..\libfwnt\libfwnt_lzxpress.h" > + + diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libmapidb/libmapidb.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libmapidb/libmapidb.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/libmapidb/libmapidb.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libmapidb/libmapidb.vcproj diff --git a/libesedb-sys/libesedb-20210424/msvscpp/libuna/libuna.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/libuna/libuna.vcproj similarity index 78% rename from libesedb-sys/libesedb-20210424/msvscpp/libuna/libuna.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/libuna/libuna.vcproj index 8972c7d..000d021 100644 --- a/libesedb-sys/libesedb-20210424/msvscpp/libuna/libuna.vcproj +++ b/libesedb-sys/libesedb-20230824/msvscpp/libuna/libuna.vcproj @@ -226,6 +226,78 @@ RelativePath="..\..\libuna\libuna_codepage_koi8_u.c" > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -412,6 +484,78 @@ RelativePath="..\..\libuna\libuna_codepage_koi8_u.h" > + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/libesedb-sys/libesedb-20210424/msvscpp/pyesedb/pyesedb.vcproj b/libesedb-sys/libesedb-20230824/msvscpp/pyesedb/pyesedb.vcproj similarity index 100% rename from libesedb-sys/libesedb-20210424/msvscpp/pyesedb/pyesedb.vcproj rename to libesedb-sys/libesedb-20230824/msvscpp/pyesedb/pyesedb.vcproj diff --git a/libesedb-sys/libesedb-20230824/ossfuzz/Makefile.am b/libesedb-sys/libesedb-20230824/ossfuzz/Makefile.am new file mode 100644 index 0000000..cc0ea20 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/ossfuzz/Makefile.am @@ -0,0 +1,108 @@ +if HAVE_LIB_FUZZING_ENGINE +AM_CPPFLAGS = \ + -I$(top_srcdir)/include \ + -I$(top_srcdir)/common \ + @LIBCERROR_CPPFLAGS@ \ + @LIBCDATA_CPPFLAGS@ \ + @LIBCLOCALE_CPPFLAGS@ \ + @LIBCNOTIFY_CPPFLAGS@ \ + @LIBUNA_CPPFLAGS@ \ + @LIBCFILE_CPPFLAGS@ \ + @LIBCPATH_CPPFLAGS@ \ + @LIBBFIO_CPPFLAGS@ + +bin_PROGRAMS = \ + column_fuzzer \ + file_fuzzer \ + record_fuzzer \ + table_fuzzer + +column_fuzzer_SOURCES = \ + column_fuzzer.cc \ + ossfuzz_libbfio.h \ + ossfuzz_libesedb.h + +column_fuzzer_LDADD = \ + @LIB_FUZZING_ENGINE@ \ + @LIBBFIO_LIBADD@ \ + @LIBCPATH_LIBADD@ \ + @LIBCFILE_LIBADD@ \ + @LIBUNA_LIBADD@ \ + @LIBCDATA_LIBADD@ \ + ../libesedb/libesedb.la \ + @LIBCNOTIFY_LIBADD@ \ + @LIBCLOCALE_LIBADD@ \ + @LIBCERROR_LIBADD@ \ + @LIBINTL@ + +file_fuzzer_SOURCES = \ + file_fuzzer.cc \ + ossfuzz_libbfio.h \ + ossfuzz_libesedb.h + +file_fuzzer_LDADD = \ + @LIB_FUZZING_ENGINE@ \ + @LIBBFIO_LIBADD@ \ + @LIBCPATH_LIBADD@ \ + @LIBCFILE_LIBADD@ \ + @LIBUNA_LIBADD@ \ + @LIBCDATA_LIBADD@ \ + ../libesedb/libesedb.la \ + @LIBCNOTIFY_LIBADD@ \ + @LIBCLOCALE_LIBADD@ \ + @LIBCERROR_LIBADD@ \ + @LIBINTL@ + +record_fuzzer_SOURCES = \ + ossfuzz_libbfio.h \ + ossfuzz_libesedb.h \ + record_fuzzer.cc + +record_fuzzer_LDADD = \ + @LIB_FUZZING_ENGINE@ \ + @LIBBFIO_LIBADD@ \ + @LIBCPATH_LIBADD@ \ + @LIBCFILE_LIBADD@ \ + @LIBUNA_LIBADD@ \ + @LIBCDATA_LIBADD@ \ + ../libesedb/libesedb.la \ + @LIBCNOTIFY_LIBADD@ \ + @LIBCLOCALE_LIBADD@ \ + @LIBCERROR_LIBADD@ \ + @LIBINTL@ + +table_fuzzer_SOURCES = \ + ossfuzz_libbfio.h \ + ossfuzz_libesedb.h \ + table_fuzzer.cc + +table_fuzzer_LDADD = \ + @LIB_FUZZING_ENGINE@ \ + @LIBBFIO_LIBADD@ \ + @LIBCPATH_LIBADD@ \ + @LIBCFILE_LIBADD@ \ + @LIBUNA_LIBADD@ \ + @LIBCDATA_LIBADD@ \ + ../libesedb/libesedb.la \ + @LIBCNOTIFY_LIBADD@ \ + @LIBCLOCALE_LIBADD@ \ + @LIBCERROR_LIBADD@ \ + @LIBINTL@ +endif + +MAINTAINERCLEANFILES = \ + Makefile.in + +distclean: clean + /bin/rm -f Makefile + +splint: + @echo "Running splint on column_fuzzer ..." + -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(column_fuzzer_SOURCES) + @echo "Running splint on file_fuzzer ..." + -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(file_fuzzer_SOURCES) + @echo "Running splint on record_fuzzer ..." + -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(record_fuzzer_SOURCES) + @echo "Running splint on table_fuzzer ..." + -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(table_fuzzer_SOURCES) + diff --git a/libesedb-sys/libesedb-20210424/ossfuzz/Makefile.in b/libesedb-sys/libesedb-20230824/ossfuzz/Makefile.in similarity index 81% rename from libesedb-sys/libesedb-20210424/ossfuzz/Makefile.in rename to libesedb-sys/libesedb-20230824/ossfuzz/Makefile.in index e913da4..366f417 100644 --- a/libesedb-sys/libesedb-20210424/ossfuzz/Makefile.in +++ b/libesedb-sys/libesedb-20230824/ossfuzz/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -88,29 +88,33 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -@HAVE_LIB_FUZZING_ENGINE_TRUE@bin_PROGRAMS = file_fuzzer$(EXEEXT) +@HAVE_LIB_FUZZING_ENGINE_TRUE@bin_PROGRAMS = column_fuzzer$(EXEEXT) \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ file_fuzzer$(EXEEXT) \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ record_fuzzer$(EXEEXT) \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ table_fuzzer$(EXEEXT) subdir = ossfuzz ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -120,6 +124,17 @@ CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = am__installdirs = "$(DESTDIR)$(bindir)" PROGRAMS = $(bin_PROGRAMS) +am__column_fuzzer_SOURCES_DIST = column_fuzzer.cc ossfuzz_libbfio.h \ + ossfuzz_libesedb.h +@HAVE_LIB_FUZZING_ENGINE_TRUE@am_column_fuzzer_OBJECTS = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ column_fuzzer.$(OBJEXT) +column_fuzzer_OBJECTS = $(am_column_fuzzer_OBJECTS) +@HAVE_LIB_FUZZING_ENGINE_TRUE@column_fuzzer_DEPENDENCIES = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ../libesedb/libesedb.la +AM_V_lt = $(am__v_lt_@AM_V@) +am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) +am__v_lt_0 = --silent +am__v_lt_1 = am__file_fuzzer_SOURCES_DIST = file_fuzzer.cc ossfuzz_libbfio.h \ ossfuzz_libesedb.h @HAVE_LIB_FUZZING_ENGINE_TRUE@am_file_fuzzer_OBJECTS = \ @@ -127,10 +142,20 @@ am__file_fuzzer_SOURCES_DIST = file_fuzzer.cc ossfuzz_libbfio.h \ file_fuzzer_OBJECTS = $(am_file_fuzzer_OBJECTS) @HAVE_LIB_FUZZING_ENGINE_TRUE@file_fuzzer_DEPENDENCIES = \ @HAVE_LIB_FUZZING_ENGINE_TRUE@ ../libesedb/libesedb.la -AM_V_lt = $(am__v_lt_@AM_V@) -am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) -am__v_lt_0 = --silent -am__v_lt_1 = +am__record_fuzzer_SOURCES_DIST = ossfuzz_libbfio.h ossfuzz_libesedb.h \ + record_fuzzer.cc +@HAVE_LIB_FUZZING_ENGINE_TRUE@am_record_fuzzer_OBJECTS = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ record_fuzzer.$(OBJEXT) +record_fuzzer_OBJECTS = $(am_record_fuzzer_OBJECTS) +@HAVE_LIB_FUZZING_ENGINE_TRUE@record_fuzzer_DEPENDENCIES = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ../libesedb/libesedb.la +am__table_fuzzer_SOURCES_DIST = ossfuzz_libbfio.h ossfuzz_libesedb.h \ + table_fuzzer.cc +@HAVE_LIB_FUZZING_ENGINE_TRUE@am_table_fuzzer_OBJECTS = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ table_fuzzer.$(OBJEXT) +table_fuzzer_OBJECTS = $(am_table_fuzzer_OBJECTS) +@HAVE_LIB_FUZZING_ENGINE_TRUE@table_fuzzer_DEPENDENCIES = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ../libesedb/libesedb.la AM_V_P = $(am__v_P_@AM_V@) am__v_P_ = $(am__v_P_@AM_DEFAULT_V@) am__v_P_0 = false @@ -146,7 +171,9 @@ am__v_at_1 = DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)/common depcomp = $(SHELL) $(top_srcdir)/depcomp am__maybe_remake_depfiles = depfiles -am__depfiles_remade = ./$(DEPDIR)/file_fuzzer.Po +am__depfiles_remade = ./$(DEPDIR)/column_fuzzer.Po \ + ./$(DEPDIR)/file_fuzzer.Po ./$(DEPDIR)/record_fuzzer.Po \ + ./$(DEPDIR)/table_fuzzer.Po am__mv = mv -f CXXCOMPILE = $(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CXXFLAGS) $(CXXFLAGS) @@ -184,8 +211,12 @@ 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 = $(file_fuzzer_SOURCES) -DIST_SOURCES = $(am__file_fuzzer_SOURCES_DIST) +SOURCES = $(column_fuzzer_SOURCES) $(file_fuzzer_SOURCES) \ + $(record_fuzzer_SOURCES) $(table_fuzzer_SOURCES) +DIST_SOURCES = $(am__column_fuzzer_SOURCES_DIST) \ + $(am__file_fuzzer_SOURCES_DIST) \ + $(am__record_fuzzer_SOURCES_DIST) \ + $(am__table_fuzzer_SOURCES_DIST) am__can_run_installinfo = \ case $$AM_UPDATE_INFO_DIR in \ n|no|NO) false;; \ @@ -208,8 +239,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -226,6 +255,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -241,8 +272,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -360,8 +393,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -568,6 +601,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -588,6 +622,24 @@ top_srcdir = @top_srcdir@ @HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCPATH_CPPFLAGS@ \ @HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBBFIO_CPPFLAGS@ +@HAVE_LIB_FUZZING_ENGINE_TRUE@column_fuzzer_SOURCES = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ column_fuzzer.cc \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ossfuzz_libbfio.h \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ossfuzz_libesedb.h + +@HAVE_LIB_FUZZING_ENGINE_TRUE@column_fuzzer_LDADD = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIB_FUZZING_ENGINE@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBBFIO_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCPATH_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCFILE_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBUNA_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCDATA_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ../libesedb/libesedb.la \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCNOTIFY_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCLOCALE_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCERROR_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBINTL@ + @HAVE_LIB_FUZZING_ENGINE_TRUE@file_fuzzer_SOURCES = \ @HAVE_LIB_FUZZING_ENGINE_TRUE@ file_fuzzer.cc \ @HAVE_LIB_FUZZING_ENGINE_TRUE@ ossfuzz_libbfio.h \ @@ -606,6 +658,42 @@ top_srcdir = @top_srcdir@ @HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCERROR_LIBADD@ \ @HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBINTL@ +@HAVE_LIB_FUZZING_ENGINE_TRUE@record_fuzzer_SOURCES = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ossfuzz_libbfio.h \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ossfuzz_libesedb.h \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ record_fuzzer.cc + +@HAVE_LIB_FUZZING_ENGINE_TRUE@record_fuzzer_LDADD = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIB_FUZZING_ENGINE@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBBFIO_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCPATH_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCFILE_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBUNA_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCDATA_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ../libesedb/libesedb.la \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCNOTIFY_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCLOCALE_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCERROR_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBINTL@ + +@HAVE_LIB_FUZZING_ENGINE_TRUE@table_fuzzer_SOURCES = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ossfuzz_libbfio.h \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ossfuzz_libesedb.h \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ table_fuzzer.cc + +@HAVE_LIB_FUZZING_ENGINE_TRUE@table_fuzzer_LDADD = \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIB_FUZZING_ENGINE@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBBFIO_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCPATH_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCFILE_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBUNA_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCDATA_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ ../libesedb/libesedb.la \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCNOTIFY_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCLOCALE_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBCERROR_LIBADD@ \ +@HAVE_LIB_FUZZING_ENGINE_TRUE@ @LIBINTL@ + MAINTAINERCLEANFILES = \ Makefile.in @@ -692,17 +780,32 @@ clean-binPROGRAMS: echo " rm -f" $$list; \ rm -f $$list +column_fuzzer$(EXEEXT): $(column_fuzzer_OBJECTS) $(column_fuzzer_DEPENDENCIES) $(EXTRA_column_fuzzer_DEPENDENCIES) + @rm -f column_fuzzer$(EXEEXT) + $(AM_V_CXXLD)$(CXXLINK) $(column_fuzzer_OBJECTS) $(column_fuzzer_LDADD) $(LIBS) + file_fuzzer$(EXEEXT): $(file_fuzzer_OBJECTS) $(file_fuzzer_DEPENDENCIES) $(EXTRA_file_fuzzer_DEPENDENCIES) @rm -f file_fuzzer$(EXEEXT) $(AM_V_CXXLD)$(CXXLINK) $(file_fuzzer_OBJECTS) $(file_fuzzer_LDADD) $(LIBS) +record_fuzzer$(EXEEXT): $(record_fuzzer_OBJECTS) $(record_fuzzer_DEPENDENCIES) $(EXTRA_record_fuzzer_DEPENDENCIES) + @rm -f record_fuzzer$(EXEEXT) + $(AM_V_CXXLD)$(CXXLINK) $(record_fuzzer_OBJECTS) $(record_fuzzer_LDADD) $(LIBS) + +table_fuzzer$(EXEEXT): $(table_fuzzer_OBJECTS) $(table_fuzzer_DEPENDENCIES) $(EXTRA_table_fuzzer_DEPENDENCIES) + @rm -f table_fuzzer$(EXEEXT) + $(AM_V_CXXLD)$(CXXLINK) $(table_fuzzer_OBJECTS) $(table_fuzzer_LDADD) $(LIBS) + mostlyclean-compile: -rm -f *.$(OBJEXT) distclean-compile: -rm -f *.tab.c +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/column_fuzzer.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/file_fuzzer.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/record_fuzzer.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/table_fuzzer.Po@am__quote@ # am--include-marker $(am__depfiles_remade): @$(MKDIR_P) $(@D) @@ -788,7 +891,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -908,7 +1010,10 @@ install-ps-am: installcheck-am: maintainer-clean: maintainer-clean-am - -rm -f ./$(DEPDIR)/file_fuzzer.Po + -rm -f ./$(DEPDIR)/column_fuzzer.Po + -rm -f ./$(DEPDIR)/file_fuzzer.Po + -rm -f ./$(DEPDIR)/record_fuzzer.Po + -rm -f ./$(DEPDIR)/table_fuzzer.Po -rm -f Makefile maintainer-clean-am: distclean-am maintainer-clean-generic @@ -950,8 +1055,14 @@ distclean: clean /bin/rm -f Makefile splint: + @echo "Running splint on column_fuzzer ..." + -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(column_fuzzer_SOURCES) @echo "Running splint on file_fuzzer ..." -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(file_fuzzer_SOURCES) + @echo "Running splint on record_fuzzer ..." + -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(record_fuzzer_SOURCES) + @echo "Running splint on table_fuzzer ..." + -splint -preproc -redef $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(table_fuzzer_SOURCES) # 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/libesedb-sys/libesedb-20230824/ossfuzz/column_fuzzer.cc b/libesedb-sys/libesedb-20230824/ossfuzz/column_fuzzer.cc new file mode 100644 index 0000000..d499129 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/ossfuzz/column_fuzzer.cc @@ -0,0 +1,146 @@ +/* + * OSS-Fuzz target for libesedb column type + * + * Copyright (C) 2011-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +/* Note that some of the OSS-Fuzz engines use C++ + */ +extern "C" { + +#include "ossfuzz_libbfio.h" +#include "ossfuzz_libesedb.h" + +#if !defined( LIBESEDB_HAVE_BFIO ) + +/* Opens a file using a Basic File IO (bfio) handle + * Returns 1 if successful or -1 on error + */ +LIBESEDB_EXTERN \ +int libesedb_file_open_file_io_handle( + libesedb_file_t *file, + libbfio_handle_t *file_io_handle, + int access_flags, + libesedb_error_t **error ); + +#endif /* !defined( LIBESEDB_HAVE_BFIO ) */ + +int LLVMFuzzerTestOneInput( + const uint8_t *data, + size_t size ) +{ + libbfio_handle_t *file_io_handle = NULL; + libesedb_column_t *column = NULL; + libesedb_file_t *file = NULL; + libesedb_table_t *table = NULL; + int number_of_columns = 0; + int number_of_tables = 0; + + if( libbfio_memory_range_initialize( + &file_io_handle, + NULL ) != 1 ) + { + return( 0 ); + } + if( libbfio_memory_range_set( + file_io_handle, + (uint8_t *) data, + size, + NULL ) != 1 ) + { + goto on_error_libbfio; + } + if( libesedb_file_initialize( + &file, + NULL ) != 1 ) + { + goto on_error_libbfio; + } + if( libesedb_file_open_file_io_handle( + file, + file_io_handle, + LIBESEDB_OPEN_READ, + NULL ) != 1 ) + { + goto on_error_libesedb_file; + } + if( libesedb_file_get_number_of_tables( + file, + &number_of_tables, + NULL ) != 1 ) + { + goto on_error_libesedb_file; + } + if( number_of_tables > 0 ) + { + if( libesedb_file_get_table( + file, + 0, + &table, + NULL ) == 1 ) + { + if( libesedb_table_get_number_of_columns( + table, + &number_of_columns, + 0, + NULL ) != 1 ) + { + goto on_error_libesedb_table; + } + if( number_of_columns > 0 ) + { + if( libesedb_table_get_column( + table, + 0, + &column, + 0, + NULL ) == 1 ) + { + libesedb_column_free( + &column, + NULL ); + } + } +on_error_libesedb_table: + libesedb_table_free( + &table, + NULL ); + } + } + libesedb_file_close( + file, + NULL ); + +on_error_libesedb_file: + libesedb_file_free( + &file, + NULL ); + +on_error_libbfio: + libbfio_handle_free( + &file_io_handle, + NULL ); + + return( 0 ); +} + +} /* extern "C" */ + diff --git a/libesedb-sys/libesedb-20210424/ossfuzz/file_fuzzer.cc b/libesedb-sys/libesedb-20230824/ossfuzz/file_fuzzer.cc similarity index 97% rename from libesedb-sys/libesedb-20210424/ossfuzz/file_fuzzer.cc rename to libesedb-sys/libesedb-20230824/ossfuzz/file_fuzzer.cc index 30ed408..d04a755 100644 --- a/libesedb-sys/libesedb-20210424/ossfuzz/file_fuzzer.cc +++ b/libesedb-sys/libesedb-20230824/ossfuzz/file_fuzzer.cc @@ -1,7 +1,7 @@ /* * OSS-Fuzz target for libesedb file type * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/ossfuzz/ossfuzz_libbfio.h b/libesedb-sys/libesedb-20230824/ossfuzz/ossfuzz_libbfio.h similarity index 96% rename from libesedb-sys/libesedb-20210424/ossfuzz/ossfuzz_libbfio.h rename to libesedb-sys/libesedb-20230824/ossfuzz/ossfuzz_libbfio.h index ea971d8..e5af4d2 100644 --- a/libesedb-sys/libesedb-20210424/ossfuzz/ossfuzz_libbfio.h +++ b/libesedb-sys/libesedb-20230824/ossfuzz/ossfuzz_libbfio.h @@ -1,7 +1,7 @@ /* * The libbfio header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/ossfuzz/ossfuzz_libesedb.h b/libesedb-sys/libesedb-20230824/ossfuzz/ossfuzz_libesedb.h similarity index 93% rename from libesedb-sys/libesedb-20210424/ossfuzz/ossfuzz_libesedb.h rename to libesedb-sys/libesedb-20230824/ossfuzz/ossfuzz_libesedb.h index 863e815..c7d3429 100644 --- a/libesedb-sys/libesedb-20210424/ossfuzz/ossfuzz_libesedb.h +++ b/libesedb-sys/libesedb-20230824/ossfuzz/ossfuzz_libesedb.h @@ -1,7 +1,7 @@ /* * The libesedb header wrapper * - * Copyright (C) 2009-2020, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20230824/ossfuzz/record_fuzzer.cc b/libesedb-sys/libesedb-20230824/ossfuzz/record_fuzzer.cc new file mode 100644 index 0000000..3cb4f72 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/ossfuzz/record_fuzzer.cc @@ -0,0 +1,144 @@ +/* + * OSS-Fuzz target for libesedb record type + * + * Copyright (C) 2011-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +/* Note that some of the OSS-Fuzz engines use C++ + */ +extern "C" { + +#include "ossfuzz_libbfio.h" +#include "ossfuzz_libesedb.h" + +#if !defined( LIBESEDB_HAVE_BFIO ) + +/* Opens a file using a Basic File IO (bfio) handle + * Returns 1 if successful or -1 on error + */ +LIBESEDB_EXTERN \ +int libesedb_file_open_file_io_handle( + libesedb_file_t *file, + libbfio_handle_t *file_io_handle, + int access_flags, + libesedb_error_t **error ); + +#endif /* !defined( LIBESEDB_HAVE_BFIO ) */ + +int LLVMFuzzerTestOneInput( + const uint8_t *data, + size_t size ) +{ + libbfio_handle_t *file_io_handle = NULL; + libesedb_file_t *file = NULL; + libesedb_record_t *record = NULL; + libesedb_table_t *table = NULL; + int number_of_records = 0; + int number_of_tables = 0; + + if( libbfio_memory_range_initialize( + &file_io_handle, + NULL ) != 1 ) + { + return( 0 ); + } + if( libbfio_memory_range_set( + file_io_handle, + (uint8_t *) data, + size, + NULL ) != 1 ) + { + goto on_error_libbfio; + } + if( libesedb_file_initialize( + &file, + NULL ) != 1 ) + { + goto on_error_libbfio; + } + if( libesedb_file_open_file_io_handle( + file, + file_io_handle, + LIBESEDB_OPEN_READ, + NULL ) != 1 ) + { + goto on_error_libesedb_file; + } + if( libesedb_file_get_number_of_tables( + file, + &number_of_tables, + NULL ) != 1 ) + { + goto on_error_libesedb_file; + } + if( number_of_tables > 0 ) + { + if( libesedb_file_get_table( + file, + 0, + &table, + NULL ) == 1 ) + { + if( libesedb_table_get_number_of_records( + table, + &number_of_records, + NULL ) != 1 ) + { + goto on_error_libesedb_table; + } + if( number_of_records > 0 ) + { + if( libesedb_table_get_record( + table, + 0, + &record, + NULL ) == 1 ) + { + libesedb_record_free( + &record, + NULL ); + } + } +on_error_libesedb_table: + libesedb_table_free( + &table, + NULL ); + } + } + libesedb_file_close( + file, + NULL ); + +on_error_libesedb_file: + libesedb_file_free( + &file, + NULL ); + +on_error_libbfio: + libbfio_handle_free( + &file_io_handle, + NULL ); + + return( 0 ); +} + +} /* extern "C" */ + diff --git a/libesedb-sys/libesedb-20230824/ossfuzz/table_fuzzer.cc b/libesedb-sys/libesedb-20230824/ossfuzz/table_fuzzer.cc new file mode 100644 index 0000000..1e9b8e9 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/ossfuzz/table_fuzzer.cc @@ -0,0 +1,121 @@ +/* + * OSS-Fuzz target for libesedb table type + * + * Copyright (C) 2011-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include + +/* Note that some of the OSS-Fuzz engines use C++ + */ +extern "C" { + +#include "ossfuzz_libbfio.h" +#include "ossfuzz_libesedb.h" + +#if !defined( LIBESEDB_HAVE_BFIO ) + +/* Opens a file using a Basic File IO (bfio) handle + * Returns 1 if successful or -1 on error + */ +LIBESEDB_EXTERN \ +int libesedb_file_open_file_io_handle( + libesedb_file_t *file, + libbfio_handle_t *file_io_handle, + int access_flags, + libesedb_error_t **error ); + +#endif /* !defined( LIBESEDB_HAVE_BFIO ) */ + +int LLVMFuzzerTestOneInput( + const uint8_t *data, + size_t size ) +{ + libbfio_handle_t *file_io_handle = NULL; + libesedb_file_t *file = NULL; + libesedb_table_t *table = NULL; + int number_of_tables = 0; + + if( libbfio_memory_range_initialize( + &file_io_handle, + NULL ) != 1 ) + { + return( 0 ); + } + if( libbfio_memory_range_set( + file_io_handle, + (uint8_t *) data, + size, + NULL ) != 1 ) + { + goto on_error_libbfio; + } + if( libesedb_file_initialize( + &file, + NULL ) != 1 ) + { + goto on_error_libbfio; + } + if( libesedb_file_open_file_io_handle( + file, + file_io_handle, + LIBESEDB_OPEN_READ, + NULL ) != 1 ) + { + goto on_error_libesedb_file; + } + if( libesedb_file_get_number_of_tables( + file, + &number_of_tables, + NULL ) != 1 ) + { + goto on_error_libesedb_file; + } + if( number_of_tables > 0 ) + { + if( libesedb_file_get_table( + file, + 0, + &table, + NULL ) == 1 ) + { + libesedb_table_free( + &table, + NULL ); + } + } + libesedb_file_close( + file, + NULL ); + +on_error_libesedb_file: + libesedb_file_free( + &file, + NULL ); + +on_error_libbfio: + libbfio_handle_free( + &file_io_handle, + NULL ); + + return( 0 ); +} + +} /* extern "C" */ + diff --git a/libesedb-sys/libesedb-20210424/po/ChangeLog b/libesedb-sys/libesedb-20230824/po/ChangeLog similarity index 100% rename from libesedb-sys/libesedb-20210424/po/ChangeLog rename to libesedb-sys/libesedb-20230824/po/ChangeLog diff --git a/libesedb-sys/libesedb-20210424/po/Makefile.in.in b/libesedb-sys/libesedb-20230824/po/Makefile.in.in similarity index 67% rename from libesedb-sys/libesedb-20210424/po/Makefile.in.in rename to libesedb-sys/libesedb-20230824/po/Makefile.in.in index 83d8838..6b25f0d 100644 --- a/libesedb-sys/libesedb-20210424/po/Makefile.in.in +++ b/libesedb-sys/libesedb-20230824/po/Makefile.in.in @@ -1,20 +1,20 @@ # Makefile for PO directory in any package using GNU gettext. -# Copyright (C) 1995-1997, 2000-2007, 2009-2010 by Ulrich Drepper +# Copyright (C) 1995-2000 Ulrich Drepper +# Copyright (C) 2000-2020 Free Software Foundation, Inc. # -# This file can be copied and used freely without restrictions. It can -# be used in projects which are not available under the GNU General Public -# License but which still want to provide support for the GNU gettext -# functionality. -# Please note that the actual code of GNU gettext is covered by the GNU -# General Public License and is *not* in the public domain. +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. # -# Origin: gettext-0.18 -GETTEXT_MACRO_VERSION = 0.18 +# Origin: gettext-0.21 +GETTEXT_MACRO_VERSION = 0.20 PACKAGE = @PACKAGE@ VERSION = @VERSION@ PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ +SED = @SED@ SHELL = /bin/sh @SET_MAKE@ @@ -44,20 +44,22 @@ install_sh = $(SHELL) @install_sh@ MKDIR_P = @MKDIR_P@ mkdir_p = @mkdir_p@ +# When building gettext-tools, we prefer to use the built programs +# rather than installed programs. However, we can't do that when we +# are cross compiling. +CROSS_COMPILING = @CROSS_COMPILING@ + GMSGFMT_ = @GMSGFMT@ GMSGFMT_no = @GMSGFMT@ GMSGFMT_yes = @GMSGFMT_015@ GMSGFMT = $(GMSGFMT_$(USE_MSGCTXT)) -MSGFMT_ = @MSGFMT@ -MSGFMT_no = @MSGFMT@ -MSGFMT_yes = @MSGFMT_015@ -MSGFMT = $(MSGFMT_$(USE_MSGCTXT)) XGETTEXT_ = @XGETTEXT@ XGETTEXT_no = @XGETTEXT@ XGETTEXT_yes = @XGETTEXT_015@ XGETTEXT = $(XGETTEXT_$(USE_MSGCTXT)) -MSGMERGE = msgmerge +MSGMERGE = @MSGMERGE@ MSGMERGE_UPDATE = @MSGMERGE@ --update +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ MSGINIT = msginit MSGCONV = msgconv MSGFILTER = msgfilter @@ -76,34 +78,61 @@ POTFILES = \ CATALOGS = @CATALOGS@ +POFILESDEPS_ = $(srcdir)/$(DOMAIN).pot +POFILESDEPS_yes = $(POFILESDEPS_) +POFILESDEPS_no = +POFILESDEPS = $(POFILESDEPS_$(PO_DEPENDS_ON_POT)) + +DISTFILESDEPS_ = update-po +DISTFILESDEPS_yes = $(DISTFILESDEPS_) +DISTFILESDEPS_no = +DISTFILESDEPS = $(DISTFILESDEPS_$(DIST_DEPENDS_ON_UPDATE_PO)) + # Makevars gets inserted here. (Don't remove this line!) -.SUFFIXES: -.SUFFIXES: .po .gmo .mo .sed .sin .nop .po-create .po-update +all: all-@USE_NLS@ -.po.mo: - @echo "$(MSGFMT) -c -o $@ $<"; \ - $(MSGFMT) -c -o t-$@ $< && mv t-$@ $@ +.SUFFIXES: +.SUFFIXES: .po .gmo .sed .sin .nop .po-create .po-update + +# The .pot file, stamp-po, .po files, and .gmo files appear in release tarballs. +# The GNU Coding Standards say in +# : +# "GNU distributions usually contain some files which are not source files +# ... . Since these files normally appear in the source directory, they +# should always appear in the source directory, not in the build directory. +# So Makefile rules to update them should put the updated files in the +# source directory." +# Therefore we put these files in the source directory, not the build directory. + +# During .po -> .gmo conversion, take into account the most recent changes to +# the .pot file. This eliminates the need to update the .po files when the +# .pot file has changed, which would be troublesome if the .po files are put +# under version control. +$(GMOFILES): $(srcdir)/$(DOMAIN).pot .po.gmo: @lang=`echo $* | sed -e 's,.*/,,'`; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.po"; \ - cd $(srcdir) && rm -f $${lang}.gmo && $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.po && mv t-$${lang}.gmo $${lang}.gmo + echo "$${cdcmd}rm -f $${lang}.gmo && $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && $(GMSGFMT) -c --statistics --verbose -o $${lang}.gmo $${lang}.1po && rm -f $${lang}.1po"; \ + cd $(srcdir) && \ + rm -f $${lang}.gmo && \ + $(MSGMERGE) $(MSGMERGE_FOR_MSGFMT_OPTION) -o $${lang}.1po $${lang}.po $(DOMAIN).pot && \ + $(GMSGFMT) -c --statistics --verbose -o t-$${lang}.gmo $${lang}.1po && \ + mv t-$${lang}.gmo $${lang}.gmo && \ + rm -f $${lang}.1po .sin.sed: sed -e '/^#/d' $< > t-$@ mv t-$@ $@ -all: check-macro-version all-@USE_NLS@ - -all-yes: stamp-po +all-yes: $(srcdir)/stamp-po all-no: # Ensure that the gettext macros and this Makefile.in.in are in sync. -check-macro-version: - @test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ +CHECK_MACRO_VERSION = \ + test "$(GETTEXT_MACRO_VERSION)" = "@GETTEXT_MACRO_VERSION@" \ || { echo "*** error: gettext infrastructure mismatch: using a Makefile.in.in from gettext version $(GETTEXT_MACRO_VERSION) but the autoconf macros are from gettext version @GETTEXT_MACRO_VERSION@" 1>&2; \ exit 1; \ } @@ -112,23 +141,24 @@ check-macro-version: # internationalized messages, no $(srcdir)/$(DOMAIN).pot is created (because # we don't want to bother translators with empty POT files). We assume that # LINGUAS is empty in this case, i.e. $(POFILES) and $(GMOFILES) are empty. -# In this case, stamp-po is a nop (i.e. a phony target). - -# stamp-po is a timestamp denoting the last time at which the CATALOGS have -# been loosely updated. Its purpose is that when a developer or translator -# checks out the package via CVS, and the $(DOMAIN).pot file is not in CVS, -# "make" will update the $(DOMAIN).pot and the $(CATALOGS), but subsequent -# invocations of "make" will do nothing. This timestamp would not be necessary -# if updating the $(CATALOGS) would always touch them; however, the rule for -# $(POFILES) has been designed to not touch files that don't need to be -# changed. -stamp-po: $(srcdir)/$(DOMAIN).pot +# In this case, $(srcdir)/stamp-po is a nop (i.e. a phony target). + +# $(srcdir)/stamp-po is a timestamp denoting the last time at which the CATALOGS +# have been loosely updated. Its purpose is that when a developer or translator +# checks out the package from a version control system, and the $(DOMAIN).pot +# file is not under version control, "make" will update the $(DOMAIN).pot and +# the $(CATALOGS), but subsequent invocations of "make" will do nothing. This +# timestamp would not be necessary if updating the $(CATALOGS) would always +# touch them; however, the rule for $(POFILES) has been designed to not touch +# files that don't need to be changed. +$(srcdir)/stamp-po: $(srcdir)/$(DOMAIN).pot + @$(CHECK_MACRO_VERSION) test ! -f $(srcdir)/$(DOMAIN).pot || \ test -z "$(GMOFILES)" || $(MAKE) $(GMOFILES) @test ! -f $(srcdir)/$(DOMAIN).pot || { \ - echo "touch stamp-po" && \ - echo timestamp > stamp-poT && \ - mv stamp-poT stamp-po; \ + echo "touch $(srcdir)/stamp-po" && \ + echo timestamp > $(srcdir)/stamp-poT && \ + mv $(srcdir)/stamp-poT $(srcdir)/stamp-po; \ } # Note: Target 'all' must not depend on target '$(DOMAIN).pot-update', @@ -137,11 +167,27 @@ stamp-po: $(srcdir)/$(DOMAIN).pot # This target rebuilds $(DOMAIN).pot; it is an expensive operation. # Note that $(DOMAIN).pot is not touched if it doesn't need to be changed. +# The determination of whether the package xyz is a GNU one is based on the +# heuristic whether some file in the top level directory mentions "GNU xyz". +# If GNU 'find' is available, we avoid grepping through monster files. $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed - if LC_ALL=C grep 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null | grep -v 'libtool:' >/dev/null; then \ - package_gnu='GNU '; \ + package_gnu="$(PACKAGE_GNU)"; \ + test -n "$$package_gnu" || { \ + if { if (LC_ALL=C find --version) 2>/dev/null | grep GNU >/dev/null; then \ + LC_ALL=C find -L $(top_srcdir) -maxdepth 1 -type f -size -10000000c -exec grep -i 'GNU @PACKAGE@' /dev/null '{}' ';' 2>/dev/null; \ + else \ + LC_ALL=C grep -i 'GNU @PACKAGE@' $(top_srcdir)/* 2>/dev/null; \ + fi; \ + } | grep -v 'libtool:' >/dev/null; then \ + package_gnu=yes; \ + else \ + package_gnu=no; \ + fi; \ + }; \ + if test "$$package_gnu" = "yes"; then \ + package_prefix='GNU '; \ else \ - package_gnu=''; \ + package_prefix=''; \ fi; \ if test -n '$(MSGID_BUGS_ADDRESS)' || test '$(PACKAGE_BUGREPORT)' = '@'PACKAGE_BUGREPORT'@'; then \ msgid_bugs_address='$(MSGID_BUGS_ADDRESS)'; \ @@ -151,22 +197,30 @@ $(DOMAIN).pot-update: $(POTFILES) $(srcdir)/POTFILES.in remove-potcdate.sed case `$(XGETTEXT) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].* | 0.16 | 0.16.[0-1]*) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ + --add-comments=TRANSLATORS: \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ --msgid-bugs-address="$$msgid_bugs_address" \ + $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ ;; \ *) \ $(XGETTEXT) --default-domain=$(DOMAIN) --directory=$(top_srcdir) \ - --add-comments=TRANSLATORS: $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ + --add-comments=TRANSLATORS: \ --files-from=$(srcdir)/POTFILES.in \ --copyright-holder='$(COPYRIGHT_HOLDER)' \ - --package-name="$${package_gnu}@PACKAGE@" \ + --package-name="$${package_prefix}@PACKAGE@" \ --package-version='@VERSION@' \ --msgid-bugs-address="$$msgid_bugs_address" \ + $(XGETTEXT_OPTIONS) @XGETTEXT_EXTRA_OPTIONS@ \ ;; \ esac test ! -f $(DOMAIN).po || { \ + if test -f $(srcdir)/$(DOMAIN).pot-header; then \ + sed -e '1,/^#$$/d' < $(DOMAIN).po > $(DOMAIN).1po && \ + cat $(srcdir)/$(DOMAIN).pot-header $(DOMAIN).1po > $(DOMAIN).po && \ + rm -f $(DOMAIN).1po \ + || exit 1; \ + fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ sed -f remove-potcdate.sed < $(srcdir)/$(DOMAIN).pot > $(DOMAIN).1po && \ sed -f remove-potcdate.sed < $(DOMAIN).po > $(DOMAIN).2po && \ @@ -189,17 +243,20 @@ $(srcdir)/$(DOMAIN).pot: # This target rebuilds a PO file if $(DOMAIN).pot has changed. # Note that a PO file is not touched if it doesn't need to be changed. -$(POFILES): $(srcdir)/$(DOMAIN).pot +$(POFILES): $(POFILESDEPS) + @test -f $(srcdir)/$(DOMAIN).pot || $(MAKE) $(srcdir)/$(DOMAIN).pot @lang=`echo $@ | sed -e 's,.*/,,' -e 's/\.po$$//'`; \ if test -f "$(srcdir)/$${lang}.po"; then \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot"; \ + echo "$${cdcmd}$(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} --previous $${lang}.po $(DOMAIN).pot"; \ cd $(srcdir) \ && { case `$(MSGMERGE_UPDATE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].*) \ $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) $${lang}.po $(DOMAIN).pot;; \ + 0.1[6-7] | 0.1[6-7].*) \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --previous $${lang}.po $(DOMAIN).pot;; \ *) \ - $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} $${lang}.po $(DOMAIN).pot;; \ + $(MSGMERGE_UPDATE) $(MSGMERGE_OPTIONS) --lang=$${lang} --previous $${lang}.po $(DOMAIN).pot;; \ esac; \ }; \ else \ @@ -334,34 +391,41 @@ check: all info dvi ps pdf html tags TAGS ctags CTAGS ID: +install-dvi install-ps install-pdf install-html: + mostlyclean: rm -f remove-potcdate.sed - rm -f stamp-poT + rm -f $(srcdir)/stamp-poT rm -f core core.* $(DOMAIN).po $(DOMAIN).1po $(DOMAIN).2po *.new.po rm -fr *.o clean: mostlyclean distclean: clean - rm -f Makefile Makefile.in POTFILES *.mo + rm -f Makefile Makefile.in POTFILES maintainer-clean: distclean @echo "This command is intended for maintainers to use;" @echo "it deletes files that may require special tools to rebuild." - rm -f stamp-po $(GMOFILES) + rm -f $(srcdir)/$(DOMAIN).pot $(srcdir)/stamp-po $(GMOFILES) distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir) dist distdir: - $(MAKE) update-po + test -z "$(DISTFILESDEPS)" || $(MAKE) $(DISTFILESDEPS) @$(MAKE) dist2 # This is a separate target because 'update-po' must be executed before. -dist2: stamp-po $(DISTFILES) - dists="$(DISTFILES)"; \ +dist2: $(srcdir)/stamp-po $(DISTFILES) + @dists="$(DISTFILES)"; \ if test "$(PACKAGE)" = "gettext-tools"; then \ dists="$$dists Makevars.template"; \ fi; \ if test -f $(srcdir)/$(DOMAIN).pot; then \ dists="$$dists $(DOMAIN).pot stamp-po"; \ + else \ + case $(XGETTEXT) in \ + :) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because a suitable 'xgettext' program was not found in PATH." 1>&2;; \ + *) echo "Warning: Creating a tarball without '$(DOMAIN).pot', because 'xgettext' found no strings to extract. Check the contents of the POTFILES.in file and the XGETTEXT_OPTIONS in the Makevars file." 1>&2;; \ + esac; \ fi; \ if test -f $(srcdir)/ChangeLog; then \ dists="$$dists ChangeLog"; \ @@ -396,17 +460,19 @@ update-po: Makefile .nop.po-update: @lang=`echo $@ | sed -e 's/\.po-update$$//'`; \ - if test "$(PACKAGE)" = "gettext-tools"; then PATH=`pwd`/../src:$$PATH; fi; \ + if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ test "$(srcdir)" = . && cdcmd="" || cdcmd="cd $(srcdir) && "; \ - echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ + echo "$${cdcmd}$(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang --previous $$lang.po $(DOMAIN).pot -o $$lang.new.po"; \ cd $(srcdir); \ if { case `$(MSGMERGE) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ - '' | 0.[0-9] | 0.[0-9].* | 0.1[0-7] | 0.1[0-7].*) \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-5] | 0.1[0-5].*) \ $(MSGMERGE) $(MSGMERGE_OPTIONS) -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + 0.1[6-7] | 0.1[6-7].*) \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --previous -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ *) \ - $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ + $(MSGMERGE) $(MSGMERGE_OPTIONS) --lang=$$lang --previous -o $$tmpdir/$$lang.new.po $$lang.po $(DOMAIN).pot;; \ esac; \ }; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ diff --git a/libesedb-sys/libesedb-20210424/po/Makevars b/libesedb-sys/libesedb-20230824/po/Makevars similarity index 100% rename from libesedb-sys/libesedb-20210424/po/Makevars rename to libesedb-sys/libesedb-20230824/po/Makevars diff --git a/libesedb-sys/libesedb-20210424/po/Makevars.in b/libesedb-sys/libesedb-20230824/po/Makevars.in similarity index 100% rename from libesedb-sys/libesedb-20210424/po/Makevars.in rename to libesedb-sys/libesedb-20230824/po/Makevars.in diff --git a/libesedb-sys/libesedb-20210424/po/POTFILES.in b/libesedb-sys/libesedb-20230824/po/POTFILES.in similarity index 100% rename from libesedb-sys/libesedb-20210424/po/POTFILES.in rename to libesedb-sys/libesedb-20230824/po/POTFILES.in diff --git a/libesedb-sys/libesedb-20210424/po/Rules-quot b/libesedb-sys/libesedb-20230824/po/Rules-quot similarity index 58% rename from libesedb-sys/libesedb-20210424/po/Rules-quot rename to libesedb-sys/libesedb-20230824/po/Rules-quot index af52487..18c024b 100644 --- a/libesedb-sys/libesedb-20210424/po/Rules-quot +++ b/libesedb-sys/libesedb-20230824/po/Rules-quot @@ -1,4 +1,9 @@ # Special Makefile rules for English message catalogs with quotation marks. +# +# Copyright (C) 2001-2017 Free Software Foundation, Inc. +# This file, Rules-quot, and its auxiliary files (listed under +# DISTFILES.common.extra1) are free software; the Free Software Foundation +# gives unlimited permission to use, copy, distribute, and modify them. DISTFILES.common.extra1 = quot.sed boldquot.sed en@quot.header en@boldquot.header insert-header.sin Rules-quot @@ -14,13 +19,23 @@ en@boldquot.po-update: en@boldquot.po-update-en .insert-header.po-update-en: @lang=`echo $@ | sed -e 's/\.po-update-en$$//'`; \ - if test "$(PACKAGE)" = "gettext"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ + if test "$(PACKAGE)" = "gettext-tools" && test "$(CROSS_COMPILING)" != "yes"; then PATH=`pwd`/../src:$$PATH; GETTEXTLIBDIR=`cd $(top_srcdir)/src && pwd`; export GETTEXTLIBDIR; fi; \ tmpdir=`pwd`; \ echo "$$lang:"; \ ll=`echo $$lang | sed -e 's/@.*//'`; \ LC_ALL=C; export LC_ALL; \ cd $(srcdir); \ - if $(MSGINIT) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null | sed -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | $(MSGFILTER) sed -f `echo $$lang | sed -e 's/.*@//'`.sed 2>/dev/null > $$tmpdir/$$lang.new.po; then \ + if $(MSGINIT) $(MSGINIT_OPTIONS) -i $(DOMAIN).pot --no-translator -l $$lang -o - 2>/dev/null \ + | $(SED) -f $$tmpdir/$$lang.insert-header | $(MSGCONV) -t UTF-8 | \ + { case `$(MSGFILTER) --version | sed 1q | sed -e 's,^[^0-9]*,,'` in \ + '' | 0.[0-9] | 0.[0-9].* | 0.1[0-8] | 0.1[0-8].*) \ + $(MSGFILTER) $(SED) -f `echo $$lang | sed -e 's/.*@//'`.sed \ + ;; \ + *) \ + $(MSGFILTER) `echo $$lang | sed -e 's/.*@//'` \ + ;; \ + esac } 2>/dev/null > $$tmpdir/$$lang.new.po \ + ; then \ if cmp $$lang.po $$tmpdir/$$lang.new.po >/dev/null 2>&1; then \ rm -f $$tmpdir/$$lang.new.po; \ else \ diff --git a/libesedb-sys/libesedb-20210424/po/boldquot.sed b/libesedb-sys/libesedb-20230824/po/boldquot.sed similarity index 100% rename from libesedb-sys/libesedb-20210424/po/boldquot.sed rename to libesedb-sys/libesedb-20230824/po/boldquot.sed diff --git a/libesedb-sys/libesedb-20210424/po/en@boldquot.header b/libesedb-sys/libesedb-20230824/po/en@boldquot.header similarity index 96% rename from libesedb-sys/libesedb-20210424/po/en@boldquot.header rename to libesedb-sys/libesedb-20230824/po/en@boldquot.header index fedb6a0..506ca9e 100644 --- a/libesedb-sys/libesedb-20210424/po/en@boldquot.header +++ b/libesedb-sys/libesedb-20230824/po/en@boldquot.header @@ -2,7 +2,7 @@ # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see -# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html +# https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). diff --git a/libesedb-sys/libesedb-20210424/po/en@quot.header b/libesedb-sys/libesedb-20230824/po/en@quot.header similarity index 95% rename from libesedb-sys/libesedb-20210424/po/en@quot.header rename to libesedb-sys/libesedb-20230824/po/en@quot.header index a9647fc..6522f0c 100644 --- a/libesedb-sys/libesedb-20210424/po/en@quot.header +++ b/libesedb-sys/libesedb-20230824/po/en@quot.header @@ -2,7 +2,7 @@ # The msgids must be ASCII and therefore cannot contain real quotation # characters, only substitutes like grave accent (0x60), apostrophe (0x27) # and double quote (0x22). These substitutes look strange; see -# http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html +# https://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html # # This catalog translates grave accent (0x60) and apostrophe (0x27) to # left single quotation mark (U+2018) and right single quotation mark (U+2019). diff --git a/libesedb-sys/libesedb-20210424/po/insert-header.sin b/libesedb-sys/libesedb-20230824/po/insert-header.sin similarity index 74% rename from libesedb-sys/libesedb-20210424/po/insert-header.sin rename to libesedb-sys/libesedb-20230824/po/insert-header.sin index b26de01..ceeebb9 100644 --- a/libesedb-sys/libesedb-20210424/po/insert-header.sin +++ b/libesedb-sys/libesedb-20230824/po/insert-header.sin @@ -1,5 +1,10 @@ # Sed script that inserts the file called HEADER before the header entry. # +# Copyright (C) 2001 Free Software Foundation, Inc. +# Written by Bruno Haible , 2001. +# This file is free software; the Free Software Foundation gives +# unlimited permission to use, copy, distribute, and modify it. +# # At each occurrence of a line starting with "msgid ", we execute the following # commands. At the first occurrence, insert the file. At the following # occurrences, do nothing. The distinction between the first and the following diff --git a/libesedb-sys/libesedb-20210424/po/quot.sed b/libesedb-sys/libesedb-20230824/po/quot.sed similarity index 100% rename from libesedb-sys/libesedb-20210424/po/quot.sed rename to libesedb-sys/libesedb-20230824/po/quot.sed diff --git a/libesedb-sys/libesedb-20210424/po/remove-potcdate.sin b/libesedb-sys/libesedb-20230824/po/remove-potcdate.sin similarity index 50% rename from libesedb-sys/libesedb-20210424/po/remove-potcdate.sin rename to libesedb-sys/libesedb-20230824/po/remove-potcdate.sin index 2436c49..8c70dfb 100644 --- a/libesedb-sys/libesedb-20210424/po/remove-potcdate.sin +++ b/libesedb-sys/libesedb-20230824/po/remove-potcdate.sin @@ -1,6 +1,12 @@ -# Sed script that remove the POT-Creation-Date line in the header entry +# Sed script that removes the POT-Creation-Date line in the header entry # from a POT file. # +# Copyright (C) 2002 Free Software Foundation, Inc. +# Copying and distribution of this file, with or without modification, +# are permitted in any medium without royalty provided the copyright +# notice and this notice are preserved. This file is offered as-is, +# without any warranty. +# # The distinction between the first and the following occurrences of the # pattern is achieved by looking at the hold space. /^"POT-Creation-Date: .*"$/{ diff --git a/libesedb-sys/libesedb-20210424/pyesedb-python2/Makefile.am b/libesedb-sys/libesedb-20230824/pyesedb-python2/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/pyesedb-python2/Makefile.am rename to libesedb-sys/libesedb-20230824/pyesedb-python2/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/pyesedb-python2/Makefile.in b/libesedb-sys/libesedb-20230824/pyesedb-python2/Makefile.in similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb-python2/Makefile.in rename to libesedb-sys/libesedb-20230824/pyesedb-python2/Makefile.in index b5be425..3caf941 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb-python2/Makefile.in +++ b/libesedb-sys/libesedb-20230824/pyesedb-python2/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = pyesedb-python2 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -251,8 +252,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -269,6 +268,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -284,8 +285,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -403,8 +406,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -611,6 +614,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -999,7 +1003,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -1043,7 +1046,8 @@ installdirs: done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am -install-exec: install-exec-am +install-exec: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data: install-data-am uninstall: uninstall-am @@ -1160,7 +1164,7 @@ ps-am: uninstall-am: uninstall-pyexecLTLIBRARIES -.MAKE: all check install install-am install-strip +.MAKE: all check install install-am install-exec install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-local \ diff --git a/libesedb-sys/libesedb-20210424/pyesedb-python3/Makefile.am b/libesedb-sys/libesedb-20230824/pyesedb-python3/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/pyesedb-python3/Makefile.am rename to libesedb-sys/libesedb-20230824/pyesedb-python3/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/pyesedb-python3/Makefile.in b/libesedb-sys/libesedb-20230824/pyesedb-python3/Makefile.in similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb-python3/Makefile.in rename to libesedb-sys/libesedb-20230824/pyesedb-python3/Makefile.in index f3f7a98..c430bf8 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb-python3/Makefile.in +++ b/libesedb-sys/libesedb-20230824/pyesedb-python3/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = pyesedb-python3 ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -251,8 +252,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -269,6 +268,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -284,8 +285,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -403,8 +406,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -611,6 +614,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -999,7 +1003,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -1043,7 +1046,8 @@ installdirs: done install: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) install-am -install-exec: install-exec-am +install-exec: $(BUILT_SOURCES) + $(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data: install-data-am uninstall: uninstall-am @@ -1160,7 +1164,7 @@ ps-am: uninstall-am: uninstall-pyexecLTLIBRARIES -.MAKE: all check install install-am install-strip +.MAKE: all check install install-am install-exec install-strip .PHONY: CTAGS GTAGS TAGS all all-am am--depfiles check check-am clean \ clean-generic clean-libtool clean-local \ diff --git a/libesedb-sys/libesedb-20210424/pyesedb/Makefile.am b/libesedb-sys/libesedb-20230824/pyesedb/Makefile.am similarity index 100% rename from libesedb-sys/libesedb-20210424/pyesedb/Makefile.am rename to libesedb-sys/libesedb-20230824/pyesedb/Makefile.am diff --git a/libesedb-sys/libesedb-20210424/pyesedb/Makefile.in b/libesedb-sys/libesedb-20230824/pyesedb/Makefile.in similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb/Makefile.in rename to libesedb-sys/libesedb-20230824/pyesedb/Makefile.in index 8bdd2ed..bbccb88 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/Makefile.in +++ b/libesedb-sys/libesedb-20230824/pyesedb/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -91,25 +91,26 @@ host_triplet = @host@ subdir = pyesedb ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -268,8 +269,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__DIST_COMMON = $(srcdir)/Makefile.in $(top_srcdir)/depcomp DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ @@ -286,6 +285,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -301,8 +302,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -420,8 +423,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -628,6 +631,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -1008,7 +1012,6 @@ cscopelist-am: $(am__tagged_files) distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb.c similarity index 98% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb.c index 97752ab..d5fdf18 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb.c @@ -1,7 +1,7 @@ /* * Python bindings module for libesedb (pyesedb) * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -108,7 +108,6 @@ PyObject *pyesedb_get_version( PyObject *self PYESEDB_ATTRIBUTE_UNUSED, PyObject *arguments PYESEDB_ATTRIBUTE_UNUSED ) { - const char *errors = NULL; const char *version_string = NULL; size_t version_string_length = 0; @@ -131,7 +130,7 @@ PyObject *pyesedb_get_version( return( PyUnicode_DecodeUTF8( version_string, (Py_ssize_t) version_string_length, - errors ) ); + NULL ) ); } /* Checks if a file has a Extensible Storage Engine (ESE) Database File (EDB) signature @@ -191,8 +190,14 @@ PyObject *pyesedb_check_file_signature( PyErr_Clear(); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) +#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 3 + filename_wide = (wchar_t *) PyUnicode_AsWideCharString( + string_object, + NULL ); +#else filename_wide = (wchar_t *) PyUnicode_AsUnicode( string_object ); +#endif Py_BEGIN_ALLOW_THREADS result = libesedb_check_file_signature_wide( @@ -200,6 +205,11 @@ PyObject *pyesedb_check_file_signature( &error ); Py_END_ALLOW_THREADS + +#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 3 + PyMem_Free( + filename_wide ); +#endif #else utf8_string_object = PyUnicode_AsUTF8String( string_object ); diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb.h similarity index 96% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb.h index a4a110d..4d9c877 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb.h @@ -1,7 +1,7 @@ /* * Python bindings module for libesedb (pyesedb) * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column.c similarity index 98% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column.c index 4f32c1e..c3d34e5 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column.c @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_column_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -445,7 +445,6 @@ PyObject *pyesedb_column_get_name( { PyObject *string_object = NULL; libcerror_error_t *error = NULL; - const char *errors = NULL; static char *function = "pyesedb_column_get_name"; char *utf8_string = NULL; size_t utf8_string_size = 0; @@ -533,7 +532,7 @@ PyObject *pyesedb_column_get_name( string_object = PyUnicode_DecodeUTF8( utf8_string, (Py_ssize_t) utf8_string_size - 1, - errors ); + NULL ); if( string_object == NULL ) { diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column.h similarity index 96% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column.h index 66e0aca..9f08d35 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column.h @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_column_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column_types.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column_types.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column_types.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column_types.c index c02e994..f3d55f2 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column_types.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column_types.c @@ -1,7 +1,7 @@ /* * Python object definition of the libesedb column types * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column_types.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column_types.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column_types.h index 19483b4..3be222a 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_column_types.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_column_types.h @@ -1,7 +1,7 @@ /* * Python object definition of the libesedb column types * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_columns.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_columns.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_columns.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_columns.c index 5f22f2b..6d78efb 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_columns.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_columns.c @@ -1,7 +1,7 @@ /* * Python object definition of the sequence and iterator object of columns * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_columns.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_columns.h similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_columns.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_columns.h index 1454d53..d68bfdf 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_columns.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_columns.h @@ -1,7 +1,7 @@ /* * Python object definition of the sequence and iterator object of columns * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_datetime.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_datetime.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_datetime.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_datetime.c index d567c11..13e5371 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_datetime.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_datetime.c @@ -1,7 +1,7 @@ /* * Date and time functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -37,7 +37,7 @@ PyObject *pyesedb_datetime_new_from_time_elements( uint8_t hours, uint8_t minutes, uint8_t seconds, - uint8_t micro_seconds ) + uint32_t micro_seconds ) { PyObject *datetime_object = NULL; static char *function = "pyesedb_datetime_new_from_time_elements"; @@ -163,7 +163,7 @@ PyObject *pyesedb_datetime_new_from_time_elements( (int) hours, (int) minutes, (int) seconds, - 0 ); + (int) micro_seconds ); return( datetime_object ); } diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_datetime.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_datetime.h similarity index 94% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_datetime.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_datetime.h index dab8ff1..8b166e5 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_datetime.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_datetime.h @@ -1,7 +1,7 @@ /* * Date and time functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -37,7 +37,7 @@ PyObject *pyesedb_datetime_new_from_time_elements( uint8_t hours, uint8_t minutes, uint8_t seconds, - uint8_t micro_seconds ); + uint32_t micro_seconds ); PyObject *pyesedb_datetime_new_from_fat_date_time( uint32_t fat_date_time ); diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_error.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_error.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_error.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_error.c index 5cea1c4..bd915dd 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_error.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_error.c @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_error.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_error.h similarity index 95% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_error.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_error.h index 8181fcc..30d9fff 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_error.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_error.h @@ -1,7 +1,7 @@ /* * Error functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file.c similarity index 98% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file.c index edcb9f5..52172a2 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file.c @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_file_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -358,6 +358,15 @@ void pyesedb_file_free( return; } + if( pyesedb_file->file_io_handle != NULL ) + { + if( pyesedb_file_close( + pyesedb_file, + NULL ) == NULL ) + { + return; + } + } if( pyesedb_file->file != NULL ) { Py_BEGIN_ALLOW_THREADS @@ -510,8 +519,14 @@ PyObject *pyesedb_file_open( PyErr_Clear(); #if defined( HAVE_WIDE_SYSTEM_CHARACTER ) +#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 3 + filename_wide = (wchar_t *) PyUnicode_AsWideCharString( + string_object, + NULL ); +#else filename_wide = (wchar_t *) PyUnicode_AsUnicode( string_object ); +#endif Py_BEGIN_ALLOW_THREADS result = libesedb_file_open_wide( @@ -521,6 +536,11 @@ PyObject *pyesedb_file_open( &error ); Py_END_ALLOW_THREADS + +#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 3 + PyMem_Free( + filename_wide ); +#endif #else utf8_string_object = PyUnicode_AsUTF8String( string_object ); diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file.h similarity index 98% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file.h index 3005233..702ff11 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file.h @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_file_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_object_io_handle.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_object_io_handle.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_object_io_handle.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_object_io_handle.c index 4ad9a44..ad402fe 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_object_io_handle.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_object_io_handle.c @@ -1,7 +1,7 @@ /* * Python file object IO handle functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -578,7 +578,7 @@ ssize_t pyesedb_file_object_read_buffer( error, LIBCERROR_ERROR_DOMAIN_MEMORY, LIBCERROR_MEMORY_ERROR_COPY_FAILED, - "%s: unable to data to buffer.", + "%s: unable to copy data to buffer.", function ); goto on_error; diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_object_io_handle.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_object_io_handle.h similarity index 98% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_object_io_handle.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_object_io_handle.h index 28c524d..d0c4d43 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_object_io_handle.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_object_io_handle.h @@ -1,7 +1,7 @@ /* * Python file object IO handle functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_types.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_types.c similarity index 98% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_types.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_types.c index 0d9d660..2b1235e 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_types.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_types.c @@ -1,7 +1,7 @@ /* * Python object definition of the libesedb file types * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_types.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_types.h similarity index 96% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_types.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_types.h index 8ff654c..9140322 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_file_types.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_file_types.h @@ -1,7 +1,7 @@ /* * Python object definition of the libesedb file types * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_index.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_index.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_index.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_index.c index 5119e71..56e932a 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_index.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_index.c @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_index_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -408,7 +408,6 @@ PyObject *pyesedb_index_get_name( { PyObject *string_object = NULL; libcerror_error_t *error = NULL; - const char *errors = NULL; static char *function = "pyesedb_index_get_name"; char *utf8_string = NULL; size_t utf8_string_size = 0; @@ -496,7 +495,7 @@ PyObject *pyesedb_index_get_name( string_object = PyUnicode_DecodeUTF8( utf8_string, (Py_ssize_t) utf8_string_size - 1, - errors ); + NULL ); if( string_object == NULL ) { diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_index.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_index.h similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_index.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_index.h index d79851e..2c52f72 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_index.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_index.h @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_index_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_indexes.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_indexes.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_indexes.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_indexes.c index ca2a4c9..99bb82d 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_indexes.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_indexes.c @@ -1,7 +1,7 @@ /* * Python object definition of the sequence and iterator object of indexes * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_indexes.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_indexes.h similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_indexes.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_indexes.h index 1bfa99c..5a42194 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_indexes.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_indexes.h @@ -1,7 +1,7 @@ /* * Python object definition of the sequence and iterator object of indexes * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_integer.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_integer.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_integer.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_integer.c index fb5b969..64da930 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_integer.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_integer.c @@ -1,7 +1,7 @@ /* * Integer functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_integer.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_integer.h similarity index 95% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_integer.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_integer.h index 00d1895..8386495 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_integer.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_integer.h @@ -1,7 +1,7 @@ /* * Integer functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libbfio.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libbfio.h similarity index 95% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libbfio.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libbfio.h index 0d467eb..54be818 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libbfio.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libbfio.h @@ -1,7 +1,7 @@ /* * The libbfio header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libcerror.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libcerror.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libcerror.h index a13a4d0..4272fd4 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libcerror.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libclocale.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libclocale.h similarity index 95% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libclocale.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libclocale.h index 9a39349..094b9ff 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libclocale.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libclocale.h @@ -1,7 +1,7 @@ /* * The libclocale header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libesedb.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libesedb.h similarity index 93% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libesedb.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libesedb.h index 590339a..e260c1d 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_libesedb.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_libesedb.h @@ -1,7 +1,7 @@ /* * The internal libesedb header * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_long_value.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_long_value.c similarity index 98% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_long_value.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_long_value.c index 4c9e4f9..adfaeef 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_long_value.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_long_value.c @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_long_value_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -384,7 +384,7 @@ PyObject *pyesedb_long_value_get_data( if( data == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create data.", function ); @@ -446,7 +446,6 @@ PyObject *pyesedb_long_value_get_data_as_string( libcerror_error_t *error = NULL; PyObject *string_object = NULL; uint8_t *value_string = NULL; - const char *errors = NULL; static char *function = "pyesedb_long_value_get_data_as_string"; size_t value_string_size = 0; int result = 0; @@ -496,7 +495,7 @@ PyObject *pyesedb_long_value_get_data_as_string( if( value_string == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create string.", function ); @@ -532,7 +531,7 @@ PyObject *pyesedb_long_value_get_data_as_string( string_object = PyUnicode_DecodeUTF8( (char *) value_string, (Py_ssize_t) value_string_size - 1, - errors ); + NULL ); PyMem_Free( value_string ); diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_long_value.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_long_value.h similarity index 96% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_long_value.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_long_value.h index 16c8c18..f18629b 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_long_value.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_long_value.h @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_long_value_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_multi_value.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_multi_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_multi_value.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_multi_value.c index fa4d8d5..41b9855 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_multi_value.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_multi_value.c @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_multi_value_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -466,7 +466,7 @@ PyObject *pyesedb_multi_value_get_value_data( if( value_data == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create value: %d data.", function, multi_value_index ); @@ -850,7 +850,6 @@ PyObject *pyesedb_multi_value_get_value_data_as_string( libcerror_error_t *error = NULL; PyObject *string_object = NULL; uint8_t *value_string = NULL; - const char *errors = NULL; static char *keyword_list[] = { "multi_value_index", NULL }; static char *function = "pyesedb_multi_value_get_value_data_as_string"; size_t value_string_size = 0; @@ -948,7 +947,7 @@ PyObject *pyesedb_multi_value_get_value_data_as_string( if( value_string == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create value: %d string.", function, multi_value_index ); @@ -987,7 +986,7 @@ PyObject *pyesedb_multi_value_get_value_data_as_string( string_object = PyUnicode_DecodeUTF8( (char *) value_string, (Py_ssize_t) value_string_size - 1, - errors ); + NULL ); PyMem_Free( value_string ); diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_multi_value.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_multi_value.h similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_multi_value.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_multi_value.h index 623e8a3..c2b4d55 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_multi_value.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_multi_value.h @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_multi_value_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_python.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_python.h similarity index 96% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_python.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_python.h index 228c5bf..58f2a45 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_python.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_python.h @@ -1,7 +1,7 @@ /* * The python header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_record.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_record.c similarity index 91% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_record.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_record.c index e4a4d80..935f16f 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_record.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_record.c @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_record_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -88,17 +88,24 @@ PyMethodDef pyesedb_record_object_methods[] = { "\n" "Retrieves the value data as a binary string." }, + { "get_value_data_as_boolean", + (PyCFunction) pyesedb_record_get_value_data_as_boolean, + METH_VARARGS | METH_KEYWORDS, + "get_value_data_as_boolean(value_entry) -> Boolean or None\n" + "\n" + "Retrieves the value data as a boolean." }, + { "get_value_data_as_floating_point", (PyCFunction) pyesedb_record_get_value_data_as_floating_point, METH_VARARGS | METH_KEYWORDS, - "get_value_data_as_floating_point(value_entry) -> Float\n" + "get_value_data_as_floating_point(value_entry) -> Float or None\n" "\n" "Retrieves the value data as a floating point." }, { "get_value_data_as_integer", (PyCFunction) pyesedb_record_get_value_data_as_integer, METH_VARARGS | METH_KEYWORDS, - "get_value_data_as_integer(value_entry) -> Integer\n" + "get_value_data_as_integer(value_entry) -> Integer or None\n" "\n" "Retrieves the value data as an integer." }, @@ -511,7 +518,6 @@ PyObject *pyesedb_record_get_column_name( libcerror_error_t *error = NULL; PyObject *string_object = NULL; uint8_t *column_name = NULL; - const char *errors = NULL; static char *function = "pyesedb_record_get_column_name"; static char *keyword_list[] = { "value_entry", NULL }; size_t column_name_size = 0; @@ -574,7 +580,7 @@ PyObject *pyesedb_record_get_column_name( if( column_name == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create column name: %d.", function, value_entry ); @@ -613,7 +619,7 @@ PyObject *pyesedb_record_get_column_name( string_object = PyUnicode_DecodeUTF8( (char *) column_name, (Py_ssize_t) column_name_size - 1, - errors ); + NULL ); PyMem_Free( column_name ); @@ -902,7 +908,7 @@ PyObject *pyesedb_record_get_value_data( if( value_data == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create value: %d data.", function, value_entry ); @@ -957,6 +963,122 @@ PyObject *pyesedb_record_get_value_data( return( NULL ); } +/* Retrieves the value data represented as a boolean + * Returns a Python object if successful or NULL on error + */ +PyObject *pyesedb_record_get_value_data_as_boolean( + pyesedb_record_t *pyesedb_record, + PyObject *arguments, + PyObject *keywords ) +{ + libcerror_error_t *error = NULL; + static char *function = "pyesedb_record_get_value_data_as_boolean"; + static char *keyword_list[] = { "value_entry", NULL }; + uint32_t column_type = 0; + uint8_t value_8bit = 0; + int result = 0; + int value_entry = 0; + + if( pyesedb_record == NULL ) + { + PyErr_Format( + PyExc_TypeError, + "%s: invalid record.", + function ); + + return( NULL ); + } + if( PyArg_ParseTupleAndKeywords( + arguments, + keywords, + "i", + keyword_list, + &value_entry ) == 0 ) + { + return( NULL ); + } + Py_BEGIN_ALLOW_THREADS + + result = libesedb_record_get_column_type( + pyesedb_record->record, + value_entry, + &column_type, + &error ); + + Py_END_ALLOW_THREADS + + if( result != 1 ) + { + pyesedb_error_raise( + error, + PyExc_IOError, + "%s: unable to retrieve column: %d type.", + function, + value_entry ); + + libcerror_error_free( + &error ); + + return( NULL ); + } + switch( column_type ) + { + case LIBESEDB_COLUMN_TYPE_BOOLEAN: + Py_BEGIN_ALLOW_THREADS + + result = libesedb_record_get_value_boolean( + pyesedb_record->record, + value_entry, + &value_8bit, + &error ); + + Py_END_ALLOW_THREADS + + break; + + default: + PyErr_Format( + PyExc_IOError, + "%s: value: %d is not a boolean type.", + function, + value_entry ); + + return( NULL ); + } + if( result == -1 ) + { + pyesedb_error_raise( + error, + PyExc_IOError, + "%s: unable to retrieve boolean value: %d.", + function, + value_entry ); + + libcerror_error_free( + &error ); + + return( NULL ); + } + else if( result == 0 ) + { + Py_IncRef( + Py_None ); + + return( Py_None ); + } + if( value_8bit != 0 ) + { + Py_IncRef( + (PyObject *) Py_True ); + + return( Py_True ); + } + Py_IncRef( + (PyObject *) Py_False ); + + return( Py_False ); +} + /* Retrieves the value data represented as a floating point * Returns a Python object if successful or NULL on error */ @@ -1070,6 +1192,13 @@ PyObject *pyesedb_record_get_value_data_as_floating_point( return( NULL ); } + else if( result == 0 ) + { + Py_IncRef( + Py_None ); + + return( Py_None ); + } floating_point_object = PyFloat_FromDouble( value_64bit ); @@ -1264,6 +1393,13 @@ PyObject *pyesedb_record_get_value_data_as_integer( return( NULL ); } + else if( result == 0 ) + { + Py_IncRef( + Py_None ); + + return( Py_None ); + } if( value_is_signed != 0 ) { integer_object = pyesedb_integer_signed_new_from_64bit( @@ -1288,7 +1424,6 @@ PyObject *pyesedb_record_get_value_data_as_string( libcerror_error_t *error = NULL; PyObject *string_object = NULL; uint8_t *value_string = NULL; - const char *errors = NULL; static char *keyword_list[] = { "value_entry", NULL }; static char *function = "pyesedb_record_get_value_data_as_string"; size_t value_string_size = 0; @@ -1387,7 +1522,7 @@ PyObject *pyesedb_record_get_value_data_as_string( if( value_string == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create value: %d string.", function, value_entry ); @@ -1426,7 +1561,7 @@ PyObject *pyesedb_record_get_value_data_as_string( string_object = PyUnicode_DecodeUTF8( (char *) value_string, (Py_ssize_t) value_string_size - 1, - errors ); + NULL ); PyMem_Free( value_string ); diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_record.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_record.h similarity index 93% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_record.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_record.h index 501a786..f17ab63 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_record.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_record.h @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_record_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -96,6 +96,11 @@ PyObject *pyesedb_record_get_value_data( PyObject *arguments, PyObject *keywords ); +PyObject *pyesedb_record_get_value_data_as_boolean( + pyesedb_record_t *pyesedb_record, + PyObject *arguments, + PyObject *keywords ); + PyObject *pyesedb_record_get_value_data_as_floating_point( pyesedb_record_t *pyesedb_record, PyObject *arguments, diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_records.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_records.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_records.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_records.c index 2e7ed60..6e1d4b2 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_records.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_records.c @@ -1,7 +1,7 @@ /* * Python object definition of the sequence and iterator object of records * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_records.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_records.h similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_records.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_records.h index 7bfba59..4113e5d 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_records.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_records.h @@ -1,7 +1,7 @@ /* * Python object definition of the sequence and iterator object of records * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_table.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_table.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_table.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_table.c index 16d5837..64bb7be 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_table.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_table.c @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_table_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -457,7 +457,6 @@ PyObject *pyesedb_table_get_name( { libcerror_error_t *error = NULL; PyObject *string_object = NULL; - const char *errors = NULL; uint8_t *name = NULL; static char *function = "pyesedb_table_get_name"; size_t name_size = 0; @@ -510,7 +509,7 @@ PyObject *pyesedb_table_get_name( if( name == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create name.", function ); @@ -546,7 +545,7 @@ PyObject *pyesedb_table_get_name( string_object = PyUnicode_DecodeUTF8( (char *) name, (Py_ssize_t) name_size - 1, - errors ); + NULL ); PyMem_Free( name ); @@ -571,7 +570,6 @@ PyObject *pyesedb_table_get_template_name( { libcerror_error_t *error = NULL; PyObject *string_object = NULL; - const char *errors = NULL; uint8_t *template_name = NULL; static char *function = "pyesedb_table_get_template_name"; size_t template_name_size = 0; @@ -624,7 +622,7 @@ PyObject *pyesedb_table_get_template_name( if( template_name == NULL ) { PyErr_Format( - PyExc_IOError, + PyExc_MemoryError, "%s: unable to create template name.", function ); @@ -660,7 +658,7 @@ PyObject *pyesedb_table_get_template_name( string_object = PyUnicode_DecodeUTF8( (char *) template_name, (Py_ssize_t) template_name_size - 1, - errors ); + NULL ); PyMem_Free( template_name ); diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_table.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_table.h similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_table.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_table.h index 9edfac4..6e8fbb8 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_table.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_table.h @@ -1,7 +1,7 @@ /* * Python object wrapper of libesedb_table_t * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_tables.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_tables.c similarity index 99% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_tables.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_tables.c index ca06c00..6881d17 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_tables.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_tables.c @@ -1,7 +1,7 @@ /* * Python object definition of the sequence and iterator object of tables * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_tables.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_tables.h similarity index 97% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_tables.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_tables.h index eadd935..8696488 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_tables.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_tables.h @@ -1,7 +1,7 @@ /* * Python object definition of the sequence and iterator object of tables * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_unused.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_unused.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_unused.h index 412c641..e897bf2 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_unused.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_value_flags.c b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_value_flags.c similarity index 98% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_value_flags.c rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_value_flags.c index 6143542..eab8407 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_value_flags.c +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_value_flags.c @@ -1,7 +1,7 @@ /* * Python object definition of the libesedb value flags * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_value_flags.h b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_value_flags.h similarity index 96% rename from libesedb-sys/libesedb-20210424/pyesedb/pyesedb_value_flags.h rename to libesedb-sys/libesedb-20230824/pyesedb/pyesedb_value_flags.h index 827f131..aba2c4e 100644 --- a/libesedb-sys/libesedb-20210424/pyesedb/pyesedb_value_flags.h +++ b/libesedb-sys/libesedb-20230824/pyesedb/pyesedb_value_flags.h @@ -1,7 +1,7 @@ /* * Python object definition of the libesedb value flags * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/setup.py b/libesedb-sys/libesedb-20230824/setup.py similarity index 80% rename from libesedb-sys/libesedb-20210424/setup.py rename to libesedb-sys/libesedb-20230824/setup.py index b0e9890..afd9215 100644 --- a/libesedb-sys/libesedb-20210424/setup.py +++ b/libesedb-sys/libesedb-20230824/setup.py @@ -1,11 +1,12 @@ #!/usr/bin/env python # # Script to build and install Python-bindings. -# Version: 20191025 +# Version: 20230411 from __future__ import print_function import copy +import datetime import glob import gzip import platform @@ -15,11 +16,10 @@ import subprocess import sys import tarfile +import zipfile -from distutils import sysconfig from distutils.ccompiler import new_compiler -from distutils.command.bdist import bdist -from setuptools import dist + from setuptools import Extension from setuptools import setup from setuptools.command.build_ext import build_ext @@ -30,6 +30,11 @@ except ImportError: bdist_msi = None +try: + from setuptools.command.bdist_rpm import bdist_rpm +except ImportError: + from distutils.command.bdist import bdist as bdist_rpm + if not bdist_msi: custom_bdist_msi = None @@ -51,7 +56,7 @@ def run(self): bdist_msi.run(self) -class custom_bdist_rpm(bdist): +class custom_bdist_rpm(bdist_rpm): """Custom handler for the bdist_rpm command.""" def run(self): @@ -90,11 +95,12 @@ def run(self): compiler = new_compiler(compiler=self.compiler) if compiler.compiler_type == "msvc": self.define = [ + ("_CRT_SECURE_NO_WARNINGS", ""), ("UNICODE", ""), ] else: - command = "sh configure --disable-shared-libs" + command = "sh configure --disable-nls --disable-shared-libs" output = self._RunCommand(command) print_line = False @@ -108,7 +114,6 @@ def run(self): self.define = [ ("HAVE_CONFIG_H", ""), - ("LOCALEDIR", "\"/usr/share/locale\""), ] build_ext.run(self) @@ -119,7 +124,7 @@ class custom_sdist(sdist): def run(self): """Builds a source distribution (sdist) package.""" - if self.formats != ["gztar"]: + if self.formats != ["gztar"] and self.formats != ["zip"]: print("'setup.py sdist' unsupported format.") sys.exit(1) @@ -133,20 +138,20 @@ def run(self): if exit_code != 0: raise RuntimeError("Running: {0:s} failed.".format(command)) - if not os.path.exists("dist"): - os.mkdir("dist") + if not os.path.exists(self.dist_dir): + os.mkdir(self.dist_dir) source_package_file = glob.glob("*.tar.gz")[0] source_package_prefix, _, source_package_suffix = ( source_package_file.partition("-")) sdist_package_file = "{0:s}-python-{1:s}".format( source_package_prefix, source_package_suffix) - sdist_package_file = os.path.join("dist", sdist_package_file) + sdist_package_file = os.path.join(self.dist_dir, sdist_package_file) os.rename(source_package_file, sdist_package_file) # Create and add the PKG-INFO file to the source package. - with gzip.open(sdist_package_file, 'rb') as input_file: - with open(sdist_package_file[:-3], 'wb') as output_file: + with gzip.open(sdist_package_file, "rb") as input_file: + with open(sdist_package_file[:-3], "wb") as output_file: shutil.copyfileobj(input_file, output_file) os.remove(sdist_package_file) @@ -157,11 +162,38 @@ def run(self): tar_file.add("PKG-INFO", arcname=pkg_info_path) os.remove("PKG-INFO") - with open(sdist_package_file[:-3], 'rb') as input_file: - with gzip.open(sdist_package_file, 'wb') as output_file: + with open(sdist_package_file[:-3], "rb") as input_file: + with gzip.open(sdist_package_file, "wb") as output_file: shutil.copyfileobj(input_file, output_file) os.remove(sdist_package_file[:-3]) + # Convert the .tar.gz into a .zip + if self.formats == ["zip"]: + zip_sdist_package_file = "{0:s}.zip".format(sdist_package_file[:-7]) + + with tarfile.open(sdist_package_file, "r|gz") as tar_file: + with zipfile.ZipFile( + zip_sdist_package_file, "w", zipfile.ZIP_DEFLATED) as zip_file: + for tar_file_entry in tar_file: + file_entry = tar_file.extractfile(tar_file_entry) + if tar_file_entry.isfile(): + modification_time = datetime.datetime.fromtimestamp( + tar_file_entry.mtime) + zip_modification_time = ( + modification_time.year, modification_time.month, + modification_time.day, modification_time.hour, + modification_time.minute, modification_time.second) + zip_info = zipfile.ZipInfo( + date_time=zip_modification_time, + filename=tar_file_entry.name) + zip_info.external_attr = (tar_file_entry.mode & 0xff) << 16 + + file_data = file_entry.read() + zip_file.writestr(zip_info, file_data) + + os.remove(sdist_package_file) + sdist_package_file = zip_sdist_package_file + # Inform distutils what files were created. dist_files = getattr(self.distribution, "dist_files", []) dist_files.append(("sdist", "", sdist_package_file)) @@ -272,6 +304,14 @@ def _ReadMakefileAm(self): project_information = ProjectInformation() +CMDCLASS = { + "build_ext": custom_build_ext, + "bdist_rpm": custom_bdist_rpm, + "sdist": custom_sdist} + +if custom_bdist_msi: + CMDCLASS["bdist_msi"] = custom_bdist_msi + SOURCES = [] # TODO: replace by detection of MSC @@ -312,15 +352,11 @@ def _ReadMakefileAm(self): version=project_information.library_version, description=project_information.package_description, long_description=project_information.package_description, + long_description_content_type="text/plain", author="Joachim Metz", author_email="joachim.metz@gmail.com", license="GNU Lesser General Public License v3 or later (LGPLv3+)", - cmdclass={ - "build_ext": custom_build_ext, - "bdist_msi": custom_bdist_msi, - "bdist_rpm": custom_bdist_rpm, - "sdist": custom_sdist, - }, + cmdclass=CMDCLASS, ext_modules=[ Extension( project_information.module_name, diff --git a/libesedb-sys/libesedb-20210424/test-driver b/libesedb-sys/libesedb-20230824/test-driver similarity index 88% rename from libesedb-sys/libesedb-20210424/test-driver rename to libesedb-sys/libesedb-20230824/test-driver index 89dba1e..be73b80 100644 --- a/libesedb-sys/libesedb-20210424/test-driver +++ b/libesedb-sys/libesedb-20230824/test-driver @@ -3,7 +3,7 @@ scriptversion=2018-03-07.03; # UTC -# Copyright (C) 2011-2020 Free Software Foundation, Inc. +# Copyright (C) 2011-2021 Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -42,11 +42,13 @@ print_usage () { cat <$log_file 2>&1 +# Test script is run here. We create the file first, then append to it, +# to ameliorate tests themselves also writing to the log file. Our tests +# don't, but others can (automake bug#35762). +: >"$log_file" +"$@" >>"$log_file" 2>&1 estatus=$? if test $enable_hard_errors = no && test $estatus -eq 99; then @@ -126,7 +131,7 @@ esac # know whether the test passed or failed simply by looking at the '.log' # file, without the need of also peaking into the corresponding '.trs' # file (automake bug#11814). -echo "$res $test_name (exit status: $estatus)" >>$log_file +echo "$res $test_name (exit status: $estatus)" >>"$log_file" # Report outcome to console. echo "${col}${res}${std}: $test_name" diff --git a/libesedb-sys/libesedb-20210424/tests/Makefile.am b/libesedb-sys/libesedb-20230824/tests/Makefile.am similarity index 93% rename from libesedb-sys/libesedb-20210424/tests/Makefile.am rename to libesedb-sys/libesedb-20230824/tests/Makefile.am index d7c9767..c652c87 100644 --- a/libesedb-sys/libesedb-20210424/tests/Makefile.am +++ b/libesedb-sys/libesedb-20230824/tests/Makefile.am @@ -49,6 +49,9 @@ EXTRA_DIST = \ $(check_SCRIPTS) check_PROGRAMS = \ + esedb_test_block_descriptor \ + esedb_test_block_tree \ + esedb_test_block_tree_node \ esedb_test_catalog \ esedb_test_catalog_definition \ esedb_test_checksum \ @@ -85,6 +88,42 @@ check_PROGRAMS = \ esedb_test_tools_signal \ esedb_test_tools_windows_search_compression +esedb_test_block_descriptor_SOURCES = \ + esedb_test_block_descriptor.c \ + esedb_test_libcerror.h \ + esedb_test_libesedb.h \ + esedb_test_macros.h \ + esedb_test_memory.c esedb_test_memory.h \ + esedb_test_unused.h + +esedb_test_block_descriptor_LDADD = \ + ../libesedb/libesedb.la \ + @LIBCERROR_LIBADD@ + +esedb_test_block_tree_SOURCES = \ + esedb_test_block_tree.c \ + esedb_test_libcerror.h \ + esedb_test_libesedb.h \ + esedb_test_macros.h \ + esedb_test_memory.c esedb_test_memory.h \ + esedb_test_unused.h + +esedb_test_block_tree_LDADD = \ + ../libesedb/libesedb.la \ + @LIBCERROR_LIBADD@ + +esedb_test_block_tree_node_SOURCES = \ + esedb_test_block_tree_node.c \ + esedb_test_libcerror.h \ + esedb_test_libesedb.h \ + esedb_test_macros.h \ + esedb_test_memory.c esedb_test_memory.h \ + esedb_test_unused.h + +esedb_test_block_tree_node_LDADD = \ + ../libesedb/libesedb.la \ + @LIBCERROR_LIBADD@ + esedb_test_catalog_SOURCES = \ esedb_test_catalog.c \ esedb_test_functions.c esedb_test_functions.h \ diff --git a/libesedb-sys/libesedb-20210424/tests/Makefile.in b/libesedb-sys/libesedb-20230824/tests/Makefile.in similarity index 94% rename from libesedb-sys/libesedb-20210424/tests/Makefile.in rename to libesedb-sys/libesedb-20230824/tests/Makefile.in index 015f8e9..026b9bc 100644 --- a/libesedb-sys/libesedb-20210424/tests/Makefile.in +++ b/libesedb-sys/libesedb-20230824/tests/Makefile.in @@ -1,7 +1,7 @@ -# Makefile.in generated by automake 1.16.2 from Makefile.am. +# Makefile.in generated by automake 1.16.5 from Makefile.am. # @configure_input@ -# Copyright (C) 1994-2020 Free Software Foundation, Inc. +# Copyright (C) 1994-2021 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, @@ -87,7 +87,10 @@ PRE_UNINSTALL = : POST_UNINSTALL = : build_triplet = @build@ host_triplet = @host@ -check_PROGRAMS = esedb_test_catalog$(EXEEXT) \ +check_PROGRAMS = esedb_test_block_descriptor$(EXEEXT) \ + esedb_test_block_tree$(EXEEXT) \ + esedb_test_block_tree_node$(EXEEXT) \ + esedb_test_catalog$(EXEEXT) \ esedb_test_catalog_definition$(EXEEXT) \ esedb_test_checksum$(EXEEXT) esedb_test_column$(EXEEXT) \ esedb_test_column_type$(EXEEXT) \ @@ -116,25 +119,26 @@ check_PROGRAMS = esedb_test_catalog$(EXEEXT) \ subdir = tests ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 am__aclocal_m4_deps = $(top_srcdir)/m4/common.m4 \ - $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/iconv.m4 \ - $(top_srcdir)/m4/intlmacosx.m4 $(top_srcdir)/m4/lib-ld.m4 \ - $(top_srcdir)/m4/lib-link.m4 $(top_srcdir)/m4/lib-prefix.m4 \ - $(top_srcdir)/m4/libbfio.m4 $(top_srcdir)/m4/libcdata.m4 \ - $(top_srcdir)/m4/libcerror.m4 $(top_srcdir)/m4/libcfile.m4 \ - $(top_srcdir)/m4/libclocale.m4 $(top_srcdir)/m4/libcnotify.m4 \ - $(top_srcdir)/m4/libcpath.m4 $(top_srcdir)/m4/libcsplit.m4 \ - $(top_srcdir)/m4/libcthreads.m4 $(top_srcdir)/m4/libfcache.m4 \ - $(top_srcdir)/m4/libfdata.m4 $(top_srcdir)/m4/libfdatetime.m4 \ - $(top_srcdir)/m4/libfguid.m4 $(top_srcdir)/m4/libfmapi.m4 \ - $(top_srcdir)/m4/libfvalue.m4 $(top_srcdir)/m4/libfwnt.m4 \ - $(top_srcdir)/m4/libmapidb.m4 $(top_srcdir)/m4/libtool.m4 \ - $(top_srcdir)/m4/libuna.m4 $(top_srcdir)/m4/ltoptions.m4 \ - $(top_srcdir)/m4/ltsugar.m4 $(top_srcdir)/m4/ltversion.m4 \ - $(top_srcdir)/m4/lt~obsolete.m4 $(top_srcdir)/m4/nls.m4 \ - $(top_srcdir)/m4/po.m4 $(top_srcdir)/m4/progtest.m4 \ - $(top_srcdir)/m4/pthread.m4 $(top_srcdir)/m4/python.m4 \ - $(top_srcdir)/m4/tests.m4 $(top_srcdir)/m4/types.m4 \ - $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac + $(top_srcdir)/m4/gettext.m4 $(top_srcdir)/m4/host-cpu-c-abi.m4 \ + $(top_srcdir)/m4/iconv.m4 $(top_srcdir)/m4/intlmacosx.m4 \ + $(top_srcdir)/m4/lib-ld.m4 $(top_srcdir)/m4/lib-link.m4 \ + $(top_srcdir)/m4/lib-prefix.m4 $(top_srcdir)/m4/libbfio.m4 \ + $(top_srcdir)/m4/libcdata.m4 $(top_srcdir)/m4/libcerror.m4 \ + $(top_srcdir)/m4/libcfile.m4 $(top_srcdir)/m4/libclocale.m4 \ + $(top_srcdir)/m4/libcnotify.m4 $(top_srcdir)/m4/libcpath.m4 \ + $(top_srcdir)/m4/libcsplit.m4 $(top_srcdir)/m4/libcthreads.m4 \ + $(top_srcdir)/m4/libfcache.m4 $(top_srcdir)/m4/libfdata.m4 \ + $(top_srcdir)/m4/libfdatetime.m4 $(top_srcdir)/m4/libfguid.m4 \ + $(top_srcdir)/m4/libfmapi.m4 $(top_srcdir)/m4/libfvalue.m4 \ + $(top_srcdir)/m4/libfwnt.m4 $(top_srcdir)/m4/libmapidb.m4 \ + $(top_srcdir)/m4/libtool.m4 $(top_srcdir)/m4/libuna.m4 \ + $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ + $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ + $(top_srcdir)/m4/nls.m4 $(top_srcdir)/m4/po.m4 \ + $(top_srcdir)/m4/progtest.m4 $(top_srcdir)/m4/pthread.m4 \ + $(top_srcdir)/m4/python.m4 $(top_srcdir)/m4/tests.m4 \ + $(top_srcdir)/m4/types.m4 $(top_srcdir)/acinclude.m4 \ + $(top_srcdir)/configure.ac am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ $(ACLOCAL_M4) DIST_COMMON = $(srcdir)/Makefile.am $(am__DIST_COMMON) @@ -142,14 +146,30 @@ mkinstalldirs = $(install_sh) -d CONFIG_HEADER = $(top_builddir)/common/config.h CONFIG_CLEAN_FILES = CONFIG_CLEAN_VPATH_FILES = -am_esedb_test_catalog_OBJECTS = esedb_test_catalog.$(OBJEXT) \ - esedb_test_functions.$(OBJEXT) esedb_test_memory.$(OBJEXT) -esedb_test_catalog_OBJECTS = $(am_esedb_test_catalog_OBJECTS) -esedb_test_catalog_DEPENDENCIES = ../libesedb/libesedb.la +am_esedb_test_block_descriptor_OBJECTS = \ + esedb_test_block_descriptor.$(OBJEXT) \ + esedb_test_memory.$(OBJEXT) +esedb_test_block_descriptor_OBJECTS = \ + $(am_esedb_test_block_descriptor_OBJECTS) +esedb_test_block_descriptor_DEPENDENCIES = ../libesedb/libesedb.la AM_V_lt = $(am__v_lt_@AM_V@) am__v_lt_ = $(am__v_lt_@AM_DEFAULT_V@) am__v_lt_0 = --silent am__v_lt_1 = +am_esedb_test_block_tree_OBJECTS = esedb_test_block_tree.$(OBJEXT) \ + esedb_test_memory.$(OBJEXT) +esedb_test_block_tree_OBJECTS = $(am_esedb_test_block_tree_OBJECTS) +esedb_test_block_tree_DEPENDENCIES = ../libesedb/libesedb.la +am_esedb_test_block_tree_node_OBJECTS = \ + esedb_test_block_tree_node.$(OBJEXT) \ + esedb_test_memory.$(OBJEXT) +esedb_test_block_tree_node_OBJECTS = \ + $(am_esedb_test_block_tree_node_OBJECTS) +esedb_test_block_tree_node_DEPENDENCIES = ../libesedb/libesedb.la +am_esedb_test_catalog_OBJECTS = esedb_test_catalog.$(OBJEXT) \ + esedb_test_functions.$(OBJEXT) esedb_test_memory.$(OBJEXT) +esedb_test_catalog_OBJECTS = $(am_esedb_test_catalog_OBJECTS) +esedb_test_catalog_DEPENDENCIES = ../libesedb/libesedb.la am_esedb_test_catalog_definition_OBJECTS = \ esedb_test_catalog_definition.$(OBJEXT) \ esedb_test_memory.$(OBJEXT) @@ -330,6 +350,9 @@ am__depfiles_remade = ../esedbtools/$(DEPDIR)/esedbtools_output.Po \ ../esedbtools/$(DEPDIR)/esedbtools_signal.Po \ ../esedbtools/$(DEPDIR)/info_handle.Po \ ../esedbtools/$(DEPDIR)/windows_search_compression.Po \ + ./$(DEPDIR)/esedb_test_block_descriptor.Po \ + ./$(DEPDIR)/esedb_test_block_tree.Po \ + ./$(DEPDIR)/esedb_test_block_tree_node.Po \ ./$(DEPDIR)/esedb_test_catalog.Po \ ./$(DEPDIR)/esedb_test_catalog_definition.Po \ ./$(DEPDIR)/esedb_test_checksum.Po \ @@ -386,7 +409,10 @@ 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 = $(esedb_test_catalog_SOURCES) \ +SOURCES = $(esedb_test_block_descriptor_SOURCES) \ + $(esedb_test_block_tree_SOURCES) \ + $(esedb_test_block_tree_node_SOURCES) \ + $(esedb_test_catalog_SOURCES) \ $(esedb_test_catalog_definition_SOURCES) \ $(esedb_test_checksum_SOURCES) $(esedb_test_column_SOURCES) \ $(esedb_test_column_type_SOURCES) \ @@ -413,7 +439,10 @@ SOURCES = $(esedb_test_catalog_SOURCES) \ $(esedb_test_tools_output_SOURCES) \ $(esedb_test_tools_signal_SOURCES) \ $(esedb_test_tools_windows_search_compression_SOURCES) -DIST_SOURCES = $(esedb_test_catalog_SOURCES) \ +DIST_SOURCES = $(esedb_test_block_descriptor_SOURCES) \ + $(esedb_test_block_tree_SOURCES) \ + $(esedb_test_block_tree_node_SOURCES) \ + $(esedb_test_catalog_SOURCES) \ $(esedb_test_catalog_definition_SOURCES) \ $(esedb_test_checksum_SOURCES) $(esedb_test_column_SOURCES) \ $(esedb_test_column_type_SOURCES) \ @@ -462,8 +491,6 @@ am__define_uniq_tagged_files = \ unique=`for i in $$list; do \ if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ done | $(am__uniquify_input)` -ETAGS = etags -CTAGS = ctags am__tty_colors_dummy = \ mgn= red= grn= lgn= blu= brg= std=; \ am__color_tests=no @@ -646,6 +673,7 @@ am__set_TESTS_bases = \ bases='$(TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` +AM_TESTSUITE_SUMMARY_HEADER = ' for $(PACKAGE_STRING)' RECHECK_LOGS = $(TEST_LOGS) AM_RECURSIVE_TARGETS = check recheck TEST_SUITE_LOG = test-suite.log @@ -685,6 +713,8 @@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ CPP = @CPP@ CPPFLAGS = @CPPFLAGS@ +CSCOPE = @CSCOPE@ +CTAGS = @CTAGS@ CXX = @CXX@ CXXCPP = @CXXCPP@ CXXDEPMODE = @CXXDEPMODE@ @@ -700,8 +730,10 @@ ECHO_C = @ECHO_C@ ECHO_N = @ECHO_N@ ECHO_T = @ECHO_T@ EGREP = @EGREP@ +ETAGS = @ETAGS@ EXEEXT = @EXEEXT@ FGREP = @FGREP@ +FILECMD = @FILECMD@ GETTEXT_MACRO_VERSION = @GETTEXT_MACRO_VERSION@ GMSGFMT = @GMSGFMT@ GMSGFMT_015 = @GMSGFMT_015@ @@ -819,8 +851,8 @@ MAKEINFO = @MAKEINFO@ MANIFEST_TOOL = @MANIFEST_TOOL@ MKDIR_P = @MKDIR_P@ MSGFMT = @MSGFMT@ -MSGFMT_015 = @MSGFMT_015@ MSGMERGE = @MSGMERGE@ +MSGMERGE_FOR_MSGFMT_OPTION = @MSGMERGE_FOR_MSGFMT_OPTION@ NM = @NM@ NMEDIT = @NMEDIT@ OBJDUMP = @OBJDUMP@ @@ -1027,6 +1059,7 @@ pyexecdir3 = @pyexecdir3@ pythondir = @pythondir@ pythondir2 = @pythondir2@ pythondir3 = @pythondir3@ +runstatedir = @runstatedir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ srcdir = @srcdir@ @@ -1082,6 +1115,42 @@ check_SCRIPTS = \ EXTRA_DIST = \ $(check_SCRIPTS) +esedb_test_block_descriptor_SOURCES = \ + esedb_test_block_descriptor.c \ + esedb_test_libcerror.h \ + esedb_test_libesedb.h \ + esedb_test_macros.h \ + esedb_test_memory.c esedb_test_memory.h \ + esedb_test_unused.h + +esedb_test_block_descriptor_LDADD = \ + ../libesedb/libesedb.la \ + @LIBCERROR_LIBADD@ + +esedb_test_block_tree_SOURCES = \ + esedb_test_block_tree.c \ + esedb_test_libcerror.h \ + esedb_test_libesedb.h \ + esedb_test_macros.h \ + esedb_test_memory.c esedb_test_memory.h \ + esedb_test_unused.h + +esedb_test_block_tree_LDADD = \ + ../libesedb/libesedb.la \ + @LIBCERROR_LIBADD@ + +esedb_test_block_tree_node_SOURCES = \ + esedb_test_block_tree_node.c \ + esedb_test_libcerror.h \ + esedb_test_libesedb.h \ + esedb_test_macros.h \ + esedb_test_memory.c esedb_test_memory.h \ + esedb_test_unused.h + +esedb_test_block_tree_node_LDADD = \ + ../libesedb/libesedb.la \ + @LIBCERROR_LIBADD@ + esedb_test_catalog_SOURCES = \ esedb_test_catalog.c \ esedb_test_functions.c esedb_test_functions.h \ @@ -1621,6 +1690,18 @@ clean-checkPROGRAMS: echo " rm -f" $$list; \ rm -f $$list +esedb_test_block_descriptor$(EXEEXT): $(esedb_test_block_descriptor_OBJECTS) $(esedb_test_block_descriptor_DEPENDENCIES) $(EXTRA_esedb_test_block_descriptor_DEPENDENCIES) + @rm -f esedb_test_block_descriptor$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(esedb_test_block_descriptor_OBJECTS) $(esedb_test_block_descriptor_LDADD) $(LIBS) + +esedb_test_block_tree$(EXEEXT): $(esedb_test_block_tree_OBJECTS) $(esedb_test_block_tree_DEPENDENCIES) $(EXTRA_esedb_test_block_tree_DEPENDENCIES) + @rm -f esedb_test_block_tree$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(esedb_test_block_tree_OBJECTS) $(esedb_test_block_tree_LDADD) $(LIBS) + +esedb_test_block_tree_node$(EXEEXT): $(esedb_test_block_tree_node_OBJECTS) $(esedb_test_block_tree_node_DEPENDENCIES) $(EXTRA_esedb_test_block_tree_node_DEPENDENCIES) + @rm -f esedb_test_block_tree_node$(EXEEXT) + $(AM_V_CCLD)$(LINK) $(esedb_test_block_tree_node_OBJECTS) $(esedb_test_block_tree_node_LDADD) $(LIBS) + esedb_test_catalog$(EXEEXT): $(esedb_test_catalog_OBJECTS) $(esedb_test_catalog_DEPENDENCIES) $(EXTRA_esedb_test_catalog_DEPENDENCIES) @rm -f esedb_test_catalog$(EXEEXT) $(AM_V_CCLD)$(LINK) $(esedb_test_catalog_OBJECTS) $(esedb_test_catalog_LDADD) $(LIBS) @@ -1789,6 +1870,9 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@../esedbtools/$(DEPDIR)/esedbtools_signal.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@../esedbtools/$(DEPDIR)/info_handle.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@../esedbtools/$(DEPDIR)/windows_search_compression.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/esedb_test_block_descriptor.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/esedb_test_block_tree.Po@am__quote@ # am--include-marker +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/esedb_test_block_tree_node.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/esedb_test_catalog.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/esedb_test_catalog_definition.Po@am__quote@ # am--include-marker @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/esedb_test_checksum.Po@am__quote@ # am--include-marker @@ -2023,7 +2107,7 @@ $(TEST_SUITE_LOG): $(TEST_LOGS) test x"$$VERBOSE" = x || cat $(TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ - echo "$${col}Testsuite summary for $(PACKAGE_STRING)$${std}"; \ + echo "$${col}Testsuite summary"$(AM_TESTSUITE_SUMMARY_HEADER)"$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ @@ -2106,7 +2190,6 @@ test_python_module.sh.log: test_python_module.sh @am__EXEEXT_TRUE@ --log-file $$b.log --trs-file $$b.trs \ @am__EXEEXT_TRUE@ $(am__common_driver_flags) $(AM_TEST_LOG_DRIVER_FLAGS) $(TEST_LOG_DRIVER_FLAGS) -- $(TEST_LOG_COMPILE) \ @am__EXEEXT_TRUE@ "$$tst" $(AM_TESTS_FD_REDIRECT) - distdir: $(BUILT_SOURCES) $(MAKE) $(AM_MAKEFLAGS) distdir-am @@ -2235,6 +2318,9 @@ maintainer-clean: maintainer-clean-am -rm -f ../esedbtools/$(DEPDIR)/esedbtools_signal.Po -rm -f ../esedbtools/$(DEPDIR)/info_handle.Po -rm -f ../esedbtools/$(DEPDIR)/windows_search_compression.Po + -rm -f ./$(DEPDIR)/esedb_test_block_descriptor.Po + -rm -f ./$(DEPDIR)/esedb_test_block_tree.Po + -rm -f ./$(DEPDIR)/esedb_test_block_tree_node.Po -rm -f ./$(DEPDIR)/esedb_test_catalog.Po -rm -f ./$(DEPDIR)/esedb_test_catalog_definition.Po -rm -f ./$(DEPDIR)/esedb_test_checksum.Po diff --git a/libesedb-sys/libesedb-20230824/tests/esedb_test_block_descriptor.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_block_descriptor.c new file mode 100644 index 0000000..a38ff65 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_block_descriptor.c @@ -0,0 +1,311 @@ +/* + * Library block_descriptor type test program + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include +#include + +#if defined( HAVE_STDLIB_H ) || defined( WINAPI ) +#include +#endif + +#include "esedb_test_libcerror.h" +#include "esedb_test_libesedb.h" +#include "esedb_test_macros.h" +#include "esedb_test_memory.h" +#include "esedb_test_unused.h" + +#include "../libesedb/libesedb_block_descriptor.h" + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + +/* Tests the libesedb_block_descriptor_initialize function + * Returns 1 if successful or 0 if not + */ +int esedb_test_block_descriptor_initialize( + void ) +{ + libcerror_error_t *error = NULL; + libesedb_block_descriptor_t *block_descriptor = NULL; + int result = 0; + +#if defined( HAVE_ESEDB_TEST_MEMORY ) + int number_of_malloc_fail_tests = 1; + int number_of_memset_fail_tests = 1; + int test_number = 0; +#endif + + /* Test regular cases + */ + result = libesedb_block_descriptor_initialize( + &block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "block_descriptor", + block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + result = libesedb_block_descriptor_free( + &block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_descriptor", + block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + /* Test error cases + */ + result = libesedb_block_descriptor_initialize( + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + block_descriptor = (libesedb_block_descriptor_t *) 0x12345678UL; + + result = libesedb_block_descriptor_initialize( + &block_descriptor, + &error ); + + block_descriptor = NULL; + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + +#if defined( HAVE_ESEDB_TEST_MEMORY ) + + for( test_number = 0; + test_number < number_of_malloc_fail_tests; + test_number++ ) + { + /* Test libesedb_block_descriptor_initialize with malloc failing + */ + esedb_test_malloc_attempts_before_fail = test_number; + + result = libesedb_block_descriptor_initialize( + &block_descriptor, + &error ); + + if( esedb_test_malloc_attempts_before_fail != -1 ) + { + esedb_test_malloc_attempts_before_fail = -1; + + if( block_descriptor != NULL ) + { + libesedb_block_descriptor_free( + &block_descriptor, + NULL ); + } + } + else + { + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_descriptor", + block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + } + } + for( test_number = 0; + test_number < number_of_memset_fail_tests; + test_number++ ) + { + /* Test libesedb_block_descriptor_initialize with memset failing + */ + esedb_test_memset_attempts_before_fail = test_number; + + result = libesedb_block_descriptor_initialize( + &block_descriptor, + &error ); + + if( esedb_test_memset_attempts_before_fail != -1 ) + { + esedb_test_memset_attempts_before_fail = -1; + + if( block_descriptor != NULL ) + { + libesedb_block_descriptor_free( + &block_descriptor, + NULL ); + } + } + else + { + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_descriptor", + block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + } + } +#endif /* defined( HAVE_ESEDB_TEST_MEMORY ) */ + + return( 1 ); + +on_error: + if( error != NULL ) + { + libcerror_error_free( + &error ); + } + if( block_descriptor != NULL ) + { + libesedb_block_descriptor_free( + &block_descriptor, + NULL ); + } + return( 0 ); +} + +/* Tests the libesedb_block_descriptor_free function + * Returns 1 if successful or 0 if not + */ +int esedb_test_block_descriptor_free( + void ) +{ + libcerror_error_t *error = NULL; + int result = 0; + + /* Test error cases + */ + result = libesedb_block_descriptor_free( + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + return( 1 ); + +on_error: + if( error != NULL ) + { + libcerror_error_free( + &error ); + } + return( 0 ); +} + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ + +/* The main program + */ +#if defined( HAVE_WIDE_SYSTEM_CHARACTER ) +int wmain( + int argc ESEDB_TEST_ATTRIBUTE_UNUSED, + wchar_t * const argv[] ESEDB_TEST_ATTRIBUTE_UNUSED ) +#else +int main( + int argc ESEDB_TEST_ATTRIBUTE_UNUSED, + char * const argv[] ESEDB_TEST_ATTRIBUTE_UNUSED ) +#endif +{ + ESEDB_TEST_UNREFERENCED_PARAMETER( argc ) + ESEDB_TEST_UNREFERENCED_PARAMETER( argv ) + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + + ESEDB_TEST_RUN( + "libesedb_block_descriptor_initialize", + esedb_test_block_descriptor_initialize ); + + ESEDB_TEST_RUN( + "libesedb_block_descriptor_free", + esedb_test_block_descriptor_free ); + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ + + return( EXIT_SUCCESS ); + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + +on_error: + return( EXIT_FAILURE ); + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ +} + diff --git a/libesedb-sys/libesedb-20230824/tests/esedb_test_block_tree.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_block_tree.c new file mode 100644 index 0000000..5963c2a --- /dev/null +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_block_tree.c @@ -0,0 +1,752 @@ +/* + * Library block_tree functions testing program + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include +#include + +#if defined( HAVE_STDLIB_H ) || defined( WINAPI ) +#include +#endif + +#include "esedb_test_libcerror.h" +#include "esedb_test_libesedb.h" +#include "esedb_test_macros.h" +#include "esedb_test_memory.h" +#include "esedb_test_unused.h" + +#include "../libesedb/libesedb_block_descriptor.h" +#include "../libesedb/libesedb_block_tree.h" +#include "../libesedb/libesedb_block_tree_node.h" +#include "../libesedb/libesedb_definitions.h" + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + +/* Tests the libesedb_block_tree_initialize function + * Returns 1 if successful or 0 if not + */ +int esedb_test_block_tree_initialize( + void ) +{ + libcerror_error_t *error = NULL; + libesedb_block_tree_t *block_tree = NULL; + int result = 0; + +#if defined( HAVE_ESEDB_TEST_MEMORY ) + int number_of_malloc_fail_tests = 2; + int number_of_memset_fail_tests = 1; + int test_number = 0; +#endif + + /* Test block_tree initialization + */ + result = libesedb_block_tree_initialize( + &block_tree, + 0x800000000UL, + 0x4000, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "block_tree", + block_tree ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + result = libesedb_block_tree_free( + &block_tree, + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_tree", + block_tree ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + /* Test error cases + */ + result = libesedb_block_tree_initialize( + NULL, + 0x800000000UL, + 0x4000, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + block_tree = (libesedb_block_tree_t *) 0x12345678UL; + + result = libesedb_block_tree_initialize( + &block_tree, + 0x800000000UL, + 0x4000, + &error ); + + block_tree = NULL; + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + +#if defined( HAVE_ESEDB_TEST_MEMORY ) + + for( test_number = 0; + test_number < number_of_malloc_fail_tests; + test_number++ ) + { + /* Test libesedb_block_tree_initialize with malloc failing + */ + esedb_test_malloc_attempts_before_fail = test_number; + + result = libesedb_block_tree_initialize( + &block_tree, + 0x800000000UL, + 0x4000, + &error ); + + if( esedb_test_malloc_attempts_before_fail != -1 ) + { + esedb_test_malloc_attempts_before_fail = -1; + + if( block_tree != NULL ) + { + libesedb_block_tree_free( + &block_tree, + NULL, + NULL ); + } + } + else + { + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_tree", + block_tree ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + } + } + for( test_number = 0; + test_number < number_of_memset_fail_tests; + test_number++ ) + { + /* Test libesedb_block_tree_initialize with memset failing + */ + esedb_test_memset_attempts_before_fail = test_number; + + result = libesedb_block_tree_initialize( + &block_tree, + 0x800000000UL, + 0x4000, + &error ); + + if( esedb_test_memset_attempts_before_fail != -1 ) + { + esedb_test_memset_attempts_before_fail = -1; + + if( block_tree != NULL ) + { + libesedb_block_tree_free( + &block_tree, + NULL, + NULL ); + } + } + else + { + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_tree", + block_tree ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + } + } +#endif /* defined( HAVE_ESEDB_TEST_MEMORY ) */ + + return( 1 ); + +on_error: + if( error != NULL ) + { + libcerror_error_free( + &error ); + } + if( block_tree != NULL ) + { + libesedb_block_tree_free( + &block_tree, + NULL, + NULL ); + } + return( 0 ); +} + +/* Tests the libesedb_block_tree_free function + * Returns 1 if successful or 0 if not + */ +int esedb_test_block_tree_free( + void ) +{ + libcerror_error_t *error = NULL; + int result = 0; + + /* Test error cases + */ + result = libesedb_block_tree_free( + NULL, + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + return( 1 ); + +on_error: + if( error != NULL ) + { + libcerror_error_free( + &error ); + } + return( 0 ); +} + +/* Tests the libesedb_block_tree_get_block_descriptor_by_offset function + * Returns 1 if successful or 0 if not + */ +int esedb_test_block_tree_get_block_descriptor_by_offset( + void ) +{ + libcerror_error_t *error = NULL; + libesedb_block_descriptor_t *block_descriptor = NULL; + libesedb_block_tree_t *block_tree = NULL; + off64_t block_offset = 0; + int result = 0; + + /* Initialize test + */ + result = libesedb_block_tree_initialize( + &block_tree, + 0x800000000UL, + 0x4000, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "block_tree", + block_tree ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + /* Test regular cases + */ + result = libesedb_block_tree_get_block_descriptor_by_offset( + block_tree, + 0, + &block_descriptor, + &block_offset, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 0 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_descriptor", + block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + /* Test error cases + */ + result = libesedb_block_tree_get_block_descriptor_by_offset( + NULL, + 0, + &block_descriptor, + &block_offset, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + result = libesedb_block_tree_get_block_descriptor_by_offset( + block_tree, + 0, + NULL, + &block_offset, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + result = libesedb_block_tree_get_block_descriptor_by_offset( + block_tree, + 0, + &block_descriptor, + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + /* Clean up + */ + result = libesedb_block_tree_free( + &block_tree, + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_tree", + block_tree ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + return( 1 ); + +on_error: + if( error != NULL ) + { + libcerror_error_free( + &error ); + } + if( block_tree != NULL ) + { + libesedb_block_tree_free( + &block_tree, + NULL, + NULL ); + } + return( 0 ); +} + +/* Tests the libesedb_block_tree_insert_block_descriptor_by_offset function + * Returns 1 if successful or 0 if not + */ +int esedb_test_block_tree_insert_block_descriptor_by_offset( + void ) +{ + libcerror_error_t *error = NULL; + libesedb_block_descriptor_t *block_descriptor = NULL; + libesedb_block_descriptor_t *existing_block_descriptor = NULL; + libesedb_block_tree_t *block_tree = NULL; + libesedb_block_tree_node_t *leaf_block_tree_node = NULL; + int leaf_value_index = 0; + int result = 0; + + /* Initialize test + */ + result = libesedb_block_tree_initialize( + &block_tree, + 0x800000000UL, + 0x4000, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "block_tree", + block_tree ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + result = libesedb_block_descriptor_initialize( + &block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "block_descriptor", + block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + /* Test regular cases + */ + result = libesedb_block_tree_insert_block_descriptor_by_offset( + block_tree, + 0, + block_descriptor, + &leaf_value_index, + &leaf_block_tree_node, + &existing_block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "leaf_value_index", + leaf_value_index, + 0 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "leaf_block_tree_node", + leaf_block_tree_node ); + + ESEDB_TEST_ASSERT_IS_NULL( + "existing_block_descriptor", + existing_block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + result = libesedb_block_tree_insert_block_descriptor_by_offset( + block_tree, + 0, + NULL, + &leaf_value_index, + &leaf_block_tree_node, + &existing_block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 0 ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "leaf_value_index", + leaf_value_index, + 0 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "leaf_block_tree_node", + leaf_block_tree_node ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "existing_block_descriptor", + existing_block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + /* Test error cases + */ + result = libesedb_block_tree_insert_block_descriptor_by_offset( + NULL, + 0, + block_descriptor, + &leaf_value_index, + &leaf_block_tree_node, + &existing_block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + result = libesedb_block_tree_insert_block_descriptor_by_offset( + block_tree, + 0, + block_descriptor, + NULL, + &leaf_block_tree_node, + &existing_block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + result = libesedb_block_tree_insert_block_descriptor_by_offset( + block_tree, + 0, + block_descriptor, + &leaf_value_index, + NULL, + &existing_block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + result = libesedb_block_tree_insert_block_descriptor_by_offset( + block_tree, + 0, + block_descriptor, + &leaf_value_index, + &leaf_block_tree_node, + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + /* Clean up + */ + result = libesedb_block_descriptor_free( + &block_descriptor, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_descriptor", + block_descriptor ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + result = libesedb_block_tree_free( + &block_tree, + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_tree", + block_tree ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + return( 1 ); + +on_error: + if( error != NULL ) + { + libcerror_error_free( + &error ); + } + if( block_descriptor != NULL ) + { + libesedb_block_descriptor_free( + &block_descriptor, + NULL ); + } + if( block_tree != NULL ) + { + libesedb_block_tree_free( + &block_tree, + NULL, + NULL ); + } + return( 0 ); +} + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ + +/* The main program + */ +#if defined( HAVE_WIDE_SYSTEM_CHARACTER ) +int wmain( + int argc ESEDB_TEST_ATTRIBUTE_UNUSED, + wchar_t * const argv[] ESEDB_TEST_ATTRIBUTE_UNUSED ) +#else +int main( + int argc ESEDB_TEST_ATTRIBUTE_UNUSED, + char * const argv[] ESEDB_TEST_ATTRIBUTE_UNUSED ) +#endif +{ + ESEDB_TEST_UNREFERENCED_PARAMETER( argc ) + ESEDB_TEST_UNREFERENCED_PARAMETER( argv ) + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + + ESEDB_TEST_RUN( + "libesedb_block_tree_initialize", + esedb_test_block_tree_initialize ); + + ESEDB_TEST_RUN( + "libesedb_block_tree_free", + esedb_test_block_tree_free ); + + ESEDB_TEST_RUN( + "libesedb_block_tree_get_block_descriptor_by_offset", + esedb_test_block_tree_get_block_descriptor_by_offset ); + + ESEDB_TEST_RUN( + "libesedb_block_tree_insert_block_descriptor_by_offset", + esedb_test_block_tree_insert_block_descriptor_by_offset ); + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ + + return( EXIT_SUCCESS ); + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + +on_error: + return( EXIT_FAILURE ); + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ +} + diff --git a/libesedb-sys/libesedb-20230824/tests/esedb_test_block_tree_node.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_block_tree_node.c new file mode 100644 index 0000000..c551371 --- /dev/null +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_block_tree_node.c @@ -0,0 +1,331 @@ +/* + * Library block_tree_node type test program + * + * Copyright (C) 2009-2023, Joachim Metz + * + * Refer to AUTHORS for acknowledgements. + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Lesser General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * 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 Lesser General Public License + * along with this program. If not, see . + */ + +#include +#include +#include + +#if defined( HAVE_STDLIB_H ) || defined( WINAPI ) +#include +#endif + +#include "esedb_test_libcerror.h" +#include "esedb_test_libesedb.h" +#include "esedb_test_macros.h" +#include "esedb_test_memory.h" +#include "esedb_test_unused.h" + +#include "../libesedb/libesedb_block_tree_node.h" + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + +/* Tests the libesedb_block_tree_node_initialize function + * Returns 1 if successful or 0 if not + */ +int esedb_test_block_tree_node_initialize( + void ) +{ + libcerror_error_t *error = NULL; + libesedb_block_tree_node_t *block_tree_node = NULL; + int result = 0; + +#if defined( HAVE_ESEDB_TEST_MEMORY ) + int number_of_malloc_fail_tests = 1; + int number_of_memset_fail_tests = 1; + int test_number = 0; +#endif + + /* Test block_tree_node initialization + */ + result = libesedb_block_tree_node_initialize( + &block_tree_node, + 0, + 1024, + 256, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "block_tree_node", + block_tree_node ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + result = libesedb_block_tree_node_free( + &block_tree_node, + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + 1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_tree_node", + block_tree_node ); + + ESEDB_TEST_ASSERT_IS_NULL( + "error", + error ); + + /* Test error cases + */ + result = libesedb_block_tree_node_initialize( + NULL, + 0, + 1024, + 256, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + block_tree_node = (libesedb_block_tree_node_t *) 0x12345678UL; + + result = libesedb_block_tree_node_initialize( + &block_tree_node, + 0, + 1024, + 256, + &error ); + + block_tree_node = NULL; + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + +#if defined( HAVE_ESEDB_TEST_MEMORY ) + + for( test_number = 0; + test_number < number_of_malloc_fail_tests; + test_number++ ) + { + /* Test libesedb_block_tree_node_initialize with malloc failing + */ + esedb_test_malloc_attempts_before_fail = test_number; + + result = libesedb_block_tree_node_initialize( + &block_tree_node, + 0, + 1024, + 256, + &error ); + + if( esedb_test_malloc_attempts_before_fail != -1 ) + { + esedb_test_malloc_attempts_before_fail = -1; + + if( block_tree_node != NULL ) + { + libesedb_block_tree_node_free( + &block_tree_node, + NULL, + NULL ); + } + } + else + { + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_tree_node", + block_tree_node ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + } + } + for( test_number = 0; + test_number < number_of_memset_fail_tests; + test_number++ ) + { + /* Test libesedb_block_tree_node_initialize with memset failing + */ + esedb_test_memset_attempts_before_fail = test_number; + + result = libesedb_block_tree_node_initialize( + &block_tree_node, + 0, + 1024, + 256, + &error ); + + if( esedb_test_memset_attempts_before_fail != -1 ) + { + esedb_test_memset_attempts_before_fail = -1; + + if( block_tree_node != NULL ) + { + libesedb_block_tree_node_free( + &block_tree_node, + NULL, + NULL ); + } + } + else + { + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NULL( + "block_tree_node", + block_tree_node ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + } + } +#endif /* defined( HAVE_ESEDB_TEST_MEMORY ) */ + + return( 1 ); + +on_error: + if( error != NULL ) + { + libcerror_error_free( + &error ); + } + if( block_tree_node != NULL ) + { + libesedb_block_tree_node_free( + &block_tree_node, + NULL, + NULL ); + } + return( 0 ); +} + +/* Tests the libesedb_block_tree_node_free function + * Returns 1 if successful or 0 if not + */ +int esedb_test_block_tree_node_free( + void ) +{ + libcerror_error_t *error = NULL; + int result = 0; + + /* Test error cases + */ + result = libesedb_block_tree_node_free( + NULL, + NULL, + &error ); + + ESEDB_TEST_ASSERT_EQUAL_INT( + "result", + result, + -1 ); + + ESEDB_TEST_ASSERT_IS_NOT_NULL( + "error", + error ); + + libcerror_error_free( + &error ); + + return( 1 ); + +on_error: + if( error != NULL ) + { + libcerror_error_free( + &error ); + } + return( 0 ); +} + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ + +/* The main program + */ +#if defined( HAVE_WIDE_SYSTEM_CHARACTER ) +int wmain( + int argc ESEDB_TEST_ATTRIBUTE_UNUSED, + wchar_t * const argv[] ESEDB_TEST_ATTRIBUTE_UNUSED ) +#else +int main( + int argc ESEDB_TEST_ATTRIBUTE_UNUSED, + char * const argv[] ESEDB_TEST_ATTRIBUTE_UNUSED ) +#endif +{ + ESEDB_TEST_UNREFERENCED_PARAMETER( argc ) + ESEDB_TEST_UNREFERENCED_PARAMETER( argv ) + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + + ESEDB_TEST_RUN( + "libesedb_block_tree_node_initialize", + esedb_test_block_tree_node_initialize ); + + ESEDB_TEST_RUN( + "libesedb_block_tree_node_free", + esedb_test_block_tree_node_free ); + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ + + return( EXIT_SUCCESS ); + +#if defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) + +on_error: + return( EXIT_FAILURE ); + +#endif /* defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) */ +} + diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_catalog.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_catalog.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_catalog.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_catalog.c index 3301e9e..f741a8b 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_catalog.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_catalog.c @@ -1,7 +1,7 @@ /* * Library catalog type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -53,7 +53,7 @@ int esedb_test_catalog_initialize( int result = 0; #if defined( HAVE_ESEDB_TEST_MEMORY ) - int number_of_malloc_fail_tests = 3; + int number_of_malloc_fail_tests = 4; int number_of_memset_fail_tests = 1; int test_number = 0; #endif @@ -78,6 +78,7 @@ int esedb_test_catalog_initialize( error ); io_handle->format_revision = 0x0000000c; + io_handle->file_size = 16777216; io_handle->page_size = 4096; /* Test regular cases @@ -377,6 +378,7 @@ int esedb_test_catalog_read_file_io_handle( error ); io_handle->format_revision = 0x0000000c; + io_handle->file_size = 16777216; io_handle->page_size = 4096; result = libesedb_catalog_initialize( @@ -1160,6 +1162,7 @@ int main( error ); io_handle->format_revision = 0x0000000c; + io_handle->file_size = 16777216; io_handle->page_size = 4096; result = libesedb_catalog_initialize( diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_catalog_definition.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_catalog_definition.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_catalog_definition.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_catalog_definition.c index 8853db9..56a0f13 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_catalog_definition.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_catalog_definition.c @@ -1,7 +1,7 @@ /* * Library catalog_definition type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_checksum.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_checksum.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_checksum.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_checksum.c index b01e6a8..94f3ecf 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_checksum.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_checksum.c @@ -1,7 +1,7 @@ /* * Library checksum functions test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_column.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_column.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_column.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_column.c index 5d4ff7e..7d18af3 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_column.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_column.c @@ -1,7 +1,7 @@ /* * Library column type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_column_type.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_column_type.c similarity index 97% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_column_type.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_column_type.c index a9d1520..4b50cb7 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_column_type.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_column_type.c @@ -1,7 +1,7 @@ /* * Library column_type type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_compression.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_compression.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_compression.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_compression.c index 94d453e..1e7fcaf 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_compression.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_compression.c @@ -1,7 +1,7 @@ /* * Library compression functions test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_data_definition.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_data_definition.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_data_definition.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_data_definition.c index 7e77b22..f083e58 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_data_definition.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_data_definition.c @@ -1,7 +1,7 @@ /* * Library data_definition type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_data_segment.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_data_segment.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_data_segment.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_data_segment.c index 42fb31b..00431fa 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_data_segment.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_data_segment.c @@ -1,7 +1,7 @@ /* * Library data_segment type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -32,6 +32,7 @@ #include "esedb_test_libcerror.h" #include "esedb_test_libesedb.h" #include "esedb_test_libfcache.h" +#include "esedb_test_libfdata.h" #include "esedb_test_macros.h" #include "esedb_test_memory.h" #include "esedb_test_unused.h" diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_database.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_database.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_database.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_database.c index 4d65f61..ae804d0 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_database.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_database.c @@ -1,7 +1,7 @@ /* * Library database type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -50,7 +50,7 @@ int esedb_test_database_initialize( int result = 0; #if defined( HAVE_ESEDB_TEST_MEMORY ) - int number_of_malloc_fail_tests = 2; + int number_of_malloc_fail_tests = 3; int number_of_memset_fail_tests = 1; int test_number = 0; #endif @@ -75,6 +75,7 @@ int esedb_test_database_initialize( error ); io_handle->format_revision = 0x0000000c; + io_handle->file_size = 16777216; io_handle->page_size = 4096; /* Test regular cases diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_error.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_error.c similarity index 97% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_error.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_error.c index 1bbeced..3339cd8 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_error.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_error.c @@ -1,7 +1,7 @@ /* * Library error functions test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_file.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_file.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_file.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_file.c index 7722f74..613f7b8 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_file.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_file.c @@ -1,7 +1,7 @@ /* * Library file type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_file_header.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_file_header.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_file_header.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_file_header.c index ed81118..1d26a9f 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_file_header.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_file_header.c @@ -1,7 +1,7 @@ /* * Library file_header type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_functions.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_functions.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_functions.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_functions.c index fd94043..d05bd4b 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_functions.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_functions.c @@ -1,7 +1,7 @@ /* * Functions for testing * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_functions.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_functions.h similarity index 96% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_functions.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_functions.h index 9967dc1..f9acdb6 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_functions.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_functions.h @@ -1,7 +1,7 @@ /* * Functions for testing * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_getopt.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_getopt.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_getopt.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_getopt.c index 76898c9..3756942 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_getopt.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_getopt.c @@ -1,7 +1,7 @@ /* * GetOpt functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_getopt.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_getopt.h similarity index 96% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_getopt.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_getopt.h index 843eb4d..805082f 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_getopt.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_getopt.h @@ -1,7 +1,7 @@ /* * GetOpt functions * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_index.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_index.c similarity index 97% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_index.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_index.c index a302a2c..cbe1a27 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_index.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_index.c @@ -1,7 +1,7 @@ /* * Library index type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_io_handle.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_io_handle.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_io_handle.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_io_handle.c index 6001e76..f17bf6b 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_io_handle.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_io_handle.c @@ -1,7 +1,7 @@ /* * Library io_handle type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_leaf_page_descriptor.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_leaf_page_descriptor.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_leaf_page_descriptor.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_leaf_page_descriptor.c index 6df91d2..cdad8ce 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_leaf_page_descriptor.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_leaf_page_descriptor.c @@ -1,7 +1,7 @@ /* * Library leaf_page_descriptor type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libbfio.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libbfio.h similarity index 96% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libbfio.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libbfio.h index 088d84a..3e7116d 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libbfio.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libbfio.h @@ -1,7 +1,7 @@ /* * The libbfio header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libcdata.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libcdata.h similarity index 95% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libcdata.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libcdata.h index 4e1ae5b..d8866fd 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libcdata.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libcdata.h @@ -1,7 +1,7 @@ /* * The libcdata header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libcerror.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libcerror.h similarity index 95% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libcerror.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libcerror.h index 782d931..f956a14 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libcerror.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libcerror.h @@ -1,7 +1,7 @@ /* * The libcerror header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libclocale.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libclocale.h similarity index 95% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libclocale.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libclocale.h index be63703..fd2d596 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libclocale.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libclocale.h @@ -1,7 +1,7 @@ /* * The libclocale header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libcnotify.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libcnotify.h similarity index 95% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libcnotify.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libcnotify.h index 4ad37d7..3e79c6c 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libcnotify.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libcnotify.h @@ -1,7 +1,7 @@ /* * The libcnotify header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libesedb.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libesedb.h similarity index 93% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libesedb.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libesedb.h index c56888a..0bce5f8 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libesedb.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libesedb.h @@ -1,7 +1,7 @@ /* * The libesedb header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libfcache.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libfcache.h similarity index 95% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libfcache.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libfcache.h index aea6a55..4a8baea 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libfcache.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libfcache.h @@ -1,7 +1,7 @@ /* * The libfcache header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libfdata.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libfdata.h similarity index 92% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libfdata.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libfdata.h index 703933a..fd9816e 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libfdata.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libfdata.h @@ -1,7 +1,7 @@ /* * The libfdata header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -34,8 +34,6 @@ #include #include #include -#include -#include #include #include diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_libuna.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_libuna.h similarity index 96% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_libuna.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_libuna.h index bfbf84c..5c313c4 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_libuna.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_libuna.h @@ -1,7 +1,7 @@ /* * The libuna header wrapper * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_long_value.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_long_value.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_long_value.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_long_value.c index fc5a19a..fa332aa 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_long_value.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_long_value.c @@ -1,7 +1,7 @@ /* * Library long_value type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_macros.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_macros.h similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_macros.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_macros.h index 07605d1..f668622 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_macros.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_macros.h @@ -1,7 +1,7 @@ /* * Macros for testing * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_memory.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_memory.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_memory.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_memory.c index 96700cd..a01a0e9 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_memory.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_memory.c @@ -1,7 +1,7 @@ /* * Memory allocation functions for testing * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_memory.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_memory.h similarity index 89% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_memory.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_memory.h index 739641b..4a3d131 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_memory.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_memory.h @@ -1,7 +1,7 @@ /* * Memory allocation functions for testing * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -28,7 +28,7 @@ extern "C" { #endif -#if defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) && !defined( __arm__ ) && !defined( __clang__ ) && !defined( __CYGWIN__ ) && !defined( __hppa__ ) && !defined( __mips__ ) && !defined( __riscv ) && !defined( __sparc__ ) && !defined( HAVE_ASAN ) +#if defined( HAVE_GNU_DL_DLSYM ) && defined( __GNUC__ ) && !defined( LIBESEDB_DLL_IMPORT ) && !defined( __arm__ ) && !defined( __clang__ ) && !defined( __CYGWIN__ ) && !defined( __hppa__ ) && !defined( __loongarch__ ) && !defined( __mips__ ) && !defined( __riscv ) && !defined( __sparc__ ) && !defined( HAVE_ASAN ) #define HAVE_ESEDB_TEST_MEMORY 1 #endif diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_multi_value.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_multi_value.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_multi_value.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_multi_value.c index 1e57c3b..668c86d 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_multi_value.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_multi_value.c @@ -1,7 +1,7 @@ /* * Library multi_value type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_notify.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_notify.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_notify.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_notify.c index 32cd13b..1103c4b 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_notify.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_notify.c @@ -1,7 +1,7 @@ /* * Library notification functions test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_page.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_page.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_page.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_page.c index 2e5c649..c6c030c 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_page.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_page.c @@ -1,7 +1,7 @@ /* * Library page type testing program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_header.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_header.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_page_header.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_page_header.c index 6f86cb2..ff2c30a 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_header.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_header.c @@ -1,7 +1,7 @@ /* * Library page_header type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree.c index 9b7334f..7ba81af 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree.c @@ -1,7 +1,7 @@ /* * Library page_tree type testing program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * @@ -50,7 +50,7 @@ int esedb_test_page_tree_initialize( int result = 0; #if defined( HAVE_ESEDB_TEST_MEMORY ) - int number_of_malloc_fail_tests = 1; + int number_of_malloc_fail_tests = 3; int number_of_memset_fail_tests = 1; int test_number = 0; #endif @@ -75,6 +75,7 @@ int esedb_test_page_tree_initialize( error ); io_handle->format_revision = 0x0000000c; + io_handle->file_size = 16777216; io_handle->page_size = 4096; /* Test page_tree initialization diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree_key.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree_key.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree_key.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree_key.c index 6552a54..50771a8 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree_key.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree_key.c @@ -1,7 +1,7 @@ /* * Library page_tree_key type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree_value.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree_value.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree_value.c index 03bef95..0e82af3 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_tree_value.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_tree_value.c @@ -1,7 +1,7 @@ /* * Library page_tree_value type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_value.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_value.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_page_value.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_page_value.c index 77d837d..b0b7606 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_page_value.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_page_value.c @@ -1,7 +1,7 @@ /* * Library page_value type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_record.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_record.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_record.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_record.c index e820a7a..847388a 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_record.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_record.c @@ -1,7 +1,7 @@ /* * Library record type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_root_page_header.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_root_page_header.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_root_page_header.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_root_page_header.c index 23da5f6..c1a9311 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_root_page_header.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_root_page_header.c @@ -1,7 +1,7 @@ /* * Library root_page_header type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_space_tree.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_space_tree.c similarity index 97% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_space_tree.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_space_tree.c index 5f3cf8c..07da534 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_space_tree.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_space_tree.c @@ -1,7 +1,7 @@ /* * Library space_tree type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_space_tree_value.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_space_tree_value.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_space_tree_value.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_space_tree_value.c index 8628e9a..0007ba7 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_space_tree_value.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_space_tree_value.c @@ -1,7 +1,7 @@ /* * Library space_tree_value type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_support.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_support.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_support.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_support.c index 72f0992..3396887 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_support.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_support.c @@ -1,7 +1,7 @@ /* * Library support functions test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_table.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_table.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_table.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_table.c index a7e9997..9c4a374 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_table.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_table.c @@ -1,7 +1,7 @@ /* * Library table type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_table_definition.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_table_definition.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_table_definition.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_table_definition.c index 38d5f9e..f3beda7 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_table_definition.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_table_definition.c @@ -1,7 +1,7 @@ /* * Library table_definition type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_tools_info_handle.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_tools_info_handle.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_tools_info_handle.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_tools_info_handle.c index 4fbed1a..cfa4f7f 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_tools_info_handle.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_tools_info_handle.c @@ -1,7 +1,7 @@ /* * Tools info_handle type test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_tools_output.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_tools_output.c similarity index 97% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_tools_output.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_tools_output.c index e6095eb..f559088 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_tools_output.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_tools_output.c @@ -1,7 +1,7 @@ /* * Tools output functions test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_tools_signal.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_tools_signal.c similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_tools_signal.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_tools_signal.c index 4235754..3354443 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_tools_signal.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_tools_signal.c @@ -1,7 +1,7 @@ /* * Tools signal functions test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_tools_windows_search_compression.c b/libesedb-sys/libesedb-20230824/tests/esedb_test_tools_windows_search_compression.c similarity index 99% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_tools_windows_search_compression.c rename to libesedb-sys/libesedb-20230824/tests/esedb_test_tools_windows_search_compression.c index 633a811..e428f63 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_tools_windows_search_compression.c +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_tools_windows_search_compression.c @@ -1,7 +1,7 @@ /* * Windows search compression functions test program * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/esedb_test_unused.h b/libesedb-sys/libesedb-20230824/tests/esedb_test_unused.h similarity index 95% rename from libesedb-sys/libesedb-20210424/tests/esedb_test_unused.h rename to libesedb-sys/libesedb-20230824/tests/esedb_test_unused.h index 37d5dcc..d8a639f 100644 --- a/libesedb-sys/libesedb-20210424/tests/esedb_test_unused.h +++ b/libesedb-sys/libesedb-20230824/tests/esedb_test_unused.h @@ -1,7 +1,7 @@ /* * Definitions to silence compiler warnings about unused function attributes/parameters. * - * Copyright (C) 2009-2021, Joachim Metz + * Copyright (C) 2009-2023, Joachim Metz * * Refer to AUTHORS for acknowledgements. * diff --git a/libesedb-sys/libesedb-20210424/tests/pyesedb_test_file.py b/libesedb-sys/libesedb-20230824/tests/pyesedb_test_file.py similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/pyesedb_test_file.py rename to libesedb-sys/libesedb-20230824/tests/pyesedb_test_file.py index 7e1141d..aeef00b 100644 --- a/libesedb-sys/libesedb-20210424/tests/pyesedb_test_file.py +++ b/libesedb-sys/libesedb-20230824/tests/pyesedb_test_file.py @@ -2,7 +2,7 @@ # # Python-bindings file type test script # -# Copyright (C) 2009-2021, Joachim Metz +# Copyright (C) 2009-2023, Joachim Metz # # Refer to AUTHORS for acknowledgements. # diff --git a/libesedb-sys/libesedb-20210424/tests/pyesedb_test_support.py b/libesedb-sys/libesedb-20230824/tests/pyesedb_test_support.py similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/pyesedb_test_support.py rename to libesedb-sys/libesedb-20230824/tests/pyesedb_test_support.py index f7fb698..3355048 100644 --- a/libesedb-sys/libesedb-20210424/tests/pyesedb_test_support.py +++ b/libesedb-sys/libesedb-20230824/tests/pyesedb_test_support.py @@ -2,7 +2,7 @@ # # Python-bindings support functions test script # -# Copyright (C) 2009-2021, Joachim Metz +# Copyright (C) 2009-2023, Joachim Metz # # Refer to AUTHORS for acknowledgements. # diff --git a/libesedb-sys/libesedb-20210424/tests/test_esedbexport.sh b/libesedb-sys/libesedb-20230824/tests/test_esedbexport.sh similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/test_esedbexport.sh rename to libesedb-sys/libesedb-20230824/tests/test_esedbexport.sh index 745d47d..8c18334 100644 --- a/libesedb-sys/libesedb-20210424/tests/test_esedbexport.sh +++ b/libesedb-sys/libesedb-20230824/tests/test_esedbexport.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash # Export tool testing script # -# Version: 20200705 +# Version: 20230410 EXIT_SUCCESS=0; EXIT_FAILURE=1; diff --git a/libesedb-sys/libesedb-20210424/tests/test_esedbinfo.sh b/libesedb-sys/libesedb-20230824/tests/test_esedbinfo.sh similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/test_esedbinfo.sh rename to libesedb-sys/libesedb-20230824/tests/test_esedbinfo.sh index 9e9fe05..b40b4fd 100644 --- a/libesedb-sys/libesedb-20210424/tests/test_esedbinfo.sh +++ b/libesedb-sys/libesedb-20230824/tests/test_esedbinfo.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash # Info tool testing script # -# Version: 20200705 +# Version: 20230410 EXIT_SUCCESS=0; EXIT_FAILURE=1; diff --git a/libesedb-sys/libesedb-20210424/tests/test_library.sh b/libesedb-sys/libesedb-20230824/tests/test_library.sh similarity index 89% rename from libesedb-sys/libesedb-20210424/tests/test_library.sh rename to libesedb-sys/libesedb-20230824/tests/test_library.sh index 7a6428c..00dbabf 100644 --- a/libesedb-sys/libesedb-20210424/tests/test_library.sh +++ b/libesedb-sys/libesedb-20230824/tests/test_library.sh @@ -1,13 +1,13 @@ -#!/bin/bash +#!/usr/bin/env bash # Tests library functions and types. # -# Version: 20200705 +# Version: 20230410 EXIT_SUCCESS=0; EXIT_FAILURE=1; EXIT_IGNORE=77; -LIBRARY_TESTS="catalog catalog_definition checksum column column_type compression data_definition data_segment database error file_header index io_handle leaf_page_descriptor long_value multi_value notify page page_header page_tree page_tree_key page_tree_value page_value record table root_page_header space_tree space_tree_value table_definition"; +LIBRARY_TESTS="block_descriptor block_tree block_tree_node catalog catalog_definition checksum column column_type compression data_definition data_segment database error file_header index io_handle leaf_page_descriptor long_value multi_value notify page page_header page_tree page_tree_key page_tree_value page_value record table root_page_header space_tree space_tree_value table_definition"; LIBRARY_TESTS_WITH_INPUT="file support"; OPTION_SETS=""; diff --git a/libesedb-sys/libesedb-20210424/tests/test_manpage.sh b/libesedb-sys/libesedb-20230824/tests/test_manpage.sh similarity index 97% rename from libesedb-sys/libesedb-20210424/tests/test_manpage.sh rename to libesedb-sys/libesedb-20230824/tests/test_manpage.sh index 9246cf2..4abb656 100644 --- a/libesedb-sys/libesedb-20210424/tests/test_manpage.sh +++ b/libesedb-sys/libesedb-20230824/tests/test_manpage.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash # Tests man pages. # -# Version: 20190302 +# Version: 20230410 EXIT_SUCCESS=0; EXIT_FAILURE=1; diff --git a/libesedb-sys/libesedb-20210424/tests/test_python_module.sh b/libesedb-sys/libesedb-20230824/tests/test_python_module.sh similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/test_python_module.sh rename to libesedb-sys/libesedb-20230824/tests/test_python_module.sh index b995293..796c79e 100644 --- a/libesedb-sys/libesedb-20210424/tests/test_python_module.sh +++ b/libesedb-sys/libesedb-20230824/tests/test_python_module.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash # Tests Python module functions and types. # -# Version: 20200705 +# Version: 20230410 EXIT_SUCCESS=0; EXIT_FAILURE=1; diff --git a/libesedb-sys/libesedb-20210424/tests/test_runner.sh b/libesedb-sys/libesedb-20230824/tests/test_runner.sh similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/test_runner.sh rename to libesedb-sys/libesedb-20230824/tests/test_runner.sh index 84d4022..6313971 100644 --- a/libesedb-sys/libesedb-20210424/tests/test_runner.sh +++ b/libesedb-sys/libesedb-20230824/tests/test_runner.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash # Bash functions to run an executable for testing. # -# Version: 20201215 +# Version: 20230410 # # When CHECK_WITH_ASAN is set to a non-empty value the test executable # is run with asan, otherwise it is run without. @@ -14,6 +14,8 @@ # # When CHECK_WITH_VALGRIND is set to a non-empty value the test executable # is run with valgrind, otherwise it is run without. +# +# PYTHON and PYTHON_VERSION are used to determine the Python interpreter. EXIT_SUCCESS=0; EXIT_FAILURE=1; @@ -188,14 +190,24 @@ find_binary_executable() find_binary_library_path() { local TEST_EXECUTABLE=$1; - local LIBRARY_NAME="${TEST_EXECUTABLE}"; + local LIBRARY_NAME=`dirname ${TEST_EXECUTABLE}`; - echo ${LIBRARY_NAME} | grep 'tools' > /dev/null 2>&1; + local NAME=`basename ${LIBRARY_NAME}`; - if test $? -eq ${EXIT_SUCCESS}; + if test ${NAME} = ".libs"; then LIBRARY_NAME=`dirname ${LIBRARY_NAME}`; + NAME=`basename ${LIBRARY_NAME}`; + fi + if test ${NAME} = "tests"; + then LIBRARY_NAME=`dirname ${LIBRARY_NAME}`; + NAME=`basename ${LIBRARY_NAME}`; + fi + echo ${LIBRARY_NAME} | grep 'tools' > /dev/null 2>&1; + + if test $? -eq ${EXIT_SUCCESS}; + then LIBRARY_NAME=`basename ${LIBRARY_NAME} | sed 's/\(.*\)tools$/lib\1/'`; else LIBRARY_NAME=`basename ${LIBRARY_NAME} | sed 's/^py//' | sed 's/^\([^_]*\)_test_.*$/lib\1/'`; @@ -442,7 +454,7 @@ run_test_with_arguments() echo "${EXECUTABLE_TYPE}" | grep -i "python script" > /dev/null 2>&1; local IS_PYTHON_SCRIPT=$?; - if test ${IS_PYTHON_SCRIPT} -eq 0; + if test ${IS_PYTHON_SCRIPT} -eq 0 && test -z ${PYTHON}; then local PYTHON=`which python${PYTHON_VERSION} 2> /dev/null`; @@ -653,6 +665,7 @@ run_test_with_arguments() return ${EXIT_FAILURE}; fi + local TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} ); local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); @@ -762,7 +775,7 @@ run_test_with_input_and_arguments() echo "${EXECUTABLE_TYPE}" | grep -i "python script" > /dev/null 2>&1; local IS_PYTHON_SCRIPT=$?; - if test ${IS_PYTHON_SCRIPT} -eq 0; + if test ${IS_PYTHON_SCRIPT} -eq 0 && test -z ${PYTHON}; then local PYTHON=`which python${PYTHON_VERSION} 2> /dev/null`; @@ -974,6 +987,7 @@ run_test_with_input_and_arguments() return ${EXIT_FAILURE}; fi + local TEST_EXECUTABLE=$( find_binary_executable ${TEST_EXECUTABLE} ); local LIBRARY_PATH=$( find_binary_library_path ${TEST_EXECUTABLE} ); local PYTHON_MODULE_PATH=$( find_binary_python_module_path ${TEST_EXECUTABLE} ); diff --git a/libesedb-sys/libesedb-20210424/tests/test_tools.sh b/libesedb-sys/libesedb-20230824/tests/test_tools.sh similarity index 98% rename from libesedb-sys/libesedb-20210424/tests/test_tools.sh rename to libesedb-sys/libesedb-20230824/tests/test_tools.sh index 51b9195..c35b616 100644 --- a/libesedb-sys/libesedb-20210424/tests/test_tools.sh +++ b/libesedb-sys/libesedb-20230824/tests/test_tools.sh @@ -1,7 +1,7 @@ -#!/bin/bash +#!/usr/bin/env bash # Tests tools functions and types. # -# Version: 20200705 +# Version: 20230410 EXIT_SUCCESS=0; EXIT_FAILURE=1; diff --git a/libesedb-sys/src/bindings.rs b/libesedb-sys/src/bindings.rs index f361a7e..2c30d70 100644 --- a/libesedb-sys/src/bindings.rs +++ b/libesedb-sys/src/bindings.rs @@ -1,4 +1,4 @@ -/* automatically generated by rust-bindgen 0.59.2 */ +/* automatically generated by rust-bindgen 0.68.1 */ pub const LIBESEDB_HAVE_MULTI_THREAD_SUPPORT: u32 = 1; pub const _VCRT_COMPILER_PREPROCESSOR: u32 = 1; @@ -21,12 +21,13 @@ pub const HAVE_SSIZE32_T: u32 = 1; pub const HAVE_SIZE64_T: u32 = 1; pub const HAVE_SSIZE64_T: u32 = 1; pub const HAVE_OFF64_T: u32 = 1; +pub const _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE: u32 = 1; +pub const _CRT_BUILD_DESKTOP_APP: u32 = 1; pub const _ARGMAX: u32 = 100; pub const _CRT_INT_MAX: u32 = 2147483647; pub const _CRT_FUNCTIONS_REQUIRED: u32 = 1; pub const _CRT_HAS_CXX17: u32 = 0; -pub const _ARM_WINAPI_PARTITION_DESKTOP_SDK_AVAILABLE: u32 = 1; -pub const _CRT_BUILD_DESKTOP_APP: u32 = 1; +pub const _CRT_HAS_C11: u32 = 1; pub const _CRT_INTERNAL_NONSTDC_NAMES: u32 = 1; pub const __STDC_SECURE_LIB__: u32 = 200411; pub const __GOT_SECURE_LIB__: u32 = 200411; @@ -118,7 +119,7 @@ pub const ETIME: u32 = 137; pub const ETIMEDOUT: u32 = 138; pub const ETXTBSY: u32 = 139; pub const EWOULDBLOCK: u32 = 140; -pub const _CRT_INTERNAL_STDIO_SYMBOL_PREFIX: &[u8; 1usize] = b"\0"; +pub const _CRT_INTERNAL_STDIO_SYMBOL_PREFIX: &[u8; 1] = b"\0"; pub const _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION: u32 = 1; pub const _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR: u32 = 2; pub const _CRT_INTERNAL_PRINTF_LEGACY_WIDE_SPECIFIERS: u32 = 4; @@ -182,8 +183,8 @@ pub const S_IFREG: u32 = 32768; pub const S_IREAD: u32 = 256; pub const S_IWRITE: u32 = 128; pub const S_IEXEC: u32 = 64; -pub const LIBESEDB_VERSION: u32 = 20210424; -pub const LIBESEDB_VERSION_STRING: &[u8; 9usize] = b"20210424\0"; +pub const LIBESEDB_VERSION: u32 = 20230824; +pub const LIBESEDB_VERSION_STRING: &[u8; 9] = b"20230824\0"; pub const BUFSIZ: u32 = 512; pub const _NSTREAM_: u32 = 512; pub const _IOB_ENTRIES: u32 = 3; @@ -207,7 +208,6 @@ pub type va_list = *mut ::std::os::raw::c_char; extern "C" { pub fn __va_start(arg1: *mut *mut ::std::os::raw::c_char, ...); } -pub type size_t = ::std::os::raw::c_ulonglong; pub type __vcrt_bool = bool; pub type wchar_t = ::std::os::raw::c_ushort; extern "C" { @@ -217,7 +217,7 @@ extern "C" { pub fn __security_check_cookie(_StackCookie: usize); } extern "C" { - pub fn __report_gsfailure(_StackCookie: usize); + pub fn __report_gsfailure(_StackCookie: usize) -> !; } extern "C" { pub static mut __security_cookie: usize; @@ -240,7 +240,6 @@ pub type uint_fast32_t = ::std::os::raw::c_uint; pub type uint_fast64_t = ::std::os::raw::c_ulonglong; pub type intmax_t = ::std::os::raw::c_longlong; pub type uintmax_t = ::std::os::raw::c_ulonglong; -pub type ssize_t = ::std::os::raw::c_longlong; pub type size32_t = u32; pub type ssize32_t = i32; pub type size64_t = u64; @@ -251,7 +250,7 @@ extern "C" { pub fn _invalid_parameter_noinfo(); } extern "C" { - pub fn _invalid_parameter_noinfo_noreturn(); + pub fn _invalid_parameter_noinfo_noreturn() -> !; } extern "C" { pub fn _invoke_watson( @@ -260,7 +259,7 @@ extern "C" { _FileName: *const wchar_t, _LineNo: ::std::os::raw::c_uint, _Reserved: usize, - ); + ) -> !; } pub type errno_t = ::std::os::raw::c_int; pub type wint_t = ::std::os::raw::c_ushort; @@ -276,6 +275,9 @@ pub struct __crt_locale_data_public { } #[test] fn bindgen_test_layout___crt_locale_data_public() { + const UNINIT: ::std::mem::MaybeUninit<__crt_locale_data_public> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__crt_locale_data_public>(), 16usize, @@ -287,9 +289,7 @@ fn bindgen_test_layout___crt_locale_data_public() { concat!("Alignment of ", stringify!(__crt_locale_data_public)) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__crt_locale_data_public>()))._locale_pctype as *const _ as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._locale_pctype) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -299,10 +299,7 @@ fn bindgen_test_layout___crt_locale_data_public() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__crt_locale_data_public>()))._locale_mb_cur_max as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._locale_mb_cur_max) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -312,10 +309,7 @@ fn bindgen_test_layout___crt_locale_data_public() { ) ); assert_eq!( - unsafe { - &(*(::std::ptr::null::<__crt_locale_data_public>()))._locale_lc_codepage as *const _ - as usize - }, + unsafe { ::std::ptr::addr_of!((*ptr)._locale_lc_codepage) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -333,6 +327,9 @@ pub struct __crt_locale_pointers { } #[test] fn bindgen_test_layout___crt_locale_pointers() { + const UNINIT: ::std::mem::MaybeUninit<__crt_locale_pointers> = + ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<__crt_locale_pointers>(), 16usize, @@ -344,7 +341,7 @@ fn bindgen_test_layout___crt_locale_pointers() { concat!("Alignment of ", stringify!(__crt_locale_pointers)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__crt_locale_pointers>())).locinfo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).locinfo) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -354,7 +351,7 @@ fn bindgen_test_layout___crt_locale_pointers() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<__crt_locale_pointers>())).mbcinfo as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).mbcinfo) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -374,6 +371,8 @@ pub struct _Mbstatet { } #[test] fn bindgen_test_layout__Mbstatet() { + const UNINIT: ::std::mem::MaybeUninit<_Mbstatet> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_Mbstatet>(), 8usize, @@ -385,7 +384,7 @@ fn bindgen_test_layout__Mbstatet() { concat!("Alignment of ", stringify!(_Mbstatet)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_Mbstatet>()))._Wchar as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._Wchar) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -395,7 +394,7 @@ fn bindgen_test_layout__Mbstatet() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_Mbstatet>()))._Byte as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._Byte) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -405,7 +404,7 @@ fn bindgen_test_layout__Mbstatet() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_Mbstatet>()))._State as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._State) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -417,7 +416,7 @@ fn bindgen_test_layout__Mbstatet() { } pub type mbstate_t = _Mbstatet; pub type time_t = __time64_t; -pub type rsize_t = size_t; +pub type rsize_t = usize; extern "C" { pub fn _errno() -> *mut ::std::os::raw::c_int; } @@ -502,11 +501,7 @@ extern "C" { pub fn wcsstr(_Str: *const wchar_t, _SubStr: *const wchar_t) -> *mut wchar_t; } extern "C" { - pub fn _cgetws_s( - _Buffer: *mut wchar_t, - _BufferCount: size_t, - _SizeRead: *mut size_t, - ) -> errno_t; + pub fn _cgetws_s(_Buffer: *mut wchar_t, _BufferCount: usize, _SizeRead: *mut usize) -> errno_t; } extern "C" { pub fn _cputws(_Buffer: *const wchar_t) -> ::std::os::raw::c_int; @@ -719,6 +714,8 @@ pub struct _wfinddata32_t { } #[test] fn bindgen_test_layout__wfinddata32_t() { + const UNINIT: ::std::mem::MaybeUninit<_wfinddata32_t> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_wfinddata32_t>(), 540usize, @@ -730,7 +727,7 @@ fn bindgen_test_layout__wfinddata32_t() { concat!("Alignment of ", stringify!(_wfinddata32_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32_t>())).attrib as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).attrib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -740,7 +737,7 @@ fn bindgen_test_layout__wfinddata32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32_t>())).time_create as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_create) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -750,7 +747,7 @@ fn bindgen_test_layout__wfinddata32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32_t>())).time_access as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_access) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -760,7 +757,7 @@ fn bindgen_test_layout__wfinddata32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32_t>())).time_write as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_write) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -770,7 +767,7 @@ fn bindgen_test_layout__wfinddata32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32_t>())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -780,7 +777,7 @@ fn bindgen_test_layout__wfinddata32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32_t>())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -802,6 +799,8 @@ pub struct _wfinddata32i64_t { } #[test] fn bindgen_test_layout__wfinddata32i64_t() { + const UNINIT: ::std::mem::MaybeUninit<_wfinddata32i64_t> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_wfinddata32i64_t>(), 544usize, @@ -813,7 +812,7 @@ fn bindgen_test_layout__wfinddata32i64_t() { concat!("Alignment of ", stringify!(_wfinddata32i64_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32i64_t>())).attrib as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).attrib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -823,7 +822,7 @@ fn bindgen_test_layout__wfinddata32i64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32i64_t>())).time_create as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_create) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -833,7 +832,7 @@ fn bindgen_test_layout__wfinddata32i64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32i64_t>())).time_access as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_access) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -843,7 +842,7 @@ fn bindgen_test_layout__wfinddata32i64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32i64_t>())).time_write as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_write) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -853,7 +852,7 @@ fn bindgen_test_layout__wfinddata32i64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32i64_t>())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -863,7 +862,7 @@ fn bindgen_test_layout__wfinddata32i64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata32i64_t>())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -885,6 +884,8 @@ pub struct _wfinddata64i32_t { } #[test] fn bindgen_test_layout__wfinddata64i32_t() { + const UNINIT: ::std::mem::MaybeUninit<_wfinddata64i32_t> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_wfinddata64i32_t>(), 560usize, @@ -896,7 +897,7 @@ fn bindgen_test_layout__wfinddata64i32_t() { concat!("Alignment of ", stringify!(_wfinddata64i32_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64i32_t>())).attrib as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).attrib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -906,7 +907,7 @@ fn bindgen_test_layout__wfinddata64i32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64i32_t>())).time_create as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_create) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -916,7 +917,7 @@ fn bindgen_test_layout__wfinddata64i32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64i32_t>())).time_access as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_access) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -926,7 +927,7 @@ fn bindgen_test_layout__wfinddata64i32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64i32_t>())).time_write as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_write) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -936,7 +937,7 @@ fn bindgen_test_layout__wfinddata64i32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64i32_t>())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -946,7 +947,7 @@ fn bindgen_test_layout__wfinddata64i32_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64i32_t>())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -968,6 +969,8 @@ pub struct _wfinddata64_t { } #[test] fn bindgen_test_layout__wfinddata64_t() { + const UNINIT: ::std::mem::MaybeUninit<_wfinddata64_t> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_wfinddata64_t>(), 560usize, @@ -979,7 +982,7 @@ fn bindgen_test_layout__wfinddata64_t() { concat!("Alignment of ", stringify!(_wfinddata64_t)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64_t>())).attrib as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).attrib) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -989,7 +992,7 @@ fn bindgen_test_layout__wfinddata64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64_t>())).time_create as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_create) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -999,7 +1002,7 @@ fn bindgen_test_layout__wfinddata64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64_t>())).time_access as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_access) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -1009,7 +1012,7 @@ fn bindgen_test_layout__wfinddata64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64_t>())).time_write as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).time_write) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -1019,7 +1022,7 @@ fn bindgen_test_layout__wfinddata64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64_t>())).size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).size) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -1029,7 +1032,7 @@ fn bindgen_test_layout__wfinddata64_t() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_wfinddata64_t>())).name as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).name) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -1079,7 +1082,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - pub fn _wmktemp_s(_TemplateName: *mut wchar_t, _SizeInWords: size_t) -> errno_t; + pub fn _wmktemp_s(_TemplateName: *mut wchar_t, _SizeInWords: usize) -> errno_t; } extern "C" { pub fn _wmktemp(_TemplateName: *mut wchar_t) -> *mut wchar_t; @@ -1249,6 +1252,8 @@ pub struct _iobuf { } #[test] fn bindgen_test_layout__iobuf() { + const UNINIT: ::std::mem::MaybeUninit<_iobuf> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_iobuf>(), 8usize, @@ -1260,7 +1265,7 @@ fn bindgen_test_layout__iobuf() { concat!("Alignment of ", stringify!(_iobuf)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_iobuf>()))._Placeholder as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr)._Placeholder) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -1303,7 +1308,7 @@ extern "C" { pub fn fputws(_Buffer: *const wchar_t, _Stream: *mut FILE) -> ::std::os::raw::c_int; } extern "C" { - pub fn _getws_s(_Buffer: *mut wchar_t, _BufferCount: size_t) -> *mut wchar_t; + pub fn _getws_s(_Buffer: *mut wchar_t, _BufferCount: usize) -> *mut wchar_t; } extern "C" { pub fn putwc(_Character: wchar_t, _Stream: *mut FILE) -> wint_t; @@ -1365,7 +1370,7 @@ extern "C" { pub fn _wtempnam(_Directory: *const wchar_t, _FilePrefix: *const wchar_t) -> *mut wchar_t; } extern "C" { - pub fn _wtmpnam_s(_Buffer: *mut wchar_t, _BufferCount: size_t) -> errno_t; + pub fn _wtmpnam_s(_Buffer: *mut wchar_t, _BufferCount: usize) -> errno_t; } extern "C" { pub fn _wtmpnam(_Buffer: *mut wchar_t) -> *mut wchar_t; @@ -1425,7 +1430,7 @@ extern "C" { pub fn __stdio_common_vswprintf( _Options: ::std::os::raw::c_ulonglong, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Format: *const wchar_t, _Locale: _locale_t, _ArgList: va_list, @@ -1435,7 +1440,7 @@ extern "C" { pub fn __stdio_common_vswprintf_s( _Options: ::std::os::raw::c_ulonglong, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Format: *const wchar_t, _Locale: _locale_t, _ArgList: va_list, @@ -1445,8 +1450,8 @@ extern "C" { pub fn __stdio_common_vsnwprintf_s( _Options: ::std::os::raw::c_ulonglong, _Buffer: *mut wchar_t, - _BufferCount: size_t, - _MaxCount: size_t, + _BufferCount: usize, + _MaxCount: usize, _Format: *const wchar_t, _Locale: _locale_t, _ArgList: va_list, @@ -1456,7 +1461,7 @@ extern "C" { pub fn __stdio_common_vswprintf_p( _Options: ::std::os::raw::c_ulonglong, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Format: *const wchar_t, _Locale: _locale_t, _ArgList: va_list, @@ -1466,7 +1471,7 @@ extern "C" { pub fn __stdio_common_vswscanf( _Options: ::std::os::raw::c_ulonglong, _Buffer: *const wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Format: *const wchar_t, _Locale: _locale_t, _ArgList: va_list, @@ -1476,7 +1481,7 @@ extern "C" { pub fn _itow_s( _Value: ::std::os::raw::c_int, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Radix: ::std::os::raw::c_int, ) -> errno_t; } @@ -1491,7 +1496,7 @@ extern "C" { pub fn _ltow_s( _Value: ::std::os::raw::c_long, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Radix: ::std::os::raw::c_int, ) -> errno_t; } @@ -1506,7 +1511,7 @@ extern "C" { pub fn _ultow_s( _Value: ::std::os::raw::c_ulong, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Radix: ::std::os::raw::c_int, ) -> errno_t; } @@ -1635,7 +1640,7 @@ extern "C" { pub fn _i64tow_s( _Value: ::std::os::raw::c_longlong, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Radix: ::std::os::raw::c_int, ) -> errno_t; } @@ -1650,7 +1655,7 @@ extern "C" { pub fn _ui64tow_s( _Value: ::std::os::raw::c_ulonglong, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Radix: ::std::os::raw::c_int, ) -> errno_t; } @@ -1701,13 +1706,13 @@ extern "C" { pub fn _wfullpath( _Buffer: *mut wchar_t, _Path: *const wchar_t, - _BufferCount: size_t, + _BufferCount: usize, ) -> *mut wchar_t; } extern "C" { pub fn _wmakepath_s( _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _Drive: *const wchar_t, _Dir: *const wchar_t, _Filename: *const wchar_t, @@ -1736,19 +1741,19 @@ extern "C" { pub fn _wsplitpath_s( _FullPath: *const wchar_t, _Drive: *mut wchar_t, - _DriveCount: size_t, + _DriveCount: usize, _Dir: *mut wchar_t, - _DirCount: size_t, + _DirCount: usize, _Filename: *mut wchar_t, - _FilenameCount: size_t, + _FilenameCount: usize, _Ext: *mut wchar_t, - _ExtCount: size_t, + _ExtCount: usize, ) -> errno_t; } extern "C" { pub fn _wdupenv_s( _Buffer: *mut *mut wchar_t, - _BufferCount: *mut size_t, + _BufferCount: *mut usize, _VarName: *const wchar_t, ) -> errno_t; } @@ -1757,9 +1762,9 @@ extern "C" { } extern "C" { pub fn _wgetenv_s( - _RequiredCount: *mut size_t, + _RequiredCount: *mut usize, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, _VarName: *const wchar_t, ) -> errno_t; } @@ -1774,7 +1779,7 @@ extern "C" { _Filename: *const wchar_t, _VarName: *const wchar_t, _Buffer: *mut wchar_t, - _BufferCount: size_t, + _BufferCount: usize, ) -> errno_t; } extern "C" { @@ -1837,19 +1842,19 @@ extern "C" { pub fn wcscpy(_Destination: *mut wchar_t, _Source: *const wchar_t) -> *mut wchar_t; } extern "C" { - pub fn wcscspn(_String: *const wchar_t, _Control: *const wchar_t) -> size_t; + pub fn wcscspn(_String: *const wchar_t, _Control: *const wchar_t) -> usize; } extern "C" { pub fn wcslen(_String: *const ::std::os::raw::c_ushort) -> ::std::os::raw::c_ulonglong; } extern "C" { - pub fn wcsnlen(_Source: *const wchar_t, _MaxCount: size_t) -> size_t; + pub fn wcsnlen(_Source: *const wchar_t, _MaxCount: usize) -> usize; } extern "C" { pub fn wcsncat( _Destination: *mut wchar_t, _Source: *const wchar_t, - _Count: size_t, + _Count: usize, ) -> *mut wchar_t; } extern "C" { @@ -1863,14 +1868,14 @@ extern "C" { pub fn wcsncpy( _Destination: *mut wchar_t, _Source: *const wchar_t, - _Count: size_t, + _Count: usize, ) -> *mut wchar_t; } extern "C" { pub fn wcspbrk(_String: *const wchar_t, _Control: *const wchar_t) -> *mut wchar_t; } extern "C" { - pub fn wcsspn(_String: *const wchar_t, _Control: *const wchar_t) -> size_t; + pub fn wcsspn(_String: *const wchar_t, _Control: *const wchar_t) -> usize; } extern "C" { pub fn wcstok( @@ -1885,7 +1890,7 @@ extern "C" { extern "C" { pub fn _wcserror_s( _Buffer: *mut wchar_t, - _SizeInWords: size_t, + _SizeInWords: usize, _ErrorNumber: ::std::os::raw::c_int, ) -> errno_t; } @@ -1895,7 +1900,7 @@ extern "C" { extern "C" { pub fn __wcserror_s( _Buffer: *mut wchar_t, - _SizeInWords: size_t, + _SizeInWords: usize, _ErrorMessage: *const wchar_t, ) -> errno_t; } @@ -1913,75 +1918,71 @@ extern "C" { pub fn _wcsnicmp( _String1: *const wchar_t, _String2: *const wchar_t, - _MaxCount: size_t, + _MaxCount: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn _wcsnicmp_l( _String1: *const wchar_t, _String2: *const wchar_t, - _MaxCount: size_t, + _MaxCount: usize, _Locale: _locale_t, ) -> ::std::os::raw::c_int; } extern "C" { pub fn _wcsnset_s( _Destination: *mut wchar_t, - _SizeInWords: size_t, + _SizeInWords: usize, _Value: wchar_t, - _MaxCount: size_t, + _MaxCount: usize, ) -> errno_t; } extern "C" { - pub fn _wcsnset(_String: *mut wchar_t, _Value: wchar_t, _MaxCount: size_t) -> *mut wchar_t; + pub fn _wcsnset(_String: *mut wchar_t, _Value: wchar_t, _MaxCount: usize) -> *mut wchar_t; } extern "C" { pub fn _wcsrev(_String: *mut wchar_t) -> *mut wchar_t; } extern "C" { - pub fn _wcsset_s(_Destination: *mut wchar_t, _SizeInWords: size_t, _Value: wchar_t) -> errno_t; + pub fn _wcsset_s(_Destination: *mut wchar_t, _SizeInWords: usize, _Value: wchar_t) -> errno_t; } extern "C" { pub fn _wcsset(_String: *mut wchar_t, _Value: wchar_t) -> *mut wchar_t; } extern "C" { - pub fn _wcslwr_s(_String: *mut wchar_t, _SizeInWords: size_t) -> errno_t; + pub fn _wcslwr_s(_String: *mut wchar_t, _SizeInWords: usize) -> errno_t; } extern "C" { pub fn _wcslwr(_String: *mut wchar_t) -> *mut wchar_t; } extern "C" { - pub fn _wcslwr_s_l(_String: *mut wchar_t, _SizeInWords: size_t, _Locale: _locale_t) -> errno_t; + pub fn _wcslwr_s_l(_String: *mut wchar_t, _SizeInWords: usize, _Locale: _locale_t) -> errno_t; } extern "C" { pub fn _wcslwr_l(_String: *mut wchar_t, _Locale: _locale_t) -> *mut wchar_t; } extern "C" { - pub fn _wcsupr_s(_String: *mut wchar_t, _Size: size_t) -> errno_t; + pub fn _wcsupr_s(_String: *mut wchar_t, _Size: usize) -> errno_t; } extern "C" { pub fn _wcsupr(_String: *mut wchar_t) -> *mut wchar_t; } extern "C" { - pub fn _wcsupr_s_l(_String: *mut wchar_t, _Size: size_t, _Locale: _locale_t) -> errno_t; + pub fn _wcsupr_s_l(_String: *mut wchar_t, _Size: usize, _Locale: _locale_t) -> errno_t; } extern "C" { pub fn _wcsupr_l(_String: *mut wchar_t, _Locale: _locale_t) -> *mut wchar_t; } extern "C" { - pub fn wcsxfrm( - _Destination: *mut wchar_t, - _Source: *const wchar_t, - _MaxCount: size_t, - ) -> size_t; + pub fn wcsxfrm(_Destination: *mut wchar_t, _Source: *const wchar_t, _MaxCount: usize) -> usize; } extern "C" { pub fn _wcsxfrm_l( _Destination: *mut wchar_t, _Source: *const wchar_t, - _MaxCount: size_t, + _MaxCount: usize, _Locale: _locale_t, - ) -> size_t; + ) -> usize; } extern "C" { pub fn wcscoll(_String1: *const wchar_t, _String2: *const wchar_t) -> ::std::os::raw::c_int; @@ -2007,14 +2008,14 @@ extern "C" { pub fn _wcsncoll( _String1: *const wchar_t, _String2: *const wchar_t, - _MaxCount: size_t, + _MaxCount: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn _wcsncoll_l( _String1: *const wchar_t, _String2: *const wchar_t, - _MaxCount: size_t, + _MaxCount: usize, _Locale: _locale_t, ) -> ::std::os::raw::c_int; } @@ -2022,14 +2023,14 @@ extern "C" { pub fn _wcsnicoll( _String1: *const wchar_t, _String2: *const wchar_t, - _MaxCount: size_t, + _MaxCount: usize, ) -> ::std::os::raw::c_int; } extern "C" { pub fn _wcsnicoll_l( _String1: *const wchar_t, _String2: *const wchar_t, - _MaxCount: size_t, + _MaxCount: usize, _Locale: _locale_t, ) -> ::std::os::raw::c_int; } @@ -2043,11 +2044,11 @@ extern "C" { pub fn wcsnicmp( _String1: *const wchar_t, _String2: *const wchar_t, - _MaxCount: size_t, + _MaxCount: usize, ) -> ::std::os::raw::c_int; } extern "C" { - pub fn wcsnset(_String: *mut wchar_t, _Value: wchar_t, _MaxCount: size_t) -> *mut wchar_t; + pub fn wcsnset(_String: *mut wchar_t, _Value: wchar_t, _MaxCount: usize) -> *mut wchar_t; } extern "C" { pub fn wcsrev(_String: *mut wchar_t) -> *mut wchar_t; @@ -2079,6 +2080,8 @@ pub struct tm { } #[test] fn bindgen_test_layout_tm() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 36usize, @@ -2090,7 +2093,7 @@ fn bindgen_test_layout_tm() { concat!("Alignment of ", stringify!(tm)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_sec as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_sec) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2100,7 +2103,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_min as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_min) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2110,7 +2113,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_hour as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_hour) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2120,7 +2123,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mday) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -2130,7 +2133,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_mon as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_mon) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2140,7 +2143,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_year as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_year) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -2150,7 +2153,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_wday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_wday) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2160,7 +2163,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_yday as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_yday) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -2170,7 +2173,7 @@ fn bindgen_test_layout_tm() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).tm_isdst as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).tm_isdst) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2184,24 +2187,24 @@ extern "C" { pub fn _wasctime(_Tm: *const tm) -> *mut wchar_t; } extern "C" { - pub fn _wasctime_s(_Buffer: *mut wchar_t, _SizeInWords: size_t, _Tm: *const tm) -> errno_t; + pub fn _wasctime_s(_Buffer: *mut wchar_t, _SizeInWords: usize, _Tm: *const tm) -> errno_t; } extern "C" { pub fn wcsftime( _Buffer: *mut wchar_t, - _SizeInWords: size_t, + _SizeInWords: usize, _Format: *const wchar_t, _Tm: *const tm, - ) -> size_t; + ) -> usize; } extern "C" { pub fn _wcsftime_l( _Buffer: *mut wchar_t, - _SizeInWords: size_t, + _SizeInWords: usize, _Format: *const wchar_t, _Tm: *const tm, _Locale: _locale_t, - ) -> size_t; + ) -> usize; } extern "C" { pub fn _wctime32(_Time: *const __time32_t) -> *mut wchar_t; @@ -2209,7 +2212,7 @@ extern "C" { extern "C" { pub fn _wctime32_s( _Buffer: *mut wchar_t, - _SizeInWords: size_t, + _SizeInWords: usize, _Time: *const __time32_t, ) -> errno_t; } @@ -2219,18 +2222,18 @@ extern "C" { extern "C" { pub fn _wctime64_s( _Buffer: *mut wchar_t, - _SizeInWords: size_t, + _SizeInWords: usize, _Time: *const __time64_t, ) -> errno_t; } extern "C" { - pub fn _wstrdate_s(_Buffer: *mut wchar_t, _SizeInWords: size_t) -> errno_t; + pub fn _wstrdate_s(_Buffer: *mut wchar_t, _SizeInWords: usize) -> errno_t; } extern "C" { pub fn _wstrdate(_Buffer: *mut wchar_t) -> *mut wchar_t; } extern "C" { - pub fn _wstrtime_s(_Buffer: *mut wchar_t, _SizeInWords: size_t) -> errno_t; + pub fn _wstrtime_s(_Buffer: *mut wchar_t, _SizeInWords: usize) -> errno_t; } extern "C" { pub fn _wstrtime(_Buffer: *mut wchar_t) -> *mut wchar_t; @@ -2258,6 +2261,8 @@ pub struct _stat32 { } #[test] fn bindgen_test_layout__stat32() { + const UNINIT: ::std::mem::MaybeUninit<_stat32> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_stat32>(), 36usize, @@ -2269,7 +2274,7 @@ fn bindgen_test_layout__stat32() { concat!("Alignment of ", stringify!(_stat32)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_dev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_dev) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2279,7 +2284,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_ino as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ino) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2289,7 +2294,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_mode as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mode) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -2299,7 +2304,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_nlink as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_nlink) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2309,7 +2314,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_uid) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -2319,7 +2324,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_gid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -2329,7 +2334,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_rdev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_rdev) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2339,7 +2344,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_size) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -2349,7 +2354,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_atime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_atime) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2359,7 +2364,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_mtime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mtime) as usize - ptr as usize }, 28usize, concat!( "Offset of field: ", @@ -2369,7 +2374,7 @@ fn bindgen_test_layout__stat32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32>())).st_ctime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ctime) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2396,6 +2401,8 @@ pub struct _stat32i64 { } #[test] fn bindgen_test_layout__stat32i64() { + const UNINIT: ::std::mem::MaybeUninit<_stat32i64> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_stat32i64>(), 48usize, @@ -2407,7 +2414,7 @@ fn bindgen_test_layout__stat32i64() { concat!("Alignment of ", stringify!(_stat32i64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_dev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_dev) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2417,7 +2424,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_ino as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ino) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2427,7 +2434,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_mode as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mode) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -2437,7 +2444,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_nlink as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_nlink) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2447,7 +2454,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_uid) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -2457,7 +2464,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_gid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -2467,7 +2474,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_rdev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_rdev) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2477,7 +2484,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_size) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2487,7 +2494,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_atime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_atime) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2497,7 +2504,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_mtime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mtime) as usize - ptr as usize }, 36usize, concat!( "Offset of field: ", @@ -2507,7 +2514,7 @@ fn bindgen_test_layout__stat32i64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat32i64>())).st_ctime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ctime) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -2534,6 +2541,8 @@ pub struct _stat64i32 { } #[test] fn bindgen_test_layout__stat64i32() { + const UNINIT: ::std::mem::MaybeUninit<_stat64i32> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_stat64i32>(), 48usize, @@ -2545,7 +2554,7 @@ fn bindgen_test_layout__stat64i32() { concat!("Alignment of ", stringify!(_stat64i32)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_dev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_dev) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2555,7 +2564,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_ino as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ino) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2565,7 +2574,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_mode as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mode) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -2575,7 +2584,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_nlink as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_nlink) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2585,7 +2594,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_uid) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -2595,7 +2604,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_gid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -2605,7 +2614,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_rdev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_rdev) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2615,7 +2624,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_size) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -2625,7 +2634,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_atime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_atime) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2635,7 +2644,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_mtime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mtime) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2645,7 +2654,7 @@ fn bindgen_test_layout__stat64i32() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64i32>())).st_ctime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ctime) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -2672,6 +2681,8 @@ pub struct _stat64 { } #[test] fn bindgen_test_layout__stat64() { + const UNINIT: ::std::mem::MaybeUninit<_stat64> = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::<_stat64>(), 56usize, @@ -2683,7 +2694,7 @@ fn bindgen_test_layout__stat64() { concat!("Alignment of ", stringify!(_stat64)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_dev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_dev) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2693,7 +2704,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_ino as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ino) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2703,7 +2714,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_mode as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mode) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -2713,7 +2724,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_nlink as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_nlink) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2723,7 +2734,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_uid) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -2733,7 +2744,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_gid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -2743,7 +2754,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_rdev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_rdev) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2753,7 +2764,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_size) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2763,7 +2774,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_atime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_atime) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2773,7 +2784,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_mtime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mtime) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -2783,7 +2794,7 @@ fn bindgen_test_layout__stat64() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::<_stat64>())).st_ctime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ctime) as usize - ptr as usize }, 48usize, concat!( "Offset of field: ", @@ -2810,6 +2821,8 @@ pub struct stat { } #[test] fn bindgen_test_layout_stat() { + const UNINIT: ::std::mem::MaybeUninit = ::std::mem::MaybeUninit::uninit(); + let ptr = UNINIT.as_ptr(); assert_eq!( ::std::mem::size_of::(), 48usize, @@ -2821,7 +2834,7 @@ fn bindgen_test_layout_stat() { concat!("Alignment of ", stringify!(stat)) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_dev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_dev) as usize - ptr as usize }, 0usize, concat!( "Offset of field: ", @@ -2831,7 +2844,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_ino as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ino) as usize - ptr as usize }, 4usize, concat!( "Offset of field: ", @@ -2841,7 +2854,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_mode as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mode) as usize - ptr as usize }, 6usize, concat!( "Offset of field: ", @@ -2851,7 +2864,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_nlink as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_nlink) as usize - ptr as usize }, 8usize, concat!( "Offset of field: ", @@ -2861,7 +2874,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_uid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_uid) as usize - ptr as usize }, 10usize, concat!( "Offset of field: ", @@ -2871,7 +2884,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_gid as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_gid) as usize - ptr as usize }, 12usize, concat!( "Offset of field: ", @@ -2881,7 +2894,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_rdev as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_rdev) as usize - ptr as usize }, 16usize, concat!( "Offset of field: ", @@ -2891,7 +2904,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_size as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_size) as usize - ptr as usize }, 20usize, concat!( "Offset of field: ", @@ -2901,7 +2914,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_atime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_atime) as usize - ptr as usize }, 24usize, concat!( "Offset of field: ", @@ -2911,7 +2924,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_mtime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_mtime) as usize - ptr as usize }, 32usize, concat!( "Offset of field: ", @@ -2921,7 +2934,7 @@ fn bindgen_test_layout_stat() { ) ); assert_eq!( - unsafe { &(*(::std::ptr::null::())).st_ctime as *const _ as usize }, + unsafe { ::std::ptr::addr_of!((*ptr).st_ctime) as usize - ptr as usize }, 40usize, concat!( "Offset of field: ", @@ -3004,25 +3017,25 @@ extern "C" { extern "C" { pub fn mbrlen( _Ch: *const ::std::os::raw::c_char, - _SizeInBytes: size_t, + _SizeInBytes: usize, _State: *mut mbstate_t, - ) -> size_t; + ) -> usize; } extern "C" { pub fn mbrtowc( _DstCh: *mut wchar_t, _SrcCh: *const ::std::os::raw::c_char, - _SizeInBytes: size_t, + _SizeInBytes: usize, _State: *mut mbstate_t, - ) -> size_t; + ) -> usize; } extern "C" { pub fn mbsrtowcs_s( - _Retval: *mut size_t, + _Retval: *mut usize, _Dst: *mut wchar_t, - _Size: size_t, + _Size: usize, _PSrc: *mut *const ::std::os::raw::c_char, - _N: size_t, + _N: usize, _State: *mut mbstate_t, ) -> errno_t; } @@ -3030,15 +3043,15 @@ extern "C" { pub fn mbsrtowcs( _Dest: *mut wchar_t, _PSrc: *mut *const ::std::os::raw::c_char, - _Count: size_t, + _Count: usize, _State: *mut mbstate_t, - ) -> size_t; + ) -> usize; } extern "C" { pub fn wcrtomb_s( - _Retval: *mut size_t, + _Retval: *mut usize, _Dst: *mut ::std::os::raw::c_char, - _SizeInBytes: size_t, + _SizeInBytes: usize, _Ch: wchar_t, _State: *mut mbstate_t, ) -> errno_t; @@ -3048,15 +3061,15 @@ extern "C" { _Dest: *mut ::std::os::raw::c_char, _Source: wchar_t, _State: *mut mbstate_t, - ) -> size_t; + ) -> usize; } extern "C" { pub fn wcsrtombs_s( - _Retval: *mut size_t, + _Retval: *mut usize, _Dst: *mut ::std::os::raw::c_char, - _SizeInBytes: size_t, + _SizeInBytes: usize, _Src: *mut *const wchar_t, - _Size: size_t, + _Size: usize, _State: *mut mbstate_t, ) -> errno_t; } @@ -3064,9 +3077,9 @@ extern "C" { pub fn wcsrtombs( _Dest: *mut ::std::os::raw::c_char, _PSource: *mut *const wchar_t, - _Count: size_t, + _Count: usize, _State: *mut mbstate_t, - ) -> size_t; + ) -> usize; } extern "C" { pub fn wctob(_WCh: wint_t) -> ::std::os::raw::c_int; @@ -3123,10 +3136,7 @@ pub type LIBESEDB_CODEPAGES = ::std::os::raw::c_int; pub const LIBESEDB_ACCESS_FLAGS_LIBESEDB_ACCESS_FLAG_READ: LIBESEDB_ACCESS_FLAGS = 1; #[doc = " Reserved: not supported yet"] pub const LIBESEDB_ACCESS_FLAGS_LIBESEDB_ACCESS_FLAG_WRITE: LIBESEDB_ACCESS_FLAGS = 2; -#[doc = " The access flags definitions"] -#[doc = " bit 1 set to 1 for read access"] -#[doc = " bit 2 set to 1 for write access"] -#[doc = " bit 3-8 not used"] +#[doc = " The access flags definitions\n bit 1 set to 1 for read access\n bit 2 set to 1 for write access\n bit 3-8 not used"] pub type LIBESEDB_ACCESS_FLAGS = ::std::os::raw::c_int; pub const LIBESEDB_FILE_TYPES_LIBESEDB_FILE_TYPE_DATABASE: LIBESEDB_FILE_TYPES = 0; pub const LIBESEDB_FILE_TYPES_LIBESEDB_FILE_TYPE_STREAMING_FILE: LIBESEDB_FILE_TYPES = 1; @@ -3190,8 +3200,7 @@ pub const LIBESEDB_ARGUMENT_ERROR_LIBESEDB_ARGUMENT_ERROR_VALUE_LESS_THAN_ZERO: #[doc = " The argument contains a value zero or less"] pub const LIBESEDB_ARGUMENT_ERROR_LIBESEDB_ARGUMENT_ERROR_VALUE_ZERO_OR_LESS: LIBESEDB_ARGUMENT_ERROR = 3; -#[doc = " The argument contains a value that exceeds the maximum"] -#[doc = " for the specific type"] +#[doc = " The argument contains a value that exceeds the maximum\n for the specific type"] pub const LIBESEDB_ARGUMENT_ERROR_LIBESEDB_ARGUMENT_ERROR_VALUE_EXCEEDS_MAXIMUM: LIBESEDB_ARGUMENT_ERROR = 4; #[doc = " The argument contains a value that is too small"] @@ -3209,8 +3218,7 @@ pub const LIBESEDB_ARGUMENT_ERROR_LIBESEDB_ARGUMENT_ERROR_UNSUPPORTED_VALUE: #[doc = " The argument contains a value that conficts with another argument"] pub const LIBESEDB_ARGUMENT_ERROR_LIBESEDB_ARGUMENT_ERROR_CONFLICTING_VALUE: LIBESEDB_ARGUMENT_ERROR = 9; -#[doc = " The argument error codes"] -#[doc = " to signify errors regarding arguments passed to a function"] +#[doc = " The argument error codes\n to signify errors regarding arguments passed to a function"] pub type LIBESEDB_ARGUMENT_ERROR = ::std::os::raw::c_int; pub const LIBESEDB_CONVERSION_ERROR_LIBESEDB_CONVERSION_ERROR_GENERIC: LIBESEDB_CONVERSION_ERROR = 0; @@ -3220,8 +3228,7 @@ pub const LIBESEDB_CONVERSION_ERROR_LIBESEDB_CONVERSION_ERROR_INPUT_FAILED: #[doc = " The conversion failed on the output"] pub const LIBESEDB_CONVERSION_ERROR_LIBESEDB_CONVERSION_ERROR_OUTPUT_FAILED: LIBESEDB_CONVERSION_ERROR = 2; -#[doc = " The conversion error codes"] -#[doc = " to signify errors regarding conversions"] +#[doc = " The conversion error codes\n to signify errors regarding conversions"] pub type LIBESEDB_CONVERSION_ERROR = ::std::os::raw::c_int; pub const LIBESEDB_COMPRESSION_ERROR_LIBESEDB_COMPRESSION_ERROR_GENERIC: LIBESEDB_COMPRESSION_ERROR = 0; @@ -3231,8 +3238,7 @@ pub const LIBESEDB_COMPRESSION_ERROR_LIBESEDB_COMPRESSION_ERROR_COMPRESS_FAILED: #[doc = " The decompression failed"] pub const LIBESEDB_COMPRESSION_ERROR_LIBESEDB_COMPRESSION_ERROR_DECOMPRESS_FAILED: LIBESEDB_COMPRESSION_ERROR = 2; -#[doc = " The compression error codes"] -#[doc = " to signify errors regarding compression"] +#[doc = " The compression error codes\n to signify errors regarding compression"] pub type LIBESEDB_COMPRESSION_ERROR = ::std::os::raw::c_int; pub const LIBESEDB_IO_ERROR_LIBESEDB_IO_ERROR_GENERIC: LIBESEDB_IO_ERROR = 0; #[doc = " The open failed"] @@ -3253,8 +3259,7 @@ pub const LIBESEDB_IO_ERROR_LIBESEDB_IO_ERROR_INVALID_RESOURCE: LIBESEDB_IO_ERRO pub const LIBESEDB_IO_ERROR_LIBESEDB_IO_ERROR_IOCTL_FAILED: LIBESEDB_IO_ERROR = 8; #[doc = " The unlink failed"] pub const LIBESEDB_IO_ERROR_LIBESEDB_IO_ERROR_UNLINK_FAILED: LIBESEDB_IO_ERROR = 9; -#[doc = " The input/output error codes"] -#[doc = " to signify errors regarding input/output"] +#[doc = " The input/output error codes\n to signify errors regarding input/output"] pub type LIBESEDB_IO_ERROR = ::std::os::raw::c_int; pub const LIBESEDB_INPUT_ERROR_LIBESEDB_INPUT_ERROR_GENERIC: LIBESEDB_INPUT_ERROR = 0; #[doc = " The input contains invalid data"] @@ -3263,11 +3268,9 @@ pub const LIBESEDB_INPUT_ERROR_LIBESEDB_INPUT_ERROR_INVALID_DATA: LIBESEDB_INPUT pub const LIBESEDB_INPUT_ERROR_LIBESEDB_INPUT_ERROR_SIGNATURE_MISMATCH: LIBESEDB_INPUT_ERROR = 2; #[doc = " A checksum in the input did not match"] pub const LIBESEDB_INPUT_ERROR_LIBESEDB_INPUT_ERROR_CHECKSUM_MISMATCH: LIBESEDB_INPUT_ERROR = 3; -#[doc = " A value in the input did not match a previously"] -#[doc = " read value or calculated value"] +#[doc = " A value in the input did not match a previously\n read value or calculated value"] pub const LIBESEDB_INPUT_ERROR_LIBESEDB_INPUT_ERROR_VALUE_MISMATCH: LIBESEDB_INPUT_ERROR = 4; -#[doc = " The input error codes"] -#[doc = " to signify errors regarding handing input data"] +#[doc = " The input error codes\n to signify errors regarding handing input data"] pub type LIBESEDB_INPUT_ERROR = ::std::os::raw::c_int; pub const LIBESEDB_MEMORY_ERROR_LIBESEDB_MEMORY_ERROR_GENERIC: LIBESEDB_MEMORY_ERROR = 0; #[doc = " There is insufficient memory available"] @@ -3276,8 +3279,7 @@ pub const LIBESEDB_MEMORY_ERROR_LIBESEDB_MEMORY_ERROR_INSUFFICIENT: LIBESEDB_MEM pub const LIBESEDB_MEMORY_ERROR_LIBESEDB_MEMORY_ERROR_COPY_FAILED: LIBESEDB_MEMORY_ERROR = 2; #[doc = " The memory failed to be set"] pub const LIBESEDB_MEMORY_ERROR_LIBESEDB_MEMORY_ERROR_SET_FAILED: LIBESEDB_MEMORY_ERROR = 3; -#[doc = " The memory error codes"] -#[doc = " to signify errors regarding memory"] +#[doc = " The memory error codes\n to signify errors regarding memory"] pub type LIBESEDB_MEMORY_ERROR = ::std::os::raw::c_int; pub const LIBESEDB_OUTPUT_ERROR_LIBESEDB_OUTPUT_ERROR_GENERIC: LIBESEDB_OUTPUT_ERROR = 0; #[doc = " There is insuficient space to write the output"] @@ -3321,8 +3323,7 @@ pub const LIBESEDB_RUNTIME_ERROR_LIBESEDB_RUNTIME_ERROR_UNSUPPORTED_VALUE: LIBES #[doc = " An abort was requested"] pub const LIBESEDB_RUNTIME_ERROR_LIBESEDB_RUNTIME_ERROR_ABORT_REQUESTED: LIBESEDB_RUNTIME_ERROR = 15; -#[doc = " The runtime error codes"] -#[doc = " to signify errors regarding runtime processing"] +#[doc = " The runtime error codes\n to signify errors regarding runtime processing"] pub type LIBESEDB_RUNTIME_ERROR = ::std::os::raw::c_int; pub type fpos_t = ::std::os::raw::c_longlong; extern "C" { @@ -3346,11 +3347,11 @@ extern "C" { extern "C" { pub fn fread_s( _Buffer: *mut ::std::os::raw::c_void, - _BufferSize: size_t, - _ElementSize: size_t, - _ElementCount: size_t, + _BufferSize: usize, + _ElementSize: usize, + _ElementCount: usize, _Stream: *mut FILE, - ) -> size_t; + ) -> usize; } extern "C" { pub fn freopen_s( @@ -3557,7 +3558,7 @@ extern "C" { _Stream: *mut FILE, _Buffer: *mut ::std::os::raw::c_char, _Mode: ::std::os::raw::c_int, - _Size: size_t, + _Size: usize, ) -> ::std::os::raw::c_int; } extern "C" { @@ -3599,19 +3600,19 @@ extern "C" { extern "C" { pub fn _fread_nolock( _Buffer: *mut ::std::os::raw::c_void, - _ElementSize: size_t, - _ElementCount: size_t, + _ElementSize: usize, + _ElementCount: usize, _Stream: *mut FILE, - ) -> size_t; + ) -> usize; } extern "C" { pub fn _fread_nolock_s( _Buffer: *mut ::std::os::raw::c_void, - _BufferSize: size_t, - _ElementSize: size_t, - _ElementCount: size_t, + _BufferSize: usize, + _ElementSize: usize, + _ElementCount: usize, _Stream: *mut FILE, - ) -> size_t; + ) -> usize; } extern "C" { pub fn _fseek_nolock( @@ -3636,10 +3637,10 @@ extern "C" { extern "C" { pub fn _fwrite_nolock( _Buffer: *const ::std::os::raw::c_void, - _ElementSize: size_t, - _ElementCount: size_t, + _ElementSize: usize, + _ElementCount: usize, _Stream: *mut FILE, - ) -> size_t; + ) -> usize; } extern "C" { pub fn _getc_nolock(_Stream: *mut FILE) -> ::std::os::raw::c_int; @@ -3705,7 +3706,7 @@ extern "C" { pub fn __stdio_common_vsprintf( _Options: ::std::os::raw::c_ulonglong, _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: size_t, + _BufferCount: usize, _Format: *const ::std::os::raw::c_char, _Locale: _locale_t, _ArgList: va_list, @@ -3715,7 +3716,7 @@ extern "C" { pub fn __stdio_common_vsprintf_s( _Options: ::std::os::raw::c_ulonglong, _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: size_t, + _BufferCount: usize, _Format: *const ::std::os::raw::c_char, _Locale: _locale_t, _ArgList: va_list, @@ -3725,8 +3726,8 @@ extern "C" { pub fn __stdio_common_vsnprintf_s( _Options: ::std::os::raw::c_ulonglong, _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: size_t, - _MaxCount: size_t, + _BufferCount: usize, + _MaxCount: usize, _Format: *const ::std::os::raw::c_char, _Locale: _locale_t, _ArgList: va_list, @@ -3736,7 +3737,7 @@ extern "C" { pub fn __stdio_common_vsprintf_p( _Options: ::std::os::raw::c_ulonglong, _Buffer: *mut ::std::os::raw::c_char, - _BufferCount: size_t, + _BufferCount: usize, _Format: *const ::std::os::raw::c_char, _Locale: _locale_t, _ArgList: va_list, @@ -3746,7 +3747,7 @@ extern "C" { pub fn __stdio_common_vsscanf( _Options: ::std::os::raw::c_ulonglong, _Buffer: *const ::std::os::raw::c_char, - _BufferCount: size_t, + _BufferCount: usize, _Format: *const ::std::os::raw::c_char, _Locale: _locale_t, _ArgList: va_list, @@ -3797,26 +3798,21 @@ extern "C" { pub fn libesedb_get_access_flags_read() -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the narrow system string codepage"] - #[doc = " A value of 0 represents no codepage, UTF-8 encoding is used instead"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the narrow system string codepage\n A value of 0 represents no codepage, UTF-8 encoding is used instead\n Returns 1 if successful or -1 on error"] pub fn libesedb_get_codepage( codepage: *mut ::std::os::raw::c_int, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Sets the narrow system string codepage"] - #[doc = " A value of 0 represents no codepage, UTF-8 encoding is used instead"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Sets the narrow system string codepage\n A value of 0 represents no codepage, UTF-8 encoding is used instead\n Returns 1 if successful or -1 on error"] pub fn libesedb_set_codepage( codepage: ::std::os::raw::c_int, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Determines if a file contains an ESEDB file signature"] - #[doc = " Returns 1 if true, 0 if not or -1 on error"] + #[doc = " Determines if a file contains an ESEDB file signature\n Returns 1 if true, 0 if not or -1 on error"] pub fn libesedb_check_file_signature( filename: *const ::std::os::raw::c_char, error: *mut *mut libesedb_error_t, @@ -3827,25 +3823,21 @@ extern "C" { pub fn libesedb_notify_set_verbose(verbose: ::std::os::raw::c_int); } extern "C" { - #[doc = " Sets the notification stream"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Sets the notification stream\n Returns 1 if successful or -1 on error"] pub fn libesedb_notify_set_stream( stream: *mut FILE, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Opens the notification stream using a filename"] - #[doc = " The stream is opened in append mode"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Opens the notification stream using a filename\n The stream is opened in append mode\n Returns 1 if successful or -1 on error"] pub fn libesedb_notify_stream_open( filename: *const ::std::os::raw::c_char, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Closes the notification stream if opened using a filename"] - #[doc = " Returns 0 if successful or -1 on error"] + #[doc = " Closes the notification stream if opened using a filename\n Returns 0 if successful or -1 on error"] pub fn libesedb_notify_stream_close(error: *mut *mut libesedb_error_t) -> ::std::os::raw::c_int; } @@ -3854,69 +3846,58 @@ extern "C" { pub fn libesedb_error_free(error: *mut *mut libesedb_error_t); } extern "C" { - #[doc = " Prints a descriptive string of the error to the stream"] - #[doc = " Returns the number of printed characters if successful or -1 on error"] + #[doc = " Prints a descriptive string of the error to the stream\n Returns the number of printed characters if successful or -1 on error"] pub fn libesedb_error_fprint( error: *mut libesedb_error_t, stream: *mut FILE, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Prints a descriptive string of the error to the string"] - #[doc = " The end-of-string character is not included in the return value"] - #[doc = " Returns the number of printed characters if successful or -1 on error"] + #[doc = " Prints a descriptive string of the error to the string\n The end-of-string character is not included in the return value\n Returns the number of printed characters if successful or -1 on error"] pub fn libesedb_error_sprint( error: *mut libesedb_error_t, string: *mut ::std::os::raw::c_char, - size: size_t, + size: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Prints a backtrace of the error to the stream"] - #[doc = " Returns the number of printed characters if successful or -1 on error"] + #[doc = " Prints a backtrace of the error to the stream\n Returns the number of printed characters if successful or -1 on error"] pub fn libesedb_error_backtrace_fprint( error: *mut libesedb_error_t, stream: *mut FILE, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Prints a backtrace of the error to the string"] - #[doc = " The end-of-string character is not included in the return value"] - #[doc = " Returns the number of printed characters if successful or -1 on error"] + #[doc = " Prints a backtrace of the error to the string\n The end-of-string character is not included in the return value\n Returns the number of printed characters if successful or -1 on error"] pub fn libesedb_error_backtrace_sprint( error: *mut libesedb_error_t, string: *mut ::std::os::raw::c_char, - size: size_t, + size: usize, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Creates a file"] - #[doc = " Make sure the value file is referencing, is set to NULL"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Creates a file\n Make sure the value file is referencing, is set to NULL\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_initialize( file: *mut *mut libesedb_file_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Frees a file"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Frees a file\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_free( file: *mut *mut libesedb_file_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Signals a file to abort its current activity"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Signals a file to abort its current activity\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_signal_abort( file: *mut libesedb_file_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Opens a file"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Opens a file\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_open( file: *mut libesedb_file_t, filename: *const ::std::os::raw::c_char, @@ -3925,16 +3906,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Closes a file"] - #[doc = " Returns 0 if successful or -1 on error"] + #[doc = " Closes a file\n Returns 0 if successful or -1 on error"] pub fn libesedb_file_close( file: *mut libesedb_file_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the file type"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the file type\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_get_type( file: *mut libesedb_file_t, type_: *mut u32, @@ -3942,8 +3921,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the file (current) format version"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the file (current) format version\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_get_format_version( file: *mut libesedb_file_t, format_version: *mut u32, @@ -3952,8 +3930,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the file creation version"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the file creation version\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_get_creation_format_version( file: *mut libesedb_file_t, format_version: *mut u32, @@ -3962,8 +3939,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the file page size"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the file page size\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_get_page_size( file: *mut libesedb_file_t, page_size: *mut u32, @@ -3971,8 +3947,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the number of tables"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the number of tables\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_get_number_of_tables( file: *mut libesedb_file_t, number_of_tables: *mut ::std::os::raw::c_int, @@ -3980,8 +3955,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the table for the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the table for the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_file_get_table( file: *mut libesedb_file_t, table_entry: ::std::os::raw::c_int, @@ -3990,38 +3964,34 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the table for the UTF-8 encoded name"] - #[doc = " Returns 1 if successful, 0 if no table could be found or -1 on error"] + #[doc = " Retrieves the table for the UTF-8 encoded name\n Returns 1 if successful, 0 if no table could be found or -1 on error"] pub fn libesedb_file_get_table_by_utf8_name( file: *mut libesedb_file_t, utf8_string: *const u8, - utf8_string_length: size_t, + utf8_string_length: usize, table: *mut *mut libesedb_table_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the table for the UTF-16 encoded name"] - #[doc = " Returns 1 if successful, 0 if no table could be found or -1 on error"] + #[doc = " Retrieves the table for the UTF-16 encoded name\n Returns 1 if successful, 0 if no table could be found or -1 on error"] pub fn libesedb_file_get_table_by_utf16_name( file: *mut libesedb_file_t, utf16_string: *const u16, - utf16_string_length: size_t, + utf16_string_length: usize, table: *mut *mut libesedb_table_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Frees a table"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Frees a table\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_free( table: *mut *mut libesedb_table_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the table identifier or Father Data Page (FDP) object identifier"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the table identifier or Father Data Page (FDP) object identifier\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_identifier( table: *mut libesedb_table_t, identifier: *mut u32, @@ -4029,96 +3999,75 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-8 encoded string of the table name"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-8 encoded string of the table name\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_utf8_name_size( table: *mut libesedb_table_t, - utf8_string_size: *mut size_t, + utf8_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-8 encoded string of the table name"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-8 encoded string of the table name\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_utf8_name( table: *mut libesedb_table_t, utf8_string: *mut u8, - utf8_string_size: size_t, + utf8_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-16 encoded string of the table name"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-16 encoded string of the table name\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_utf16_name_size( table: *mut libesedb_table_t, - utf16_string_size: *mut size_t, + utf16_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-16 encoded string of the table name"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-16 encoded string of the table name\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_utf16_name( table: *mut libesedb_table_t, utf16_string: *mut u16, - utf16_string_size: size_t, + utf16_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-8 encoded string of the template name"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-8 encoded string of the template name\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_utf8_template_name_size( table: *mut libesedb_table_t, - utf8_string_size: *mut size_t, + utf8_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-8 encoded string of the template name"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-8 encoded string of the template name\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_utf8_template_name( table: *mut libesedb_table_t, utf8_string: *mut u8, - utf8_string_size: size_t, + utf8_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-16 encoded string of the template name"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-16 encoded string of the template name\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_utf16_template_name_size( table: *mut libesedb_table_t, - utf16_string_size: *mut size_t, + utf16_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-16 encoded string of the template name"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-16 encoded string of the template name\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_utf16_template_name( table: *mut libesedb_table_t, utf16_string: *mut u16, - utf16_string_size: size_t, + utf16_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the number of columns in the table"] - #[doc = ""] - #[doc = " Use the flag LIBESEDB_GET_COLUMN_FLAG_IGNORE_TEMPLATE_TABLE to retrieve the number of columns"] - #[doc = " ignoring the template table"] - #[doc = ""] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the number of columns in the table\n\n Use the flag LIBESEDB_GET_COLUMN_FLAG_IGNORE_TEMPLATE_TABLE to retrieve the number of columns\n ignoring the template table\n\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_number_of_columns( table: *mut libesedb_table_t, number_of_columns: *mut ::std::os::raw::c_int, @@ -4127,12 +4076,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the column for the specific entry"] - #[doc = ""] - #[doc = " Use the flag LIBESEDB_GET_COLUMN_FLAG_IGNORE_TEMPLATE_TABLE to retrieve the column"] - #[doc = " ignoring the template table"] - #[doc = ""] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the column for the specific entry\n\n Use the flag LIBESEDB_GET_COLUMN_FLAG_IGNORE_TEMPLATE_TABLE to retrieve the column\n ignoring the template table\n\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_column( table: *mut libesedb_table_t, column_entry: ::std::os::raw::c_int, @@ -4142,8 +4086,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the number of indexes"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the number of indexes\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_number_of_indexes( table: *mut libesedb_table_t, number_of_indexes: *mut ::std::os::raw::c_int, @@ -4151,8 +4094,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the index for the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the index for the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_index( table: *mut libesedb_table_t, index_entry: ::std::os::raw::c_int, @@ -4161,8 +4103,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the number of records in the table"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the number of records in the table\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_number_of_records( table: *mut libesedb_table_t, number_of_records: *mut ::std::os::raw::c_int, @@ -4170,8 +4111,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the record for the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the record for the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_table_get_record( table: *mut libesedb_table_t, record_entry: ::std::os::raw::c_int, @@ -4180,16 +4120,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Frees a column"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Frees a column\n Returns 1 if successful or -1 on error"] pub fn libesedb_column_free( column: *mut *mut libesedb_column_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the column identifier"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the column identifier\n Returns 1 if successful or -1 on error"] pub fn libesedb_column_get_identifier( column: *mut libesedb_column_t, identifier: *mut u32, @@ -4197,8 +4135,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the column type"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the column type\n Returns 1 if successful or -1 on error"] pub fn libesedb_column_get_type( column: *mut libesedb_column_t, type_: *mut u32, @@ -4206,58 +4143,48 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-8 encoded string of the column name"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-8 encoded string of the column name\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_column_get_utf8_name_size( column: *mut libesedb_column_t, - utf8_string_size: *mut size_t, + utf8_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-8 encoded string of the column name"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-8 encoded string of the column name\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_column_get_utf8_name( column: *mut libesedb_column_t, utf8_string: *mut u8, - utf8_string_size: size_t, + utf8_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-16 encoded string of the column name"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-16 encoded string of the column name\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_column_get_utf16_name_size( column: *mut libesedb_column_t, - utf16_string_size: *mut size_t, + utf16_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-16 encoded string of the column name"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-16 encoded string of the column name\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_column_get_utf16_name( column: *mut libesedb_column_t, utf16_string: *mut u16, - utf16_string_size: size_t, + utf16_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Frees a index"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Frees a index\n Returns 1 if successful or -1 on error"] pub fn libesedb_index_free( index: *mut *mut libesedb_index_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the index identifier or Father Data Page (FDP) object identifier"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the index identifier or Father Data Page (FDP) object identifier\n Returns 1 if successful or -1 on error"] pub fn libesedb_index_get_identifier( index: *mut libesedb_index_t, identifier: *mut u32, @@ -4265,50 +4192,41 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-8 encoded string of the index name"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-8 encoded string of the index name\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_index_get_utf8_name_size( index: *mut libesedb_index_t, - utf8_string_size: *mut size_t, + utf8_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-8 encoded string of the index name"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-8 encoded string of the index name\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_index_get_utf8_name( index: *mut libesedb_index_t, utf8_string: *mut u8, - utf8_string_size: size_t, + utf8_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-16 encoded string of the index name"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-16 encoded string of the index name\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_index_get_utf16_name_size( index: *mut libesedb_index_t, - utf16_string_size: *mut size_t, + utf16_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-16 encoded string of the index name"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-16 encoded string of the index name\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_index_get_utf16_name( index: *mut libesedb_index_t, utf16_string: *mut u16, - utf16_string_size: size_t, + utf16_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the number of records in the index"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the number of records in the index\n Returns 1 if successful or -1 on error"] pub fn libesedb_index_get_number_of_records( index: *mut libesedb_index_t, number_of_records: *mut ::std::os::raw::c_int, @@ -4316,8 +4234,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the record for the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the record for the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_index_get_record( index: *mut libesedb_index_t, record_entry: ::std::os::raw::c_int, @@ -4326,16 +4243,14 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Frees a record"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Frees a record\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_free( record: *mut *mut libesedb_record_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the number of values in the record"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the number of values in the record\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_number_of_values( record: *mut libesedb_record_t, number_of_values: *mut ::std::os::raw::c_int, @@ -4343,8 +4258,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the column identifier of the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the column identifier of the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_column_identifier( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4353,8 +4267,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the column type of the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the column type of the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_column_type( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4363,75 +4276,64 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-8 encoded string of the column name of the specific entry"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-8 encoded string of the column name of the specific entry\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_utf8_column_name_size( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, - utf8_string_size: *mut size_t, + utf8_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-8 encoded string of the column name of the specific entry"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-8 encoded string of the column name of the specific entry\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_utf8_column_name( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, utf8_string: *mut u8, - utf8_string_size: size_t, + utf8_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-16 encoded string of the column name of the specific entry"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-16 encoded string of the column name of the specific entry\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_utf16_column_name_size( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, - utf16_string_size: *mut size_t, + utf16_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-16 encoded string of the column name of the specific entry"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-16 encoded string of the column name of the specific entry\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_utf16_column_name( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, utf16_string: *mut u16, - utf16_string_size: size_t, + utf16_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the value data size of the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the value data size of the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_value_data_size( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, - value_data_size: *mut size_t, + value_data_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the value data of the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the value data of the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_value_data( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, value_data: *mut u8, - value_data_size: size_t, + value_data_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the value data flags of the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the value data flags of the specific entry\n Returns 1 if successful or -1 on error"] pub fn libesedb_record_get_value_data_flags( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4440,8 +4342,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the boolean value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the boolean value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_boolean( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4450,8 +4351,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 8-bit value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the 8-bit value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_8bit( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4460,8 +4360,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 16-bit value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the 16-bit value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_16bit( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4470,8 +4369,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 32-bit value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the 32-bit value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_32bit( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4480,8 +4378,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 64-bit value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the 64-bit value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_64bit( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4490,8 +4387,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 64-bit filetime value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the 64-bit filetime value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_filetime( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4500,8 +4396,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the single precision floating point value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the single precision floating point value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_floating_point_32bit( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4510,8 +4405,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the double precision floating point value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the double precision floating point value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_floating_point_64bit( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4520,77 +4414,64 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of an UTF-8 encoded string a specific entry"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the size of an UTF-8 encoded string a specific entry\n The returned size includes the end of string character\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_utf8_string_size( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, - utf8_string_size: *mut size_t, + utf8_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-8 encoded string of a specific entry"] - #[doc = " The function uses the codepage in the column definition if necessary"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the UTF-8 encoded string of a specific entry\n The function uses the codepage in the column definition if necessary\n The size should include the end of string character\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_utf8_string( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, utf8_string: *mut u8, - utf8_string_size: size_t, + utf8_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of an UTF-16 encoded string a specific entry"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the size of an UTF-16 encoded string a specific entry\n The returned size includes the end of string character\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_utf16_string_size( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, - utf16_string_size: *mut size_t, + utf16_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-16 encoded string of a specific entry"] - #[doc = " The function uses the codepage in the column definition if necessary"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the UTF-16 encoded string of a specific entry\n The function uses the codepage in the column definition if necessary\n The size should include the end of string character\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_utf16_string( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, utf16_string: *mut u16, - utf16_string_size: size_t, + utf16_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the binary data size of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the binary data size of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_binary_data_size( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, - binary_data_size: *mut size_t, + binary_data_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the binary data value of a specific entry"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the binary data value of a specific entry\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_record_get_value_binary_data( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, binary_data: *mut u8, - binary_data_size: size_t, + binary_data_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Determines if a specific entry is a long value"] - #[doc = " Returns 1 if true, 0 if not or -1 on error"] + #[doc = " Determines if a specific entry is a long value\n Returns 1 if true, 0 if not or -1 on error"] pub fn libesedb_record_is_long_value( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4598,8 +4479,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Determines if a specific entry is a multi value"] - #[doc = " Returns 1 if true, 0 if not or -1 on error"] + #[doc = " Determines if a specific entry is a multi value\n Returns 1 if true, 0 if not or -1 on error"] pub fn libesedb_record_is_multi_value( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4607,9 +4487,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the long value of a specific entry"] - #[doc = " Creates a new long value"] - #[doc = " Returns 1 if successful, 0 if the item does not contain such value or -1 on error"] + #[doc = " Retrieves the long value of a specific entry\n Creates a new long value\n Returns 1 if successful, 0 if the item does not contain such value or -1 on error"] pub fn libesedb_record_get_long_value( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4618,9 +4496,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the multi value of a specific entry"] - #[doc = " Creates a new multi value"] - #[doc = " Returns 1 if successful, 0 if the item does not contain such value or -1 on error"] + #[doc = " Retrieves the multi value of a specific entry\n Creates a new multi value\n Returns 1 if successful, 0 if the item does not contain such value or -1 on error"] pub fn libesedb_record_get_multi_value( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, @@ -4629,30 +4505,25 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the value of the specific entry"] - #[doc = " Returns 1 if successful or -1 on error"] - #[doc = ""] - #[doc = " This function is deprecated use the libesedb_record_get_value_data functions instead."] + #[doc = " Retrieves the value of the specific entry\n Returns 1 if successful or -1 on error\n\n This function is deprecated use the libesedb_record_get_value_data functions instead."] pub fn libesedb_record_get_value( record: *mut libesedb_record_t, value_entry: ::std::os::raw::c_int, value_data: *mut *mut u8, - value_data_size: *mut size_t, + value_data_size: *mut usize, value_flags: *mut u8, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Frees a long value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Frees a long value\n Returns 1 if successful or -1 on error"] pub fn libesedb_long_value_free( long_value: *mut *mut libesedb_long_value_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieve the data size"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieve the data size\n Returns 1 if successful or -1 on error"] pub fn libesedb_long_value_get_data_size( long_value: *mut libesedb_long_value_t, data_size: *mut size64_t, @@ -4660,18 +4531,16 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieve the data"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieve the data\n Returns 1 if successful or -1 on error"] pub fn libesedb_long_value_get_data( long_value: *mut libesedb_long_value_t, data: *mut u8, - data_size: size_t, + data_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieve the number of data segments"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieve the number of data segments\n Returns 1 if successful or -1 on error"] pub fn libesedb_long_value_get_number_of_data_segments( long_value: *mut libesedb_long_value_t, number_of_data_segments: *mut ::std::os::raw::c_int, @@ -4679,81 +4548,67 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieve the data segment size"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieve the data segment size\n Returns 1 if successful or -1 on error"] pub fn libesedb_long_value_get_data_segment_size( long_value: *mut libesedb_long_value_t, data_segment_index: ::std::os::raw::c_int, - data_size: *mut size_t, + data_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieve the data segment"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieve the data segment\n Returns 1 if successful or -1 on error"] pub fn libesedb_long_value_get_data_segment( long_value: *mut libesedb_long_value_t, data_segment_index: ::std::os::raw::c_int, data_segment: *mut u8, - data_size: size_t, + data_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the data as an UTF-8 encoded string"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the size of the data as an UTF-8 encoded string\n The returned size includes the end of string character\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_long_value_get_utf8_string_size( long_value: *mut libesedb_long_value_t, - utf8_string_size: *mut size_t, + utf8_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the data as an UTF-8 encoded string"] - #[doc = " The function uses the codepage in the column definition if necessary"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the data as an UTF-8 encoded string\n The function uses the codepage in the column definition if necessary\n The size should include the end of string character\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_long_value_get_utf8_string( long_value: *mut libesedb_long_value_t, utf8_string: *mut u8, - utf8_string_size: size_t, + utf8_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the data as an UTF-16 encoded string"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the size of the data as an UTF-16 encoded string\n The returned size includes the end of string character\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_long_value_get_utf16_string_size( long_value: *mut libesedb_long_value_t, - utf16_string_size: *mut size_t, + utf16_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the data as an UTF-16 encoded string"] - #[doc = " The function uses the codepage in the column definition if necessary"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful, 0 if value is NULL or -1 on error"] + #[doc = " Retrieves the data as an UTF-16 encoded string\n The function uses the codepage in the column definition if necessary\n The size should include the end of string character\n Returns 1 if successful, 0 if value is NULL or -1 on error"] pub fn libesedb_long_value_get_utf16_string( long_value: *mut libesedb_long_value_t, utf16_string: *mut u16, - utf16_string_size: size_t, + utf16_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Frees a multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Frees a multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_free( multi_value: *mut *mut libesedb_multi_value_t, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the column type"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the column type\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_column_type( multi_value: *mut libesedb_multi_value_t, column_type: *mut u32, @@ -4761,8 +4616,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the number of values in a multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the number of values in a multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_number_of_values( multi_value: *mut libesedb_multi_value_t, number_of_values: *mut ::std::os::raw::c_int, @@ -4770,29 +4624,26 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the value data size of the specific value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the value data size of the specific value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_data_size( multi_value: *mut libesedb_multi_value_t, value_entry: ::std::os::raw::c_int, - value_data_size: *mut size_t, + value_data_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the value data of the specific value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the value data of the specific value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_data( multi_value: *mut libesedb_multi_value_t, value_entry: ::std::os::raw::c_int, value_data: *mut u8, - value_data_size: size_t, + value_data_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 8-bit value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the 8-bit value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_8bit( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, @@ -4801,8 +4652,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 16-bit value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the 16-bit value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_16bit( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, @@ -4811,8 +4661,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 32-bit value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the 32-bit value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_32bit( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, @@ -4821,8 +4670,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 64-bit value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the 64-bit value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_64bit( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, @@ -4831,8 +4679,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 32-bit floating point value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the 32-bit floating point value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_floating_point_32bit( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, @@ -4841,8 +4688,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 64-bit floating point value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the 64-bit floating point value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_floating_point_64bit( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, @@ -4851,8 +4697,7 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the 64-bit filetime value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the 64-bit filetime value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_filetime( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, @@ -4861,83 +4706,70 @@ extern "C" { ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-8 encoded string of a specific value of the multi value"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-8 encoded string of a specific value of the multi value\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_utf8_string_size( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, - utf8_string_size: *mut size_t, + utf8_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-8 encoded string value of a specific value of the multi value"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-8 encoded string value of a specific value of the multi value\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_utf8_string( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, utf8_string: *mut u8, - utf8_string_size: size_t, + utf8_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of the UTF-16 encoded string of a specific value of the multi value"] - #[doc = " The returned size includes the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of the UTF-16 encoded string of a specific value of the multi value\n The returned size includes the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_utf16_string_size( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, - utf16_string_size: *mut size_t, + utf16_string_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the UTF-16 encoded string value of a specific value of the multi value"] - #[doc = " The size should include the end of string character"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the UTF-16 encoded string value of a specific value of the multi value\n The size should include the end of string character\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_utf16_string( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, utf16_string: *mut u16, - utf16_string_size: size_t, + utf16_string_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the size of a binary data value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the size of a binary data value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_binary_data_size( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, - binary_data_size: *mut size_t, + binary_data_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves the binary data value of a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] + #[doc = " Retrieves the binary data value of a specific value of the multi value\n Returns 1 if successful or -1 on error"] pub fn libesedb_multi_value_get_value_binary_data( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, binary_data: *mut u8, - binary_data_size: size_t, + binary_data_size: usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } extern "C" { - #[doc = " Retrieves a specific value of the multi value"] - #[doc = " Returns 1 if successful or -1 on error"] - #[doc = ""] - #[doc = " This function is deprecated use the libesedb_multi_value_get_value_data functions instead."] + #[doc = " Retrieves a specific value of the multi value\n Returns 1 if successful or -1 on error\n\n This function is deprecated use the libesedb_multi_value_get_value_data functions instead."] pub fn libesedb_multi_value_get_value( multi_value: *mut libesedb_multi_value_t, multi_value_index: ::std::os::raw::c_int, value_type: *mut u32, value_data: *mut *mut u8, - value_data_size: *mut size_t, + value_data_size: *mut usize, error: *mut *mut libesedb_error_t, ) -> ::std::os::raw::c_int; } diff --git a/libesedb-sys/src/lib.rs b/libesedb-sys/src/lib.rs index ad35701..52551b3 100644 --- a/libesedb-sys/src/lib.rs +++ b/libesedb-sys/src/lib.rs @@ -17,7 +17,7 @@ //! ## Rebuilding Bindings //! //! ``` -//! bindgen libesedb-20210424/include/libesedb.h -o src/bindings.rs -- -Ilibesedb-20210424/include -fparse-all-comments +//! bindgen libesedb-20230824/include/libesedb.h -o src/bindings.rs -- -Ilibesedb-20210424/include -fparse-all-comments //! ``` //! //! ## Configuring Max Leaf-Pages @@ -37,6 +37,21 @@ //! LIBESEDB_MAXIMUM_NUMBER_OF_LEAF_PAGES = "32 * 1024" //! ``` //! +//! ## Updating Bundled libesedb +//! +//! * Download/Clone head of the `main` branch +//! * `git clone --branch main --depth 1 https://github.com/libyal/libesedb` +//! * +//! * Follow Build Instructions +//! * Run the following +//! * `./synclibs.sh` +//! * `./autogen.sh` +//! * `./configure` +//! * `make dist` +//! * Output should include a `.tar.gz` containing the source distribution version +//! * Note: I used Cygwin on Windows, you will need the packages mentioned here: +//! +//! //! ## Authors //! //! ```