diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:07:14 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-04 18:07:14 +0000 |
commit | a175314c3e5827eb193872241446f2f8f5c9d33c (patch) | |
tree | cd3d60ca99ae00829c52a6ca79150a5b6e62528b /storage/mroonga/vendor/groonga/build | |
parent | Initial commit. (diff) | |
download | mariadb-10.5-upstream/1%10.5.12.tar.xz mariadb-10.5-upstream/1%10.5.12.zip |
Adding upstream version 1:10.5.12.upstream/1%10.5.12upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'storage/mroonga/vendor/groonga/build')
10 files changed, 256 insertions, 0 deletions
diff --git a/storage/mroonga/vendor/groonga/build/Makefile.am b/storage/mroonga/vendor/groonga/build/Makefile.am new file mode 100644 index 00000000..506a11dc --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/Makefile.am @@ -0,0 +1,2 @@ +SUBDIRS = \ + cmake_modules diff --git a/storage/mroonga/vendor/groonga/build/ac_macros/check_functions.m4 b/storage/mroonga/vendor/groonga/build/ac_macros/check_functions.m4 new file mode 100644 index 00000000..a0b424b3 --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/ac_macros/check_functions.m4 @@ -0,0 +1,11 @@ +# -*- autoconf -*- + +AC_CHECK_FUNCS(_gmtime64_s) +AC_CHECK_FUNCS(_localtime64_s) +AC_CHECK_FUNCS(_strtoui64) +AC_CHECK_FUNCS(gmtime_r) +AC_CHECK_FUNCS(localtime_r) +AC_CHECK_FUNCS(mkstemp) +AC_CHECK_FUNCS(strcasecmp) +AC_CHECK_FUNCS(strncasecmp) +AC_CHECK_FUNCS(strtoull) diff --git a/storage/mroonga/vendor/groonga/build/ac_macros/check_headers.m4 b/storage/mroonga/vendor/groonga/build/ac_macros/check_headers.m4 new file mode 100644 index 00000000..fca84651 --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/ac_macros/check_headers.m4 @@ -0,0 +1,19 @@ +# -*- autoconf -*- + +AC_CHECK_HEADERS(dirent.h) +AC_CHECK_HEADERS(dlfcn.h) +AC_CHECK_HEADERS(errno.h) +AC_CHECK_HEADERS(execinfo.h) +AC_CHECK_HEADERS(inttypes.h) +AC_CHECK_HEADERS(netdb.h) +AC_CHECK_HEADERS(signal.h) +AC_CHECK_HEADERS(sys/mman.h) +AC_CHECK_HEADERS(sys/param.h) +AC_CHECK_HEADERS(sys/resource.h) +AC_CHECK_HEADERS(sys/socket.h) +AC_CHECK_HEADERS(sys/sysctl.h) +AC_CHECK_HEADERS(sys/time.h) +AC_CHECK_HEADERS(sys/wait.h) +AC_CHECK_HEADERS(time.h) +AC_CHECK_HEADERS(ucontext.h) +AC_CHECK_HEADERS(unistd.h) diff --git a/storage/mroonga/vendor/groonga/build/cmake_modules/Makefile.am b/storage/mroonga/vendor/groonga/build/cmake_modules/Makefile.am new file mode 100644 index 00000000..83fb0f0c --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/cmake_modules/Makefile.am @@ -0,0 +1,2 @@ +EXTRA_DIST = \ + ReadFileList.cmake diff --git a/storage/mroonga/vendor/groonga/build/cmake_modules/ReadFileList.cmake b/storage/mroonga/vendor/groonga/build/cmake_modules/ReadFileList.cmake new file mode 100644 index 00000000..204f59f6 --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/cmake_modules/ReadFileList.cmake @@ -0,0 +1,27 @@ +# Copyright(C) 2012 Brazil +# +# This library is free software; you can redistribute it and/or +# modify it under the terms of the GNU Lesser General Public +# License version 2.1 as published by the Free Software Foundation. +# +# This library is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Lesser General Public License for more details. +# +# You should have received a copy of the GNU Lesser General Public +# License along with this library; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1335 USA + +macro(read_file_list file_name output_variable) + file(READ ${file_name} ${output_variable}) + # Remove variable declaration at the first line: + # "libgroonga_la_SOURCES = \" -> "" + string(REGEX REPLACE "^.*=[ \t]*\\\\" "" + ${output_variable} "${${output_variable}}") + # Remove white spaces: " com.c \\\n com.h \\\n" -> "com.c\\com.h" + string(REGEX REPLACE "[ \t\n]" "" ${output_variable} "${${output_variable}}") + # Convert string to list: "com.c\\com.h" -> "com.c;com.h" + # NOTE: List in CMake is ";" separated string. + string(REGEX REPLACE "\\\\" ";" ${output_variable} "${${output_variable}}") +endmacro() diff --git a/storage/mroonga/vendor/groonga/build/makefiles/LC_MESSAGES.am b/storage/mroonga/vendor/groonga/build/makefiles/LC_MESSAGES.am new file mode 100644 index 00000000..acfc3da2 --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/makefiles/LC_MESSAGES.am @@ -0,0 +1,5 @@ +BUILT_SOURCES = +EXTRA_DIST = +SUFFIXES = + +include $(top_srcdir)/build/makefiles/gettext.am diff --git a/storage/mroonga/vendor/groonga/build/makefiles/gettext.am b/storage/mroonga/vendor/groonga/build/makefiles/gettext.am new file mode 100644 index 00000000..c6e57c7b --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/makefiles/gettext.am @@ -0,0 +1,84 @@ +include $(top_srcdir)/doc/files.am +include $(top_srcdir)/build/makefiles/sphinx-build.am + +CLEANFILES = + +EXTRA_DIST += \ + $(po_files) + +if DOCUMENT_AVAILABLE +EXTRA_DIST += \ + $(mo_files) +endif + +if DOCUMENT_BUILDABLE +BUILT_SOURCES += \ + mo-build-stamp +CLEANFILES += \ + pot-build-stamp \ + edit-po-build-stamp \ + mo-build-stamp +endif + +SUFFIXES += .pot .po .mo .edit + +.PHONY: gettext update build + +.pot.edit: + if test -f $*.po; then \ + msgmerge \ + --quiet \ + --sort-by-file \ + --output-file=$@.tmp \ + $*.po \ + $<; \ + else \ + msginit \ + --input=$< \ + --output-file=$@.tmp \ + --locale=$(LOCALE) \ + --no-translator; \ + fi + (echo "# -*- po -*-"; \ + GREP_OPTIONS= grep -v '^# -\*- po -\*-' $@.tmp | \ + GREP_OPTIONS= grep -v '^"POT-Creation-Date:') > $@ + rm $@.tmp + +.edit.po: + msgcat --no-location --output $@ $< + +.po.mo: + msgfmt -o $@ $< + +if DOCUMENT_BUILDABLE +update: edit-po-build-stamp +build: mo-build-stamp +else +update: +build: +endif + +html: build + +gettext: + rm *.pot || true + $(SPHINX_BUILD_COMMAND) -d doctrees -b gettext $(ALLSPHINXOPTS) . + xgettext --language Python --output conf.pot \ + $(top_srcdir)/doc/source/conf.py + +pot-build-stamp: $(absolute_source_files) + $(MAKE) gettext + @touch $@ + +edit-po-build-stamp: pot-build-stamp + $(MAKE) $(edit_po_files) + @touch $@ + +mo_build_stamp_dependencies = edit-po-build-stamp +if DOCUMENT_BUILDABLE +mo_build_stamp_dependencies += $(edit_po_files) +endif + +mo-build-stamp: $(mo_build_stamp_dependencies) + $(MAKE) $(mo_files) + @touch $@ diff --git a/storage/mroonga/vendor/groonga/build/makefiles/locale.am b/storage/mroonga/vendor/groonga/build/makefiles/locale.am new file mode 100644 index 00000000..414c19a7 --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/makefiles/locale.am @@ -0,0 +1,12 @@ +SUBDIRS = LC_MESSAGES + +BUILT_SOURCES = +EXTRA_DIST = + +include $(top_srcdir)/build/makefiles/sphinx.am + +init: + cd LC_MESSAGES && $(MAKE) $@ + +update-po: + cd LC_MESSAGES && $(MAKE) update diff --git a/storage/mroonga/vendor/groonga/build/makefiles/sphinx-build.am b/storage/mroonga/vendor/groonga/build/makefiles/sphinx-build.am new file mode 100644 index 00000000..047823b6 --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/makefiles/sphinx-build.am @@ -0,0 +1,14 @@ +# You can set these variables from the command line. +DOCTREES_BASE = doctrees + +SPHINXOPTS = + +# Internal variables. +SOURCE_DIR = $(abs_top_srcdir)/doc/source +ALLSPHINXOPTS = -E $(SPHINXOPTS) $(SOURCE_DIR) + +SPHINX_BUILD_COMMAND = \ + DOCUMENT_VERSION="$(DOCUMENT_VERSION)" \ + DOCUMENT_VERSION_FULL="$(DOCUMENT_VERSION_FULL)" \ + LOCALE="$(LOCALE)" \ + $(SPHINX_BUILD) diff --git a/storage/mroonga/vendor/groonga/build/makefiles/sphinx.am b/storage/mroonga/vendor/groonga/build/makefiles/sphinx.am new file mode 100644 index 00000000..161abe06 --- /dev/null +++ b/storage/mroonga/vendor/groonga/build/makefiles/sphinx.am @@ -0,0 +1,80 @@ +include $(top_srcdir)/doc/files.am +include $(top_srcdir)/build/makefiles/sphinx-build.am + +$(html_files): html-build-stamp +$(html_files_relative_from_locale_dir): html-build-stamp + +am__nobase_dist_doc_locale_DATA_DIST = +if DOCUMENT_AVAILABLE +doc_localedir = $(docdir)/$(LOCALE) +nobase_dist_doc_locale_DATA = \ + $(html_files_relative_from_locale_dir) +am__nobase_dist_doc_locale_DATA_DIST += \ + $(nobase_dist_doc_locale_DATA) +endif + +document_source_files = \ + $(absolute_source_files) \ + $(absolute_theme_files) \ + $(po_files_relative_from_locale_dir) \ + $(mo_files_relative_from_locale_dir) + +required_build_stamps = \ + html-build-stamp \ + mo-build-stamp + +if DOCUMENT_BUILDABLE +EXTRA_DIST += $(required_build_stamps) +endif + +generated_files = \ + $(DOCTREES_BASE) \ + html \ + html-build-stamp + +$(mo_files_relative_from_locale_dir): mo-build-stamp + +mo-build-stamp: $(po_files_relative_from_locale_dir) + cd LC_MESSAGES && $(MAKE) build + @touch $@ + +if DOCUMENT_BUILDABLE +clean-local: $(clean_targets) clean-doctrees + +clean-doctrees: + rm -rf $(DOCTREES_BASE) + +maintainer-clean-local: + rm -rf -- $(generated_files) +endif + +.PHONY: help +.PHONY: html clean-html + +if DOCUMENT_BUILDABLE +help: + @echo "Please use \`make <target>' where <target> is one of" + @echo " html to make standalone HTML files" + +html: html-recursive html-build-stamp + +clean_targets = \ + clean-html + +$(clean_targets): + target=`echo $@ | sed -e 's/^clean-//'`; \ + rm -rf $${target}-build-stamp $${target} + +build_stamps = \ + html-build-stamp + +$(build_stamps): $(document_source_files) + target=`echo $@ | sed -e 's/-build-stamp$$//'`; \ + $(SPHINX_BUILD_COMMAND) \ + -Dlanguage=$(LOCALE) \ + -d $(DOCTREES_BASE)/$${target} \ + -b $${target} \ + $(ALLSPHINXOPTS) \ + $${target} + @touch $@ +endif |