Convert meson to CMake, and removed all GNU Autohell

97 files changed +953 −8942

  • + CMakeLists.txt
  • + cmake/FontconfigConfig.cmake.in
  • + cmake/fontconfig.pc.in
  • + conf.d/CMakeLists.txt
  • + config.h.in
  • − Makefile.am
  • − Tools.mk
  • − autogen.sh
  • − build-aux/meson-dist-autotools.py
  • − build-aux/meson-dist-docs.py
  • − conf.d/Makefile.am
  • − conf.d/meson.build
  • − config-fixups.h
  • − configure.ac
  • − doc/Makefile.am
  • − doc/meson.build
  • − fc-cache/Makefile.am
  • − fc-cache/meson.build
  • − fc-case/Makefile.am
  • − fc-case/meson.build
  • − fc-cat/Makefile.am
  • − fc-cat/meson.build
  • − fc-conflist/Makefile.am
  • − fc-conflist/meson.build
  • − fc-const/Makefile.am
  • − fc-const/meson.build
  • − fc-fontations/meson.build
  • − fc-genconf/Makefile.am
  • − fc-genconf/meson.build
  • − fc-lang/Makefile.am
  • − fc-lang/meson.build
  • − fc-list/Makefile.am
  • − fc-list/meson.build
  • − fc-match/Makefile.am
  • − fc-match/meson.build
  • − fc-pattern/Makefile.am
  • − fc-pattern/meson.build
  • − fc-query/Makefile.am
  • − fc-query/meson.build
  • − fc-scan/Makefile.am
  • − fc-scan/meson.build
  • − fc-validate/Makefile.am
  • − fc-validate/meson.build
  • − fontconfig-zip.in
  • − fontconfig.pc.in
  • − fontconfig/Makefile.am
  • − fontconfig/meson.build
  • − git.mk
  • − its/Makefile.am
  • − its/fontconfig.its
  • − its/fontconfig.loc
  • − its/meson.build
  • − m4/.gitkeep
  • − m4/ac_check_symbol.m4
  • − m4/ax_cc_for_build.m4
  • − m4/ax_create_stdint_h.m4
  • − m4/ax_pthread.m4
  • − m4/pkg.m4
  • − m4/va_copy.m4
  • − meson-cc-tests/c99-vsnprint-test.c
  • − meson-cc-tests/flexible-array-member-test.c
  • − meson-cc-tests/freetype-pcf-long-family-names.c
  • − meson-cc-tests/gperf.txt
  • − meson-cc-tests/intel-atomic-primitives-test.c
  • − meson-cc-tests/pthread-prio-inherit-test.c
  • − meson-cc-tests/solaris-atomic-operations.c
  • − meson-cc-tests/stdatomic-primitives-test.c
  • − meson-config.h.in
  • − meson.build
  • − meson.options
  • − new-version.sh
  • − po-conf/ChangeLog
  • − po-conf/LINGUAS
  • − po-conf/Makevars
  • − po-conf/POTFILES.in
  • − po-conf/ka.po
  • − po-conf/meson.build
  • − po-conf/zh_CN.po
  • − po/ChangeLog
  • − po/LINGUAS
  • − po/Makevars
  • − po/POTFILES.in
  • − po/ka.po
  • − po/meson.build
  • − po/zh_CN.po
  • − src/Makefile.am
  • − src/meson.build
  • − subprojects/.gitignore
  • − subprojects/expat.wrap
  • − subprojects/freetype2.wrap
  • − subprojects/gperf.wrap
  • − subprojects/libintl/meson.build
  • − subprojects/libpng.wrap
  • − subprojects/libxml2.wrap
  • − subprojects/zlib.wrap
  • − test/Makefile.am
  • − test/meson.build
1diff --git a/CMakeLists.txt b/CMakeLists.txt
2new file mode 100644
3index 00000000..3bd7c500
4--- /dev/null
5+++ b/CMakeLists.txt
6@@ -0,0 +1,675 @@
7+cmake_minimum_required(VERSION 3.16)
8+
9+project(fontconfig
10+ VERSION 2.18.1
11+ LANGUAGES C
12+ DESCRIPTION "Font configuration and customization library")
13+
14+set(CMAKE_C_STANDARD 11)
15+set(CMAKE_C_STANDARD_REQUIRED ON)
16+if(NOT CMAKE_BUILD_TYPE AND NOT CMAKE_CONFIGURATION_TYPES)
17+ set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING "Build type" FORCE)
18+endif()
19+
20+list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
21+
22+include(GNUInstallDirs)
23+include(CheckIncludeFile)
24+include(CheckSymbolExists)
25+include(CheckStructHasMember)
26+include(CheckTypeSize)
27+include(CheckCSourceCompiles)
28+include(CMakePackageConfigHelpers)
29+
30+find_package(PkgConfig REQUIRED)
31+find_package(Python3 COMPONENTS Interpreter REQUIRED)
32+find_package(Threads REQUIRED)
33+find_program(GPERF_EXECUTABLE gperf REQUIRED)
34+
35+# ---------------------------------------------------------------------------
36+# Options
37+# ---------------------------------------------------------------------------
38+option(BUILD_SHARED_LIBS "Build fontconfig as a shared library (default produces a static .a)" OFF)
39+option(ENABLE_TOOLS "Build command-line tools (fc-list, fc-cache, fc-match, etc.)" ON)
40+option(ENABLE_TESTS "Build unit tests" ON)
41+option(ENABLE_CACHE_BUILD "Run fc-cache on install" ON)
42+
43+set(XML_BACKEND "expat" CACHE STRING "XML backend used to parse configuration files (expat or libxml2)")
44+set_property(CACHE XML_BACKEND PROPERTY STRINGS expat libxml2)
45+
46+set(DEFAULT_HINTING "slight" CACHE STRING "Preferred hinting configuration (none, slight, medium, full)")
47+set_property(CACHE DEFAULT_HINTING PROPERTY STRINGS none slight medium full)
48+
49+set(DEFAULT_SUB_PIXEL_RENDERING "none" CACHE STRING "Preferred sub-pixel rendering configuration (none, bgr, rgb, vbgr, vrgb)")
50+set_property(CACHE DEFAULT_SUB_PIXEL_RENDERING PROPERTY STRINGS none bgr rgb vbgr vrgb)
51+
52+set(BITMAP_CONF "no-except-emoji" CACHE STRING "Bitmap font configuration (yes, no, no-except-emoji)")
53+set_property(CACHE BITMAP_CONF PROPERTY STRINGS yes no no-except-emoji)
54+
55+# ---------------------------------------------------------------------------
56+# Versioning (mirrors the previous libtool versioning scheme)
57+# ---------------------------------------------------------------------------
58+set(FC_VERSION_MAJOR ${PROJECT_VERSION_MAJOR})
59+set(FC_VERSION_MINOR ${PROJECT_VERSION_MINOR})
60+set(FC_VERSION_MICRO ${PROJECT_VERSION_PATCH})
61+
62+math(EXPR FC_SOVERSION "${FC_VERSION_MAJOR} - 1")
63+math(EXPR FC_CURVERSION "${FC_VERSION_MINOR} - 1")
64+set(FC_LIBVERSION "${FC_SOVERSION}.${FC_CURVERSION}.0")
65+set(FC_CACHE_VERSION "11")
66+
67+# ---------------------------------------------------------------------------
68+# Dependencies
69+# ---------------------------------------------------------------------------
70+pkg_check_modules(FREETYPE REQUIRED IMPORTED_TARGET "freetype2>=21.0.15")
71+
72+if(XML_BACKEND STREQUAL "expat")
73+ pkg_check_modules(EXPAT QUIET IMPORTED_TARGET expat)
74+ if(NOT EXPAT_FOUND)
75+ find_path(EXPAT_INCLUDE_DIR expat.h)
76+ find_library(EXPAT_LIBRARY NAMES expat)
77+ if(NOT EXPAT_INCLUDE_DIR OR NOT EXPAT_LIBRARY)
78+ message(FATAL_ERROR "expat library not found")
79+ endif()
80+ add_library(PkgConfig::EXPAT UNKNOWN IMPORTED)
81+ set_target_properties(PkgConfig::EXPAT PROPERTIES
82+ IMPORTED_LOCATION "${EXPAT_LIBRARY}"
83+ INTERFACE_INCLUDE_DIRECTORIES "${EXPAT_INCLUDE_DIR}")
84+ endif()
85+ set(XML_DEP_TARGET PkgConfig::EXPAT)
86+ set(XML_PKG_NAME "expat")
87+elseif(XML_BACKEND STREQUAL "libxml2")
88+ pkg_check_modules(LIBXML2 REQUIRED IMPORTED_TARGET libxml-2.0)
89+ set(XML_DEP_TARGET PkgConfig::LIBXML2)
90+ set(XML_PKG_NAME "libxml-2.0")
91+ set(ENABLE_LIBXML2 1)
92+else()
93+ message(FATAL_ERROR "Unsupported XML_BACKEND: ${XML_BACKEND} (expected 'expat' or 'libxml2')")
94+endif()
95+
96+find_library(MATH_LIBRARY m)
97+
98+set(ENABLE_FREETYPE 1)
99+set(ENABLE_FONTATIONS 0)
100+set(USE_ICONV 0)
101+
102+if(CMAKE_C_BYTE_ORDER STREQUAL "BIG_ENDIAN")
103+ set(WORDS_BIGENDIAN 1)
104+else()
105+ set(WORDS_BIGENDIAN 0)
106+endif()
107+
108+# ---------------------------------------------------------------------------
109+# Feature checks
110+# ---------------------------------------------------------------------------
111+set(CMAKE_REQUIRED_DEFINITIONS "-D_GNU_SOURCE")
112+
113+foreach(hdr IN ITEMS dirent.h dlfcn.h fcntl.h inttypes.h stdint.h stdio.h
114+ stdlib.h strings.h string.h unistd.h sys/statvfs.h
115+ sys/vfs.h sys/statfs.h sys/stat.h sys/types.h
116+ sys/param.h sys/mount.h time.h wchar.h xlocale.h)
117+ string(TOUPPER "${hdr}" hdr_upper)
118+ string(REGEX REPLACE "[/.]" "_" hdr_var "${hdr_upper}")
119+ check_include_file("${hdr}" HAVE_${hdr_var})
120+endforeach()
121+
122+check_symbol_exists(link unistd.h HAVE_LINK)
123+check_symbol_exists(mkstemp stdlib.h HAVE_MKSTEMP)
124+check_symbol_exists(mkdtemp stdlib.h HAVE_MKDTEMP)
125+check_symbol_exists(getopt unistd.h HAVE_GETOPT)
126+check_symbol_exists(getopt_long getopt.h HAVE_GETOPT_LONG)
127+check_symbol_exists(rand stdlib.h HAVE_RAND)
128+check_symbol_exists(random stdlib.h HAVE_RANDOM)
129+check_symbol_exists(lrand48 stdlib.h HAVE_LRAND48)
130+check_symbol_exists(random_r stdlib.h HAVE_RANDOM_R)
131+check_symbol_exists(rand_r stdlib.h HAVE_RAND_R)
132+check_symbol_exists(readlink unistd.h HAVE_READLINK)
133+check_symbol_exists(fstatvfs sys/statvfs.h HAVE_FSTATVFS)
134+check_symbol_exists(fstatfs "sys/vfs.h;sys/statfs.h" HAVE_FSTATFS)
135+check_symbol_exists(lstat sys/stat.h HAVE_LSTAT)
136+check_symbol_exists(strerror string.h HAVE_STRERROR)
137+check_symbol_exists(strerror_r string.h HAVE_STRERROR_R)
138+check_symbol_exists(mmap sys/mman.h HAVE_MMAP)
139+check_symbol_exists(vasprintf stdio.h HAVE_VASPRINTF)
140+check_symbol_exists(vprintf stdio.h HAVE_VPRINTF)
141+check_symbol_exists(vsnprintf stdio.h HAVE_VSNPRINTF)
142+check_symbol_exists(vsprintf stdio.h HAVE_VSPRINTF)
143+check_symbol_exists(getpagesize unistd.h HAVE_GETPAGESIZE)
144+check_symbol_exists(getpid unistd.h HAVE_GETPID)
145+check_symbol_exists(localtime_r time.h HAVE_LOCALTIME_R)
146+check_symbol_exists(strdup string.h HAVE_STRDUP)
147+check_symbol_exists(posix_fadvise fcntl.h HAVE_POSIX_FADVISE)
148+check_symbol_exists(mkostemp stdlib.h HAVE_MKOSTEMP)
149+
150+set(HAVE_PTHREAD 1)
151+
152+check_struct_has_member("struct statfs" f_flags "sys/vfs.h;sys/statfs.h;sys/param.h;sys/mount.h" HAVE_STRUCT_STATFS_F_FLAGS)
153+check_struct_has_member("struct stat" st_mtim sys/stat.h HAVE_STRUCT_STAT_ST_MTIM)
154+check_struct_has_member("struct dirent" d_type "sys/types.h;dirent.h" HAVE_STRUCT_DIRENT_D_TYPE)
155+
156+check_type_size("void *" SIZEOF_VOID_P)
157+
158+# Alignment checks (no portable CMake builtin, so probe directly)
159+function(fc_check_alignof type outvar)
160+ string(MAKE_C_IDENTIFIER "${type}" type_id)
161+ set(src_file "${CMAKE_BINARY_DIR}/CMakeTmp/alignof_${type_id}.c")
162+ file(WRITE "${src_file}" "#include <stdio.h>\n#include <stddef.h>\nint main(void){printf(\"%zu\", _Alignof(${type})); return 0;}\n")
163+ try_run(run_result compile_result "${CMAKE_BINARY_DIR}/CMakeTmp" "${src_file}"
164+ RUN_OUTPUT_VARIABLE align_value)
165+ if(NOT compile_result OR align_value STREQUAL "")
166+ set(align_value 8)
167+ endif()
168+ set(${outvar} "${align_value}" PARENT_SCOPE)
169+endfunction()
170+
171+fc_check_alignof("void *" ALIGNOF_VOID_P)
172+fc_check_alignof("double" ALIGNOF_DOUBLE)
173+
174+# Flexible array member support (C99)
175+check_c_source_compiles("
176+#include <stddef.h>
177+#include <stdio.h>
178+#include <stdlib.h>
179+struct s { int n; double d[]; };
180+int main(void) {
181+ int m = getchar();
182+ struct s *p = malloc(offsetof(struct s, d) + m * sizeof(double));
183+ p->d[0] = 0.0;
184+ return p->d != (double *)NULL;
185+}" HAVE_FLEXIBLE_ARRAY_MEMBER)
186+if(HAVE_FLEXIBLE_ARRAY_MEMBER)
187+ set(FLEXIBLE_ARRAY_MEMBER "/**/")
188+else()
189+ set(FLEXIBLE_ARRAY_MEMBER "1")
190+endif()
191+
192+# C11 stdatomic primitives
193+check_c_source_compiles("
194+#include <stdatomic.h>
195+void memory_barrier(void) { atomic_thread_fence(memory_order_acq_rel); }
196+int atomic_add(atomic_int *i) { return atomic_fetch_add_explicit(i, 1, memory_order_relaxed); }
197+int mutex_trylock(atomic_flag *m) { return atomic_flag_test_and_set_explicit(m, memory_order_acquire); }
198+void mutex_unlock(atomic_flag *m) { atomic_flag_clear_explicit(m, memory_order_release); }
199+int main(void) { return 0; }" HAVE_STDATOMIC_PRIMITIVES)
200+
201+# pthread PTHREAD_PRIO_INHERIT support
202+set(CMAKE_REQUIRED_LIBRARIES Threads::Threads)
203+check_c_source_compiles("
204+#include <pthread.h>
205+int main(void) { int i = PTHREAD_PRIO_INHERIT; return 0; }" HAVE_PTHREAD_PRIO_INHERIT)
206+unset(CMAKE_REQUIRED_LIBRARIES)
207+
208+# FreeType functions
209+set(CMAKE_REQUIRED_LIBRARIES PkgConfig::FREETYPE)
210+set(CMAKE_REQUIRED_INCLUDES ${FREETYPE_INCLUDE_DIRS})
211+foreach(func IN ITEMS FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names
212+ FT_Get_X11_Font_Format FT_Done_MM_Var)
213+ string(TOUPPER "${func}" func_upper)
214+ check_symbol_exists(${func} ft2build.h HAVE_${func_upper})
215+ if(NOT HAVE_${func_upper})
216+ # fall back to a link-only check, as these are declared via macro-guarded headers
217+ check_c_source_compiles("extern void ${func}(); int main(void){ ${func}(); return 0; }" HAVE_${func_upper}_LINK)
218+ if(HAVE_${func_upper}_LINK)
219+ set(HAVE_${func_upper} 1)
220+ endif()
221+ endif()
222+endforeach()
223+unset(CMAKE_REQUIRED_LIBRARIES)
224+unset(CMAKE_REQUIRED_INCLUDES)
225+
226+# FreeType PCF long family names support
227+set(CMAKE_REQUIRED_LIBRARIES PkgConfig::FREETYPE)
228+set(CMAKE_REQUIRED_INCLUDES ${FREETYPE_INCLUDE_DIRS})
229+check_c_source_compiles("
230+#include <ft2build.h>
231+#include FT_CONFIG_OPTIONS_H
232+#ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
233+# error \"No pcf long family names support\"
234+#endif
235+int main(void) { return 0; }" FREETYPE_PCF_LONG_FAMILY_NAMES)
236+unset(CMAKE_REQUIRED_LIBRARIES)
237+unset(CMAKE_REQUIRED_INCLUDES)
238+
239+unset(CMAKE_REQUIRED_DEFINITIONS)
240+
241+set(FC_GPERF_SIZE_T "size_t")
242+
243+# ---------------------------------------------------------------------------
244+# Installation directories / runtime paths
245+# ---------------------------------------------------------------------------
246+set(FC_CACHEDIR "${CMAKE_INSTALL_FULL_LOCALSTATEDIR}/cache/fontconfig")
247+set(FC_TEMPLATEDIR "${CMAKE_INSTALL_FULL_DATADIR}/fontconfig/conf.avail")
248+set(FC_BASECONFIGDIR "${CMAKE_INSTALL_FULL_SYSCONFDIR}/fonts")
249+set(FC_CONFIGDIR "${FC_BASECONFIGDIR}/conf.d")
250+set(FC_CONFIGDIR_RELATIVE "conf.d")
251+set(FC_XMLDIR "${CMAKE_INSTALL_FULL_DATADIR}/xml/fontconfig")
252+set(FONTCONFIG_PATH "${FC_BASECONFIGDIR}")
253+set(CONFIGDIR "${FC_CONFIGDIR}")
254+
255+# Default font directories (Linux only)
256+set(FC_DEFAULT_FONTS "\\t<dir>/usr/share/fonts</dir>\\n\\t<dir>/usr/local/share/fonts</dir>\\n")
257+set(FC_DEFAULT_FONTS_XML "\t<dir>/usr/share/fonts</dir>\n\t<dir>/usr/local/share/fonts</dir>\n")
258+
259+# Additional font directories: only added if found on this system at configure time
260+set(FC_FONTPATH "")
261+set(FC_FONTPATH_XML "")
262+foreach(xdir IN ITEMS /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11)
263+ if(IS_DIRECTORY "${xdir}/fonts")
264+ string(APPEND FC_FONTPATH "<dir>${xdir}/fonts</dir>\\n\\t")
265+ string(APPEND FC_FONTPATH_XML "<dir>${xdir}/fonts</dir>\n\t")
266+ endif()
267+endforeach()
268+
269+# ---------------------------------------------------------------------------
270+# Generated header / source layout
271+# ---------------------------------------------------------------------------
272+set(GEN_DIR "${CMAKE_BINARY_DIR}/generated")
273+file(MAKE_DIRECTORY "${GEN_DIR}/fontconfig" "${GEN_DIR}/fc-case" "${GEN_DIR}/src")
274+
275+configure_file("${CMAKE_SOURCE_DIR}/config.h.in" "${CMAKE_BINARY_DIR}/config.h" @ONLY)
276+
277+set(CACHE_VERSION "${FC_CACHE_VERSION}")
278+configure_file("${CMAKE_SOURCE_DIR}/fontconfig/fontconfig.h.in" "${GEN_DIR}/fontconfig/fontconfig.h" @ONLY)
279+configure_file("${CMAKE_SOURCE_DIR}/src/fcstdint.h.in" "${GEN_DIR}/fcstdint.h" COPYONLY)
280+
281+set(FC_INCLUDE_DIRS
282+ "${CMAKE_BINARY_DIR}"
283+ "${CMAKE_SOURCE_DIR}"
284+ "${CMAKE_SOURCE_DIR}/src"
285+ "${GEN_DIR}"
286+ "${GEN_DIR}/src"
287+)
288+
289+add_compile_definitions(HAVE_CONFIG_H)
290+
291+# fccase.h
292+add_custom_command(
293+ OUTPUT "${GEN_DIR}/fc-case/fccase.h"
294+ COMMAND ${Python3_EXECUTABLE} "${CMAKE_SOURCE_DIR}/fc-case/fc-case.py"
295+ "${CMAKE_SOURCE_DIR}/fc-case/CaseFolding.txt"
296+ --template "${CMAKE_SOURCE_DIR}/fc-case/fccase.tmpl.h"
297+ --output "${GEN_DIR}/fc-case/fccase.h"
298+ DEPENDS "${CMAKE_SOURCE_DIR}/fc-case/fc-case.py"
299+ "${CMAKE_SOURCE_DIR}/fc-case/CaseFolding.txt"
300+ "${CMAKE_SOURCE_DIR}/fc-case/fccase.tmpl.h"
301+ VERBATIM)
302+
303+# fclang.h
304+set(FC_LANG_ORTH_FILES
305+ aa.orth ab.orth af.orth am.orth ar.orth as.orth ast.orth av.orth
306+ ay.orth az_az.orth az_ir.orth ba.orth bm.orth be.orth bg.orth bh.orth
307+ bho.orth bi.orth bin.orth bn.orth bo.orth br.orth bs.orth bua.orth
308+ ca.orth ce.orth ch.orth chm.orth chr.orth co.orth cs.orth cu.orth
309+ cv.orth cy.orth da.orth de.orth dz.orth el.orth en.orth eo.orth
310+ es.orth et.orth eu.orth fa.orth fi.orth fj.orth fo.orth fr.orth
311+ ff.orth fur.orth fy.orth ga.orth gd.orth gez.orth gl.orth gn.orth
312+ gu.orth gv.orth ha.orth haw.orth he.orth hi.orth ho.orth hr.orth
313+ hu.orth hy.orth ia.orth ig.orth id.orth ie.orth ik.orth io.orth
314+ is.orth it.orth iu.orth ja.orth ka.orth kaa.orth ki.orth kk.orth
315+ kl.orth km.orth kn.orth ko.orth kok.orth ks.orth ku_am.orth ku_ir.orth
316+ kum.orth kv.orth kw.orth ky.orth la.orth lb.orth lez.orth ln.orth
317+ lo.orth lt.orth lv.orth mg.orth mh.orth mi.orth mk.orth ml.orth
318+ mn_cn.orth mo.orth mr.orth mt.orth my.orth nb.orth nds.orth ne.orth
319+ nl.orth nn.orth no.orth nr.orth nso.orth ny.orth oc.orth om.orth
320+ or.orth os.orth pa.orth pl.orth ps_af.orth ps_pk.orth pt.orth rm.orth
321+ ro.orth ru.orth sa.orth sah.orth sco.orth se.orth sel.orth sh.orth
322+ shs.orth si.orth sk.orth sl.orth sm.orth sma.orth smj.orth smn.orth
323+ sms.orth so.orth sq.orth sr.orth ss.orth st.orth sv.orth sw.orth
324+ syr.orth ta.orth te.orth tg.orth th.orth ti_er.orth ti_et.orth tig.orth
325+ tk.orth tl.orth tn.orth to.orth tr.orth ts.orth tt.orth tw.orth
326+ tyv.orth ug.orth uk.orth ur.orth uz.orth ve.orth vi.orth vo.orth
327+ vot.orth wa.orth wen.orth wo.orth xh.orth yap.orth yi.orth yo.orth
328+ zh_cn.orth zh_hk.orth zh_mo.orth zh_sg.orth zh_tw.orth zu.orth ak.orth an.orth
329+ ber_dz.orth ber_ma.orth byn.orth crh.orth csb.orth dv.orth ee.orth fat.orth
330+ fil.orth hne.orth hsb.orth ht.orth hz.orth ii.orth jv.orth kab.orth
331+ kj.orth kr.orth ku_iq.orth ku_tr.orth kwm.orth lg.orth li.orth mai.orth
332+ mn_mn.orth ms.orth na.orth ng.orth nv.orth ota.orth pa_pk.orth pap_an.orth
333+ pap_aw.orth qu.orth quz.orth rn.orth rw.orth sc.orth sd.orth sg.orth
334+ sid.orth sn.orth su.orth ty.orth wal.orth za.orth lah.orth nqo.orth
335+ brx.orth sat.orth doi.orth mni.orth und_zsye.orth und_zmth.orth anp.orth bhb.orth
336+ hif.orth mag.orth raj.orth the.orth agr.orth ayc.orth bem.orth ckb.orth
337+ cmn.orth dsb.orth hak.orth lij.orth lzh.orth mfe.orth mhr.orth miq.orth
338+ mjw.orth mnw.orth nan.orth nhn.orth niu.orth rif.orth sgs.orth shn.orth
339+ szl.orth tcy.orth tpi.orth unm.orth wae.orth yue.orth yuw.orth got.orth
340+ cop.orth suz.orth
341+)
342+set(FC_LANG_ORTH_FILE_PATHS "")
343+foreach(orth IN LISTS FC_LANG_ORTH_FILES)
344+ list(APPEND FC_LANG_ORTH_FILE_PATHS "${CMAKE_SOURCE_DIR}/fc-lang/${orth}")
345+endforeach()
346+
347+add_custom_command(
348+ OUTPUT "${GEN_DIR}/fclang.h"
349+ COMMAND ${Python3_EXECUTABLE} "${CMAKE_SOURCE_DIR}/fc-lang/fc-lang.py" ${FC_LANG_ORTH_FILES}
350+ --directory "${CMAKE_SOURCE_DIR}/fc-lang"
351+ --template "${CMAKE_SOURCE_DIR}/fc-lang/fclang.tmpl.h"
352+ --output "${GEN_DIR}/fclang.h"
353+ DEPENDS "${CMAKE_SOURCE_DIR}/fc-lang/fc-lang.py"
354+ "${CMAKE_SOURCE_DIR}/fc-lang/fclang.tmpl.h"
355+ ${FC_LANG_ORTH_FILE_PATHS}
356+ WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}/fc-lang"
357+ VERBATIM)
358+
359+# fcconst.h / test_const_name.c
360+add_custom_command(
361+ OUTPUT "${GEN_DIR}/fcconst.h"
362+ COMMAND ${Python3_EXECUTABLE} "${CMAKE_SOURCE_DIR}/fc-const/fc-const.py"
363+ "${CMAKE_SOURCE_DIR}/fc-const/fcconst.list" "${CMAKE_SOURCE_DIR}/src/fcobjs.h"
364+ --output "${GEN_DIR}/fcconst.h"
365+ DEPENDS "${CMAKE_SOURCE_DIR}/fc-const/fc-const.py"
366+ "${CMAKE_SOURCE_DIR}/fc-const/fcconst.list"
367+ "${CMAKE_SOURCE_DIR}/src/fcobjs.h"
368+ VERBATIM)
369+
370+add_custom_command(
371+ OUTPUT "${GEN_DIR}/test_const_name.c"
372+ COMMAND ${Python3_EXECUTABLE} "${CMAKE_SOURCE_DIR}/fc-const/fc-const.py" -t
373+ "${CMAKE_SOURCE_DIR}/fc-const/fcconst.list" "${CMAKE_SOURCE_DIR}/src/fcobjs.h"
374+ --output "${GEN_DIR}/test_const_name.c"
375+ DEPENDS "${CMAKE_SOURCE_DIR}/fc-const/fc-const.py"
376+ "${CMAKE_SOURCE_DIR}/fc-const/fcconst.list"
377+ "${CMAKE_SOURCE_DIR}/src/fcobjs.h"
378+ VERBATIM)
379+
380+# fcobjshash.h: preprocess -> cutout -> gperf
381+add_custom_command(
382+ OUTPUT "${GEN_DIR}/src/fcobjshash.i"
383+ COMMAND ${CMAKE_C_COMPILER} -E -P -DHAVE_CONFIG_H
384+ "-I${CMAKE_BINARY_DIR}" "-I${CMAKE_SOURCE_DIR}" "-I${GEN_DIR}" "-I${GEN_DIR}/src"
385+ "${CMAKE_SOURCE_DIR}/src/fcobjshash.gperf.h" -o "${GEN_DIR}/src/fcobjshash.i"
386+ DEPENDS "${CMAKE_SOURCE_DIR}/src/fcobjshash.gperf.h" "${CMAKE_SOURCE_DIR}/src/fcobjs.h"
387+ "${GEN_DIR}/fontconfig/fontconfig.h"
388+ VERBATIM)
389+
390+add_custom_command(
391+ OUTPUT "${GEN_DIR}/src/fcobjshash.gperf"
392+ COMMAND ${Python3_EXECUTABLE} "${CMAKE_SOURCE_DIR}/src/cutout.py"
393+ "${GEN_DIR}/src/fcobjshash.i" "${GEN_DIR}/src/fcobjshash.gperf"
394+ DEPENDS "${GEN_DIR}/src/fcobjshash.i" "${CMAKE_SOURCE_DIR}/src/cutout.py"
395+ VERBATIM)
396+
397+add_custom_command(
398+ OUTPUT "${GEN_DIR}/fcobjshash.h"
399+ COMMAND ${GPERF_EXECUTABLE} --pic -m 100 "${GEN_DIR}/src/fcobjshash.gperf" --output-file "${GEN_DIR}/fcobjshash.h"
400+ DEPENDS "${GEN_DIR}/src/fcobjshash.gperf"
401+ VERBATIM)
402+
403+# Alias headers (src/makealias.py scans src/*.c for matching definitions)
404+file(GLOB FC_SRC_C_FILES "${CMAKE_SOURCE_DIR}/src/*.c")
405+
406+add_custom_command(
407+ OUTPUT "${GEN_DIR}/fcalias.h" "${GEN_DIR}/fcaliastail.h"
408+ COMMAND ${Python3_EXECUTABLE} "${CMAKE_SOURCE_DIR}/src/makealias.py"
409+ "${CMAKE_SOURCE_DIR}/src"
410+ "${GEN_DIR}/fcalias.h" "${GEN_DIR}/fcaliastail.h"
411+ "${GEN_DIR}/fontconfig/fontconfig.h" "${CMAKE_SOURCE_DIR}/src/fcdeprecate.h" "${CMAKE_SOURCE_DIR}/fontconfig/fcprivate.h"
412+ DEPENDS "${CMAKE_SOURCE_DIR}/src/makealias.py" "${GEN_DIR}/fontconfig/fontconfig.h"
413+ "${CMAKE_SOURCE_DIR}/src/fcdeprecate.h" "${CMAKE_SOURCE_DIR}/fontconfig/fcprivate.h"
414+ ${FC_SRC_C_FILES}
415+ VERBATIM)
416+
417+add_custom_command(
418+ OUTPUT "${GEN_DIR}/fcftalias.h" "${GEN_DIR}/fcftaliastail.h"
419+ COMMAND ${Python3_EXECUTABLE} "${CMAKE_SOURCE_DIR}/src/makealias.py"
420+ "${CMAKE_SOURCE_DIR}/src"
421+ "${GEN_DIR}/fcftalias.h" "${GEN_DIR}/fcftaliastail.h"
422+ "${CMAKE_SOURCE_DIR}/fontconfig/fcfreetype.h"
423+ DEPENDS "${CMAKE_SOURCE_DIR}/src/makealias.py" "${CMAKE_SOURCE_DIR}/fontconfig/fcfreetype.h"
424+ ${FC_SRC_C_FILES}
425+ VERBATIM)
426+
427+add_custom_target(generated_headers DEPENDS
428+ "${CMAKE_BINARY_DIR}/config.h"
429+ "${GEN_DIR}/fontconfig/fontconfig.h"
430+ "${GEN_DIR}/fcstdint.h"
431+ "${GEN_DIR}/fc-case/fccase.h"
432+ "${GEN_DIR}/fclang.h"
433+ "${GEN_DIR}/fcconst.h"
434+ "${GEN_DIR}/fcobjshash.h"
435+ "${GEN_DIR}/fcalias.h" "${GEN_DIR}/fcaliastail.h"
436+ "${GEN_DIR}/fcftalias.h" "${GEN_DIR}/fcftaliastail.h"
437+)
438+
439+# ---------------------------------------------------------------------------
440+# fontconfig library
441+# ---------------------------------------------------------------------------
442+set(FC_SOURCES
443+ src/fcatomic.c
444+ src/fccache.c
445+ src/fccfg.c
446+ src/fccharset.c
447+ src/fcconffile.c
448+ src/fccompat.c
449+ src/fcdbg.c
450+ src/fcdefault.c
451+ src/fcdir.c
452+ src/fcformat.c
453+ src/fcfreetype.c
454+ src/fcfs.c
455+ src/fcptrlist.c
456+ src/fchash.c
457+ src/fcinit.c
458+ src/fclang.c
459+ src/fclist.c
460+ src/fcmatch.c
461+ src/fcmatrix.c
462+ src/fcname.c
463+ src/fcobjs.c
464+ src/fcpat.c
465+ src/fcrange.c
466+ src/fcserialize.c
467+ src/fcstat.c
468+ src/fcstr.c
469+ src/fcweight.c
470+ src/fcxml.c
471+ src/ftglue.c
472+)
473+
474+add_library(fontconfig ${FC_SOURCES})
475+add_dependencies(fontconfig generated_headers)
476+target_include_directories(fontconfig
477+ PUBLIC
478+ $<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}/fontconfig>
479+ $<BUILD_INTERFACE:${GEN_DIR}/fontconfig>
480+ $<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
481+ PRIVATE
482+ ${FC_INCLUDE_DIRS}
483+)
484+target_link_libraries(fontconfig
485+ PUBLIC PkgConfig::FREETYPE ${XML_DEP_TARGET} Threads::Threads
486+)
487+if(MATH_LIBRARY)
488+ target_link_libraries(fontconfig PUBLIC ${MATH_LIBRARY})
489+endif()
490+
491+set_target_properties(fontconfig PROPERTIES
492+ VERSION "${FC_LIBVERSION}"
493+ SOVERSION "${FC_SOVERSION}"
494+ OUTPUT_NAME fontconfig
495+)
496+
497+add_library(Fontconfig::Fontconfig ALIAS fontconfig)
498+
499+# ---------------------------------------------------------------------------
500+# fcarch helper (build-time only, not installed)
501+# ---------------------------------------------------------------------------
502+add_executable(fcarch src/fcarch.c)
503+add_dependencies(fcarch generated_headers)
504+target_include_directories(fcarch PRIVATE ${FC_INCLUDE_DIRS})
505+target_link_libraries(fcarch PRIVATE Threads::Threads)
506+
507+# ---------------------------------------------------------------------------
508+# Command line tools
509+# ---------------------------------------------------------------------------
510+if(ENABLE_TOOLS)
511+ set(FC_TOOLS fc-cache fc-cat fc-conflist fc-genconf fc-list fc-match fc-pattern fc-query fc-scan fc-validate)
512+ foreach(tool IN LISTS FC_TOOLS)
513+ add_executable(${tool} ${tool}/${tool}.c)
514+ add_dependencies(${tool} generated_headers)
515+ target_include_directories(${tool} PRIVATE ${FC_INCLUDE_DIRS})
516+ target_link_libraries(${tool} PRIVATE fontconfig Threads::Threads)
517+ install(TARGETS ${tool} RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})
518+ endforeach()
519+ # fc-query, fc-scan and fc-validate use FreeType directly
520+ foreach(tool IN ITEMS fc-query fc-scan fc-validate)
521+ target_link_libraries(${tool} PRIVATE PkgConfig::FREETYPE)
522+ endforeach()
523+
524+ if(ENABLE_CACHE_BUILD)
525+ install(CODE "
526+ if(NOT DEFINED ENV{DESTDIR} OR \"\$ENV{DESTDIR}\" STREQUAL \"\")
527+ execute_process(COMMAND \"${CMAKE_INSTALL_FULL_BINDIR}/fc-cache\" -s -f -v)
528+ endif()
529+ " COMPONENT runtime)
530+ endif()
531+endif()
532+
533+# ---------------------------------------------------------------------------
534+# Tests
535+# ---------------------------------------------------------------------------
536+if(ENABLE_TESTS)
537+ enable_testing()
538+
539+ add_executable(test_const_name "${GEN_DIR}/test_const_name.c")
540+ add_dependencies(test_const_name generated_headers)
541+ target_include_directories(test_const_name PRIVATE ${FC_INCLUDE_DIRS})
542+ target_link_libraries(test_const_name PRIVATE fontconfig)
543+ add_test(NAME test_const_name COMMAND test_const_name)
544+
545+ set(FC_SIMPLE_TESTS
546+ test-bz131804
547+ test-bz96676
548+ test-name-parse
549+ test-bz106618
550+ test-bz1744377
551+ test-issue180
552+ test-family-matching
553+ test-ostest
554+ test-issue107
555+ )
556+
557+ foreach(t IN LISTS FC_SIMPLE_TESTS)
558+ add_executable(${t} test/${t}.c)
559+ add_dependencies(${t} generated_headers)
560+ target_include_directories(${t} PRIVATE ${FC_INCLUDE_DIRS})
561+ target_link_libraries(${t} PRIVATE fontconfig)
562+ add_test(NAME ${t} COMMAND ${t})
563+ endforeach()
564+
565+ add_executable(test_bz89617 test/test-bz89617.c)
566+ add_dependencies(test_bz89617 generated_headers)
567+ target_include_directories(test_bz89617 PRIVATE ${FC_INCLUDE_DIRS})
568+ target_compile_definitions(test_bz89617 PRIVATE SRCDIR="${CMAKE_SOURCE_DIR}/test")
569+ target_link_libraries(test_bz89617 PRIVATE fontconfig)
570+ add_test(NAME test_bz89617 COMMAND test_bz89617)
571+
572+ add_executable(test_bz106632 test/test-bz106632.c)
573+ add_dependencies(test_bz106632 generated_headers)
574+ target_include_directories(test_bz106632 PRIVATE ${FC_INCLUDE_DIRS})
575+ target_compile_definitions(test_bz106632 PRIVATE FONTFILE="${CMAKE_SOURCE_DIR}/test/4x6.pcf")
576+ target_link_libraries(test_bz106632 PRIVATE fontconfig)
577+ add_test(NAME test_bz106632 COMMAND test_bz106632)
578+
579+ add_executable(test_ptrlist test/test-ptrlist.c)
580+ add_dependencies(test_ptrlist generated_headers)
581+ target_include_directories(test_ptrlist PRIVATE ${FC_INCLUDE_DIRS})
582+ target_link_libraries(test_ptrlist PRIVATE fontconfig)
583+ add_test(NAME test_ptrlist COMMAND test_ptrlist)
584+
585+ if(NOT BUILD_SHARED_LIBS)
586+ foreach(t IN ITEMS test-issue110 test-d1f48f11)
587+ string(REPLACE "-" "_" t_target "${t}")
588+ add_executable(${t_target} test/${t}.c)
589+ add_dependencies(${t_target} generated_headers)
590+ target_include_directories(${t_target} PRIVATE ${FC_INCLUDE_DIRS})
591+ target_link_libraries(${t_target} PRIVATE fontconfig)
592+ add_test(NAME ${t_target} COMMAND ${t_target})
593+ endforeach()
594+ endif()
595+
596+ # Not run in parallel: rely on global state / pthread
597+ add_executable(test_crbug1004254 test/test-crbug1004254.c)
598+ add_dependencies(test_crbug1004254 generated_headers)
599+ target_include_directories(test_crbug1004254 PRIVATE ${FC_INCLUDE_DIRS})
600+ target_link_libraries(test_crbug1004254 PRIVATE fontconfig Threads::Threads)
601+ add_test(NAME test_crbug1004254 COMMAND test_crbug1004254)
602+ set_tests_properties(test_crbug1004254 PROPERTIES RUN_SERIAL TRUE)
603+
604+ add_executable(test_mt_fccfg test/test-mt-fccfg.c)
605+ add_dependencies(test_mt_fccfg generated_headers)
606+ target_include_directories(test_mt_fccfg PRIVATE ${FC_INCLUDE_DIRS})
607+ target_link_libraries(test_mt_fccfg PRIVATE fontconfig Threads::Threads)
608+ add_test(NAME test_mt_fccfg COMMAND test_mt_fccfg)
609+ set_tests_properties(test_mt_fccfg PROPERTIES RUN_SERIAL TRUE)
610+endif()
611+
612+# ---------------------------------------------------------------------------
613+# fonts.conf
614+# ---------------------------------------------------------------------------
615+# fonts.conf.in uses the same variable names as config.h, but with raw
616+# whitespace and a CONFIGDIR relative to the base config directory.
617+set(FC_DEFAULT_FONTS "${FC_DEFAULT_FONTS_XML}")
618+set(FC_FONTPATH "${FC_FONTPATH_XML}")
619+set(CONFIGDIR "${FC_CONFIGDIR_RELATIVE}")
620+configure_file("${CMAKE_SOURCE_DIR}/fonts.conf.in" "${CMAKE_BINARY_DIR}/fonts.conf" @ONLY)
621+install(FILES "${CMAKE_BINARY_DIR}/fonts.conf" DESTINATION "${FC_BASECONFIGDIR}")
622+install(FILES "${CMAKE_SOURCE_DIR}/fonts.dtd" DESTINATION "${FC_XMLDIR}")
623+
624+# Empty cache directory
625+install(DIRECTORY DESTINATION "${FC_CACHEDIR}")
626+
627+# ---------------------------------------------------------------------------
628+# Headers
629+# ---------------------------------------------------------------------------
630+install(FILES
631+ "${GEN_DIR}/fontconfig/fontconfig.h"
632+ "${CMAKE_SOURCE_DIR}/fontconfig/fcfreetype.h"
633+ "${CMAKE_SOURCE_DIR}/fontconfig/fcprivate.h"
634+ DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/fontconfig"
635+)
636+
637+# ---------------------------------------------------------------------------
638+# conf.d configuration files
639+# ---------------------------------------------------------------------------
640+add_subdirectory(conf.d)
641+
642+# ---------------------------------------------------------------------------
643+# Library install + CMake / pkg-config packages
644+# ---------------------------------------------------------------------------
645+install(TARGETS fontconfig EXPORT FontconfigTargets
646+ ARCHIVE DESTINATION "${CMAKE_INSTALL_LIBDIR}"
647+ LIBRARY DESTINATION "${CMAKE_INSTALL_LIBDIR}"
648+ RUNTIME DESTINATION "${CMAKE_INSTALL_BINDIR}"
649+)
650+
651+install(EXPORT FontconfigTargets
652+ NAMESPACE Fontconfig::
653+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Fontconfig"
654+)
655+
656+configure_package_config_file(
657+ "${CMAKE_SOURCE_DIR}/cmake/FontconfigConfig.cmake.in"
658+ "${CMAKE_BINARY_DIR}/FontconfigConfig.cmake"
659+ INSTALL_DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Fontconfig"
660+)
661+
662+write_basic_package_version_file(
663+ "${CMAKE_BINARY_DIR}/FontconfigConfigVersion.cmake"
664+ VERSION "${PROJECT_VERSION}"
665+ COMPATIBILITY SameMajorVersion
666+)
667+
668+install(FILES
669+ "${CMAKE_BINARY_DIR}/FontconfigConfig.cmake"
670+ "${CMAKE_BINARY_DIR}/FontconfigConfigVersion.cmake"
671+ DESTINATION "${CMAKE_INSTALL_LIBDIR}/cmake/Fontconfig"
672+)
673+
674+# pkg-config
675+set(PKGCONFIG_REQUIRES_PRIVATELY "freetype2 >= 21.0.15, ${XML_PKG_NAME}")
676+configure_file(
677+ "${CMAKE_SOURCE_DIR}/cmake/fontconfig.pc.in"
678+ "${CMAKE_BINARY_DIR}/fontconfig.pc"
679+ @ONLY
680+)
681+install(FILES "${CMAKE_BINARY_DIR}/fontconfig.pc" DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig")
682diff --git a/Makefile.am b/Makefile.am
683deleted file mode 100644
684index fef2d7c0..00000000
685--- a/Makefile.am
686+++ /dev/null
687@@ -1,186 +0,0 @@
688-#
689-# fontconfig/Makefile.am
690-#
691-# Copyright © 2003 Keith Packard
692-#
693-# Permission to use, copy, modify, distribute, and sell this software and its
694-# documentation for any purpose is hereby granted without fee, provided that
695-# the above copyright notice appear in all copies and that both that
696-# copyright notice and this permission notice appear in supporting
697-# documentation, and that the name of the author(s) not be used in
698-# advertising or publicity pertaining to distribution of the software without
699-# specific, written prior permission. The authors make no
700-# representations about the suitability of this software for any purpose. It
701-# is provided "as is" without express or implied warranty.
702-#
703-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
704-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
705-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
706-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
707-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
708-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
709-# PERFORMANCE OF THIS SOFTWARE.
710-
711-SUBDIRS=fontconfig fc-case fc-lang fc-const src \
712- fc-cache fc-cat fc-conflist fc-list fc-match \
713- fc-pattern fc-query fc-scan fc-validate conf.d \
714- its po po-conf test
715-if ENABLE_DOCS
716-SUBDIRS += doc
717-endif
718-
719-ACLOCAL_AMFLAGS = -I m4
720-
721-MESON_FILES = \
722- conf.d/link_confs.py \
723- conf.d/write-35-lang-normalize-conf.py \
724- doc/edit-sgml.py \
725- doc/extract-man-list.py \
726- doc/run-quiet.py \
727- fc-case/fc-case.py \
728- fc-lang/fc-lang.py \
729- meson.build \
730- meson.options \
731- src/cutout.py \
732- src/fcstdint.h.in \
733- src/fcwindows.h \
734- src/fontconfig.def.in \
735- src/makealias.py \
736- $(wildcard $(srcdir)/*/meson.build) \
737- $(wildcard $(srcdir)/meson-cc-tests/*) \
738- $(wildcard $(srcdir)/subprojects/*.wrap)
739-
740-EXTRA_DIST = config.rpath \
741- fontconfig.pc.in \
742- fonts.conf.in \
743- fonts.dtd \
744- fontconfig-zip.in \
745- config-fixups.h \
746- $(MESON_FILES)
747-CLEANFILES = fonts.conf
748-DISTCLEANFILES = config.cache doltcompile
749-MAINTAINERCLEANFILES = \
750- $(srcdir)/aclocal.m4 \
751- $(srcdir)/autoscan.log \
752- $(srcdir)/compile \
753- $(srcdir)/config.guess \
754- $(srcdir)/config.h.in \
755- $(srcdir)/config.sub \
756- $(srcdir)/configure.scan \
757- $(srcdir)/depcomp \
758- $(srcdir)/install-sh \
759- $(srcdir)/ltmain.sh \
760- $(srcdir)/missing \
761- $(srcdir)/mkinstalldirs \
762- $(srcdir)/test-driver \
763- `find "$(srcdir)" -type f -name Makefile.in -print`
764-
765-pkgconfig_DATA = fontconfig.pc
766-
767-baseconfigdir = $(BASECONFIGDIR)
768-configdir = $(CONFIGDIR)
769-
770-xmldir = $(XMLDIR)
771-xml_DATA = fonts.dtd
772-
773-if !ENABLE_CACHE_BUILD
774- RUN_FC_CACHE_TEST=false
775-else
776- RUN_FC_CACHE_TEST=test -z "$(DESTDIR)"
777-endif
778-
779-# Creating ChangeLog from git log:
780-
781-MAINTAINERCLEANFILES += $(srcdir)/ChangeLog
782-EXTRA_DIST += ChangeLog
783-ChangeLog: $(srcdir)/ChangeLog
784-$(srcdir)/ChangeLog:
785- if test -d "$(srcdir)/.git"; then \
786- (GIT_DIR=$(top_srcdir)/.git $(GIT) log --stat) | fmt --split-only > $@.tmp \
787- && mv -f $@.tmp $@ \
788- || ($(RM) $@.tmp; \
789- echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
790- (test -f $@ || echo git-log is required to generate this file >> $@)); \
791- else \
792- test -f $@ || \
793- (echo A git checkout and git-log is required to generate ChangeLog >&2 && \
794- echo A git checkout and git-log is required to generate this file >> $@); \
795- fi
796-
797-.PHONY: ChangeLog
798-
799-FC_CONFIGDIR = $(subst $(BASECONFIGDIR)/,,$(CONFIGDIR))
800-
801-fonts.conf: fonts.conf.in Makefile
802- sed \
803- -e 's,@FC_CACHEDIR\@,$(FC_CACHEDIR),g' \
804- -e 's,@FC_DEFAULT_FONTS\@, $(FC_DEFAULT_FONTS),g' \
805- -e 's,@FC_FONTPATH\@,$(FC_FONTPATH),g' \
806- -e 's,@CONFIGDIR\@,$(FC_CONFIGDIR),g' \
807- -e 's,@PACKAGE\@,$(PACKAGE),g' \
808- -e 's,@VERSION\@,$(VERSION),g' \
809- $(srcdir)/$@.in > $@.tmp && \
810- mv $@.tmp $@
811-
812-install-data-local: fonts.conf
813- $(mkinstalldirs) $(DESTDIR)$(baseconfigdir) $(DESTDIR)$(fc_cachedir)
814- if [ -f $(DESTDIR)$(baseconfigdir)/fonts.conf ]; then \
815- echo "backing up existing $(DESTDIR)$(baseconfigdir)/fonts.conf"; \
816- mv $(DESTDIR)$(baseconfigdir)/fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf.bak; \
817- fi
818- if [ -f $(srcdir)/fonts.conf ]; then \
819- echo " $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf"; \
820- $(INSTALL_DATA) $(srcdir)/fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf; \
821- else if [ -f fonts.conf ]; then \
822- echo " $(INSTALL_DATA) fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf"; \
823- $(INSTALL_DATA) fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf; \
824- fi; fi
825- @(if $(RUN_FC_CACHE_TEST); then \
826- echo "fc-cache$(EXEEXT) -s -f -v"; \
827- fc-cache/fc-cache$(EXEEXT) -s -f -v; \
828- else \
829- echo "***"; \
830- echo "*** Warning: fonts.cache not built"; \
831- echo "***"; \
832- echo "*** Generate this file manually on host system using fc-cache"; \
833- echo "***"; \
834- fi)
835-
836-uninstall-local:
837- if [ -f $(srcdir)/fonts.conf ]; then \
838- if cmp -s $(srcdir)/fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf; then \
839- echo " uninstall standard $(DESTDIR)$(baseconfigdir)/fonts.conf"; \
840- $(RM) $(DESTDIR)$(baseconfigdir)/fonts.conf; \
841- fi; \
842- else if [ -f fonts.conf ]; then \
843- if cmp -s fonts.conf $(DESTDIR)$(baseconfigdir)/fonts.conf; then \
844- echo " uninstall standard $(DESTDIR)$(baseconfigdir)/fonts.conf"; \
845- $(RM) $(DESTDIR)$(baseconfigdir)/fonts.conf; \
846- fi; \
847- fi; fi
848-
849-debuild debuild-signed: debuild-dirs
850- (cd $(distdir)/debian && debuild)
851-
852-debuild-unsigned: debuild-dirs
853- (cd $(distdir)/debian && debuild -us -uc)
854-
855-debuild-dirs: distdir
856- $(RM) $(PACKAGE)_$(VERSION).orig.tar.gz
857- $(RM) -r $(distdir).orig
858- cp -a $(distdir) $(distdir).orig
859- $(RM) -r $(distdir).orig/debian
860-
861-DISTCHECK_CONFIGURE_FLAGS =
862-
863-check-versions:
864- @$(GREP) -e "^[[:space:]]*version[[:space:]]*:[[:space:]]*'$(VERSION)'," $(srcdir)/meson.build >/dev/null || { \
865- echo "======================================================================================"; \
866- echo "Meson version does not seem to match autotools version $(VERSION), update meson.build!"; \
867- echo "======================================================================================"; \
868- exit 1; \
869- }
870-
871-all-local: check-versions
872-
873--include $(top_srcdir)/git.mk
874diff --git a/Tools.mk b/Tools.mk
875deleted file mode 100644
876index fcf26019..00000000
877--- a/Tools.mk
878+++ /dev/null
879@@ -1,51 +0,0 @@
880-# -*- encoding: utf-8 -*-
881-#
882-# Copyright © 2003 Keith Packard
883-# Copyright © 2013 Google, Inc.
884-#
885-# Permission to use, copy, modify, distribute, and sell this software and its
886-# documentation for any purpose is hereby granted without fee, provided that
887-# the above copyright notice appear in all copies and that both that
888-# copyright notice and this permission notice appear in supporting
889-# documentation, and that the name of the author(s) not be used in
890-# advertising or publicity pertaining to distribution of the software without
891-# specific, written prior permission. The authors make no
892-# representations about the suitability of this software for any purpose. It
893-# is provided "as is" without express or implied warranty.
894-#
895-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
896-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
897-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
898-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
899-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
900-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
901-# PERFORMANCE OF THIS SOFTWARE.
902-#
903-# Google Author(s): Behdad Esfahbod
904-
905-DIR=fc-$(TAG)
906-OUT=fc$(TAG)
907-TMPL=$(OUT).tmpl.h
908-TARG=$(OUT).h
909-TOOL=$(srcdir)/$(DIR).py
910-
911-noinst_SCRIPTS = $(TOOL)
912-EXTRA_DIST = $(TARG) $(TMPL) $(DIST)
913-
914-$(TARG): $(TMPL) $(TOOL) $(DEPS)
915- $(AM_V_GEN) \
916- $(RM) $(TARG) && \
917- $(PYTHON) $(TOOL) $(ARGS) --template $< --output $(TARG).tmp && \
918- mv $(TARG).tmp $(TARG) || ( $(RM) $(TARG).tmp && false )
919-noinst_HEADERS=$(TARG)
920-
921-ALIAS_FILES = fcalias.h fcaliastail.h
922-
923-BUILT_SOURCES = $(ALIAS_FILES)
924-
925-$(ALIAS_FILES):
926- $(AM_V_GEN) touch $@
927-
928-CLEANFILES = $(ALIAS_FILES)
929-
930-MAINTAINERCLEANFILES = $(TARG)
931diff --git a/autogen.sh b/autogen.sh
932deleted file mode 100755
933index 8e22684b..00000000
934--- a/autogen.sh
935+++ /dev/null
936@@ -1,126 +0,0 @@
937-#!/bin/sh
938-# fontconfig/autogen.sh
939-#
940-# Copyright © 2000 Keith Packard
941-#
942-# Permission to use, copy, modify, distribute, and sell this software and its
943-# documentation for any purpose is hereby granted without fee, provided that
944-# the above copyright notice appear in all copies and that both that
945-# copyright notice and this permission notice appear in supporting
946-# documentation, and that the name of the author(s) not be used in
947-# advertising or publicity pertaining to distribution of the software without
948-# specific, written prior permission. The authors make no
949-# representations about the suitability of this software for any purpose. It
950-# is provided "as is" without express or implied warranty.
951-#
952-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
953-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
954-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
955-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
956-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
957-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
958-# PERFORMANCE OF THIS SOFTWARE.
959-
960-# Run this to generate all the initial makefiles, etc.
961-
962-set -e
963-
964-srcdir=`dirname $0`
965-test -z "$srcdir" && srcdir=.
966-
967-case "$1" in
968---noconf*)
969- AUTOGEN_SUBDIR_MODE="true"
970- shift
971- ;;
972-esac
973-
974-ORIGDIR=`pwd`
975-cd $srcdir
976-PROJECT=Fontconfig
977-TEST_TYPE=-f
978-FILE=fontconfig/fontconfig.h.in
979-LIBTOOLIZE=${LIBTOOLIZE-libtoolize}
980-AUTOPOINT=${AUTOPOINT-autopoint}
981-AUTORECONF=${AUTORECONF-autoreconf}
982-AUTORECONF_FLAGS=${AUTORECONF_FLAGS-"-i"}
983-GPERF=${GPERF-gperf}
984-GETTEXTIZE=${GETTEXTIZE-gettextize}
985-GETTEXTIZE_FLAGS="--force --no-changelog"
986-
987-DIE=0
988-
989-($GPERF --version) < /dev/null > /dev/null 2>&1 || {
990- echo
991- echo "You must have gperf installed to compile $PROJECT."
992- echo "Install the appropriate package for your distribution."
993- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
994- DIE=1
995-}
996-
997-have_libtool=false
998-if $LIBTOOLIZE --version < /dev/null > /dev/null 2>&1 ; then
999- libtool_version=`$LIBTOOLIZE --version | sed 's/.*libtool) \([0-9][.][0-9.]*\).*$/\1/'`
1000- case $libtool_version in
1001- 1.4*|1.5*|1.6*|1.7*|2*)
1002- have_libtool=true
1003- ;;
1004- esac
1005-fi
1006-if $have_libtool ; then : ; else
1007- echo
1008- echo "You must have libtool 1.4 installed to compile $PROJECT."
1009- echo "Install the appropriate package for your distribution,"
1010- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
1011- DIE=1
1012-fi
1013-($GETTEXTIZE --version) < /dev/null > /dev/null 2>&1 || {
1014- echo
1015- echo "You must have gettext installed to compile $PROJECT."
1016- echo "Install the appropriate package for your distribution,"
1017- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
1018- DIE=1
1019-}
1020-($AUTOPOINT --version) < /dev/null > /dev/null 2>&1 || {
1021- echo
1022- echo "You must have autopoint installed to compile $PROJECT."
1023- echo "Install the appropriate package for your distribution,"
1024- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
1025- DIE=1
1026-}
1027-($AUTORECONF --version) < /dev/null > /dev/null 2>&1 || {
1028- echo
1029- echo "You must have autoreconf installed to compile $PROJECT."
1030- echo "Install the appropriate package for your distribution,"
1031- echo "or get the source tarball at ftp://ftp.gnu.org/pub/gnu/"
1032- DIE=1
1033-}
1034-
1035-if test "$DIE" -eq 1; then
1036- exit 1
1037-fi
1038-
1039-test $TEST_TYPE $FILE || {
1040- echo "You must run this script in the top-level $PROJECT directory"
1041- exit 1
1042-}
1043-
1044-if test -z "$AUTOGEN_SUBDIR_MODE" -a -z "$NOCONFIGURE"; then
1045- if test -z "$*"; then
1046- echo "I am going to run ./configure with no arguments - if you wish "
1047- echo "to pass any to it, please specify them on the $0 command line."
1048- fi
1049-fi
1050-
1051-echo Running $AUTORECONF $AUTORECONF_FLAGS
1052-$AUTORECONF $AUTORECONF_FLAGS
1053-
1054-cd $ORIGDIR
1055-
1056-if test -z "$AUTOGEN_SUBDIR_MODE" -a -z "$NOCONFIGURE"; then
1057- echo Running $srcdir/configure "$@"
1058- $srcdir/configure "$@"
1059-
1060- echo
1061- echo "Now type 'make' to compile $PROJECT."
1062-fi
1063diff --git a/build-aux/meson-dist-autotools.py b/build-aux/meson-dist-autotools.py
1064deleted file mode 100755
1065index ec0f4f11..00000000
1066--- a/build-aux/meson-dist-autotools.py
1067+++ /dev/null
1068@@ -1,26 +0,0 @@
1069-#! /usr/bin/env python3
1070-# Copyright (C) 2024 fontconfig Authors
1071-# SPDX-License-Identifier: HPND
1072-
1073-import os
1074-import shutil
1075-import subprocess
1076-import sys
1077-from pathlib import Path
1078-
1079-sourcedir = os.environ.get('MESON_SOURCE_ROOT')
1080-builddir = os.environ.get('MESON_BUILD_ROOT')
1081-distdir = os.environ.get('MESON_DIST_ROOT')
1082-
1083-if shutil.which('autoreconf'):
1084- print('no autoreconf installed', file=sys.stderr)
1085-
1086-subprocess.run(['autoreconf', '-i'], cwd=distdir)
1087-
1088-# Copy files for compatibility
1089-for f in (Path(builddir) / 'doc').glob('*.1'):
1090- print(f'Copying {f.name}')
1091- shutil.copy2(f, Path(distdir) / f.stem)
1092-
1093-# Remove autom4te.cache
1094-shutil.rmtree(Path(distdir) / 'autom4te.cache')
1095diff --git a/build-aux/meson-dist-docs.py b/build-aux/meson-dist-docs.py
1096deleted file mode 100755
1097index b229d235..00000000
1098--- a/build-aux/meson-dist-docs.py
1099+++ /dev/null
1100@@ -1,29 +0,0 @@
1101-#! /usr/bin/env python3
1102-# Copyright (C) 2024 fontconfig Authors
1103-# SPDX-License-Identifier: HPND
1104-
1105-import os
1106-import shutil
1107-from pathlib import Path
1108-
1109-sourcedir = os.environ.get('MESON_SOURCE_ROOT')
1110-builddir = os.environ.get('MESON_BUILD_ROOT')
1111-distdir = os.environ.get('MESON_DIST_ROOT')
1112-
1113-# Copy manpages
1114-docdir = Path(distdir) / 'doc'
1115-for f in (Path(builddir) / 'doc').glob('*.[135]'):
1116- print(f'Copying {f.name}')
1117- shutil.copy2(f, docdir)
1118-
1119-# Copy config file
1120-confdir = Path(distdir) / 'conf.d'
1121-shutil.copy2(Path(builddir) / 'conf.d' / '35-lang-normalize.conf', confdir)
1122-
1123-# Documentation
1124-shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-devel.html', docdir)
1125-shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-devel.pdf', docdir)
1126-shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-devel.txt', docdir)
1127-shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-user.html', docdir)
1128-shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-user.pdf', docdir)
1129-shutil.copy2(Path(builddir) / 'doc' / 'fontconfig-user.txt', docdir)
1130diff --git a/cmake/FontconfigConfig.cmake.in b/cmake/FontconfigConfig.cmake.in
1131new file mode 100644
1132index 00000000..a1317b2a
1133--- /dev/null
1134+++ b/cmake/FontconfigConfig.cmake.in
1135@@ -0,0 +1,29 @@
1136+@PACKAGE_INIT@
1137+
1138+include(CMakeFindDependencyMacro)
1139+find_dependency(PkgConfig)
1140+find_dependency(Threads)
1141+
1142+pkg_check_modules(FREETYPE QUIET IMPORTED_TARGET "freetype2>=21.0.15")
1143+
1144+set(_fontconfig_xml_backend "@XML_BACKEND@")
1145+if(_fontconfig_xml_backend STREQUAL "expat")
1146+ pkg_check_modules(EXPAT QUIET IMPORTED_TARGET expat)
1147+ if(NOT TARGET PkgConfig::EXPAT)
1148+ find_path(EXPAT_INCLUDE_DIR expat.h)
1149+ find_library(EXPAT_LIBRARY NAMES expat)
1150+ add_library(PkgConfig::EXPAT UNKNOWN IMPORTED)
1151+ set_target_properties(PkgConfig::EXPAT PROPERTIES
1152+ IMPORTED_LOCATION "${EXPAT_LIBRARY}"
1153+ INTERFACE_INCLUDE_DIRECTORIES "${EXPAT_INCLUDE_DIR}")
1154+ endif()
1155+else()
1156+ pkg_check_modules(LIBXML2 QUIET IMPORTED_TARGET libxml-2.0)
1157+endif()
1158+unset(_fontconfig_xml_backend)
1159+
1160+if(NOT TARGET Fontconfig::Fontconfig)
1161+ include("${CMAKE_CURRENT_LIST_DIR}/FontconfigTargets.cmake")
1162+endif()
1163+
1164+check_required_components(Fontconfig)
1165diff --git a/cmake/fontconfig.pc.in b/cmake/fontconfig.pc.in
1166new file mode 100644
1167index 00000000..82592802
1168--- /dev/null
1169+++ b/cmake/fontconfig.pc.in
1170@@ -0,0 +1,16 @@
1171+prefix=@CMAKE_INSTALL_PREFIX@
1172+exec_prefix=${prefix}
1173+libdir=@CMAKE_INSTALL_FULL_LIBDIR@
1174+includedir=@CMAKE_INSTALL_FULL_INCLUDEDIR@
1175+sysconfdir=@CMAKE_INSTALL_FULL_SYSCONFDIR@
1176+localstatedir=@CMAKE_INSTALL_FULL_LOCALSTATEDIR@
1177+PACKAGE=@PROJECT_NAME@
1178+confdir=@FC_BASECONFIGDIR@
1179+cachedir=@FC_CACHEDIR@
1180+
1181+Name: Fontconfig
1182+Description: Font configuration and customization library
1183+Version: @PROJECT_VERSION@
1184+Requires.private: @PKGCONFIG_REQUIRES_PRIVATELY@
1185+Libs: -L${libdir} -lfontconfig
1186+Cflags: -I${includedir}
1187diff --git a/conf.d/CMakeLists.txt b/conf.d/CMakeLists.txt
1188new file mode 100644
1189index 00000000..5b0377b7
1190--- /dev/null
1191+++ b/conf.d/CMakeLists.txt
1192@@ -0,0 +1,119 @@
1193+# conf.d - default configuration templates and active symlinks
1194+
1195+set(FC_CONF_FILES
1196+ 05-reset-dirs-sample.conf
1197+ 09-autohint-if-no-hinting.conf
1198+ 10-autohint.conf
1199+ 10-hinting-full.conf
1200+ 10-hinting-medium.conf
1201+ 10-hinting-none.conf
1202+ 10-hinting-slight.conf
1203+ 10-no-antialias.conf
1204+ 10-scale-bitmap-fonts.conf
1205+ 10-sub-pixel-bgr.conf
1206+ 10-sub-pixel-none.conf
1207+ 10-sub-pixel-rgb.conf
1208+ 10-sub-pixel-vbgr.conf
1209+ 10-sub-pixel-vrgb.conf
1210+ 10-unhinted.conf
1211+ 10-yes-antialias.conf
1212+ 11-lcdfilter-default.conf
1213+ 11-lcdfilter-legacy.conf
1214+ 11-lcdfilter-light.conf
1215+ 11-lcdfilter-none.conf
1216+ 20-unhint-small-vera.conf
1217+ 25-unhint-nonlatin.conf
1218+ 30-metric-aliases.conf
1219+ 40-nonlatin.conf
1220+ 45-generic.conf
1221+ 45-latin.conf
1222+ 48-guessfamily.conf
1223+ 48-spacing.conf
1224+ 49-sansserif.conf
1225+ 50-user.conf
1226+ 51-local.conf
1227+ 60-generic.conf
1228+ 60-latin.conf
1229+ 65-fonts-persian.conf
1230+ 65-khmer.conf
1231+ 65-nonlatin.conf
1232+ 69-unifont.conf
1233+ 70-no-bitmaps.conf
1234+ 70-no-bitmaps-and-emoji.conf
1235+ 70-no-bitmaps-except-emoji.conf
1236+ 70-yes-bitmaps.conf
1237+ 80-delicious.conf
1238+ 90-synthetic.conf
1239+)
1240+
1241+set(FC_CONF_LINKS
1242+ 10-scale-bitmap-fonts.conf
1243+ 10-yes-antialias.conf
1244+ 11-lcdfilter-default.conf
1245+ 20-unhint-small-vera.conf
1246+ 30-metric-aliases.conf
1247+ 40-nonlatin.conf
1248+ 45-generic.conf
1249+ 45-latin.conf
1250+ 48-guessfamily.conf
1251+ 48-spacing.conf
1252+ 49-sansserif.conf
1253+ 50-user.conf
1254+ 51-local.conf
1255+ 60-generic.conf
1256+ 60-latin.conf
1257+ 65-fonts-persian.conf
1258+ 65-nonlatin.conf
1259+ 69-unifont.conf
1260+ 80-delicious.conf
1261+ 90-synthetic.conf
1262+)
1263+
1264+if(NOT DEFAULT_HINTING STREQUAL "noinstall")
1265+ list(APPEND FC_CONF_LINKS "10-hinting-${DEFAULT_HINTING}.conf")
1266+endif()
1267+
1268+if(NOT DEFAULT_SUB_PIXEL_RENDERING STREQUAL "noinstall")
1269+ list(APPEND FC_CONF_LINKS "10-sub-pixel-${DEFAULT_SUB_PIXEL_RENDERING}.conf")
1270+endif()
1271+
1272+if(BITMAP_CONF STREQUAL "yes")
1273+ list(APPEND FC_CONF_LINKS "70-yes-bitmaps.conf")
1274+elseif(BITMAP_CONF STREQUAL "no")
1275+ list(APPEND FC_CONF_LINKS "70-no-bitmaps-and-emoji.conf")
1276+elseif(BITMAP_CONF STREQUAL "no-except-emoji")
1277+ list(APPEND FC_CONF_LINKS "70-no-bitmaps-except-emoji.conf")
1278+endif()
1279+
1280+install(FILES ${FC_CONF_FILES} DESTINATION "${FC_TEMPLATEDIR}")
1281+
1282+# Symlink the default-enabled templates into conf.d at install time
1283+install(CODE "
1284+ execute_process(COMMAND ${Python3_EXECUTABLE} \"${CMAKE_CURRENT_SOURCE_DIR}/link_confs.py\"
1285+ \"${FC_TEMPLATEDIR}\" \"${FC_CONFIGDIR}\" ${FC_CONF_LINKS})
1286+")
1287+
1288+# 35-lang-normalize.conf, derived from the fc-lang orthography list
1289+set(FC_LANG_NORMALIZE_ORTHS "")
1290+foreach(orth IN LISTS FC_LANG_ORTH_FILES)
1291+ get_filename_component(lang "${orth}" NAME_WE)
1292+ if(NOT lang MATCHES "_")
1293+ list(APPEND FC_LANG_NORMALIZE_ORTHS "${lang}")
1294+ endif()
1295+endforeach()
1296+list(JOIN FC_LANG_NORMALIZE_ORTHS "," FC_LANG_NORMALIZE_ORTHS_STR)
1297+
1298+add_custom_command(
1299+ OUTPUT "${CMAKE_CURRENT_BINARY_DIR}/35-lang-normalize.conf"
1300+ COMMAND ${Python3_EXECUTABLE} "${CMAKE_CURRENT_SOURCE_DIR}/write-35-lang-normalize-conf.py"
1301+ "${FC_LANG_NORMALIZE_ORTHS_STR}" "${CMAKE_CURRENT_BINARY_DIR}/35-lang-normalize.conf"
1302+ DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/write-35-lang-normalize-conf.py"
1303+ VERBATIM)
1304+
1305+add_custom_target(lang_normalize_conf ALL DEPENDS "${CMAKE_CURRENT_BINARY_DIR}/35-lang-normalize.conf")
1306+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/35-lang-normalize.conf" DESTINATION "${FC_TEMPLATEDIR}")
1307+
1308+# README
1309+set(TEMPLATEDIR "${FC_TEMPLATEDIR}")
1310+configure_file("${CMAKE_CURRENT_SOURCE_DIR}/README.in" "${CMAKE_CURRENT_BINARY_DIR}/README" @ONLY)
1311+install(FILES "${CMAKE_CURRENT_BINARY_DIR}/README" DESTINATION "${FC_CONFIGDIR}")
1312diff --git a/conf.d/Makefile.am b/conf.d/Makefile.am
1313deleted file mode 100644
1314index bae53d7a..00000000
1315--- a/conf.d/Makefile.am
1316+++ /dev/null
1317@@ -1,127 +0,0 @@
1318-#
1319-# fontconfig/conf.d/Makefile.am
1320-#
1321-# Copyright © 2005 Keith Packard
1322-#
1323-# Permission to use, copy, modify, distribute, and sell this software and its
1324-# documentation for any purpose is hereby granted without fee, provided that
1325-# the above copyright notice appear in all copies and that both that
1326-# copyright notice and this permission notice appear in supporting
1327-# documentation, and that the name of the author(s) not be used in
1328-# advertising or publicity pertaining to distribution of the software without
1329-# specific, written prior permission. The authors make no
1330-# representations about the suitability of this software for any purpose. It
1331-# is provided "as is" without express or implied warranty.
1332-#
1333-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1334-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1335-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1336-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1337-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1338-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1339-# PERFORMANCE OF THIS SOFTWARE.
1340-
1341-NULL =
1342-BUILT_SOURCES = \
1343- README \
1344- 35-lang-normalize.conf \
1345- $(NULL)
1346-DOC_SOURCES = README.in
1347-DOC_FILES = $(DOC_SOURCES:.in=)
1348-
1349-CONF_LINKS = \
1350- 10-hinting-$(PREFERRED_HINTING).conf \
1351- 10-scale-bitmap-fonts.conf \
1352- 10-yes-antialias.conf \
1353- 10-sub-pixel-$(PREFERRED_SUB_PIXEL_RENDERING).conf \
1354- 11-lcdfilter-default.conf \
1355- 20-unhint-small-vera.conf \
1356- 30-metric-aliases.conf \
1357- 40-nonlatin.conf \
1358- 45-generic.conf \
1359- 45-latin.conf \
1360- 48-guessfamily.conf \
1361- 48-spacing.conf \
1362- 49-sansserif.conf \
1363- 50-user.conf \
1364- 51-local.conf \
1365- 60-generic.conf \
1366- 60-latin.conf \
1367- 65-fonts-persian.conf \
1368- 65-nonlatin.conf \
1369- 69-unifont.conf \
1370- 80-delicious.conf \
1371- 90-synthetic.conf
1372-
1373-CONF_LINKS += 70-$(PREFERRED_BITMAP).conf
1374-
1375-EXTRA_DIST = $(template_DATA) $(DOC_SOURCES)
1376-CLEANFILES = $(DOC_FILES)
1377-
1378-configdir = $(CONFIGDIR)
1379-config_DATA = $(DOC_FILES)
1380-
1381-templatedir = $(TEMPLATEDIR)
1382-template_DATA = \
1383- 05-reset-dirs-sample.conf \
1384- 09-autohint-if-no-hinting.conf \
1385- 10-autohint.conf \
1386- 10-hinting-full.conf \
1387- 10-hinting-medium.conf \
1388- 10-hinting-none.conf \
1389- 10-hinting-slight.conf \
1390- 10-no-antialias.conf \
1391- 10-scale-bitmap-fonts.conf \
1392- 10-sub-pixel-bgr.conf \
1393- 10-sub-pixel-none.conf \
1394- 10-sub-pixel-rgb.conf \
1395- 10-sub-pixel-vbgr.conf \
1396- 10-sub-pixel-vrgb.conf \
1397- 10-unhinted.conf \
1398- 10-yes-antialias.conf \
1399- 11-lcdfilter-default.conf \
1400- 11-lcdfilter-legacy.conf \
1401- 11-lcdfilter-light.conf \
1402- 11-lcdfilter-none.conf \
1403- 20-unhint-small-vera.conf \
1404- 25-unhint-nonlatin.conf \
1405- 30-metric-aliases.conf \
1406- 35-lang-normalize.conf \
1407- 40-nonlatin.conf \
1408- 45-generic.conf \
1409- 45-latin.conf \
1410- 48-guessfamily.conf \
1411- 48-spacing.conf \
1412- 49-sansserif.conf \
1413- 50-user.conf \
1414- 51-local.conf \
1415- 60-generic.conf \
1416- 60-latin.conf \
1417- 65-fonts-persian.conf \
1418- 65-khmer.conf \
1419- 65-nonlatin.conf \
1420- 69-unifont.conf \
1421- 70-no-bitmaps.conf \
1422- 70-no-bitmaps-and-emoji.conf \
1423- 70-no-bitmaps-except-emoji.conf \
1424- 70-yes-bitmaps.conf \
1425- 80-delicious.conf \
1426- 90-synthetic.conf
1427-
1428-README: $(srcdir)/README.in
1429- sed "s|\@TEMPLATEDIR\@|$(templatedir)|" $< > $@
1430-
1431-35-lang-normalize.conf: ../fc-lang/Makefile.am
1432- cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) $(top_builddir)/conf.d/35-lang-normalize.conf
1433-
1434-install-data-hook:
1435- $(PYTHON) $(srcdir)/link_confs.py $(templatedir) $(configdir) $(CONF_LINKS)
1436-uninstall-local:
1437- @(echo cd $(DESTDIR)$(configdir); \
1438- cd $(DESTDIR)$(configdir); \
1439- for i in $(CONF_LINKS); do \
1440- echo $(RM) $$i; \
1441- $(RM) $$i; \
1442- done)
1443-
1444--include $(top_srcdir)/git.mk
1445diff --git a/conf.d/meson.build b/conf.d/meson.build
1446deleted file mode 100644
1447index 974350d5..00000000
1448--- a/conf.d/meson.build
1449+++ /dev/null
1450@@ -1,132 +0,0 @@
1451-conf_files = [
1452- '05-reset-dirs-sample.conf',
1453- '09-autohint-if-no-hinting.conf',
1454- '10-autohint.conf',
1455- '10-hinting-full.conf',
1456- '10-hinting-medium.conf',
1457- '10-hinting-none.conf',
1458- '10-hinting-slight.conf',
1459- '10-no-antialias.conf',
1460- '10-scale-bitmap-fonts.conf',
1461- '10-sub-pixel-bgr.conf',
1462- '10-sub-pixel-none.conf',
1463- '10-sub-pixel-rgb.conf',
1464- '10-sub-pixel-vbgr.conf',
1465- '10-sub-pixel-vrgb.conf',
1466- '10-unhinted.conf',
1467- '10-yes-antialias.conf',
1468- '11-lcdfilter-default.conf',
1469- '11-lcdfilter-legacy.conf',
1470- '11-lcdfilter-light.conf',
1471- '11-lcdfilter-none.conf',
1472- '20-unhint-small-vera.conf',
1473- '25-unhint-nonlatin.conf',
1474- '30-metric-aliases.conf',
1475- '40-nonlatin.conf',
1476- '45-generic.conf',
1477- '45-latin.conf',
1478- '48-guessfamily.conf',
1479- '48-spacing.conf',
1480- '49-sansserif.conf',
1481- '50-user.conf',
1482- '51-local.conf',
1483- '60-generic.conf',
1484- '60-latin.conf',
1485- '65-fonts-persian.conf',
1486- '65-khmer.conf',
1487- '65-nonlatin.conf',
1488- '69-unifont.conf',
1489- '70-no-bitmaps.conf',
1490- '70-no-bitmaps-and-emoji.conf',
1491- '70-no-bitmaps-except-emoji.conf',
1492- '70-yes-bitmaps.conf',
1493- '80-delicious.conf',
1494- '90-synthetic.conf',
1495-]
1496-
1497-preferred_hinting = get_option('default-hinting')
1498-preferred_sub_pixel_rendering = get_option('default-sub-pixel-rendering')
1499-preferred_bitmap = get_option('bitmap-conf')
1500-
1501-conf_links = [
1502- '10-scale-bitmap-fonts.conf',
1503- '10-yes-antialias.conf',
1504- '11-lcdfilter-default.conf',
1505- '20-unhint-small-vera.conf',
1506- '30-metric-aliases.conf',
1507- '40-nonlatin.conf',
1508- '45-generic.conf',
1509- '45-latin.conf',
1510- '48-guessfamily.conf',
1511- '48-spacing.conf',
1512- '49-sansserif.conf',
1513- '50-user.conf',
1514- '51-local.conf',
1515- '60-generic.conf',
1516- '60-latin.conf',
1517- '65-fonts-persian.conf',
1518- '65-nonlatin.conf',
1519- '69-unifont.conf',
1520- '80-delicious.conf',
1521- '90-synthetic.conf',
1522-]
1523-
1524-if host_machine.system() == 'darwin'
1525- conf_files += '05-macos.conf'
1526- conf_links += '05-macos.conf'
1527-endif
1528-
1529-if preferred_hinting != 'noinstall'
1530- conf_links += '10-hinting-@0@.conf'.format(preferred_hinting)
1531-endif
1532-
1533-if preferred_sub_pixel_rendering != 'noinstall'
1534- conf_links += '10-sub-pixel-@0@.conf'.format(preferred_sub_pixel_rendering)
1535-endif
1536-
1537-bitmap_conf_options = {
1538- 'yes': 'yes-bitmaps',
1539- 'no': 'no-bitmaps-and-emoji',
1540- 'no-except-emoji': 'no-bitmaps-except-emoji'
1541-}
1542-
1543-foreach opt, configfile : bitmap_conf_options
1544- if opt == preferred_bitmap
1545- conf_links += '70-@0@.conf'.format(configfile)
1546- endif
1547-endforeach
1548-
1549-install_data(conf_files,
1550- install_dir: fc_templatedir,
1551- install_tag: 'runtime')
1552-
1553-meson.add_install_script('link_confs.py', fc_templatedir,
1554- fc_configdir,
1555- conf_links,
1556- install_tag: 'runtime')
1557-
1558-# 35-lang-normalize.conf
1559-orths = []
1560-foreach o : orth_files # orth_files is from fc-lang/meson.build
1561- o = o.split('.')[0] # strip filename suffix
1562- if not o.contains('_') # ignore those with an underscore
1563- orths += [o]
1564- endif
1565-endforeach
1566-
1567-custom_target('35-lang-normalize.conf',
1568- output: '35-lang-normalize.conf',
1569- command: [find_program('write-35-lang-normalize-conf.py'), ','.join(orths), '@OUTPUT@'],
1570- install_dir: fc_templatedir,
1571- install: true,
1572- install_tag: 'runtime')
1573-
1574-# README
1575-readme_cdata = configuration_data()
1576-readme_cdata.set('TEMPLATEDIR', fc_templatedir)
1577-configure_file(output: 'README',
1578- input: 'README.in',
1579- configuration: readme_cdata,
1580- install_dir: fc_configdir,
1581- install: true,
1582- install_tag: 'runtime')
1583diff --git a/config-fixups.h b/config-fixups.h
1584deleted file mode 100644
1585index 06d707d0..00000000
1586--- a/config-fixups.h
1587+++ /dev/null
1588@@ -1,40 +0,0 @@
1589-/*
1590- * Copyright 息 2006 Keith Packard
1591- * Copyright 息 2010 Behdad Esfahbod
1592- *
1593- * Permission to use, copy, modify, distribute, and sell this software and its
1594- * documentation for any purpose is hereby granted without fee, provided that
1595- * the above copyright notice appear in all copies and that both that
1596- * copyright notice and this permission notice appear in supporting
1597- * documentation, and that the name of the author(s) not be used in
1598- * advertising or publicity pertaining to distribution of the software without
1599- * specific, written prior permission. The authors make no
1600- * representations about the suitability of this software for any purpose. It
1601- * is provided "as is" without express or implied warranty.
1602- *
1603- * THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1604- * INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1605- * EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1606- * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1607- * DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1608- * TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1609- * PERFORMANCE OF THIS SOFTWARE.
1610- */
1611-
1612-/* This header file is supposed to be included in config.h */
1613-
1614-/* just a hack to build the fat binaries:
1615- * https://bugs.freedesktop.org/show_bug.cgi?id=20208
1616- */
1617-#ifdef __APPLE__
1618-# include <machine/endian.h>
1619-# undef SIZEOF_VOID_P
1620-# undef ALIGNOF_DOUBLE
1621-# ifdef __LP64__
1622-# define SIZEOF_VOID_P 8
1623-# define ALIGNOF_DOUBLE 8
1624-# else
1625-# define SIZEOF_VOID_P 4
1626-# define ALIGNOF_DOUBLE 4
1627-# endif
1628-#endif
1629diff --git a/config.h.in b/config.h.in
1630new file mode 100644
1631index 00000000..4530c188
1632--- /dev/null
1633+++ b/config.h.in
1634@@ -0,0 +1,114 @@
1635+/* config.h.in - CMake configuration template for fontconfig (Linux only) */
1636+#ifndef _FC_CONFIG_H_
1637+#define _FC_CONFIG_H_
1638+
1639+/* Version */
1640+#define FC_VERSION_MAJOR @FC_VERSION_MAJOR@
1641+#define FC_VERSION_MINOR @FC_VERSION_MINOR@
1642+#define FC_VERSION_MICRO @FC_VERSION_MICRO@
1643+
1644+/* Package metadata (kept for compatibility with autoconf-era code) */
1645+#define PACKAGE_NAME "@PACKAGE_NAME@"
1646+#define PACKAGE_TARNAME "@PACKAGE_NAME@"
1647+#define PACKAGE_VERSION "@PACKAGE_VERSION@"
1648+#define PACKAGE_STRING "@PACKAGE_NAME@ @PACKAGE_VERSION@"
1649+#define PACKAGE_BUGREPORT "https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new"
1650+#define PACKAGE_URL ""
1651+#define GETTEXT_PACKAGE "@PACKAGE_NAME@"
1652+
1653+/* Endianness */
1654+#cmakedefine01 WORDS_BIGENDIAN
1655+
1656+/* Optional backends */
1657+#cmakedefine01 ENABLE_FREETYPE
1658+#cmakedefine ENABLE_LIBXML2
1659+#cmakedefine01 ENABLE_FONTATIONS
1660+#cmakedefine01 USE_ICONV
1661+#cmakedefine FREETYPE_PCF_LONG_FAMILY_NAMES
1662+
1663+/* Headers */
1664+#cmakedefine HAVE_DIRENT_H
1665+#cmakedefine HAVE_DLFCN_H
1666+#cmakedefine01 HAVE_FCNTL_H
1667+#cmakedefine HAVE_INTTYPES_H
1668+#cmakedefine HAVE_STDINT_H
1669+#cmakedefine HAVE_STDIO_H
1670+#cmakedefine HAVE_STDLIB_H
1671+#cmakedefine HAVE_STRINGS_H
1672+#cmakedefine HAVE_STRING_H
1673+#cmakedefine01 HAVE_UNISTD_H
1674+#cmakedefine HAVE_SYS_STATVFS_H
1675+#cmakedefine HAVE_SYS_VFS_H
1676+#cmakedefine HAVE_SYS_STATFS_H
1677+#cmakedefine01 HAVE_SYS_STAT_H
1678+#cmakedefine01 HAVE_SYS_TYPES_H
1679+#cmakedefine HAVE_SYS_PARAM_H
1680+#cmakedefine HAVE_SYS_MOUNT_H
1681+#cmakedefine HAVE_TIME_H
1682+#cmakedefine HAVE_WCHAR_H
1683+#cmakedefine HAVE_XLOCALE_H
1684+
1685+/* Functions */
1686+#cmakedefine HAVE_LINK
1687+#cmakedefine01 HAVE_MKSTEMP
1688+#cmakedefine HAVE_MKDTEMP
1689+#cmakedefine01 HAVE_GETOPT
1690+#cmakedefine01 HAVE_GETOPT_LONG
1691+#cmakedefine01 HAVE_RAND
1692+#cmakedefine01 HAVE_RANDOM
1693+#cmakedefine01 HAVE_LRAND48
1694+#cmakedefine01 HAVE_RANDOM_R
1695+#cmakedefine01 HAVE_RAND_R
1696+#cmakedefine HAVE_READLINK
1697+#cmakedefine HAVE_FSTATVFS
1698+#cmakedefine HAVE_FSTATFS
1699+#cmakedefine01 HAVE_LSTAT
1700+#cmakedefine01 HAVE_STRERROR
1701+#cmakedefine01 HAVE_STRERROR_R
1702+#cmakedefine HAVE_MMAP
1703+#cmakedefine01 HAVE_VASPRINTF
1704+#cmakedefine HAVE_VPRINTF
1705+#cmakedefine01 HAVE_VSNPRINTF
1706+#cmakedefine HAVE_VSPRINTF
1707+#cmakedefine HAVE_GETPAGESIZE
1708+#cmakedefine HAVE_GETPID
1709+#cmakedefine HAVE_LOCALTIME_R
1710+#cmakedefine HAVE_STRDUP
1711+#cmakedefine HAVE_POSIX_FADVISE
1712+#cmakedefine01 HAVE_MKOSTEMP
1713+#cmakedefine HAVE_PTHREAD
1714+
1715+/* FreeType related functions */
1716+#cmakedefine01 HAVE_FT_GET_BDF_PROPERTY
1717+#cmakedefine01 HAVE_FT_GET_PS_FONT_INFO
1718+#cmakedefine HAVE_FT_HAS_PS_GLYPH_NAMES
1719+#cmakedefine01 HAVE_FT_GET_X11_FONT_FORMAT
1720+#cmakedefine HAVE_FT_DONE_MM_VAR
1721+
1722+/* Struct members */
1723+#cmakedefine HAVE_STRUCT_STATFS_F_FLAGS
1724+#cmakedefine HAVE_STRUCT_STAT_ST_MTIM
1725+#cmakedefine HAVE_STRUCT_DIRENT_D_TYPE
1726+
1727+/* Sizes / alignments */
1728+#define SIZEOF_VOID_P @SIZEOF_VOID_P@
1729+#define ALIGNOF_VOID_P @ALIGNOF_VOID_P@
1730+#define ALIGNOF_DOUBLE @ALIGNOF_DOUBLE@
1731+
1732+/* Misc */
1733+#define HAVE_C99_VSNPRINTF 1
1734+#cmakedefine HAVE_STDATOMIC_PRIMITIVES
1735+#cmakedefine HAVE_PTHREAD_PRIO_INHERIT
1736+#define FLEXIBLE_ARRAY_MEMBER @FLEXIBLE_ARRAY_MEMBER@
1737+#define FC_GPERF_SIZE_T @FC_GPERF_SIZE_T@
1738+#define _GNU_SOURCE 1
1739+
1740+/* Paths */
1741+#define CONFIGDIR "@CONFIGDIR@"
1742+#define FC_CACHEDIR "@FC_CACHEDIR@"
1743+#define FC_TEMPLATEDIR "@FC_TEMPLATEDIR@"
1744+#define FONTCONFIG_PATH "@FONTCONFIG_PATH@"
1745+#define FC_DEFAULT_FONTS "@FC_DEFAULT_FONTS@"
1746+#define FC_FONTPATH "@FC_FONTPATH@"
1747+
1748+#endif /* _FC_CONFIG_H_ */
1749diff --git a/configure.ac b/configure.ac
1750deleted file mode 100644
1751index 851f23f0..00000000
1752--- a/configure.ac
1753+++ /dev/null
1754@@ -1,925 +0,0 @@
1755-dnl
1756-dnl fontconfig/configure.in
1757-dnl
1758-dnl Copyright © 2003 Keith Packard
1759-dnl
1760-dnl Permission to use, copy, modify, distribute, and sell this software and its
1761-dnl documentation for any purpose is hereby granted without fee, provided that
1762-dnl the above copyright notice appear in all copies and that both that
1763-dnl copyright notice and this permission notice appear in supporting
1764-dnl documentation, and that the name of the author(s) not be used in
1765-dnl advertising or publicity pertaining to distribution of the software without
1766-dnl specific, written prior permission. The authors make no
1767-dnl representations about the suitability of this software for any purpose. It
1768-dnl is provided "as is" without express or implied warranty.
1769-dnl
1770-dnl THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
1771-dnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
1772-dnl EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
1773-dnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
1774-dnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
1775-dnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
1776-dnl PERFORMANCE OF THIS SOFTWARE.
1777-dnl
1778-dnl Process this file with autoconf to create configure.
1779-
1780-AC_PREREQ([2.71])
1781-
1782-dnl ==========================================================================
1783-dnl Versioning
1784-dnl ==========================================================================
1785-
1786-dnl This is the package version number, not the shared library
1787-dnl version. This same version number must appear in fontconfig/fontconfig.h
1788-dnl Yes, it is a pain to synchronize version numbers. Unfortunately, it's
1789-dnl not possible to extract the version number here from fontconfig.h
1790-AC_INIT([fontconfig],[2.18.1],[https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new])
1791-AM_INIT_AUTOMAKE([1.11 parallel-tests dist-xz foreign])
1792-m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
1793-
1794-dnl ==========================================================================
1795-
1796-AC_CONFIG_HEADERS(config.h)
1797-AC_CONFIG_MACRO_DIR([m4])
1798-
1799-AC_PROG_CC
1800-AC_USE_SYSTEM_EXTENSIONS
1801-AC_SYS_LARGEFILE
1802-AC_PROG_INSTALL
1803-AC_PROG_LN_S
1804-AC_PROG_MAKE_SET
1805-PKG_PROG_PKG_CONFIG
1806-m4_ifdef([PKG_INSTALLDIR], [PKG_INSTALLDIR], AC_SUBST([pkgconfigdir], ${libdir}/pkgconfig))
1807-
1808-AM_MISSING_PROG([GIT], [git])
1809-AM_MISSING_PROG([GPERF], [gperf])
1810-AM_PATH_PYTHON([3])
1811-
1812-AC_MSG_CHECKING([for RM macro])
1813-_predefined_rm=`make -p -f /dev/null 2>/dev/null|grep '^RM ='|sed -e 's/^RM = //'`
1814-if test "x$_predefined_rm" = "x"; then
1815- AC_MSG_RESULT([no predefined RM])
1816- AC_CHECK_PROG(RM, rm, [rm -f])
1817-else
1818- AC_MSG_RESULT($_predefined_rm)
1819-fi
1820-
1821-dnl Initialize libtool
1822-LT_PREREQ([2.2])
1823-LT_INIT([disable-static win32-dll])
1824-
1825-dnl fc version
1826-eval `echo $VERSION |
1827- awk -F. '{ printf ("major=%d\nminor=%d\nrevision=%d\n",
1828- $1, $2, $3); }'`
1829-AC_DEFINE_UNQUOTED([FC_VERSION_MAJOR], [$major], [major version])
1830-AC_DEFINE_UNQUOTED([FC_VERSION_MINOR], [$minor], [minor version])
1831-AC_DEFINE_UNQUOTED([FC_VERSION_MICRO], [$revision], [revision])
1832-
1833-dnl Preparation for enabling a FreeType-less build, for now, default enable.
1834-AC_DEFINE_UNQUOTED([ENABLE_FREETYPE], [1], [Enable building with FreeType.])
1835-
1836-dnl cache version
1837-CACHE_VERSION=11
1838-AC_SUBST(CACHE_VERSION)
1839-
1840-dnl libtool versioning
1841-
1842-dnl bump revision when fixing bugs
1843-dnl bump current and age, reset revision to zero when adding APIs
1844-dnl bump current, leave age, reset revision to zero when changing/removing APIS
1845-LIBT_CURRENT=17
1846-LIBT_REVISION=1
1847-AC_SUBST(LIBT_CURRENT)
1848-AC_SUBST(LIBT_REVISION)
1849-LIBT_AGE=16
1850-
1851-LIBT_VERSION_INFO="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
1852-AC_SUBST(LIBT_VERSION_INFO)
1853-
1854-LIBT_CURRENT_MINUS_AGE=`expr $LIBT_CURRENT - $LIBT_AGE`
1855-AC_SUBST(LIBT_CURRENT_MINUS_AGE)
1856-
1857-PKGCONFIG_REQUIRES=
1858-PKGCONFIG_REQUIRES_PRIVATELY=
1859-
1860-dnl ==========================================================================
1861-AC_CANONICAL_HOST
1862-os_win32=no
1863-os_darwin=no
1864-os_android=no
1865-case "${host_os}" in
1866- linux*android*)
1867- os_android=yes
1868- ;;
1869- cygwin*|mingw*)
1870- os_win32=yes
1871- ;;
1872- darwin*)
1873- os_darwin=yes
1874- ;;
1875-esac
1876-AM_CONDITIONAL(OS_WIN32, test "$os_win32" = "yes")
1877-AM_CONDITIONAL(OS_DARWIN, test "$os_darwin" = "yes")
1878-
1879-dnl ==========================================================================
1880-dnl gettext stuff
1881-dnl ==========================================================================
1882-GETTEXT_PACKAGE=$PACKAGE
1883-AC_SUBST(GETTEXT_PACKAGE)
1884-AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
1885-
1886-AM_GNU_GETTEXT_VERSION([0.19.7])
1887-AM_GNU_GETTEXT([external])
1888-
1889-dnl ==========================================================================
1890-
1891-if test "$os_win32" = "yes"; then
1892- AC_CHECK_PROG(ms_librarian, lib.exe, yes, no)
1893-fi
1894-AM_CONDITIONAL(MS_LIB_AVAILABLE, test x$ms_librarian = xyes)
1895-
1896-AC_CHECK_DECL([__SUNPRO_C], [SUNCC="yes"], [SUNCC="no"])
1897-WARN_CFLAGS=""
1898-WARNING_CPP_DIRECTIVE="no"
1899-if test "x$GCC" = "xyes"; then
1900- WARN_CFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes \
1901- -Wmissing-prototypes -Wmissing-declarations \
1902- -Wnested-externs"
1903- WARNING_CPP_DIRECTIVE="yes"
1904-elif test "x$SUNCC" = "xyes"; then
1905- WARN_CFLAGS="-v -fd"
1906- WARNING_CPP_DIRECTIVE="yes"
1907-fi
1908-if test "x$WARNING_CPP_DIRECTIVE" = "xyes"; then
1909- AC_DEFINE_UNQUOTED(HAVE_WARNING_CPP_DIRECTIVE,1,
1910- [Can use #warning in C files])
1911-fi
1912-AC_SUBST(WARN_CFLAGS)
1913-
1914-
1915-dnl ==========================================================================
1916-
1917-AX_CC_FOR_BUILD()
1918-AC_ARG_VAR(CC_FOR_BUILD, [build system C compiler])
1919-AM_CONDITIONAL(CROSS_COMPILING, test $cross_compiling = yes)
1920-AM_CONDITIONAL(ENABLE_SHARED, test "$enable_shared" = "yes")
1921-
1922-dnl ==========================================================================
1923-
1924-AC_ARG_WITH(arch,
1925- [AS_HELP_STRING([--with-arch=ARCH],[Force architecture to ARCH])],
1926- arch="$withval", arch=auto)
1927-
1928-if test "x$arch" != xauto; then
1929- AC_DEFINE_UNQUOTED([FC_ARCHITECTURE], "$arch", [Architecture prefix to use for cache file names])
1930-fi
1931-
1932-
1933-dnl ==========================================================================
1934-
1935-# Checks for header files.
1936-AC_HEADER_DIRENT
1937-# Autoupdate added the next two lines to ensure that your configure
1938-# script's behavior did not change. They are probably safe to remove.
1939-AC_CHECK_INCLUDES_DEFAULT
1940-AC_PROG_EGREP
1941-
1942-AC_CHECK_HEADERS([dirent.h fcntl.h stdlib.h string.h unistd.h sys/statvfs.h sys/vfs.h sys/statfs.h sys/param.h sys/mount.h])
1943-AX_CREATE_STDINT_H([src/fcstdint.h])
1944-
1945-# Checks for typedefs, structures, and compiler characteristics.
1946-AC_C_CONST
1947-AC_C_INLINE
1948-AC_C_FLEXIBLE_ARRAY_MEMBER
1949-AC_TYPE_PID_T
1950-
1951-# Checks for library functions.
1952-AX_FUNC_SNPRINTF
1953-AC_FUNC_VPRINTF
1954-AC_FUNC_MMAP
1955-AC_CHECK_FUNCS([link mkstemp _mktemp_s mkdtemp getopt getopt_long getprogname getexecname rand random lrand48 random_r rand_r readlink fstatvfs fstatfs lstat strerror strerror_r strdup vasprintf])
1956-
1957-AC_CHECK_DECL([mkostemp],[AC_DEFINE_UNQUOTED([HAVE_MKOSTEMP],[1],[Define to 1 if you have the 'mkostemp' function.])],[],[#include <stdlib.h>])
1958-
1959-AC_SEARCH_LIBS([fabs], [m], [], [AC_MSG_ERROR([unable to find the fabs() function])])
1960-
1961-dnl AC_CHECK_FUNCS doesn't check for header files.
1962-dnl posix_fadvise() may be not available in older libc.
1963-AC_CHECK_SYMBOL([posix_fadvise], [fcntl.h], [fc_func_posix_fadvise=1], [fc_func_posix_fadvise=0])
1964-AC_DEFINE_UNQUOTED([HAVE_POSIX_FADVISE], [$fc_func_posix_fadvise], [Define to 1 if you have the 'posix_fadvise' function.])
1965-
1966-#
1967-AC_CHECK_MEMBERS([struct stat.st_mtim],,, [#include <sys/stat.h>])
1968-
1969-#
1970-if test "x$ac_cv_func_fstatvfs" = "xyes"; then
1971- AC_CHECK_MEMBERS([struct statvfs.f_basetype, struct statvfs.f_fstypename],,,
1972- [#include <sys/statvfs.h>])
1973-fi
1974-if test "x$ac_cv_func_fstatfs" = "xyes"; then
1975- AC_CHECK_MEMBERS([struct statfs.f_flags, struct statfs.f_fstypename],,, [
1976-#ifdef HAVE_SYS_VFS_H
1977-#include <sys/vfs.h>
1978-#endif
1979-#ifdef HAVE_SYS_STATFS_H
1980-#include <sys/statfs.h>
1981-#endif
1982-#ifdef HAVE_SYS_PARAM_H
1983-#include <sys/param.h>
1984-#endif
1985-#ifdef HAVE_SYS_MOUNT_H
1986-#include <sys/mount.h>
1987-#endif])
1988-fi
1989-AC_CHECK_MEMBERS([struct dirent.d_type],,,
1990- [#include <dirent.h>])
1991-
1992-# Check the argument type of the gperf hash/lookup function
1993-AC_MSG_CHECKING([The type of len parameter of gperf hash/lookup function])
1994-fc_gperf_test="$(echo 'foo' | gperf -L ANSI-C)"
1995-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
1996- #include <string.h>
1997-
1998- const char *in_word_set(register const char *, register size_t);
1999- $fc_gperf_test
2000- ]])], [FC_GPERF_SIZE_T=size_t],
2001- [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
2002- #include <string.h>
2003-
2004- const char *in_word_set(register const char *, register unsigned int);
2005- $fc_gperf_test
2006- ]])], [FC_GPERF_SIZE_T="unsigned int"],
2007- [AC_MSG_ERROR([Unable to determine the type of the len parameter of the gperf hash/lookup function])]
2008-)])
2009-AC_DEFINE_UNQUOTED(FC_GPERF_SIZE_T, $FC_GPERF_SIZE_T, [The type of len parameter of the gperf hash/lookup function])
2010-AC_MSG_RESULT($FC_GPERF_SIZE_T)
2011-
2012-AC_CHECK_VA_COPY
2013-
2014-AC_CACHE_CHECK([Whether vsnprintf is C99-compliant], [fc_cv_c99_vsnprintf],
2015- [AC_RUN_IFELSE([AC_LANG_SOURCE([[
2016-#include <sys/types.h>
2017-#include <stdio.h>
2018-#include <stdarg.h>
2019-#include <stdlib.h>
2020-int
2021-foo(char *format, ...)
2022-{
2023- va_list ap;
2024- char c;
2025- int retval = 0;
2026-
2027- va_start(ap, format);
2028- if (vsnprintf(&c, 1, format, ap) < 0) {
2029- retval = -1;
2030- }
2031- va_end(ap);
2032-
2033- return retval;
2034-}
2035-int
2036-main(void)
2037-{
2038- char c;
2039-
2040- return foo("foo: %s", "bar");
2041-}]])],
2042- [fc_cv_c99_vsnprintf=yes],[fc_cv_c99_vsnprintf=no],[fc_cv_c99_vsnprintf=no])])
2043-if test "x$fc_cv_c99_vsnprintf" = xyes; then
2044- AC_DEFINE(HAVE_C99_VSNPRINTF, 1, [Have C99-compliant vsnprintf])
2045-fi
2046-
2047-#
2048-# Checks for iconv
2049-#
2050-AC_ARG_ENABLE(iconv,
2051- [AS_HELP_STRING([--enable-iconv],[Use iconv to support non-Unicode SFNT name])],
2052- ,enable_iconv=no)
2053-AC_ARG_WITH(libiconv,
2054- [AS_HELP_STRING([--with-libiconv=DIR],[Use libiconv in DIR])],
2055- [if test "x$withval" = "xyes"; then
2056- libiconv_prefix=$prefix
2057- else
2058- libiconv_prefix=$withval
2059- fi],
2060- [libiconv_prefix=auto])
2061-AC_ARG_WITH(libiconv-includes,
2062- [AS_HELP_STRING([--with-libiconv-includes=DIR],[Use libiconv includes in DIR])],
2063- [libiconv_includes=$withval],
2064- [libiconv_includes=auto])
2065-AC_ARG_WITH(libiconv-lib,
2066- [AS_HELP_STRING([--with-libiconv-lib=DIR],[Use libiconv library in DIR])],
2067- [libiconv_lib=$withval],
2068- [libiconv_lib=auto])
2069-
2070-# if no libiconv,libiconv-includes,libiconv-lib are specified,
2071-# libc's iconv has a priority.
2072-if test "$libiconv_includes" != "auto" -a -r ${libiconv_includes}/iconv.h; then
2073- libiconv_cflags="-I${libiconv_includes}"
2074-elif test "$libiconv_prefix" != "auto" -a -r ${libiconv_prefix}/include/iconv.h; then
2075- libiconv_cflags="-I${libiconv_prefix}/include"
2076-else
2077- libiconv_cflags=""
2078-fi
2079-libiconv_libs=""
2080-if test "x$libiconv_cflags" != "x"; then
2081- if test "$libiconv_lib" != "auto" -a -d ${libiconv_lib}; then
2082- libiconv_libs="-L${libiconv_lib} -liconv"
2083- elif test "$libiconv_prefix" != "auto" -a -d ${libiconv_prefix}/lib; then
2084- libiconv_libs="-L${libiconv_prefix}/lib -liconv"
2085- else
2086- libiconv_libs="-liconv"
2087- fi
2088-fi
2089-
2090-use_iconv=0
2091-if test "x$enable_iconv" != "xno"; then
2092- AC_MSG_CHECKING([for a usable iconv])
2093- if test "x$libiconv_cflags" != "x" -o "x$libiconv_libs" != "x"; then
2094- iconvsaved_CFLAGS="$CFLAGS"
2095- iconvsaved_LIBS="$LIBS"
2096- CFLAGS="$CFLAGS $libiconv_cflags"
2097- LIBS="$LIBS $libiconv_libs"
2098-
2099- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <iconv.h>]], [[iconv_open ("from", "to");]])],[iconv_type="libiconv"
2100- use_iconv=1
2101- ICONV_CFLAGS="$libiconv_cflags"
2102- ICONV_LIBS="$libiconv_libs"
2103- ],[use_iconv=0])
2104-
2105- CFLAGS="$iconvsaved_CFLAGS"
2106- LIBS="$iconvsaved_LIBS"
2107- fi
2108- if test "x$use_iconv" = "x0"; then
2109- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <iconv.h>]], [[iconv_open ("from", "to");]])],[iconv_type="libc"
2110- use_iconv=1],[iconv_type="not found"
2111- use_iconv=0])
2112- fi
2113-
2114- AC_MSG_RESULT([$iconv_type])
2115- AC_SUBST(ICONV_CFLAGS)
2116- AC_SUBST(ICONV_LIBS)
2117-fi
2118-AC_DEFINE_UNQUOTED(USE_ICONV,$use_iconv,[Use iconv.])
2119-#
2120-# Checks for FreeType
2121-#
2122-dnl See http://git.savannah.gnu.org/cgit/freetype/freetype2.git/tree/docs/VERSIONS.TXT for versioning in freetype
2123-PKG_CHECK_MODULES(FREETYPE, freetype2 >= 21.0.15)
2124-PKGCONFIG_REQUIRES="$PKGCONFIG_REQUIRES freetype2 >= 21.0.15"
2125-
2126-AC_SUBST(FREETYPE_LIBS)
2127-AC_SUBST(FREETYPE_CFLAGS)
2128-
2129-fontconfig_save_libs="$LIBS"
2130-fontconfig_save_cflags="$CFLAGS"
2131-LIBS="$LIBS $FREETYPE_LIBS"
2132-CFLAGS="$CFLAGS $FREETYPE_CFLAGS"
2133-AC_CHECK_FUNCS(FT_Get_BDF_Property FT_Get_PS_Font_Info FT_Has_PS_Glyph_Names FT_Get_X11_Font_Format FT_Done_MM_Var)
2134-
2135-AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
2136- #include <ft2build.h>
2137- #include FT_CONFIG_OPTIONS_H
2138- #ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
2139- # error "No pcf long family names support"
2140- #endif
2141- ]])], [have_pcf_long_family_names=yes], [have_pcf_long_family_names=no])
2142-AM_CONDITIONAL(FREETYPE_PCF_LONG_FAMILY_NAMES, test "x$have_pcf_long_family_names" = xyes)
2143-
2144-LIBS="$fontconfig_save_libs"
2145-CFLAGS="$fontconfig_save_cflags"
2146-
2147-#
2148-# Check expat configuration
2149-#
2150-AC_ARG_WITH(expat,
2151- [AS_HELP_STRING([--with-expat=DIR],[Use Expat in DIR])],
2152- [expat_prefix=$withval],
2153- [expat_prefix=auto])
2154-AC_ARG_WITH(expat-includes,
2155- [AS_HELP_STRING([--with-expat-includes=DIR],[Use Expat includes in DIR])],
2156- [expat_includes=$withval],
2157- [expat_includes=auto])
2158-AC_ARG_WITH(expat-lib,
2159- [AS_HELP_STRING([--with-expat-lib=DIR])],
2160- [expat_lib=$withval],
2161- [expat_lib=auto])
2162-
2163-if test "$enable_libxml2" != "yes"; then
2164- use_pkgconfig_for_expat=yes
2165- if test "$expat_prefix" = "auto" -a "$expat_includes" = "auto" -a "$expat_lib" = "auto"; then
2166- PKG_CHECK_MODULES(EXPAT, expat,,use_pkgconfig_for_expat=no)
2167- else
2168- use_pkgconfig_for_expat=no
2169- fi
2170- if test "x$use_pkgconfig_for_expat" = "xno"; then
2171- if test "$expat_includes" != "auto" -a -r ${expat_includes}/expat.h; then
2172- EXPAT_CFLAGS="-I${expat_includes}"
2173- elif test "$expat_prefix" != "auto" -a -r ${expat_prefix}/include/expat.h; then
2174- EXPAT_CFLAGS="-I${expat_prefix}/include"
2175- else
2176- EXPAT_CFLAGS=""
2177- fi
2178- if test "$expat_lib" != "auto"; then
2179- EXPAT_LIBS="-L${expat_lib} -lexpat"
2180- elif test "$expat_prefix" != "auto"; then
2181- EXPAT_LIBS="-L${expat_prefix}/lib -lexpat"
2182- else
2183- EXPAT_LIBS="-lexpat"
2184- fi
2185- PKG_EXPAT_CFLAGS=$EXPAT_CFLAGS
2186- PKG_EXPAT_LIBS=$EXPAT_LIBS
2187- else
2188- PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY expat"
2189- PKG_EXPAT_CFLAGS=
2190- PKG_EXPAT_LIBS=
2191- fi
2192-
2193- expatsaved_CPPFLAGS="$CPPFLAGS"
2194- expatsaved_LIBS="$LIBS"
2195- CPPFLAGS="$CPPFLAGS $EXPAT_CFLAGS"
2196- LIBS="$LIBS $EXPAT_LIBS"
2197-
2198- AC_CHECK_HEADER(expat.h)
2199- if test "$ac_cv_header_expat_h" = "no"; then
2200- AC_CHECK_HEADER(xmlparse.h)
2201- if test "$ac_cv_header_xmlparse_h" = "yes"; then
2202- HAVE_XMLPARSE_H=1
2203- AC_SUBST(HAVE_XMLPARSE_H)
2204- AC_DEFINE_UNQUOTED(HAVE_XMLPARSE_H,$HAVE_XMLPARSE_H,
2205- [Use xmlparse.h instead of expat.h])
2206- else
2207- AC_MSG_ERROR([
2208-*** expat is required. or try to use --enable-libxml2])
2209- fi
2210- fi
2211- AC_CHECK_FUNCS(XML_SetDoctypeDeclHandler)
2212- if test "$ac_cv_func_XML_SetDoctypeDeclHandler" = "no"; then
2213- AC_MSG_ERROR([
2214-*** expat is required. or try to use --enable-libxml2])
2215- fi
2216- CPPFLAGS="$expatsaved_CPPFLAGS"
2217- LIBS="$expatsaved_LIBS"
2218-
2219- AC_SUBST(EXPAT_CFLAGS)
2220- AC_SUBST(EXPAT_LIBS)
2221- AC_SUBST(PKG_EXPAT_CFLAGS)
2222- AC_SUBST(PKG_EXPAT_LIBS)
2223-fi
2224-
2225-#
2226-# Check libxml2 configuration
2227-#
2228-AC_ARG_ENABLE(libxml2,
2229- [AS_HELP_STRING([--enable-libxml2],[Use libxml2 instead of Expat])])
2230-
2231-if test "$enable_libxml2" = "yes"; then
2232- PKG_CHECK_MODULES([LIBXML2], [libxml-2.0 >= 2.6])
2233- PKGCONFIG_REQUIRES_PRIVATELY="$PKGCONFIG_REQUIRES_PRIVATELY libxml-2.0 >= 2.6"
2234- AC_DEFINE_UNQUOTED(ENABLE_LIBXML2,1,[Use libxml2 instead of Expat])
2235-
2236- AC_SUBST(LIBXML2_CFLAGS)
2237- AC_SUBST(LIBXML2_LIBS)
2238-
2239- fc_saved_CFLAGS="$CFLAGS"
2240- CFLAGS="$CFLAGS $LIBXML2_CFLAGS"
2241- AC_MSG_CHECKING([SAX1 support in libxml2])
2242- AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
2243- #include <libxml/xmlversion.h>
2244- #if !defined(LIBXML_SAX1_ENABLED)
2245- # include "error: No SAX1 support in libxml2"
2246- #endif
2247- ]])], [AC_MSG_RESULT([found])], [AC_MSG_ERROR([
2248-*** SAX1 support in libxml2 is required. enable it or use expat instead.])])
2249- CFLAGS="$fc_saved_CFLAGS"
2250-fi
2251-
2252-#
2253-# Check json-c
2254-#
2255-PKG_CHECK_MODULES([JSONC], [json-c], [use_jsonc=yes], [use_jsonc=no])
2256-
2257-AM_CONDITIONAL(ENABLE_JSONC, test "x$use_jsonc" = "xyes")
2258-AC_SUBST(JSONC_CFLAGS)
2259-AC_SUBST(JSONC_LIBS)
2260-
2261-#
2262-# Set default sub-pixel rendering
2263-#
2264-
2265-AC_ARG_WITH(default-sub-pixel-rendering,
2266- [AS_HELP_STRING([--with-default-sub-pixel-rendering=NAME],[Enable your preferred sub-pixel rendering configuration (none/bgr/rgb/vbgr/vrgb) [default=none]])],
2267- preferred_sub_pixel_rendering="$withval", preferred_sub_pixel_rendering=none)
2268-
2269-case "$preferred_sub_pixel_rendering" in
2270-none|bgr|rgb|vbgr|vrgb)
2271- PREFERRED_SUB_PIXEL_RENDERING="$preferred_sub_pixel_rendering"
2272- AC_SUBST(PREFERRED_SUB_PIXEL_RENDERING)
2273- ;;
2274-*)
2275- AC_MSG_ERROR([Invalid sub-pixel rendering. please choose one of none, bgr, rgb, vbgr, or vrgb])
2276- ;;
2277-esac
2278-
2279-#
2280-# Set default hinting
2281-#
2282-
2283-AC_ARG_WITH(default-hinting,
2284- [AS_HELP_STRING([--with-default-hinting=NAME],[Enable your preferred hinting configuration (none/slight/medium/full) [default=slight]])],
2285- preferred_hinting="$withval", preferred_hinting=slight)
2286-
2287-case "$preferred_hinting" in
2288-none|slight|medium|full)
2289- PREFERRED_HINTING="$preferred_hinting"
2290- AC_SUBST(PREFERRED_HINTING)
2291- ;;
2292-*)
2293- AC_MSG_ERROR([Invalid hinting. please choose one of none, slight, medium, or full])
2294- ;;
2295-esac
2296-
2297-#
2298-# default bitmap config
2299-#
2300-
2301-AC_ARG_WITH(bitmap-conf,
2302- [AS_HELP_STRING([--with-bitmap-conf=NAME],[Enable your preferred bitmap related configuration (yes/no/no-except-emoji) [default=no-except-emoji]])],
2303- preferred_bitmap="$withval", preferred_bitmap=no-except-emoji)
2304-
2305-case "$preferred_bitmap" in
2306-yes)
2307- PREFERRED_BITMAP="yes-bitmaps"
2308- ;;
2309-no)
2310- PREFERRED_BITMAP="no-bitmaps-and-emoji"
2311- ;;
2312-no-except-emoji)
2313- PREFERRED_BITMAP="no-bitmaps-except-emoji"
2314- ;;
2315-*)
2316- AC_MSG_ERROR([Invalid bitmap config. please choose one of yes, no, or no-except-emoji])
2317- ;;
2318-esac
2319-AC_SUBST(PREFERRED_BITMAP)
2320-
2321-#
2322-# Set default font directory
2323-#
2324-
2325-AC_ARG_WITH(default-fonts,
2326- [AS_HELP_STRING([--with-default-fonts=DIR1,DIR2,...],[Use fonts from DIR1,DIR2,... when config is busted])],
2327- default_fonts="$withval", default_fonts=yes)
2328-
2329-case "$default_fonts" in
2330-yes)
2331- if test "$os_win32" = "yes"; then
2332- default_fonts="WINDOWSFONTDIR,WINDOWSUSERFONTDIR"
2333- elif test "$os_darwin" = "yes"; then
2334- default_fonts="/System/Library/Fonts,/Library/Fonts,~/Library/Fonts,/System/Library/Assets,/System/Library/AssetsV2"
2335- elif test "$os_android" = "yes"; then
2336- default_fonts="/system/fonts,/product/fonts"
2337- else
2338- default_fonts="/usr/share/fonts"
2339- fi
2340- ;;
2341-esac
2342-
2343-FC_DEFAULT_FONTS=""
2344-if test x${default_fonts+set} = xset; then
2345- fc_IFS=$IFS
2346- IFS=","
2347- for p in $default_fonts; do
2348- if test x"$FC_DEFAULT_FONTS" != x; then
2349- FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS "
2350- fi
2351- FC_DEFAULT_FONTS="$FC_DEFAULT_FONTS<dir>$p</dir>"
2352- done
2353- IFS=$fc_IFS
2354-fi
2355-
2356-AC_DEFINE_UNQUOTED(FC_DEFAULT_FONTS, "$FC_DEFAULT_FONTS",
2357- [System font directory])
2358-
2359-AC_SUBST(FC_DEFAULT_FONTS)
2360-
2361-#
2362-# Add more fonts if available. By default, add only the directories
2363-# with outline fonts; those with bitmaps can be added as desired in
2364-# local.conf or ~/.fonts.conf
2365-#
2366-AC_ARG_WITH(add-fonts,
2367- [AS_HELP_STRING([--with-add-fonts=DIR1,DIR2,...],[Find additional fonts in DIR1,DIR2,... ])],
2368- add_fonts="$withval", add_fonts=yes)
2369-
2370-case "$add_fonts" in
2371-yes)
2372- FC_ADD_FONTS=""
2373- for dir in /usr/X11R6/lib/X11 /usr/X11/lib/X11 /usr/lib/X11; do
2374- case x"$FC_ADD_FONTS" in
2375- x)
2376- sub="$dir/fonts"
2377- if test -d "$sub"; then
2378- case x$FC_ADD_FONTS in
2379- x)
2380- FC_ADD_FONTS="$sub"
2381- ;;
2382- *)
2383- FC_ADD_FONTS="$FC_ADD_FONTS,$sub"
2384- ;;
2385- esac
2386- fi
2387- ;;
2388- esac
2389- done
2390- AC_DEFINE_UNQUOTED(FC_ADD_FONTS,"$add_fonts",[Additional font directories])
2391- ;;
2392-no)
2393- FC_ADD_FONTS=""
2394- ;;
2395-*)
2396- FC_ADD_FONTS="$add_fonts"
2397- AC_DEFINE_UNQUOTED(FC_ADD_FONTS,"$add_fonts",[Additional font directories])
2398- ;;
2399-esac
2400-
2401-AC_SUBST(FC_ADD_FONTS)
2402-
2403-FC_FONTPATH=""
2404-
2405-case "$FC_ADD_FONTS" in
2406-"")
2407- ;;
2408-*)
2409- FC_FONTPATH=`echo $FC_ADD_FONTS |
2410- sed -e 's/^/<dir>/' -e 's/$/<\/dir>/' -e 's/,/<\/dir> <dir>/g'`
2411- ;;
2412-esac
2413-
2414-AC_SUBST(FC_FONTPATH)
2415-
2416-#
2417-# Set default cache directory path
2418-#
2419-AC_ARG_WITH(cache-dir,
2420- [AS_HELP_STRING([--with-cache-dir=DIR],[Use DIR to store cache files [default=LOCALSTATEDIR/cache/fontconfig]])],
2421- fc_cachedir="$withval", fc_cachedir=yes)
2422-
2423-case $fc_cachedir in
2424-no|yes)
2425- if test "$os_win32" = "yes"; then
2426- fc_cachedir="LOCAL_APPDATA_FONTCONFIG_CACHE"
2427- else
2428- fc_cachedir='${localstatedir}/cache/${PACKAGE}'
2429- fi
2430- ;;
2431-*)
2432- ;;
2433-esac
2434-AC_SUBST(fc_cachedir)
2435-FC_CACHEDIR=${fc_cachedir}
2436-AC_SUBST(FC_CACHEDIR)
2437-
2438-FC_FONTDATE=`LC_ALL=C date`
2439-
2440-AC_SUBST(FC_FONTDATE)
2441-
2442-#
2443-# Set configuration paths
2444-#
2445-
2446-AC_ARG_WITH(templatedir,
2447- [AS_HELP_STRING([--with-templatedir=DIR],[Use DIR to store the configuration template files [default=DATADIR/fontconfig/conf.avail]])],
2448- [templatedir="$withval"],
2449- [templatedir=yes])
2450-AC_ARG_WITH(baseconfigdir,
2451- [AS_HELP_STRING([--with-baseconfigdir=DIR],[Use DIR to store the base configuration files [default=SYSCONFDIR/fonts]])],
2452- [baseconfigdir="$withval"],
2453- [baseconfigdir=yes])
2454-AC_ARG_WITH(configdir,
2455- [AS_HELP_STRING([--with-configdir=DIR],[Use DIR to store active configuration files [default=BASECONFIGDIR/conf.d]])],
2456- [configdir="$withval"],
2457- [configdir=yes])
2458-AC_ARG_WITH(xmldir,
2459- [AS_HELP_STRING([--with-xmldir=DIR],[Use DIR to store XML schema files [default=DATADIR/xml/fontconfig]])],
2460- [xmldir="$withval"],
2461- [xmldir=yes])
2462-
2463-case "$templatedir" in
2464-no|yes)
2465- templatedir='${datadir}'/fontconfig/conf.avail
2466- ;;
2467-*)
2468- ;;
2469-esac
2470-case "$baseconfigdir" in
2471-no|yes)
2472- baseconfigdir='${sysconfdir}'/fonts
2473- ;;
2474-*)
2475- ;;
2476-esac
2477-case "$configdir" in
2478-no|yes)
2479- configdir='${BASECONFIGDIR}'/conf.d
2480- ;;
2481-*)
2482- ;;
2483-esac
2484-case "$xmldir" in
2485-no|yes)
2486- xmldir='${datadir}'/xml/fontconfig
2487- ;;
2488-*)
2489- ;;
2490-esac
2491-
2492-TEMPLATEDIR=${templatedir}
2493-BASECONFIGDIR=${baseconfigdir}
2494-CONFIGDIR=${configdir}
2495-XMLDIR=${xmldir}
2496-AC_SUBST(TEMPLATEDIR)
2497-AC_SUBST(BASECONFIGDIR)
2498-AC_SUBST(CONFIGDIR)
2499-AC_SUBST(XMLDIR)
2500-
2501-
2502-dnl ===========================================================================
2503-
2504-#
2505-# Thread-safety primitives
2506-#
2507-
2508-AC_CACHE_CHECK([stdatomic.h atomic primitives], fc_cv_have_stdatomic_atomic_primitives, [
2509- fc_cv_have_stdatomic_atomic_primitives=false
2510- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2511- #include <stdatomic.h>
2512-
2513- void memory_barrier (void) { atomic_thread_fence (memory_order_acq_rel); }
2514- int atomic_add (atomic_int *i) { return atomic_fetch_add_explicit (i, 1, memory_order_relaxed); }
2515- int mutex_trylock (atomic_flag *m) { return atomic_flag_test_and_set_explicit (m, memory_order_acquire); }
2516- void mutex_unlock (atomic_flag *m) { atomic_flag_clear_explicit (m, memory_order_release); }
2517- ]], [[]])],[fc_cv_have_stdatomic_atomic_primitives=true
2518- ],[])
2519-])
2520-if $fc_cv_have_stdatomic_atomic_primitives; then
2521- AC_DEFINE(HAVE_STDATOMIC_PRIMITIVES, 1, [Have C99 stdatomic atomic primitives])
2522-fi
2523-
2524-AC_CACHE_CHECK([for Intel atomic primitives], fc_cv_have_intel_atomic_primitives, [
2525- fc_cv_have_intel_atomic_primitives=false
2526- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2527- void memory_barrier (void) { __sync_synchronize (); }
2528- int atomic_add (int *i) { return __sync_fetch_and_add (i, 1); }
2529- int mutex_trylock (int *m) { return __sync_lock_test_and_set (m, 1); }
2530- void mutex_unlock (int *m) { __sync_lock_release (m); }
2531- ]], [[]])],[fc_cv_have_intel_atomic_primitives=true
2532- ],[])
2533-])
2534-if $fc_cv_have_intel_atomic_primitives; then
2535- AC_DEFINE(HAVE_INTEL_ATOMIC_PRIMITIVES, 1, [Have Intel __sync_* atomic primitives])
2536-fi
2537-
2538-AC_CACHE_CHECK([for Solaris atomic operations], fc_cv_have_solaris_atomic_ops, [
2539- fc_cv_have_solaris_atomic_ops=false
2540- AC_LINK_IFELSE([AC_LANG_PROGRAM([[
2541- #include <atomic.h>
2542- /* This requires Solaris Studio 12.2 or newer: */
2543- #include <mbarrier.h>
2544- void memory_barrier (void) { __machine_rw_barrier (); }
2545- int atomic_add (volatile unsigned *i) { return atomic_add_int_nv (i, 1); }
2546- void *atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval) { return atomic_cas_ptr (target, cmp, newval); }
2547- ]], [[]])],[fc_cv_have_solaris_atomic_ops=true
2548- ],[])
2549-])
2550-if $fc_cv_have_solaris_atomic_ops; then
2551- AC_DEFINE(HAVE_SOLARIS_ATOMIC_OPS, 1, [Have Solaris __machine_*_barrier and atomic_* operations])
2552-fi
2553-
2554-if test "$os_win32" = no && ! $have_pthread; then
2555- AC_CHECK_HEADERS(sched.h)
2556- AC_SEARCH_LIBS(sched_yield,rt,AC_DEFINE(HAVE_SCHED_YIELD, 1, [Have sched_yield]))
2557-fi
2558-
2559-have_pthread=false
2560-if test "$os_win32" = no; then
2561- AX_PTHREAD([have_pthread=true])
2562-fi
2563-if $have_pthread; then
2564- LIBS="$PTHREAD_LIBS $LIBS"
2565- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
2566- CC="$PTHREAD_CC"
2567- AC_DEFINE(HAVE_PTHREAD, 1, [Have POSIX threads])
2568-fi
2569-AM_CONDITIONAL(HAVE_PTHREAD, $have_pthread)
2570-
2571-
2572-dnl ===========================================================================
2573-
2574-#
2575-# Let people not build/install docs if they don't have docbook
2576-#
2577-
2578-AC_ARG_ENABLE(docbook,
2579- [AS_HELP_STRING([--disable-docbook],
2580- [Disable building docs with docbook2html (default: no)])],,)
2581-
2582-if test x$enable_docbook != xno; then
2583- AC_CHECK_PROG(HASDOCBOOK, docbook2html, yes, no)
2584-fi
2585-
2586-AM_CONDITIONAL(USEDOCBOOK, test "x$HASDOCBOOK" = xyes)
2587-
2588-default_docs="yes"
2589-#
2590-# Check if docs exist or can be created
2591-#
2592-if test x$HASDOCBOOK = xno; then
2593- if test -f $srcdir/doc/fonts-conf.5; then
2594- :
2595- else
2596- default_docs="no"
2597- fi
2598-fi
2599-
2600-AC_ARG_ENABLE(docs,
2601- [AS_HELP_STRING([--disable-docs],[Don't build and install documentation])],
2602- ,
2603- enable_docs=$default_docs)
2604-
2605-AM_CONDITIONAL(ENABLE_DOCS, test "x$enable_docs" = xyes)
2606-
2607-if test "x$enable_docs" = xyes; then
2608- tmp=funcs.$$
2609- cat $srcdir/doc/*.fncs | awk '
2610- /^@TITLE@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
2611- /^@FUNC@/ { if (!done) { printf ("%s\n", $2); done = 1; } }
2612- /^@@/ { done = 0; }' > $tmp
2613- DOCMAN3=`cat $tmp | awk '{ printf ("%s.3 ", $1); }'`
2614- echo DOCMAN3 $DOCMAN3
2615- rm -f $tmp
2616-else
2617- DOCMAN3=""
2618-fi
2619-AC_SUBST(DOCMAN3)
2620-
2621-dnl ===========================================================================
2622-default_cache_build="yes"
2623-if test $cross_compiling = "yes"; then
2624- default_cache_build="no"
2625-fi
2626-AC_ARG_ENABLE(cache-build,
2627- [AS_HELP_STRING([--disable-cache-build],[Don't run fc-cache during the build])],
2628- ,
2629- enable_cache_build=$default_cache_build)
2630-
2631-AM_CONDITIONAL(ENABLE_CACHE_BUILD, test "x$enable_cache_build" = xyes)
2632-
2633-
2634-dnl Figure out what cache format suffix to use for this architecture
2635-AC_C_BIGENDIAN
2636-AC_CHECK_SIZEOF([void *])
2637-AC_CHECK_ALIGNOF([double])
2638-AC_CHECK_ALIGNOF([void *])
2639-
2640-dnl include the header file for workaround of miscalculating size on autoconf
2641-dnl particularly for fat binaries
2642-AH_BOTTOM([#include "config-fixups.h"])
2643-
2644-dnl
2645-dnl
2646-AC_SUBST(PKGCONFIG_REQUIRES)
2647-AC_SUBST(PKGCONFIG_REQUIRES_PRIVATELY)
2648-
2649-dnl
2650-AC_CONFIG_FILES([
2651-Makefile
2652-fontconfig/Makefile
2653-fc-lang/Makefile
2654-fc-case/Makefile
2655-src/Makefile
2656-conf.d/Makefile
2657-fc-cache/Makefile
2658-fc-cat/Makefile
2659-fc-conflist/Makefile
2660-fc-const/Makefile
2661-fc-genconf/Makefile
2662-fc-list/Makefile
2663-fc-match/Makefile
2664-fc-pattern/Makefile
2665-fc-query/Makefile
2666-fc-scan/Makefile
2667-fc-validate/Makefile
2668-fontconfig/fontconfig.h
2669-doc/Makefile
2670-doc/cache-version.sgml
2671-doc/version.sgml
2672-its/Makefile
2673-po/Makefile.in
2674-po-conf/Makefile.in
2675-test/Makefile
2676-fontconfig.pc
2677-fontconfig-zip
2678-])
2679-AC_OUTPUT
2680diff --git a/doc/Makefile.am b/doc/Makefile.am
2681deleted file mode 100644
2682index 55a45dac..00000000
2683--- a/doc/Makefile.am
2684+++ /dev/null
2685@@ -1,230 +0,0 @@
2686-# -*- encoding: utf-8 -*-
2687-#
2688-# fontconfig/doc/Makefile.am
2689-#
2690-# Copyright © 2003 Keith Packard
2691-#
2692-# Permission to use, copy, modify, distribute, and sell this software and its
2693-# documentation for any purpose is hereby granted without fee, provided that
2694-# the above copyright notice appear in all copies and that both that
2695-# copyright notice and this permission notice appear in supporting
2696-# documentation, and that the name of the author(s) not be used in
2697-# advertising or publicity pertaining to distribution of the software without
2698-# specific, written prior permission. The authors make no
2699-# representations about the suitability of this software for any purpose. It
2700-# is provided "as is" without express or implied warranty.
2701-#
2702-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
2703-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
2704-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
2705-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
2706-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
2707-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
2708-# PERFORMANCE OF THIS SOFTWARE.
2709-
2710-NULL =
2711-EXTRA_DIST = \
2712- $(BUILT_DOCS) \
2713- $(DOC_FUNCS_FNCS) \
2714- $(SGML_FILES) \
2715- $(check_SCRIPTS) \
2716- confdir.sgml.in \
2717- func.sgml \
2718- $(NULL)
2719-BUILT_SOURCES = \
2720- $(DOC_FUNCS_SGML) \
2721- $(NULL)
2722-
2723-if USEDOCBOOK
2724-maintainerdoccleanfiles = \
2725- $(NULL)
2726-cleandocfiles = \
2727- $(BUILT_DOCS) \
2728- $(NULL)
2729-else
2730-maintainerdoccleanfiles = \
2731- $(BUILT_DOCS) \
2732- $(NULL)
2733-cleandocfiles = \
2734- $(NULL)
2735-endif
2736-MAINTAINERCLEANFILES = \
2737- $(DOC_FUNCS_SGML) \
2738- $(maintainerdoccleanfiles) \
2739- $(NULL)
2740-CLEANFILES = \
2741- $(cleandocfiles) \
2742- $(LOCAL_SGML_FILES) \
2743- confdir.sgml \
2744- func.refs \
2745- $(NULL)
2746-SUFFIXES = \
2747- .fncs \
2748- .sgml \
2749- .txt \
2750- .html \
2751- $(NULL)
2752-TESTS = \
2753- check-missing-doc \
2754- check-whitespace-in-args \
2755- $(NULL)
2756-TESTS_ENVIRONMENT = \
2757- top_srcdir=${top_srcdir}; export top_srcdir; \
2758- $(NULL)
2759-LOG_COMPILER = sh
2760-#
2761-DOC2HTML = docbook2html
2762-DOC2TXT = docbook2txt
2763-DOC2MAN = docbook2man
2764-DOC2PDF = docbook2pdf
2765-
2766-DOC_FUNCS_FNCS = \
2767- fcatomic.fncs \
2768- fcblanks.fncs \
2769- fccache.fncs \
2770- fccharset.fncs \
2771- fcconffile.fncs \
2772- fcconfig.fncs \
2773- fcconstant.fncs \
2774- fcdircache.fncs \
2775- fcfile.fncs \
2776- fcfontset.fncs \
2777- fcformat.fncs \
2778- fcfreetype.fncs \
2779- fcfontations.fncs \
2780- fcinit.fncs \
2781- fclangset.fncs \
2782- fcmatrix.fncs \
2783- fcobjectset.fncs \
2784- fcobjecttype.fncs \
2785- fcpattern.fncs \
2786- fcrange.fncs \
2787- fcstring.fncs \
2788- fcstrset.fncs \
2789- fcvalue.fncs \
2790- fcweight.fncs \
2791- $(NULL)
2792-SGML_FILES = \
2793- fontconfig-user.sgml \
2794- fontconfig-devel.sgml \
2795- $(NULL)
2796-LOCAL_SGML_FILES = \
2797- local-fontconfig-user.sgml \
2798- local-fontconfig-devel.sgml \
2799- $(NULL)
2800-
2801-DOC_FUNCS_SGML = $(DOC_FUNCS_FNCS:.fncs=.sgml)
2802-BUILT_DOCS = \
2803- $(HTML_FILES) \
2804- $(PDF_FILES) \
2805- $(TXT_FILES) \
2806- $(man3_MANS) \
2807- $(man5_MANS) \
2808- $(NULL)
2809-DOCS_DEPS = \
2810- $(DOC_FUNCS_SGML) \
2811- cache-version.sgml \
2812- confdir.sgml \
2813- version.sgml \
2814- $(NULL)
2815-
2816-TXT_FILES = $(SGML_FILES:.sgml=.txt)
2817-PDF_FILES = $(SGML_FILES:.sgml=.pdf)
2818-HTML_FILES = \
2819- fontconfig-user.html \
2820- fontconfig-devel.html \
2821- $(NULL)
2822-#
2823-noinst_PROGRAMS = \
2824- $(NULL)
2825-noinst_SCRIPTS = \
2826- edit-sgml.py \
2827- $(NULL)
2828-##
2829-check_SCRIPTS = \
2830- check-missing-doc \
2831- check-missing-doc.py \
2832- check-whitespace-in-args \
2833- check-whitespace-in-args.py \
2834- $(NULL)
2835-#
2836-man3_MANS = \
2837- $(DOCMAN3) \
2838- $(NULL)
2839-man5_MANS = \
2840- fonts-conf.5 \
2841- $(NULL)
2842-#
2843-doc_DATA = \
2844- $(TXT_FILES) \
2845- $(PDF_FILES) \
2846- $(HTML_FILES) \
2847- $(NULL)
2848-#
2849-if USEDOCBOOK
2850-BUILT_SOURCES += \
2851- $(LOCAL_SGML_FILES) \
2852- $(NULL)
2853-
2854-##
2855-.fncs.sgml:
2856- $(AM_V_GEN) $(RM) $@; \
2857- $(PYTHON) $(srcdir)/edit-sgml.py $(srcdir)/func.sgml '$(srcdir)/$*.fncs' $*.sgml
2858-.sgml.txt:
2859- $(AM_V_GEN) $(RM) $@; \
2860- $(DOC2TXT) $*.sgml
2861-.sgml.pdf:
2862- $(AM_V_GEN) $(RM) $@; \
2863- $(DOC2PDF) $*.sgml
2864-.sgml.html:
2865- $(AM_V_GEN) $(RM) $@; \
2866- $(DOC2HTML) -u $*.sgml > $@
2867-##
2868-fonts-conf.5: local-fontconfig-user.sgml cache-version.sgml version.sgml confdir.sgml
2869- $(AM_V_GEN) $(RM) $@; \
2870- $(DOC2MAN) local-fontconfig-user.sgml && \
2871- $(RM) manpage.*
2872-##
2873-$(man3_MANS): func.refs
2874-func.refs: local-fontconfig-devel.sgml $(DOCS_DEPS)
2875- $(AM_V_GEN) $(RM) $@; \
2876- $(DOC2MAN) -o devel-man local-fontconfig-devel.sgml && \
2877- mv devel-man/manpage.refs func.refs && \
2878- mv devel-man/*.3 . && \
2879- $(RM) devel-man/manpage.* && \
2880- rmdir devel-man || rm $@ || :
2881-confdir.sgml: $(srcdir)/confdir.sgml.in
2882- $(AM_V_GEN) sed -e 's,@BASECONFIGDIR\@,${BASECONFIGDIR},' $(srcdir)/$@.in | awk '{if (NR > 1) printf("\n"); printf("%s", $$0);}' > $@
2883-##
2884-$(DOC_FUNCS_SGML): $(DOC_FUNCS_FNCS) $(srcdir)/edit-sgml.py $(srcdir)/func.sgml
2885-$(TXT_FILES): $(DOCS_DEPS)
2886-$(PDF_FILES): $(DOCS_DEPS)
2887-$(HTML_FILES): $(DOCS_DEPS)
2888-local-fontconfig-user.sgml: $(srcdir)/fontconfig-user.sgml
2889- $(AM_V_GEN) $(LN_S) $(srcdir)/fontconfig-user.sgml $@; \
2890- [ ! -f $(builddir)/fontconfig-user.sgml ] && cp -a $(srcdir)/fontconfig-user.sgml $(builddir)/fontconfig-user.sgml || :
2891-local-fontconfig-devel.sgml: $(srcdir)/fontconfig-devel.sgml
2892- $(AM_V_GEN) $(LN_S) $(srcdir)/fontconfig-devel.sgml $@; \
2893- [ ! -f $(builddir)/fontconfig-devel.sgml ] && cp -a $(srcdir)/fontconfig-devel.sgml $(builddir)/fontconfig-devel.sgml || :
2894-#
2895-all-local: $(BUILT_DOCS)
2896-clean-local:
2897- $(RM) -r devel-man
2898- [ "x$(builddir)" != "x$(srcdir)" ] && $(RM) $(builddir)/*.sgml || :
2899-dist-local-check-docs-enabled:
2900- @true
2901-else
2902-.fncs.sgml:
2903- $(AM_V_GEN) $(RM) $@; \
2904- touch -r $< $@
2905-all-local:
2906-clean-local:
2907-dist-local-check-docs-enabled:
2908- @echo "*** --enable-man must be used in order to make dist"
2909- @false
2910-endif
2911-
2912-# force doc rebuild after configure
2913-dist-hook-local: dist-local-check-docs-enabled
2914-
2915--include $(top_srcdir)/git.mk
2916diff --git a/doc/meson.build b/doc/meson.build
2917deleted file mode 100644
2918index 5ca8501f..00000000
2919--- a/doc/meson.build
2920+++ /dev/null
2921@@ -1,204 +0,0 @@
2922-doc_targets = []
2923-tests = []
2924-
2925-if host_machine.system() != 'windows'
2926- tests += [
2927- 'check-missing-doc.py',
2928- # 'check-whitespace-in-args'
2929- ]
2930- meson.add_dist_script(find_program('check-whitespace-in-args.py'), '@SOURCE_ROOT@/doc')
2931-endif
2932-
2933-
2934-docbook2man = find_program('docbook2man', required: get_option('doc-man'))
2935-docbook2txt = find_program('docbook2txt', required: get_option('doc-txt'))
2936-docbook2pdf = find_program('docbook2pdf', required: get_option('doc-pdf'))
2937-docbook2html = find_program('docbook2html', required: get_option('doc-html'))
2938-
2939-# docbook is very spammy
2940-run_quiet = find_program('run-quiet.py')
2941-
2942-# .fncs files
2943-doc_funcs_fncs = [
2944- 'fcatomic',
2945- 'fcblanks',
2946- 'fccache',
2947- 'fccharset',
2948- 'fcconffile',
2949- 'fcconfig',
2950- 'fcconstant',
2951- 'fcdircache',
2952- 'fcfile',
2953- 'fcfontset',
2954- 'fcfontations',
2955- 'fcformat',
2956- 'fcfreetype',
2957- 'fcinit',
2958- 'fclangset',
2959- 'fcmatrix',
2960- 'fcobjectset',
2961- 'fcobjecttype',
2962- 'fcpattern',
2963- 'fcrange',
2964- 'fcstring',
2965- 'fcstrset',
2966- 'fcvalue',
2967- 'fcweight',
2968-]
2969-
2970-fncs_files = []
2971-foreach f : doc_funcs_fncs
2972- fncs_files += files('@0@.fncs'.format(f))
2973-endforeach
2974-
2975-man_pages = []
2976-
2977-extract_man_list = find_program('extract-man-list.py')
2978-man_list = run_command(extract_man_list, fncs_files, check: true).stdout().split()
2979-
2980-foreach m : man_list
2981- man_pages += ['@0@.3'.format(m)]
2982-endforeach
2983-
2984-# Generate sgml pages for funcs
2985-edit_sgml = find_program('edit-sgml.py')
2986-
2987-# copy into build directory, it includes generated files from build directory
2988-fontconfig_devel_sgml = fs.copyfile('fontconfig-devel.sgml')
2989-fontconfig_user_sgml = fs.copyfile('fontconfig-user.sgml')
2990-
2991-cacheversion_conf = configuration_data()
2992-cacheversion_conf.set('CACHE_VERSION', cacheversion)
2993-configure_file(output: 'cache-version.sgml',
2994- input: 'cache-version.sgml.in',
2995- configuration: cacheversion_conf)
2996-
2997-version_conf = configuration_data()
2998-version_conf.set('VERSION', meson.project_version())
2999-
3000-configure_file(output: 'version.sgml',
3001- input: 'version.sgml.in',
3002- configuration: version_conf)
3003-
3004-confdir_conf = configuration_data()
3005-confdir_conf.set('BASECONFIGDIR', fc_configdir)
3006-
3007-confdir_sgml = configure_file(output: 'confdir.sgml',
3008- input: 'confdir.sgml.in',
3009- configuration: confdir_conf)
3010-
3011-funcs_sgml = []
3012-
3013-foreach f : doc_funcs_fncs
3014- funcs_sgml += [custom_target('@0@.sgml'.format(f),
3015- input: [files('func.sgml'), files('@0@.fncs'.format(f))],
3016- output: '@0@.sgml'.format(f),
3017- command: [edit_sgml, '@INPUT0@', '@INPUT1@', '@OUTPUT@'],
3018- install: false)]
3019-endforeach
3020-
3021-if docbook2man.found()
3022- doc_targets += ['man']
3023-
3024- custom_target('devel-man',
3025- input: [fontconfig_devel_sgml, funcs_sgml],
3026- output: man_pages,
3027- command: [run_quiet, docbook2man, '@INPUT0@', '--output', '@OUTDIR@'],
3028- build_by_default: true,
3029- install_dir: get_option('mandir') / 'man3',
3030- install: true,
3031- install_tag: 'docs')
3032-
3033- # fonts.conf(5)
3034- custom_target('fonts-conf-5-man-page',
3035- input: [fontconfig_user_sgml],
3036- output: 'fonts-conf.5',
3037- command: [run_quiet, docbook2man, '@INPUT0@', '--output', '@OUTDIR@'],
3038- install_dir: get_option('mandir') / 'man5',
3039- build_by_default: true,
3040- install: true,
3041- install_tag: 'docs')
3042-
3043- # Generate man pages for tools
3044- foreach t : tools_man_pages
3045- # docbook2man doesn't seem to have a --quiet option unfortunately
3046- custom_target('@0@-man-page'.format(t),
3047- input: '../@0@/@0@.sgml'.format(t),
3048- output: '@0@.1'.format(t),
3049- command: [run_quiet, docbook2man, '@INPUT@', '--output', '@OUTDIR@'],
3050- install_dir: get_option('mandir') / 'man1',
3051- install: true,
3052- install_tag: 'docs')
3053- endforeach
3054-endif
3055-
3056-if docbook2pdf.found()
3057- doc_targets += ['PDF']
3058-
3059- custom_target('devel-pdf',
3060- input: [fontconfig_devel_sgml, funcs_sgml],
3061- output: 'fontconfig-devel.pdf',
3062- command: [run_quiet, docbook2pdf, '@INPUT0@', '--output', '@OUTDIR@'],
3063- build_by_default: true,
3064- install_dir: get_option('datadir') / 'doc' / 'fontconfig',
3065- install: true,
3066- install_tag: 'docs')
3067-
3068- custom_target('user-pdf',
3069- input: [fontconfig_user_sgml, funcs_sgml],
3070- output: 'fontconfig-user.pdf',
3071- command: [run_quiet, docbook2pdf, '@INPUT0@', '--output', '@OUTDIR@'],
3072- build_by_default: true,
3073- install_dir: get_option('datadir') / 'doc' / 'fontconfig',
3074- install: true,
3075- install_tag: 'docs')
3076-endif
3077-
3078-if docbook2txt.found()
3079- doc_targets += ['Text']
3080-
3081- custom_target('devel-txt',
3082- input: [fontconfig_devel_sgml, funcs_sgml],
3083- output: 'fontconfig-devel.txt',
3084- command: [run_quiet, docbook2txt, '@INPUT0@', '--output', '@OUTDIR@'],
3085- build_by_default: true,
3086- install_dir: get_option('datadir') / 'doc' / 'fontconfig',
3087- install: true,
3088- install_tag: 'docs')
3089-
3090- custom_target('user-txt',
3091- input: [fontconfig_user_sgml, funcs_sgml],
3092- output: 'fontconfig-user.txt',
3093- command: [run_quiet, docbook2txt, '@INPUT0@', '--output', '@OUTDIR@'],
3094- build_by_default: true,
3095- install_dir: get_option('datadir') / 'doc' / 'fontconfig',
3096- install: true,
3097- install_tag: 'docs')
3098-endif
3099-
3100-if docbook2html.found()
3101- doc_targets += ['HTML']
3102-
3103- custom_target('devel-html',
3104- input: [fontconfig_devel_sgml, funcs_sgml],
3105- output: 'fontconfig-devel.html',
3106- command: [run_quiet, docbook2html, '--nochunks', '@INPUT0@', '--output', '@OUTDIR@'],
3107- build_by_default: true,
3108- install_dir: get_option('datadir') / 'doc' / 'fontconfig',
3109- install: true,
3110- install_tag: 'docs')
3111-
3112- custom_target('user-html',
3113- input: [fontconfig_user_sgml, funcs_sgml],
3114- output: 'fontconfig-user.html',
3115- command: [run_quiet, docbook2html, '--nochunks', '@INPUT0@', '--output', '@OUTDIR@'],
3116- build_by_default: true,
3117- install_dir: get_option('datadir') / 'doc' / 'fontconfig',
3118- install: true,
3119- install_tag: 'docs')
3120-endif
3121-
3122-foreach script : tests
3123- py = find_program(script)
3124- test(script, py, args: [meson.project_source_root(), meson.project_build_root()])
3125-endforeach
3126diff --git a/fc-cache/Makefile.am b/fc-cache/Makefile.am
3127deleted file mode 100644
3128index 0e107862..00000000
3129--- a/fc-cache/Makefile.am
3130+++ /dev/null
3131@@ -1,69 +0,0 @@
3132-#
3133-# fontconfig/fc-cache/Makefile.am
3134-#
3135-# Copyright © 2003 Keith Packard
3136-#
3137-# Permission to use, copy, modify, distribute, and sell this software and its
3138-# documentation for any purpose is hereby granted without fee, provided that
3139-# the above copyright notice appear in all copies and that both that
3140-# copyright notice and this permission notice appear in supporting
3141-# documentation, and that the name of the author(s) not be used in
3142-# advertising or publicity pertaining to distribution of the software without
3143-# specific, written prior permission. The authors make no
3144-# representations about the suitability of this software for any purpose. It
3145-# is provided "as is" without express or implied warranty.
3146-#
3147-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
3148-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3149-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
3150-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
3151-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
3152-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3153-# PERFORMANCE OF THIS SOFTWARE.
3154-
3155-DOC2MAN = docbook2man
3156-
3157-FC_CACHE_SRC=${top_srcdir}/fc-cache
3158-
3159-SGML = ${FC_CACHE_SRC}/fc-cache.sgml
3160-
3161-if OS_WIN32
3162-else
3163-install-data-local:
3164- -$(mkinstalldirs) "$(DESTDIR)$(fc_cachedir)"
3165-
3166-uninstall-local:
3167- -$(RM) -rf "$(DESTDIR)$(fc_cachedir)"
3168-endif
3169-
3170-AM_CPPFLAGS=-I${top_srcdir} -I${top_srcdir}/src $(WARN_CFLAGS)
3171-
3172-bin_PROGRAMS=fc-cache
3173-
3174-BUILT_MANS=fc-cache.1
3175-
3176-if ENABLE_DOCS
3177-man_MANS=${BUILT_MANS}
3178-endif
3179-
3180-EXTRA_DIST=fc-cache.sgml $(BUILT_MANS)
3181-
3182-CLEANFILES =
3183-
3184-fc_cache_LDADD = ${top_builddir}/src/libfontconfig.la
3185-
3186-if USEDOCBOOK
3187-
3188-${man_MANS}: ${SGML}
3189- $(AM_V_GEN) $(RM) $@; \
3190- $(DOC2MAN) ${SGML}; \
3191- $(RM) manpage.*
3192-
3193-all-local: $(man_MANS)
3194-
3195-CLEANFILES += ${man_MANS}
3196-else
3197-all-local:
3198-endif
3199-
3200--include $(top_srcdir)/git.mk
3201diff --git a/fc-cache/meson.build b/fc-cache/meson.build
3202deleted file mode 100644
3203index 1d66ccf3..00000000
3204--- a/fc-cache/meson.build
3205+++ /dev/null
3206@@ -1,16 +0,0 @@
3207-fccache = executable('fc-cache', ['fc-cache.c', fcstdint_h, alias_headers, ft_alias_headers],
3208- include_directories: [incbase, incsrc],
3209- dependencies: [libintl_dep],
3210- link_with: [libfontconfig],
3211- c_args: c_args,
3212- install: true,
3213- install_tag: 'tools')
3214-
3215-tools_man_pages += ['fc-cache']
3216-
3217-# Do not try to execute target's fc-cache on host when cross compiling
3218-if get_option('cache-build').enabled() and not meson.is_cross_build()
3219- meson.add_install_script(fccache, '-s', '-f', '-v',
3220- skip_if_destdir: true,
3221- install_tag: 'tools')
3222-endif
3223diff --git a/fc-case/Makefile.am b/fc-case/Makefile.am
3224deleted file mode 100644
3225index 4c30a1ee..00000000
3226--- a/fc-case/Makefile.am
3227+++ /dev/null
3228@@ -1,36 +0,0 @@
3229-# -*- encoding: utf-8 -*-
3230-#
3231-# Copyright © 2003 Keith Packard
3232-# Copyright © 2013 Google, Inc.
3233-#
3234-# Permission to use, copy, modify, distribute, and sell this software and its
3235-# documentation for any purpose is hereby granted without fee, provided that
3236-# the above copyright notice appear in all copies and that both that
3237-# copyright notice and this permission notice appear in supporting
3238-# documentation, and that the name of the author(s) not be used in
3239-# advertising or publicity pertaining to distribution of the software without
3240-# specific, written prior permission. The authors make no
3241-# representations about the suitability of this software for any purpose. It
3242-# is provided "as is" without express or implied warranty.
3243-#
3244-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
3245-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3246-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
3247-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
3248-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
3249-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3250-# PERFORMANCE OF THIS SOFTWARE.
3251-#
3252-# Google Author(s): Behdad Esfahbod
3253-
3254-TAG=case
3255-DEPS = $(srcdir)/CaseFolding.txt
3256-ARGS = $(srcdir)/CaseFolding.txt
3257-DIST = $(srcdir)/CaseFolding.txt
3258-
3259-update:
3260- curl -s -o $(srcdir)/CaseFolding.txt http://www.unicode.org/Public/UNIDATA/CaseFolding.txt
3261-
3262-include $(top_srcdir)/Tools.mk
3263-
3264--include $(top_srcdir)/git.mk
3265diff --git a/fc-case/meson.build b/fc-case/meson.build
3266deleted file mode 100644
3267index a14b6350..00000000
3268--- a/fc-case/meson.build
3269+++ /dev/null
3270@@ -1,4 +0,0 @@
3271-fccase_h = custom_target('fccase.h',
3272- output: 'fccase.h',
3273- input: ['CaseFolding.txt', 'fccase.tmpl.h'],
3274- command: [find_program('fc-case.py'), '@INPUT0@', '--template', '@INPUT1@', '--output', '@OUTPUT@'])
3275diff --git a/fc-cat/Makefile.am b/fc-cat/Makefile.am
3276deleted file mode 100644
3277index 04c1cc48..00000000
3278--- a/fc-cat/Makefile.am
3279+++ /dev/null
3280@@ -1,60 +0,0 @@
3281-#
3282-# fontconfig/fc-cat/Makefile.am
3283-#
3284-# Copyright © 2003 Keith Packard
3285-#
3286-# Permission to use, copy, modify, distribute, and sell this software and its
3287-# documentation for any purpose is hereby granted without fee, provided that
3288-# the above copyright notice appear in all copies and that both that
3289-# copyright notice and this permission notice appear in supporting
3290-# documentation, and that the name of the author(s) not be used in
3291-# advertising or publicity pertaining to distribution of the software without
3292-# specific, written prior permission. The authors make no
3293-# representations about the suitability of this software for any purpose. It
3294-# is provided "as is" without express or implied warranty.
3295-#
3296-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
3297-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3298-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
3299-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
3300-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
3301-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3302-# PERFORMANCE OF THIS SOFTWARE.
3303-
3304-DOC2MAN = docbook2man
3305-
3306-FC_CAT_SRC=${top_srcdir}/fc-cat
3307-
3308-SGML = ${FC_CAT_SRC}/fc-cat.sgml
3309-
3310-AM_CPPFLAGS=-I${top_srcdir} $(WARN_CFLAGS)
3311-
3312-bin_PROGRAMS=fc-cat
3313-
3314-BUILT_MANS=fc-cat.1
3315-
3316-if ENABLE_DOCS
3317-man_MANS=${BUILT_MANS}
3318-endif
3319-
3320-EXTRA_DIST=fc-cat.sgml ${BUILT_MANS}
3321-
3322-CLEANFILES =
3323-
3324-fc_cat_LDADD = ${top_builddir}/src/libfontconfig.la
3325-
3326-if USEDOCBOOK
3327-
3328-${man_MANS}: ${SGML}
3329- $(AM_V_GEN) $(RM) $@; \
3330- $(DOC2MAN) ${SGML}; \
3331- $(RM) manpage.*
3332-
3333-all-local: $(man_MANS)
3334-
3335-CLEANFILES += ${man_MANS}
3336-else
3337-all-local:
3338-endif
3339-
3340--include $(top_srcdir)/git.mk
3341diff --git a/fc-cat/meson.build b/fc-cat/meson.build
3342deleted file mode 100644
3343index dd7ee29e..00000000
3344--- a/fc-cat/meson.build
3345+++ /dev/null
3346@@ -1,9 +0,0 @@
3347-fccat = executable('fc-cat', ['fc-cat.c', fcstdint_h, alias_headers, ft_alias_headers],
3348- include_directories: [incbase, incsrc],
3349- dependencies: [libintl_dep],
3350- link_with: [libfontconfig],
3351- c_args: c_args,
3352- install: true,
3353- install_tag: 'tools')
3354-
3355-tools_man_pages += ['fc-cat']
3356diff --git a/fc-conflist/Makefile.am b/fc-conflist/Makefile.am
3357deleted file mode 100644
3358index 6938ca7f..00000000
3359--- a/fc-conflist/Makefile.am
3360+++ /dev/null
3361@@ -1,60 +0,0 @@
3362-#
3363-# fontconfig/fc-conflist/Makefile.am
3364-#
3365-# Copyright © 2003 Keith Packard
3366-#
3367-# Permission to use, copy, modify, distribute, and sell this software and its
3368-# documentation for any purpose is hereby granted without fee, provided that
3369-# the above copyright notice appear in all copies and that both that
3370-# copyright notice and this permission notice appear in supporting
3371-# documentation, and that the name of the author(s) not be used in
3372-# advertising or publicity pertaining to distribution of the software without
3373-# specific, written prior permission. The authors make no
3374-# representations about the suitability of this software for any purpose. It
3375-# is provided "as is" without express or implied warranty.
3376-#
3377-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
3378-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3379-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
3380-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
3381-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
3382-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3383-# PERFORMANCE OF THIS SOFTWARE.
3384-
3385-bin_PROGRAMS=fc-conflist
3386-
3387-DOC2MAN = docbook2man
3388-
3389-FC_VALIDATE_SRC=${top_srcdir}/fc-conflist
3390-
3391-SGML = ${FC_VALIDATE_SRC}/fc-conflist.sgml
3392-
3393-AM_CPPFLAGS=-I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS)
3394-
3395-BUILT_MANS=fc-conflist.1
3396-
3397-if ENABLE_DOCS
3398-man_MANS=${BUILT_MANS}
3399-endif
3400-
3401-EXTRA_DIST=fc-conflist.sgml $(BUILT_MANS)
3402-
3403-CLEANFILES =
3404-
3405-fc_conflist_LDADD = ${top_builddir}/src/libfontconfig.la $(FREETYPE_LIBS)
3406-
3407-if USEDOCBOOK
3408-
3409-${man_MANS}: ${SGML}
3410- $(AM_V_GEN) $(RM) $@; \
3411- $(DOC2MAN) ${SGML}; \
3412- $(RM) manpage.*
3413-
3414-all-local: $(man_MANS)
3415-
3416-CLEANFILES += $(man_MANS)
3417-else
3418-all-local:
3419-endif
3420-
3421--include $(top_srcdir)/git.mk
3422diff --git a/fc-conflist/meson.build b/fc-conflist/meson.build
3423deleted file mode 100644
3424index 88208ff8..00000000
3425--- a/fc-conflist/meson.build
3426+++ /dev/null
3427@@ -1,9 +0,0 @@
3428-fcconflist = executable('fc-conflist', ['fc-conflist.c', fcstdint_h, alias_headers, ft_alias_headers],
3429- include_directories: [incbase, incsrc],
3430- dependencies: [libintl_dep],
3431- link_with: [libfontconfig],
3432- c_args: c_args,
3433- install: true,
3434- install_tag: 'tools')
3435-
3436-tools_man_pages += ['fc-conflist']
3437diff --git a/fc-const/Makefile.am b/fc-const/Makefile.am
3438deleted file mode 100644
3439index c26ff7ce..00000000
3440--- a/fc-const/Makefile.am
3441+++ /dev/null
3442@@ -1,7 +0,0 @@
3443-noinst_HEADERS=fcconst.h
3444-
3445-fcconst.h: fc-const.py fcconst.list $(srcdir)/../src/fcobjs.h Makefile.am
3446- $(AM_V_GEN) $(PYTHON) $(srcdir)/fc-const.py $(srcdir)/fcconst.list $(srcdir)/../src/fcobjs.h > stamp-h && mv stamp-h $@
3447-
3448-CLEANFILES = stamp-h
3449-MAINTAINERCLEANFILES = fcconst.h
3450diff --git a/fc-const/meson.build b/fc-const/meson.build
3451deleted file mode 100644
3452index 9f39e9f1..00000000
3453--- a/fc-const/meson.build
3454+++ /dev/null
3455@@ -1,8 +0,0 @@
3456-fcconst_h = custom_target('fcconst.h',
3457- output: 'fcconst.h',
3458- input: ['fcconst.list', fcobjs_h],
3459- command: [find_program('fc-const.py'), '@INPUT0@', '@INPUT1@', '--output', '@OUTPUT@'])
3460-test_const_name_c = custom_target('test_const_name.c',
3461- output: 'test_const_name.c',
3462- input: ['fcconst.list', fcobjs_h],
3463- command: [find_program('fc-const.py'), '-t', '@INPUT0@', '@INPUT1@', '--output', '@OUTPUT@'])
3464diff --git a/fc-fontations/meson.build b/fc-fontations/meson.build
3465deleted file mode 100644
3466index 9533b1ee..00000000
3467--- a/fc-fontations/meson.build
3468+++ /dev/null
3469@@ -1,63 +0,0 @@
3470-fontations = get_option('fontations')
3471-
3472-if (fontations.enabled())
3473- rust = import('rust')
3474- cargo = rust.workspace()
3475-
3476- generated_fontconfig = rust.bindgen(
3477- input: fontconfig_h,
3478- output: 'fontconfig.rs',
3479- include_directories: incbase,
3480- args: [
3481- '--merge-extern-blocks',
3482- '--allowlist-item=(FcCharSet.*|FC_(SLANT|WEIGHT|WIDTH)_.*|FcFontSet(Add|Create|Destroy).*|FcLangSet(Create|Destroy|Copy|Add|HasLang)|FcWeightFromOpenType.*|FC_SPACING_.*|FC_FAMILY_(UNKNOWN|SANS|SERIF|MONO|EMOJI|MATH))',
3483- '--raw-line=#![allow(nonstandard_style,unused)]',
3484- ],
3485- # FC_NO_MT=1 is added here to reduce required headers in bindings generation.
3486- # It does not mean a functional change in multi-threading behavior.
3487- c_args: ['-DBINDGEN_IGNORE_VISIBILITY=1', '-DFC_NO_MT=1'],
3488- )
3489-
3490- generated_fcint = rust.bindgen(
3491- input: ['../src/fcint.h', fclang_h],
3492- output: 'fcint.rs',
3493- include_directories: incbase,
3494- args: [
3495- '--merge-extern-blocks',
3496- '--allowlist-item=(FcPattern.*|FcRange.*|FC_.*_OBJECT|FcCharSet.*|FcLangSetFromCharSet)',
3497- '--blocklist-type=(FcCharSet|FcLangSet)',
3498- '--raw-line=#![allow(nonstandard_style,unused)]',
3499- '--raw-line=extern crate fontconfig_bindings;',
3500- '--raw-line=pub use fontconfig_bindings::FcCharSet; pub use fontconfig_bindings::FcLangSet;',
3501- ],
3502- # FC_NO_MT=1 is added here to reduce required headers in bindings generation.
3503- # It does not mean a functional change in multi-threading behavior.
3504- c_args: ['-DBINDGEN_IGNORE_VISIBILITY=1', '-DFC_NO_MT=1'],
3505- )
3506-
3507- fontconfig_bindings_pkg = cargo.package('fontconfig-bindings')
3508- fontconfig_bindings_lib = fontconfig_bindings_pkg.library(
3509- structured_sources(generated_fontconfig))
3510- fontconfig_bindings_pkg.override_dependency(
3511- declare_dependency(link_with: fontconfig_bindings_lib))
3512-
3513- fcint_bindings_pkg = cargo.package('fcint-bindings')
3514- fcint_bindings_lib = fcint_bindings_pkg.library(
3515- structured_sources(generated_fcint))
3516- fcint_bindings_pkg.override_dependency(
3517- declare_dependency(link_with: fcint_bindings_lib))
3518-
3519- fontations_query_lib = static_library(
3520- 'fc_fontations_query',
3521- include_directories: incbase,
3522- sources: ['../src/fcfontations.c', fcstdint_h, fclang_h, alias_headers],
3523- )
3524-
3525- fc_fontations = cargo.package().library(
3526- link_with: [
3527- pattern_lib,
3528- fontations_query_lib,
3529- ],
3530- install: true,
3531- )
3532-endif
3533diff --git a/fc-genconf/Makefile.am b/fc-genconf/Makefile.am
3534deleted file mode 100644
3535index 0e1d06ad..00000000
3536--- a/fc-genconf/Makefile.am
3537+++ /dev/null
3538@@ -1,40 +0,0 @@
3539-# Copyright (C) 2025 fontconfig Authors
3540-# SPDX-License-Identifier: HPND
3541-
3542-bin_PROGRAMS=fc-genconf
3543-
3544-DOC2MAN = docbook2man
3545-
3546-FC_GENCONF_SRC=${top_srcdir}/fc-genconf
3547-
3548-SGML = ${FC_GENCONF_SRC}/fc-genconf.sgml
3549-
3550-AM_CPPFLAGS=-I${top_srcdir} $(WARN_CFLAGS)
3551-
3552-BUILT_MANS=fc-genconf.1
3553-
3554-if ENABLE_DOCS
3555-man_MANS=${BUILT_MANS}
3556-endif
3557-
3558-EXTRA_DIST=fc-genconf.sgml $(BUILT_MANS)
3559-
3560-CLEANFILES =
3561-
3562-fc_genconf_LDADD = ${top_builddir}/src/libfontconfig.la
3563-
3564-if USEDOCBOOK
3565-
3566-${man_MANS}: ${SGML}
3567- $(AM_V_GEN) $(RM) $@; \
3568- $(DOC2MAN) ${SGML}; \
3569- $(RM) manpage.*
3570-
3571-all-local: $(man_MANS)
3572-
3573-CLEANFILES += ${man_MANS}
3574-else
3575-all-local:
3576-endif
3577-
3578--include $(top_srcdir)/git.mk
3579diff --git a/fc-genconf/meson.build b/fc-genconf/meson.build
3580deleted file mode 100644
3581index 651231b6..00000000
3582--- a/fc-genconf/meson.build
3583+++ /dev/null
3584@@ -1,9 +0,0 @@
3585-fcmatch = executable('fc-genconf', ['fc-genconf.c', fcstdint_h, alias_headers, ft_alias_headers],
3586- include_directories: [incbase, incsrc],
3587- dependencies: [libintl_dep],
3588- link_with: [libfontconfig],
3589- c_args: c_args,
3590- install: true,
3591- install_tag: 'tools')
3592-
3593-tools_man_pages += ['fc-genconf']
3594diff --git a/fc-lang/Makefile.am b/fc-lang/Makefile.am
3595deleted file mode 100644
3596index b8a9093d..00000000
3597--- a/fc-lang/Makefile.am
3598+++ /dev/null
3599@@ -1,341 +0,0 @@
3600-# -*- encoding: utf-8 -*-
3601-#
3602-# Copyright © 2003 Keith Packard
3603-# Copyright © 2013 Google, Inc.
3604-#
3605-# Permission to use, copy, modify, distribute, and sell this software and its
3606-# documentation for any purpose is hereby granted without fee, provided that
3607-# the above copyright notice appear in all copies and that both that
3608-# copyright notice and this permission notice appear in supporting
3609-# documentation, and that the name of the author(s) not be used in
3610-# advertising or publicity pertaining to distribution of the software without
3611-# specific, written prior permission. The authors make no
3612-# representations about the suitability of this software for any purpose. It
3613-# is provided "as is" without express or implied warranty.
3614-#
3615-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
3616-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
3617-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
3618-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
3619-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
3620-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
3621-# PERFORMANCE OF THIS SOFTWARE.
3622-#
3623-# Google Author(s): Behdad Esfahbod
3624-
3625-TAG = lang
3626-DEPS = $(ORTH)
3627-ARGS = --directory $(srcdir) $(ORTH)
3628-DIST = $(ORTH)
3629-
3630-include $(top_srcdir)/Tools.mk
3631-
3632-# NOTE:
3633-#
3634-# The order of the orth files here is extremely important (part of the cache
3635-# format) and should not be modified. New orth files should be added at the
3636-# end. No files should be removed either.
3637-#
3638-ORTH = \
3639- aa.orth \
3640- ab.orth \
3641- af.orth \
3642- am.orth \
3643- ar.orth \
3644- as.orth \
3645- ast.orth \
3646- av.orth \
3647- ay.orth \
3648- az_az.orth \
3649- az_ir.orth \
3650- ba.orth \
3651- bm.orth \
3652- be.orth \
3653- bg.orth \
3654- bh.orth \
3655- bho.orth \
3656- bi.orth \
3657- bin.orth \
3658- bn.orth \
3659- bo.orth \
3660- br.orth \
3661- bs.orth \
3662- bua.orth \
3663- ca.orth \
3664- ce.orth \
3665- ch.orth \
3666- chm.orth \
3667- chr.orth \
3668- co.orth \
3669- cs.orth \
3670- cu.orth \
3671- cv.orth \
3672- cy.orth \
3673- da.orth \
3674- de.orth \
3675- dz.orth \
3676- el.orth \
3677- en.orth \
3678- eo.orth \
3679- es.orth \
3680- et.orth \
3681- eu.orth \
3682- fa.orth \
3683- fi.orth \
3684- fj.orth \
3685- fo.orth \
3686- fr.orth \
3687- ff.orth \
3688- fur.orth \
3689- fy.orth \
3690- ga.orth \
3691- gd.orth \
3692- gez.orth \
3693- gl.orth \
3694- gn.orth \
3695- gu.orth \
3696- gv.orth \
3697- ha.orth \
3698- haw.orth \
3699- he.orth \
3700- hi.orth \
3701- ho.orth \
3702- hr.orth \
3703- hu.orth \
3704- hy.orth \
3705- ia.orth \
3706- ig.orth \
3707- id.orth \
3708- ie.orth \
3709- ik.orth \
3710- io.orth \
3711- is.orth \
3712- it.orth \
3713- iu.orth \
3714- ja.orth \
3715- ka.orth \
3716- kaa.orth \
3717- ki.orth \
3718- kk.orth \
3719- kl.orth \
3720- km.orth \
3721- kn.orth \
3722- ko.orth \
3723- kok.orth \
3724- ks.orth \
3725- ku_am.orth \
3726- ku_ir.orth \
3727- kum.orth \
3728- kv.orth \
3729- kw.orth \
3730- ky.orth \
3731- la.orth \
3732- lb.orth \
3733- lez.orth \
3734- ln.orth \
3735- lo.orth \
3736- lt.orth \
3737- lv.orth \
3738- mg.orth \
3739- mh.orth \
3740- mi.orth \
3741- mk.orth \
3742- ml.orth \
3743- mn_cn.orth \
3744- mo.orth \
3745- mr.orth \
3746- mt.orth \
3747- my.orth \
3748- nb.orth \
3749- nds.orth \
3750- ne.orth \
3751- nl.orth \
3752- nn.orth \
3753- no.orth \
3754- nr.orth \
3755- nso.orth \
3756- ny.orth \
3757- oc.orth \
3758- om.orth \
3759- or.orth \
3760- os.orth \
3761- pa.orth \
3762- pl.orth \
3763- ps_af.orth \
3764- ps_pk.orth \
3765- pt.orth \
3766- rm.orth \
3767- ro.orth \
3768- ru.orth \
3769- sa.orth \
3770- sah.orth \
3771- sco.orth \
3772- se.orth \
3773- sel.orth \
3774- sh.orth \
3775- shs.orth \
3776- si.orth \
3777- sk.orth \
3778- sl.orth \
3779- sm.orth \
3780- sma.orth \
3781- smj.orth \
3782- smn.orth \
3783- sms.orth \
3784- so.orth \
3785- sq.orth \
3786- sr.orth \
3787- ss.orth \
3788- st.orth \
3789- sv.orth \
3790- sw.orth \
3791- syr.orth \
3792- ta.orth \
3793- te.orth \
3794- tg.orth \
3795- th.orth \
3796- ti_er.orth \
3797- ti_et.orth \
3798- tig.orth \
3799- tk.orth \
3800- tl.orth \
3801- tn.orth \
3802- to.orth \
3803- tr.orth \
3804- ts.orth \
3805- tt.orth \
3806- tw.orth \
3807- tyv.orth \
3808- ug.orth \
3809- uk.orth \
3810- ur.orth \
3811- uz.orth \
3812- ve.orth \
3813- vi.orth \
3814- vo.orth \
3815- vot.orth \
3816- wa.orth \
3817- wen.orth \
3818- wo.orth \
3819- xh.orth \
3820- yap.orth \
3821- yi.orth \
3822- yo.orth \
3823- zh_cn.orth \
3824- zh_hk.orth \
3825- zh_mo.orth \
3826- zh_sg.orth \
3827- zh_tw.orth \
3828- zu.orth \
3829- ak.orth \
3830- an.orth \
3831- ber_dz.orth \
3832- ber_ma.orth \
3833- byn.orth \
3834- crh.orth \
3835- csb.orth \
3836- dv.orth \
3837- ee.orth \
3838- fat.orth \
3839- fil.orth \
3840- hne.orth \
3841- hsb.orth \
3842- ht.orth \
3843- hz.orth \
3844- ii.orth \
3845- jv.orth \
3846- kab.orth \
3847- kj.orth \
3848- kr.orth \
3849- ku_iq.orth \
3850- ku_tr.orth \
3851- kwm.orth \
3852- lg.orth \
3853- li.orth \
3854- mai.orth \
3855- mn_mn.orth \
3856- ms.orth \
3857- na.orth \
3858- ng.orth \
3859- nv.orth \
3860- ota.orth \
3861- pa_pk.orth \
3862- pap_an.orth \
3863- pap_aw.orth \
3864- qu.orth \
3865- quz.orth \
3866- rn.orth \
3867- rw.orth \
3868- sc.orth \
3869- sd.orth \
3870- sg.orth \
3871- sid.orth \
3872- sn.orth \
3873- su.orth \
3874- ty.orth \
3875- wal.orth \
3876- za.orth \
3877- lah.orth \
3878- nqo.orth \
3879- brx.orth \
3880- sat.orth \
3881- doi.orth \
3882- mni.orth \
3883- und_zsye.orth \
3884- und_zmth.orth \
3885- anp.orth \
3886- bhb.orth \
3887- hif.orth \
3888- mag.orth \
3889- raj.orth \
3890- the.orth \
3891- agr.orth \
3892- ayc.orth \
3893- bem.orth \
3894- ckb.orth \
3895- cmn.orth \
3896- dsb.orth \
3897- hak.orth \
3898- lij.orth \
3899- lzh.orth \
3900- mfe.orth \
3901- mhr.orth \
3902- miq.orth \
3903- mjw.orth \
3904- mnw.orth \
3905- nan.orth \
3906- nhn.orth \
3907- niu.orth \
3908- rif.orth \
3909- sgs.orth \
3910- shn.orth \
3911- szl.orth \
3912- tcy.orth \
3913- tpi.orth \
3914- unm.orth \
3915- wae.orth \
3916- yue.orth \
3917- yuw.orth \
3918- got.orth \
3919- cop.orth \
3920- suz.orth
3921-# ^-------------- Add new orth files here
3922-
3923-BUILT_SOURCES += $(top_builddir)/conf.d/35-lang-normalize.conf
3924-
3925-DISTCLEANFILES = $(BUILT_SOURCES)
3926-
3927-$(top_builddir)/conf.d/35-lang-normalize.conf: $(ORTH) Makefile
3928- $(AM_V_GEN) echo "<?xml version=\"1.0\"?>" > $@ && \
3929- echo "<!DOCTYPE fontconfig SYSTEM \"urn:fontconfig:fonts.dtd\">" >> $@ && \
3930- echo "<fontconfig>" >> $@ && \
3931- for i in `echo $(ORTH) | sed -e 's/ /\n/g' | grep -v _ | sed -e 's/\.orth$$//g' | sort`; do \
3932- echo " <!-- $$i* -> $$i -->" >> $@; \
3933- echo " <match>" >> $@; \
3934- echo " <test name=\"lang\" compare=\"contains\"><string>$$i</string></test>" >> $@; \
3935- echo " <edit name=\"lang\" mode=\"assign\" binding=\"same\"><string>$$i</string></edit>" >> $@; \
3936- echo " </match>" >> $@; \
3937- done && \
3938- echo "</fontconfig>" >> $@
3939-
3940--include $(top_srcdir)/git.mk
3941diff --git a/fc-lang/meson.build b/fc-lang/meson.build
3942deleted file mode 100644
3943index cc1be27f..00000000
3944--- a/fc-lang/meson.build
3945+++ /dev/null
3946@@ -1,292 +0,0 @@
3947-# Do not reorder, magic
3948-orth_files = [
3949- 'aa.orth',
3950- 'ab.orth',
3951- 'af.orth',
3952- 'am.orth',
3953- 'ar.orth',
3954- 'as.orth',
3955- 'ast.orth',
3956- 'av.orth',
3957- 'ay.orth',
3958- 'az_az.orth',
3959- 'az_ir.orth',
3960- 'ba.orth',
3961- 'bm.orth',
3962- 'be.orth',
3963- 'bg.orth',
3964- 'bh.orth',
3965- 'bho.orth',
3966- 'bi.orth',
3967- 'bin.orth',
3968- 'bn.orth',
3969- 'bo.orth',
3970- 'br.orth',
3971- 'bs.orth',
3972- 'bua.orth',
3973- 'ca.orth',
3974- 'ce.orth',
3975- 'ch.orth',
3976- 'chm.orth',
3977- 'chr.orth',
3978- 'co.orth',
3979- 'cs.orth',
3980- 'cu.orth',
3981- 'cv.orth',
3982- 'cy.orth',
3983- 'da.orth',
3984- 'de.orth',
3985- 'dz.orth',
3986- 'el.orth',
3987- 'en.orth',
3988- 'eo.orth',
3989- 'es.orth',
3990- 'et.orth',
3991- 'eu.orth',
3992- 'fa.orth',
3993- 'fi.orth',
3994- 'fj.orth',
3995- 'fo.orth',
3996- 'fr.orth',
3997- 'ff.orth',
3998- 'fur.orth',
3999- 'fy.orth',
4000- 'ga.orth',
4001- 'gd.orth',
4002- 'gez.orth',
4003- 'gl.orth',
4004- 'gn.orth',
4005- 'gu.orth',
4006- 'gv.orth',
4007- 'ha.orth',
4008- 'haw.orth',
4009- 'he.orth',
4010- 'hi.orth',
4011- 'ho.orth',
4012- 'hr.orth',
4013- 'hu.orth',
4014- 'hy.orth',
4015- 'ia.orth',
4016- 'ig.orth',
4017- 'id.orth',
4018- 'ie.orth',
4019- 'ik.orth',
4020- 'io.orth',
4021- 'is.orth',
4022- 'it.orth',
4023- 'iu.orth',
4024- 'ja.orth',
4025- 'ka.orth',
4026- 'kaa.orth',
4027- 'ki.orth',
4028- 'kk.orth',
4029- 'kl.orth',
4030- 'km.orth',
4031- 'kn.orth',
4032- 'ko.orth',
4033- 'kok.orth',
4034- 'ks.orth',
4035- 'ku_am.orth',
4036- 'ku_ir.orth',
4037- 'kum.orth',
4038- 'kv.orth',
4039- 'kw.orth',
4040- 'ky.orth',
4041- 'la.orth',
4042- 'lb.orth',
4043- 'lez.orth',
4044- 'ln.orth',
4045- 'lo.orth',
4046- 'lt.orth',
4047- 'lv.orth',
4048- 'mg.orth',
4049- 'mh.orth',
4050- 'mi.orth',
4051- 'mk.orth',
4052- 'ml.orth',
4053- 'mn_cn.orth',
4054- 'mo.orth',
4055- 'mr.orth',
4056- 'mt.orth',
4057- 'my.orth',
4058- 'nb.orth',
4059- 'nds.orth',
4060- 'ne.orth',
4061- 'nl.orth',
4062- 'nn.orth',
4063- 'no.orth',
4064- 'nr.orth',
4065- 'nso.orth',
4066- 'ny.orth',
4067- 'oc.orth',
4068- 'om.orth',
4069- 'or.orth',
4070- 'os.orth',
4071- 'pa.orth',
4072- 'pl.orth',
4073- 'ps_af.orth',
4074- 'ps_pk.orth',
4075- 'pt.orth',
4076- 'rm.orth',
4077- 'ro.orth',
4078- 'ru.orth',
4079- 'sa.orth',
4080- 'sah.orth',
4081- 'sco.orth',
4082- 'se.orth',
4083- 'sel.orth',
4084- 'sh.orth',
4085- 'shs.orth',
4086- 'si.orth',
4087- 'sk.orth',
4088- 'sl.orth',
4089- 'sm.orth',
4090- 'sma.orth',
4091- 'smj.orth',
4092- 'smn.orth',
4093- 'sms.orth',
4094- 'so.orth',
4095- 'sq.orth',
4096- 'sr.orth',
4097- 'ss.orth',
4098- 'st.orth',
4099- 'sv.orth',
4100- 'sw.orth',
4101- 'syr.orth',
4102- 'ta.orth',
4103- 'te.orth',
4104- 'tg.orth',
4105- 'th.orth',
4106- 'ti_er.orth',
4107- 'ti_et.orth',
4108- 'tig.orth',
4109- 'tk.orth',
4110- 'tl.orth',
4111- 'tn.orth',
4112- 'to.orth',
4113- 'tr.orth',
4114- 'ts.orth',
4115- 'tt.orth',
4116- 'tw.orth',
4117- 'tyv.orth',
4118- 'ug.orth',
4119- 'uk.orth',
4120- 'ur.orth',
4121- 'uz.orth',
4122- 've.orth',
4123- 'vi.orth',
4124- 'vo.orth',
4125- 'vot.orth',
4126- 'wa.orth',
4127- 'wen.orth',
4128- 'wo.orth',
4129- 'xh.orth',
4130- 'yap.orth',
4131- 'yi.orth',
4132- 'yo.orth',
4133- 'zh_cn.orth',
4134- 'zh_hk.orth',
4135- 'zh_mo.orth',
4136- 'zh_sg.orth',
4137- 'zh_tw.orth',
4138- 'zu.orth',
4139- 'ak.orth',
4140- 'an.orth',
4141- 'ber_dz.orth',
4142- 'ber_ma.orth',
4143- 'byn.orth',
4144- 'crh.orth',
4145- 'csb.orth',
4146- 'dv.orth',
4147- 'ee.orth',
4148- 'fat.orth',
4149- 'fil.orth',
4150- 'hne.orth',
4151- 'hsb.orth',
4152- 'ht.orth',
4153- 'hz.orth',
4154- 'ii.orth',
4155- 'jv.orth',
4156- 'kab.orth',
4157- 'kj.orth',
4158- 'kr.orth',
4159- 'ku_iq.orth',
4160- 'ku_tr.orth',
4161- 'kwm.orth',
4162- 'lg.orth',
4163- 'li.orth',
4164- 'mai.orth',
4165- 'mn_mn.orth',
4166- 'ms.orth',
4167- 'na.orth',
4168- 'ng.orth',
4169- 'nv.orth',
4170- 'ota.orth',
4171- 'pa_pk.orth',
4172- 'pap_an.orth',
4173- 'pap_aw.orth',
4174- 'qu.orth',
4175- 'quz.orth',
4176- 'rn.orth',
4177- 'rw.orth',
4178- 'sc.orth',
4179- 'sd.orth',
4180- 'sg.orth',
4181- 'sid.orth',
4182- 'sn.orth',
4183- 'su.orth',
4184- 'ty.orth',
4185- 'wal.orth',
4186- 'za.orth',
4187- 'lah.orth',
4188- 'nqo.orth',
4189- 'brx.orth',
4190- 'sat.orth',
4191- 'doi.orth',
4192- 'mni.orth',
4193- 'und_zsye.orth',
4194- 'und_zmth.orth',
4195- 'anp.orth',
4196- 'bhb.orth',
4197- 'hif.orth',
4198- 'mag.orth',
4199- 'raj.orth',
4200- 'the.orth',
4201- 'agr.orth',
4202- 'ayc.orth',
4203- 'bem.orth',
4204- 'ckb.orth',
4205- 'cmn.orth',
4206- 'dsb.orth',
4207- 'hak.orth',
4208- 'lij.orth',
4209- 'lzh.orth',
4210- 'mfe.orth',
4211- 'mhr.orth',
4212- 'miq.orth',
4213- 'mjw.orth',
4214- 'mnw.orth',
4215- 'nan.orth',
4216- 'nhn.orth',
4217- 'niu.orth',
4218- 'rif.orth',
4219- 'sgs.orth',
4220- 'shn.orth',
4221- 'szl.orth',
4222- 'tcy.orth',
4223- 'tpi.orth',
4224- 'unm.orth',
4225- 'wae.orth',
4226- 'yue.orth',
4227- 'yuw.orth',
4228- 'got.orth',
4229- 'cop.orth',
4230- 'suz.orth',
4231-]
4232-
4233-fclang_h = custom_target('fclang.h',
4234- output: ['fclang.h'],
4235- input: orth_files,
4236- command: [find_program('fc-lang.py'), orth_files, '--template', files('fclang.tmpl.h')[0], '--output', '@OUTPUT@', '--directory', meson.current_source_dir()],
4237- build_by_default: true,
4238-)
4239diff --git a/fc-list/Makefile.am b/fc-list/Makefile.am
4240deleted file mode 100644
4241index c58540ec..00000000
4242--- a/fc-list/Makefile.am
4243+++ /dev/null
4244@@ -1,60 +0,0 @@
4245-#
4246-# fontconfig/fc-list/Makefile.am
4247-#
4248-# Copyright © 2003 Keith Packard
4249-#
4250-# Permission to use, copy, modify, distribute, and sell this software and its
4251-# documentation for any purpose is hereby granted without fee, provided that
4252-# the above copyright notice appear in all copies and that both that
4253-# copyright notice and this permission notice appear in supporting
4254-# documentation, and that the name of the author(s) not be used in
4255-# advertising or publicity pertaining to distribution of the software without
4256-# specific, written prior permission. The authors make no
4257-# representations about the suitability of this software for any purpose. It
4258-# is provided "as is" without express or implied warranty.
4259-#
4260-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
4261-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
4262-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
4263-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
4264-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4265-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4266-# PERFORMANCE OF THIS SOFTWARE.
4267-
4268-DOC2MAN = docbook2man
4269-
4270-FC_LIST_SRC=${top_srcdir}/fc-list
4271-
4272-SGML = ${FC_LIST_SRC}/fc-list.sgml
4273-
4274-bin_PROGRAMS=fc-list
4275-
4276-AM_CPPFLAGS=-I${top_srcdir} $(WARN_CFLAGS)
4277-
4278-BUILT_MANS=fc-list.1
4279-
4280-if ENABLE_DOCS
4281-man_MANS=${BUILT_MANS}
4282-endif
4283-
4284-EXTRA_DIST=fc-list.sgml $(BUILT_MANS)
4285-
4286-CLEANFILES =
4287-
4288-fc_list_LDADD = ${top_builddir}/src/libfontconfig.la
4289-
4290-if USEDOCBOOK
4291-
4292-${man_MANS}: ${SGML}
4293- $(AM_V_GEN) $(RM) $@; \
4294- $(DOC2MAN) ${SGML}; \
4295- $(RM) manpage.*
4296-
4297-all-local: $(man_MANS)
4298-
4299-CLEANFILES += ${man_MANS}
4300-else
4301-all-local:
4302-endif
4303-
4304--include $(top_srcdir)/git.mk
4305diff --git a/fc-list/meson.build b/fc-list/meson.build
4306deleted file mode 100644
4307index 1be9df5d..00000000
4308--- a/fc-list/meson.build
4309+++ /dev/null
4310@@ -1,9 +0,0 @@
4311-fclist = executable('fc-list', ['fc-list.c', fcstdint_h, alias_headers, ft_alias_headers],
4312- include_directories: [incbase, incsrc],
4313- dependencies: [libintl_dep],
4314- link_with: [libfontconfig],
4315- c_args: c_args,
4316- install: true,
4317- install_tag: 'tools')
4318-
4319-tools_man_pages += ['fc-list']
4320diff --git a/fc-match/Makefile.am b/fc-match/Makefile.am
4321deleted file mode 100644
4322index 84afb8b2..00000000
4323--- a/fc-match/Makefile.am
4324+++ /dev/null
4325@@ -1,60 +0,0 @@
4326-#
4327-# fontconfig/fc-match/Makefile.am
4328-#
4329-# Copyright © 2003 Keith Packard
4330-#
4331-# Permission to use, copy, modify, distribute, and sell this software and its
4332-# documentation for any purpose is hereby granted without fee, provided that
4333-# the above copyright notice appear in all copies and that both that
4334-# copyright notice and this permission notice appear in supporting
4335-# documentation, and that the name of the author(s) not be used in
4336-# advertising or publicity pertaining to distribution of the software without
4337-# specific, written prior permission. The authors make no
4338-# representations about the suitability of this software for any purpose. It
4339-# is provided "as is" without express or implied warranty.
4340-#
4341-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
4342-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
4343-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
4344-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
4345-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4346-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4347-# PERFORMANCE OF THIS SOFTWARE.
4348-
4349-bin_PROGRAMS=fc-match
4350-
4351-DOC2MAN = docbook2man
4352-
4353-FC_MATCH_SRC=${top_srcdir}/fc-match
4354-
4355-SGML = ${FC_MATCH_SRC}/fc-match.sgml
4356-
4357-AM_CPPFLAGS=-I${top_srcdir} $(WARN_CFLAGS)
4358-
4359-BUILT_MANS=fc-match.1
4360-
4361-if ENABLE_DOCS
4362-man_MANS=${BUILT_MANS}
4363-endif
4364-
4365-EXTRA_DIST=fc-match.sgml $(BUILT_MANS)
4366-
4367-CLEANFILES =
4368-
4369-fc_match_LDADD = ${top_builddir}/src/libfontconfig.la
4370-
4371-if USEDOCBOOK
4372-
4373-${man_MANS}: ${SGML}
4374- $(AM_V_GEN) $(RM) $@; \
4375- $(DOC2MAN) ${SGML}; \
4376- $(RM) manpage.*
4377-
4378-all-local: $(man_MANS)
4379-
4380-CLEANFILES += ${man_MANS}
4381-else
4382-all-local:
4383-endif
4384-
4385--include $(top_srcdir)/git.mk
4386diff --git a/fc-match/meson.build b/fc-match/meson.build
4387deleted file mode 100644
4388index 1aa1b1b5..00000000
4389--- a/fc-match/meson.build
4390+++ /dev/null
4391@@ -1,9 +0,0 @@
4392-fcmatch = executable('fc-match', ['fc-match.c', fcstdint_h, alias_headers, ft_alias_headers],
4393- include_directories: [incbase, incsrc],
4394- dependencies: [libintl_dep],
4395- link_with: [libfontconfig],
4396- c_args: c_args,
4397- install: true,
4398- install_tag: 'tools')
4399-
4400-tools_man_pages += ['fc-match']
4401diff --git a/fc-pattern/Makefile.am b/fc-pattern/Makefile.am
4402deleted file mode 100644
4403index c4562479..00000000
4404--- a/fc-pattern/Makefile.am
4405+++ /dev/null
4406@@ -1,60 +0,0 @@
4407-#
4408-# fontconfig/fc-pattern/Makefile.am
4409-#
4410-# Copyright © 2003 Keith Packard
4411-#
4412-# Permission to use, copy, modify, distribute, and sell this software and its
4413-# documentation for any purpose is hereby granted without fee, provided that
4414-# the above copyright notice appear in all copies and that both that
4415-# copyright notice and this permission notice appear in supporting
4416-# documentation, and that the name of the author(s) not be used in
4417-# advertising or publicity pertaining to distribution of the software without
4418-# specific, written prior permission. The authors make no
4419-# representations about the suitability of this software for any purpose. It
4420-# is provided "as is" without express or implied warranty.
4421-#
4422-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
4423-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
4424-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
4425-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
4426-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4427-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4428-# PERFORMANCE OF THIS SOFTWARE.
4429-
4430-bin_PROGRAMS=fc-pattern
4431-
4432-DOC2MAN = docbook2man
4433-
4434-FC_PATTERN_SRC=${top_srcdir}/fc-pattern
4435-
4436-SGML = ${FC_PATTERN_SRC}/fc-pattern.sgml
4437-
4438-AM_CPPFLAGS=-I${top_srcdir} $(WARN_CFLAGS)
4439-
4440-BUILT_MANS=fc-pattern.1
4441-
4442-if ENABLE_DOCS
4443-man_MANS=${BUILT_MANS}
4444-endif
4445-
4446-EXTRA_DIST=fc-pattern.sgml $(BUILT_MANS)
4447-
4448-CLEANFILES =
4449-
4450-fc_pattern_LDADD = ${top_builddir}/src/libfontconfig.la
4451-
4452-if USEDOCBOOK
4453-
4454-${man_MANS}: ${SGML}
4455- $(AM_V_GEN) $(RM) $@; \
4456- $(DOC2MAN) ${SGML}; \
4457- $(RM) manpage.*
4458-
4459-all-local: $(man_MANS)
4460-
4461-CLEANFILES += ${man_MANS}
4462-else
4463-all-local:
4464-endif
4465-
4466--include $(top_srcdir)/git.mk
4467diff --git a/fc-pattern/meson.build b/fc-pattern/meson.build
4468deleted file mode 100644
4469index d9b048cb..00000000
4470--- a/fc-pattern/meson.build
4471+++ /dev/null
4472@@ -1,9 +0,0 @@
4473-fcpattern = executable('fc-pattern', ['fc-pattern.c', fcstdint_h, alias_headers, ft_alias_headers],
4474- include_directories: [incbase, incsrc],
4475- dependencies: [libintl_dep],
4476- link_with: [libfontconfig],
4477- c_args: c_args,
4478- install: true,
4479- install_tag: 'tools')
4480-
4481-tools_man_pages += ['fc-pattern']
4482diff --git a/fc-query/Makefile.am b/fc-query/Makefile.am
4483deleted file mode 100644
4484index 73b3f11e..00000000
4485--- a/fc-query/Makefile.am
4486+++ /dev/null
4487@@ -1,60 +0,0 @@
4488-#
4489-# fontconfig/fc-query/Makefile.am
4490-#
4491-# Copyright © 2003 Keith Packard
4492-#
4493-# Permission to use, copy, modify, distribute, and sell this software and its
4494-# documentation for any purpose is hereby granted without fee, provided that
4495-# the above copyright notice appear in all copies and that both that
4496-# copyright notice and this permission notice appear in supporting
4497-# documentation, and that the name of the author(s) not be used in
4498-# advertising or publicity pertaining to distribution of the software without
4499-# specific, written prior permission. The authors make no
4500-# representations about the suitability of this software for any purpose. It
4501-# is provided "as is" without express or implied warranty.
4502-#
4503-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
4504-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
4505-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
4506-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
4507-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4508-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4509-# PERFORMANCE OF THIS SOFTWARE.
4510-
4511-bin_PROGRAMS=fc-query
4512-
4513-DOC2MAN = docbook2man
4514-
4515-FC_QUERY_SRC=${top_srcdir}/fc-query
4516-
4517-SGML = ${FC_QUERY_SRC}/fc-query.sgml
4518-
4519-AM_CPPFLAGS=-I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS)
4520-
4521-BUILT_MANS=fc-query.1
4522-
4523-if ENABLE_DOCS
4524-man_MANS=${BUILT_MANS}
4525-endif
4526-
4527-EXTRA_DIST=fc-query.sgml $(BUILT_MANS)
4528-
4529-CLEANFILES =
4530-
4531-fc_query_LDADD = ${top_builddir}/src/libfontconfig.la
4532-
4533-if USEDOCBOOK
4534-
4535-${man_MANS}: ${SGML}
4536- $(AM_V_GEN) $(RM) $@; \
4537- $(DOC2MAN) ${SGML}; \
4538- $(RM) manpage.*
4539-
4540-all-local: $(man_MANS)
4541-
4542-CLEANFILES += ${man_MANS}
4543-else
4544-all-local:
4545-endif
4546-
4547--include $(top_srcdir)/git.mk
4548diff --git a/fc-query/meson.build b/fc-query/meson.build
4549deleted file mode 100644
4550index 629bc71e..00000000
4551--- a/fc-query/meson.build
4552+++ /dev/null
4553@@ -1,9 +0,0 @@
4554-fcquery = executable('fc-query', ['fc-query.c', fcstdint_h, alias_headers, ft_alias_headers],
4555- include_directories: [incbase, incsrc],
4556- dependencies: [freetype_dep, libintl_dep],
4557- link_with: [libfontconfig],
4558- c_args: c_args,
4559- install: true,
4560- install_tag: 'tools')
4561-
4562-tools_man_pages += ['fc-query']
4563diff --git a/fc-scan/Makefile.am b/fc-scan/Makefile.am
4564deleted file mode 100644
4565index 471a42fb..00000000
4566--- a/fc-scan/Makefile.am
4567+++ /dev/null
4568@@ -1,60 +0,0 @@
4569-#
4570-# fontconfig/fc-scan/Makefile.am
4571-#
4572-# Copyright © 2003 Keith Packard
4573-#
4574-# Permission to use, copy, modify, distribute, and sell this software and its
4575-# documentation for any purpose is hereby granted without fee, provided that
4576-# the above copyright notice appear in all copies and that both that
4577-# copyright notice and this permission notice appear in supporting
4578-# documentation, and that the name of the author(s) not be used in
4579-# advertising or publicity pertaining to distribution of the software without
4580-# specific, written prior permission. The authors make no
4581-# representations about the suitability of this software for any purpose. It
4582-# is provided "as is" without express or implied warranty.
4583-#
4584-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
4585-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
4586-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
4587-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
4588-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4589-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4590-# PERFORMANCE OF THIS SOFTWARE.
4591-
4592-bin_PROGRAMS=fc-scan
4593-
4594-DOC2MAN = docbook2man
4595-
4596-FC_SCAN_SRC=${top_srcdir}/fc-scan
4597-
4598-SGML = ${FC_SCAN_SRC}/fc-scan.sgml
4599-
4600-AM_CPPFLAGS=-I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS)
4601-
4602-BUILT_MANS=fc-scan.1
4603-
4604-if ENABLE_DOCS
4605-man_MANS=${BUILT_MANS}
4606-endif
4607-
4608-EXTRA_DIST=fc-scan.sgml $(BUILT_MANS)
4609-
4610-CLEANFILES =
4611-
4612-fc_scan_LDADD = ${top_builddir}/src/libfontconfig.la
4613-
4614-if USEDOCBOOK
4615-
4616-${man_MANS}: ${SGML}
4617- $(AM_V_GEN) $(RM) $@; \
4618- $(DOC2MAN) ${SGML}; \
4619- $(RM) manpage.*
4620-
4621-all-local: $(man_MANS)
4622-
4623-CLEANFILES += ${man_MANS}
4624-else
4625-all-local:
4626-endif
4627-
4628--include $(top_srcdir)/git.mk
4629diff --git a/fc-scan/meson.build b/fc-scan/meson.build
4630deleted file mode 100644
4631index 9049578f..00000000
4632--- a/fc-scan/meson.build
4633+++ /dev/null
4634@@ -1,9 +0,0 @@
4635-fcscan = executable('fc-scan', ['fc-scan.c', fcstdint_h, alias_headers, ft_alias_headers],
4636- include_directories: [incbase, incsrc],
4637- dependencies: [freetype_dep, libintl_dep],
4638- link_with: [libfontconfig],
4639- c_args: c_args,
4640- install: true,
4641- install_tag: 'tools')
4642-
4643-tools_man_pages += ['fc-scan']
4644diff --git a/fc-validate/Makefile.am b/fc-validate/Makefile.am
4645deleted file mode 100644
4646index c485aa51..00000000
4647--- a/fc-validate/Makefile.am
4648+++ /dev/null
4649@@ -1,60 +0,0 @@
4650-#
4651-# fontconfig/fc-validate/Makefile.am
4652-#
4653-# Copyright © 2003 Keith Packard
4654-#
4655-# Permission to use, copy, modify, distribute, and sell this software and its
4656-# documentation for any purpose is hereby granted without fee, provided that
4657-# the above copyright notice appear in all copies and that both that
4658-# copyright notice and this permission notice appear in supporting
4659-# documentation, and that the name of the author(s) not be used in
4660-# advertising or publicity pertaining to distribution of the software without
4661-# specific, written prior permission. The authors make no
4662-# representations about the suitability of this software for any purpose. It
4663-# is provided "as is" without express or implied warranty.
4664-#
4665-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
4666-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
4667-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
4668-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
4669-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4670-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4671-# PERFORMANCE OF THIS SOFTWARE.
4672-
4673-bin_PROGRAMS=fc-validate
4674-
4675-DOC2MAN = docbook2man
4676-
4677-FC_VALIDATE_SRC=${top_srcdir}/fc-validate
4678-
4679-SGML = ${FC_VALIDATE_SRC}/fc-validate.sgml
4680-
4681-AM_CPPFLAGS=-I${top_srcdir} $(FREETYPE_CFLAGS) $(WARN_CFLAGS)
4682-
4683-BUILT_MANS=fc-validate.1
4684-
4685-if ENABLE_DOCS
4686-man_MANS=${BUILT_MANS}
4687-endif
4688-
4689-EXTRA_DIST=fc-validate.sgml $(BUILT_MANS)
4690-
4691-CLEANFILES =
4692-
4693-fc_validate_LDADD = ${top_builddir}/src/libfontconfig.la $(FREETYPE_LIBS)
4694-
4695-if USEDOCBOOK
4696-
4697-${man_MANS}: ${SGML}
4698- $(AM_V_GEN) $(RM) $@; \
4699- $(DOC2MAN) ${SGML}; \
4700- $(RM) manpage.*
4701-
4702-all-local: $(man_MANS)
4703-
4704-CLEANFILES += $(man_MANS)
4705-else
4706-all-local:
4707-endif
4708-
4709--include $(top_srcdir)/git.mk
4710diff --git a/fc-validate/meson.build b/fc-validate/meson.build
4711deleted file mode 100644
4712index fcabf294..00000000
4713--- a/fc-validate/meson.build
4714+++ /dev/null
4715@@ -1,9 +0,0 @@
4716-fcvalidate = executable('fc-validate', ['fc-validate.c', fcstdint_h, alias_headers, ft_alias_headers],
4717- include_directories: [incbase, incsrc],
4718- dependencies: [freetype_dep, libintl_dep],
4719- link_with: [libfontconfig],
4720- c_args: c_args,
4721- install: true,
4722- install_tag: 'tools')
4723-
4724-tools_man_pages += ['fc-validate']
4725diff --git a/fontconfig-zip.in b/fontconfig-zip.in
4726deleted file mode 100755
4727index 1ca222cf..00000000
4728--- a/fontconfig-zip.in
4729+++ /dev/null
4730@@ -1,29 +0,0 @@
4731-#!/bin/sh
4732-
4733-# Build distribution zipfiles for fontconfig on Win32. (This script
4734-# obviously needs to be run in Cygwin or similar.) Separate runtime
4735-# and developer zipfiles.
4736-
4737-ZIP=/tmp/fontconfig-@VERSION@.zip
4738-DEVZIP=/tmp/fontconfig-dev-@VERSION@.zip
4739-
4740-cd @prefix@
4741-rm -f $ZIP
4742-zip $ZIP -@ <<EOF
4743-bin/libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll
4744-etc/fonts/fonts.conf
4745-EOF
4746-
4747-rm -f $DEVZIP
4748-zip -r -D $DEVZIP -@ <<EOF
4749-etc/fonts/fonts.dtd
4750-include/fontconfig
4751-lib/libfontconfig.dll.a
4752-lib/fontconfig.lib
4753-lib/fontconfig.def
4754-lib/pkgconfig/fontconfig.pc
4755-bin/fc-list.exe
4756-bin/fc-cache.exe
4757-share/man
4758-share/doc/fontconfig
4759-EOF
4760diff --git a/fontconfig.pc.in b/fontconfig.pc.in
4761deleted file mode 100644
4762index 61b35fbe..00000000
4763--- a/fontconfig.pc.in
4764+++ /dev/null
4765@@ -1,18 +0,0 @@
4766-prefix=@prefix@
4767-exec_prefix=@exec_prefix@
4768-libdir=@libdir@
4769-includedir=@includedir@
4770-sysconfdir=@sysconfdir@
4771-localstatedir=@localstatedir@
4772-PACKAGE=@PACKAGE@
4773-confdir=@BASECONFIGDIR@
4774-cachedir=@fc_cachedir@
4775-
4776-Name: Fontconfig
4777-Description: Font configuration and customization library
4778-Version: @VERSION@
4779-Requires: @PKGCONFIG_REQUIRES@
4780-Requires.private: @PKGCONFIG_REQUIRES_PRIVATELY@
4781-Libs: -L${libdir} -lfontconfig
4782-Libs.private: @ICONV_LIBS@ @PKG_EXPAT_LIBS@
4783-Cflags: -I${includedir} @ICONV_CFLAGS@ @PKG_EXPAT_CFLAGS@
4784diff --git a/fontconfig/Makefile.am b/fontconfig/Makefile.am
4785deleted file mode 100644
4786index 233a2737..00000000
4787--- a/fontconfig/Makefile.am
4788+++ /dev/null
4789@@ -1,33 +0,0 @@
4790-#
4791-# fontconfig/Makefile.am
4792-#
4793-# Copyright © 2003 Keith Packard
4794-#
4795-# Permission to use, copy, modify, distribute, and sell this software and its
4796-# documentation for any purpose is hereby granted without fee, provided that
4797-# the above copyright notice appear in all copies and that both that
4798-# copyright notice and this permission notice appear in supporting
4799-# documentation, and that the name of the author(s) not be used in
4800-# advertising or publicity pertaining to distribution of the software without
4801-# specific, written prior permission. The authors make no
4802-# representations about the suitability of this software for any purpose. It
4803-# is provided "as is" without express or implied warranty.
4804-#
4805-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
4806-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
4807-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
4808-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
4809-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4810-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
4811-# PERFORMANCE OF THIS SOFTWARE.
4812-
4813-fontconfigincludedir=$(includedir)/fontconfig
4814-
4815-fontconfig_headers= \
4816- fontconfig.h \
4817- fcfreetype.h \
4818- fcprivate.h
4819-
4820-fontconfiginclude_HEADERS = $(fontconfig_headers)
4821-
4822--include $(top_srcdir)/git.mk
4823diff --git a/fontconfig/meson.build b/fontconfig/meson.build
4824deleted file mode 100644
4825index 1ad1e58c..00000000
4826--- a/fontconfig/meson.build
4827+++ /dev/null
4828@@ -1,5 +0,0 @@
4829-fontconfig_h_conf = configuration_data()
4830-fontconfig_h_conf.set('CACHE_VERSION', cacheversion)
4831-fontconfig_h = configure_file(output: 'fontconfig.h',
4832- input: 'fontconfig.h.in',
4833- configuration: fontconfig_h_conf)
4834diff --git a/git.mk b/git.mk
4835deleted file mode 100644
4836index 2bedbf61..00000000
4837--- a/git.mk
4838+++ /dev/null
4839@@ -1,254 +0,0 @@
4840-# git.mk
4841-#
4842-# Copyright 2009, Red Hat, Inc.
4843-# Copyright 2010,2011 Behdad Esfahbod
4844-# Written by Behdad Esfahbod
4845-#
4846-# Copying and distribution of this file, with or without modification,
4847-# is permitted in any medium without royalty provided the copyright
4848-# notice and this notice are preserved.
4849-#
4850-# The latest version of this file can be downloaded from:
4851-# https://raw.github.com/behdad/git.mk/master/git.mk
4852-# Bugs, etc, should be reported upstream at:
4853-# https://github.com/behdad/git.mk
4854-#
4855-# To use in your project, import this file in your git repo's toplevel,
4856-# then do "make -f git.mk". This modifies all Makefile.am files in
4857-# your project to -include git.mk. Remember to add that line to new
4858-# Makefile.am files you create in your project, or just rerun the
4859-# "make -f git.mk".
4860-#
4861-# This enables automatic .gitignore generation. If you need to ignore
4862-# more files, add them to the GITIGNOREFILES variable in your Makefile.am.
4863-# But think twice before doing that. If a file has to be in .gitignore,
4864-# chances are very high that it's a generated file and should be in one
4865-# of MOSTLYCLEANFILES, CLEANFILES, DISTCLEANFILES, or MAINTAINERCLEANFILES.
4866-#
4867-# The only case that you need to manually add a file to GITIGNOREFILES is
4868-# when remove files in one of mostlyclean-local, clean-local, distclean-local,
4869-# or maintainer-clean-local make targets.
4870-#
4871-# Note that for files like editor backup, etc, there are better places to
4872-# ignore them. See "man gitignore".
4873-#
4874-# If "make maintainer-clean" removes the files but they are not recognized
4875-# by this script (that is, if "git status" shows untracked files still), send
4876-# me the output of "git status" as well as your Makefile.am and Makefile for
4877-# the directories involved and I'll diagnose.
4878-#
4879-# For a list of toplevel files that should be in MAINTAINERCLEANFILES, see
4880-# Makefile.am.sample in the git.mk git repo.
4881-#
4882-# Don't EXTRA_DIST this file. It is supposed to only live in git clones,
4883-# not tarballs. It serves no useful purpose in tarballs and clutters the
4884-# build dir.
4885-#
4886-# This file knows how to handle autoconf, automake, libtool, gtk-doc,
4887-# gnome-doc-utils, yelp.m4, mallard, intltool, gsettings, dejagnu.
4888-#
4889-# This makefile provides the following targets:
4890-#
4891-# - all: "make all" will build all gitignore files.
4892-# - gitignore: makes all gitignore files in the current dir and subdirs.
4893-# - .gitignore: make gitignore file for the current dir.
4894-# - gitignore-recurse: makes all gitignore files in the subdirs.
4895-#
4896-# KNOWN ISSUES:
4897-#
4898-# - Recursive configure doesn't work as $(top_srcdir)/git.mk inside the
4899-# submodule doesn't find us. If you have configure.{in,ac} files in
4900-# subdirs, add a proxy git.mk file in those dirs that simply does:
4901-# "include $(top_srcdir)/../git.mk". Add more ..'s to your taste.
4902-# And add those files to git. See vte/gnome-pty-helper/git.mk for
4903-# example.
4904-#
4905-
4906-git-all: git-mk-install
4907-
4908-git-mk-install:
4909- @echo Installing git makefile
4910- @any_failed=; \
4911- find "`test -z "$(top_srcdir)" && echo . || echo "$(top_srcdir)"`" -name Makefile.am | while read x; do \
4912- if grep 'include .*/git.mk' $$x >/dev/null; then \
4913- echo $$x already includes git.mk; \
4914- else \
4915- failed=; \
4916- echo "Updating $$x"; \
4917- { cat $$x; \
4918- echo ''; \
4919- echo '-include $$(top_srcdir)/git.mk'; \
4920- } > $$x.tmp || failed=1; \
4921- if test x$$failed = x; then \
4922- mv $$x.tmp $$x || failed=1; \
4923- fi; \
4924- if test x$$failed = x; then : else \
4925- echo Failed updating $$x; >&2 \
4926- any_failed=1; \
4927- fi; \
4928- fi; done; test -z "$$any_failed"
4929-
4930-.PHONY: git-all git-mk-install
4931-
4932-
4933-### .gitignore generation
4934-
4935-$(srcdir)/.gitignore: Makefile.am $(top_srcdir)/git.mk
4936- $(AM_V_GEN) \
4937- { \
4938- if test "x$(DOC_MODULE)" = x -o "x$(DOC_MAIN_SGML_FILE)" = x; then :; else \
4939- for x in \
4940- $(DOC_MODULE)-decl-list.txt \
4941- $(DOC_MODULE)-decl.txt \
4942- tmpl/$(DOC_MODULE)-unused.sgml \
4943- "tmpl/*.bak" \
4944- xml html \
4945- ; do echo /$$x; done; \
4946- fi; \
4947- if test "x$(DOC_MODULE)$(DOC_ID)" = x -o "x$(DOC_LINGUAS)" = x; then :; else \
4948- for lc in $(DOC_LINGUAS); do \
4949- for x in \
4950- $(if $(DOC_MODULE),$(DOC_MODULE).xml) \
4951- $(DOC_PAGES) \
4952- $(DOC_INCLUDES) \
4953- ; do echo /$$lc/$$x; done; \
4954- done; \
4955- for x in \
4956- $(_DOC_OMF_ALL) \
4957- $(_DOC_DSK_ALL) \
4958- $(_DOC_HTML_ALL) \
4959- $(_DOC_MOFILES) \
4960- $(DOC_H_FILE) \
4961- "*/.xml2po.mo" \
4962- "*/*.omf.out" \
4963- ; do echo /$$x; done; \
4964- fi; \
4965- if test "x$(HELP_ID)" = x -o "x$(HELP_LINGUAS)" = x; then :; else \
4966- for lc in $(HELP_LINGUAS); do \
4967- for x in \
4968- $(HELP_FILES) \
4969- "$$lc.stamp" \
4970- "$$lc.mo" \
4971- ; do echo /$$lc/$$x; done; \
4972- done; \
4973- fi; \
4974- if test "x$(gsettings_SCHEMAS)" = x; then :; else \
4975- for x in \
4976- $(gsettings_SCHEMAS:.xml=.valid) \
4977- $(gsettings__enum_file) \
4978- ; do echo /$$x; done; \
4979- fi; \
4980- if test -f $(srcdir)/po/Makefile.in.in; then \
4981- for x in \
4982- po/Makefile.in.in \
4983- po/Makefile.in \
4984- po/Makefile \
4985- po/Makevars.template \
4986- po/POTFILES \
4987- po/Rules-quot \
4988- po/stamp-it \
4989- po/stamp-po \
4990- po/.intltool-merge-cache \
4991- "po/*~" \
4992- "po/*.header" \
4993- "po/*.gmo" \
4994- "po/*.mo" \
4995- "po/*.sed" \
4996- "po/*.sin" \
4997- po/$(GETTEXT_PACKAGE).pot \
4998- intltool-extract.in \
4999- intltool-merge.in \
5000- intltool-update.in \
5001- ; do echo /$$x; done; \
5002- fi; \
5003- if test -f $(srcdir)/po-conf/Makefile.in.in; then \
5004- for x in \
5005- po-conf/Makefile.in.in \
5006- po-conf/Makefile.in \
5007- po-conf/Makefile \
5008- po-conf/Makevars.template \
5009- po-conf/POTFILES \
5010- po-conf/Rules-quot \
5011- po-conf/stamp-it \
5012- po-conf/stamp-po \
5013- "po-conf/*~" \
5014- "po-conf/*.header" \
5015- "po-conf/*.gmo" \
5016- "po-conf/*.mo" \
5017- "po-conf/*.sed" \
5018- "po-conf/*.sin" \
5019- po-conf/$(GETTEXT_PACKAGE)-conf.pot \
5020- ; do echo /$$x; done; \
5021- fi; \
5022- if test -f $(srcdir)/configure; then \
5023- for x in \
5024- autom4te.cache \
5025- configure \
5026- config.h \
5027- stamp-h1 \
5028- libtool \
5029- config.lt \
5030- config.rpath \
5031- ; do echo /$$x; done; \
5032- fi; \
5033- if test "x$(DEJATOOL)" = x; then :; else \
5034- for x in \
5035- $(DEJATOOL) \
5036- ; do echo /$$x.sum; echo /$$x.log; done; \
5037- echo /site.exp; \
5038- fi; \
5039- for x in \
5040- .gitignore \
5041- $(GITIGNOREFILES) \
5042- $(CLEANFILES) \
5043- $(PROGRAMS) $(check_PROGRAMS) $(EXTRA_PROGRAMS) \
5044- $(LIBRARIES) $(check_LIBRARIES) $(EXTRA_LIBRARIES) \
5045- $(LTLIBRARIES) $(check_LTLIBRARIES) $(EXTRA_LTLIBRARIES) \
5046- so_locations \
5047- .libs _libs \
5048- $(MOSTLYCLEANFILES) \
5049- "*.$(OBJEXT)" \
5050- "*.lo" \
5051- $(DISTCLEANFILES) \
5052- $(am__CONFIG_DISTCLEAN_FILES) \
5053- $(CONFIG_CLEAN_FILES) \
5054- TAGS ID GTAGS GRTAGS GSYMS GPATH tags \
5055- "*.tab.c" \
5056- $(MAINTAINERCLEANFILES) \
5057- $(BUILT_SOURCES) \
5058- $(DEPDIR) \
5059- Makefile \
5060- Makefile.in \
5061- "*.orig" \
5062- "*.rej" \
5063- "*.bak" \
5064- "*~" \
5065- ".*.sw[nop]" \
5066- ".dirstamp" \
5067- ; do echo /$$x; done; \
5068- } | \
5069- sed "s@^/`echo "$(srcdir)" | sed 's/\(.\)/[\1]/g'`/@/@" | \
5070- sed 's@/[.]/@/@g' | \
5071- LC_ALL=C sort | uniq > $@.tmp && \
5072- mv $@.tmp $@;
5073-
5074-all: $(srcdir)/.gitignore gitignore-recurse-maybe
5075-gitignore: $(srcdir)/.gitignore gitignore-recurse
5076-
5077-gitignore-recurse-maybe:
5078- @for subdir in $(DIST_SUBDIRS); do \
5079- case " $(SUBDIRS) " in \
5080- *" $$subdir "*) :;; \
5081- *) test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse-maybe || echo "Skipping $$subdir");; \
5082- esac; \
5083- done
5084-gitignore-recurse:
5085- @for subdir in $(DIST_SUBDIRS); do \
5086- test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) .gitignore gitignore-recurse || echo "Skipping $$subdir"); \
5087- done
5088-
5089-maintainer-clean: gitignore-clean
5090-gitignore-clean:
5091- -rm -f $(srcdir)/.gitignore
5092-
5093-.PHONY: gitignore-clean gitignore gitignore-recurse gitignore-recurse-maybe
5094diff --git a/its/Makefile.am b/its/Makefile.am
5095deleted file mode 100644
5096index 18beacd6..00000000
5097--- a/its/Makefile.am
5098+++ /dev/null
5099@@ -1,34 +0,0 @@
5100-#
5101-# fontconfig/Makefile.am
5102-#
5103-# Copyright © 2003 Keith Packard
5104-#
5105-# Permission to use, copy, modify, distribute, and sell this software and its
5106-# documentation for any purpose is hereby granted without fee, provided that
5107-# the above copyright notice appear in all copies and that both that
5108-# copyright notice and this permission notice appear in supporting
5109-# documentation, and that the name of the author(s) not be used in
5110-# advertising or publicity pertaining to distribution of the software without
5111-# specific, written prior permission. The authors make no
5112-# representations about the suitability of this software for any purpose. It
5113-# is provided "as is" without express or implied warranty.
5114-#
5115-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
5116-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
5117-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
5118-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
5119-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
5120-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5121-# PERFORMANCE OF THIS SOFTWARE.
5122-
5123-NULL =
5124-EXTRA_DIST = \
5125- $(gettextits_DATA) \
5126- $(NULL)
5127-
5128-gettextitsdir = $(datadir)/gettext/its
5129-gettextits_DATA = \
5130- fontconfig.its \
5131- fontconfig.loc
5132-
5133--include $(top_srcdir)/git.mk
5134diff --git a/its/fontconfig.its b/its/fontconfig.its
5135deleted file mode 100644
5136index fe36155b..00000000
5137--- a/its/fontconfig.its
5138+++ /dev/null
5139@@ -1,25 +0,0 @@
5140-<?xml version="1.0"?>
5141-<!--
5142-Copyright © 2018 Red Hat, Inc.
5143-
5144-Permission to use, copy, modify, distribute, and sell this software and its
5145-documentation for any purpose is hereby granted without fee, provided that
5146-the above copyright notice appear in all copies and that both that
5147-copyright notice and this permission notice appear in supporting
5148-documentation, and that the name of the author(s) not be used in
5149-advertising or publicity pertaining to distribution of the software without
5150-specific, written prior permission. The authors make no
5151-representations about the suitability of this software for any purpose. It
5152-is provided "as is" without express or implied warranty.
5153-
5154-THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
5155-INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
5156-EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
5157-CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
5158-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
5159-TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5160-PERFORMANCE OF THIS SOFTWARE.
5161--->
5162-<its:rules xmlns:its="http://www.w3.org/2005/11/its" version="1.0">
5163- <its:translateRule translate="no" selector="/fontconfig/*[not(self::description)]"/>
5164-</its:rules>
5165diff --git a/its/fontconfig.loc b/its/fontconfig.loc
5166deleted file mode 100644
5167index 13889027..00000000
5168--- a/its/fontconfig.loc
5169+++ /dev/null
5170@@ -1,27 +0,0 @@
5171-<?xml version="1.0"?>
5172-<!--
5173-Copyright © 2018 Red Hat, Inc.
5174-
5175-Permission to use, copy, modify, distribute, and sell this software and its
5176-documentation for any purpose is hereby granted without fee, provided that
5177-the above copyright notice appear in all copies and that both that
5178-copyright notice and this permission notice appear in supporting
5179-documentation, and that the name of the author(s) not be used in
5180-advertising or publicity pertaining to distribution of the software without
5181-specific, written prior permission. The authors make no
5182-representations about the suitability of this software for any purpose. It
5183-is provided "as is" without express or implied warranty.
5184-
5185-THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
5186-INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
5187-EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
5188-CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
5189-DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
5190-TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
5191-PERFORMANCE OF THIS SOFTWARE.
5192--->
5193-<locatingRules>
5194- <locatingRule name="Fontconfig" pattern="*.conf">
5195- <documentRule localName="fontconfig" target="fontconfig.its"/>
5196- </locatingRule>
5197-</locatingRules>
5198diff --git a/its/meson.build b/its/meson.build
5199deleted file mode 100644
5200index cb9f68ef..00000000
5201--- a/its/meson.build
5202+++ /dev/null
5203@@ -1,8 +0,0 @@
5204-gettext_files = [
5205- 'fontconfig.its',
5206- 'fontconfig.loc',
5207-]
5208-
5209-install_data(gettext_files,
5210- install_dir: join_paths(get_option('datadir'), 'gettext/its'),
5211- install_tag: 'devel')
5212diff --git a/m4/.gitkeep b/m4/.gitkeep
5213deleted file mode 100644
5214index e69de29b..00000000
5215diff --git a/m4/ac_check_symbol.m4 b/m4/ac_check_symbol.m4
5216deleted file mode 100644
5217index 41c15286..00000000
5218--- a/m4/ac_check_symbol.m4
5219+++ /dev/null
5220@@ -1,48 +0,0 @@
5221-dnl @synopsis AC_CHECK_SYMBOL(SYMBOL, HEADER... [,ACTION-IF-FOUND [,ACTION-IF-NOT-FOUND]])
5222-dnl
5223-dnl a wrapper around AC_EGREP_HEADER the shellvar $ac_found will hold
5224-dnl the HEADER-name that had been containing the symbol. This value is
5225-dnl shown to the user.
5226-dnl
5227-dnl @category C
5228-dnl @author Guido U. Draheim <guidod@gmx.de>
5229-dnl @version 2006-10-13
5230-dnl @license GPLWithACException
5231-
5232-AC_DEFUN([AC_CHECK_SYMBOL],
5233-[AC_MSG_CHECKING([for $1 in $2])
5234-AC_CACHE_VAL(ac_cv_func_$1,
5235-[AC_REQUIRE_CPP()dnl
5236-changequote(, )dnl
5237-symbol="[^a-zA-Z_0-9]$1[^a-zA-Z_0-9]"
5238-changequote([, ])dnl
5239-ac_found=no
5240-for ac_header in $2 ; do
5241- ac_safe=`echo "$ac_header" | sed 'y%./+-%__p_%' `
5242- if test $ac_found != "yes" ; then
5243- if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
5244- AC_EGREP_HEADER( $symbol, $ac_header, [ac_found="$ac_header"] )
5245- fi
5246- fi
5247-done
5248-if test "$ac_found" != "no" ; then
5249- AC_MSG_RESULT($ac_found)
5250- ifelse([$3], , :, [$3])
5251-else
5252- AC_MSG_RESULT(no)
5253- ifelse([$4], , , [$4
5254-])dnl
5255-fi
5256-])])
5257-
5258-dnl AC_CHECK_SYMBOLS( symbol..., header... [, action-if-found [, action-if-not-found]])
5259-AC_DEFUN([AC_CHECK_SYMBOLS],
5260-[for ac_func in $1
5261-do
5262-P4_CHECK_SYMBOL($ac_func, $2,
5263-[changequote(, )dnl
5264- ac_tr_func=HAVE_`echo $ac_func | sed -e 'y:abcdefghijklmnopqrstuvwxyz:ABCDEFGHIJKLMNOPQRSTUVWXYZ:' -e 's:[[^A-Z0-9]]:_:'`
5265-changequote([, ])dnl
5266- AC_DEFINE_UNQUOTED($ac_tr_func) $2], $3)dnl
5267-done
5268-])
5269diff --git a/m4/ax_cc_for_build.m4 b/m4/ax_cc_for_build.m4
5270deleted file mode 100644
5271index c880fd0e..00000000
5272--- a/m4/ax_cc_for_build.m4
5273+++ /dev/null
5274@@ -1,77 +0,0 @@
5275-# ===========================================================================
5276-# http://www.gnu.org/software/autoconf-archive/ax_cc_for_build.html
5277-# ===========================================================================
5278-#
5279-# SYNOPSIS
5280-#
5281-# AX_CC_FOR_BUILD
5282-#
5283-# DESCRIPTION
5284-#
5285-# Find a build-time compiler. Sets CC_FOR_BUILD and EXEEXT_FOR_BUILD.
5286-#
5287-# LICENSE
5288-#
5289-# Copyright (c) 2010 Reuben Thomas <rrt@sc3d.org>
5290-# Copyright (c) 1999 Richard Henderson <rth@redhat.com>
5291-#
5292-# This program is free software: you can redistribute it and/or modify it
5293-# under the terms of the GNU General Public License as published by the
5294-# Free Software Foundation, either version 3 of the License, or (at your
5295-# option) any later version.
5296-#
5297-# This program is distributed in the hope that it will be useful, but
5298-# WITHOUT ANY WARRANTY; without even the implied warranty of
5299-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
5300-# Public License for more details.
5301-#
5302-# You should have received a copy of the GNU General Public License along
5303-# with this program. If not, see <http://www.gnu.org/licenses/>.
5304-#
5305-# As a special exception, the respective Autoconf Macro's copyright owner
5306-# gives unlimited permission to copy, distribute and modify the configure
5307-# scripts that are the output of Autoconf when processing the Macro. You
5308-# need not follow the terms of the GNU General Public License when using
5309-# or distributing such scripts, even though portions of the text of the
5310-# Macro appear in them. The GNU General Public License (GPL) does govern
5311-# all other use of the material that constitutes the Autoconf Macro.
5312-#
5313-# This special exception to the GPL applies to versions of the Autoconf
5314-# Macro released by the Autoconf Archive. When you make and distribute a
5315-# modified version of the Autoconf Macro, you may extend this special
5316-# exception to the GPL to apply to your modified version as well.
5317-
5318-#serial 2
5319-
5320-dnl Get a default for CC_FOR_BUILD to put into Makefile.
5321-AC_DEFUN([AX_CC_FOR_BUILD],
5322-[# Put a plausible default for CC_FOR_BUILD in Makefile.
5323-if test -z "$CC_FOR_BUILD"; then
5324- if test "x$cross_compiling" = "xno"; then
5325- CC_FOR_BUILD='$(CC)'
5326- else
5327- CC_FOR_BUILD=gcc
5328- fi
5329-fi
5330-AC_SUBST(CC_FOR_BUILD)
5331-# Also set EXEEXT_FOR_BUILD.
5332-if test "x$cross_compiling" = "xno"; then
5333- EXEEXT_FOR_BUILD='$(EXEEXT)'
5334-else
5335- AC_CACHE_CHECK([for build system executable suffix], bfd_cv_build_exeext,
5336- [rm -f conftest*
5337- echo 'int main () { return 0; }' > conftest.c
5338- bfd_cv_build_exeext=
5339- ${CC_FOR_BUILD} -o conftest conftest.c 1>&5 2>&5
5340- for file in conftest.*; do
5341- case $file in
5342- *.c | *.o | *.obj | *.ilk | *.pdb) ;;
5343- *) bfd_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
5344- esac
5345- done
5346- rm -f conftest*
5347- test x"${bfd_cv_build_exeext}" = x && bfd_cv_build_exeext=no])
5348- EXEEXT_FOR_BUILD=""
5349- test x"${bfd_cv_build_exeext}" != xno && EXEEXT_FOR_BUILD=${bfd_cv_build_exeext}
5350-fi
5351-AC_SUBST(EXEEXT_FOR_BUILD)])dnl
5352diff --git a/m4/ax_create_stdint_h.m4 b/m4/ax_create_stdint_h.m4
5353deleted file mode 100644
5354index 1e410614..00000000
5355--- a/m4/ax_create_stdint_h.m4
5356+++ /dev/null
5357@@ -1,695 +0,0 @@
5358-dnl @synopsis AX_CREATE_STDINT_H [( HEADER-TO-GENERATE [, HEDERS-TO-CHECK])]
5359-dnl
5360-dnl the "ISO C9X: 7.18 Integer types <stdint.h>" section requires the
5361-dnl existence of an include file <stdint.h> that defines a set of
5362-dnl typedefs, especially uint8_t,int32_t,uintptr_t. Many older
5363-dnl installations will not provide this file, but some will have the
5364-dnl very same definitions in <inttypes.h>. In other enviroments we can
5365-dnl use the inet-types in <sys/types.h> which would define the typedefs
5366-dnl int8_t and u_int8_t respectivly.
5367-dnl
5368-dnl This macros will create a local "_stdint.h" or the headerfile given
5369-dnl as an argument. In many cases that file will just "#include
5370-dnl <stdint.h>" or "#include <inttypes.h>", while in other environments
5371-dnl it will provide the set of basic 'stdint's definitions/typedefs:
5372-dnl
5373-dnl int8_t,uint8_t,int16_t,uint16_t,int32_t,uint32_t,intptr_t,uintptr_t
5374-dnl int_least32_t.. int_fast32_t.. intmax_t
5375-dnl
5376-dnl which may or may not rely on the definitions of other files, or
5377-dnl using the AC_CHECK_SIZEOF macro to determine the actual sizeof each
5378-dnl type.
5379-dnl
5380-dnl if your header files require the stdint-types you will want to
5381-dnl create an installable file mylib-int.h that all your other
5382-dnl installable header may include. So if you have a library package
5383-dnl named "mylib", just use
5384-dnl
5385-dnl AX_CREATE_STDINT_H(mylib-int.h)
5386-dnl
5387-dnl in configure.ac and go to install that very header file in
5388-dnl Makefile.am along with the other headers (mylib.h) - and the
5389-dnl mylib-specific headers can simply use "#include <mylib-int.h>" to
5390-dnl obtain the stdint-types.
5391-dnl
5392-dnl Remember, if the system already had a valid <stdint.h>, the
5393-dnl generated file will include it directly. No need for fuzzy
5394-dnl HAVE_STDINT_H things... (oops, GCC 4.2.x has deliberatly
5395-dnl disabled its stdint.h for non-c99 compilation and the c99-mode
5396-dnl is not the default. Therefore this macro will not use the
5397-dnl compiler's stdint.h - please complain to the GCC developers).
5398-dnl
5399-dnl @category C
5400-dnl @author Guido U. Draheim <guidod@gmx.de>
5401-dnl @version 2003-12-07
5402-dnl @license GPLWithACException
5403-
5404-AC_DEFUN([AX_CHECK_DATA_MODEL],[
5405- AC_CHECK_SIZEOF(char)
5406- AC_CHECK_SIZEOF(short)
5407- AC_CHECK_SIZEOF(int)
5408- AC_CHECK_SIZEOF(long)
5409- AC_CHECK_SIZEOF(void*)
5410- ac_cv_char_data_model=""
5411- ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_char"
5412- ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_short"
5413- ac_cv_char_data_model="$ac_cv_char_data_model$ac_cv_sizeof_int"
5414- ac_cv_long_data_model=""
5415- ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_int"
5416- ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_long"
5417- ac_cv_long_data_model="$ac_cv_long_data_model$ac_cv_sizeof_voidp"
5418- AC_MSG_CHECKING([data model])
5419- case "$ac_cv_char_data_model/$ac_cv_long_data_model" in
5420- 122/242) ac_cv_data_model="IP16" ; n="standard 16bit machine" ;;
5421- 122/244) ac_cv_data_model="LP32" ; n="standard 32bit machine" ;;
5422- 122/*) ac_cv_data_model="i16" ; n="unusual int16 model" ;;
5423- 124/444) ac_cv_data_model="ILP32" ; n="standard 32bit unixish" ;;
5424- 124/488) ac_cv_data_model="LP64" ; n="standard 64bit unixish" ;;
5425- 124/448) ac_cv_data_model="LLP64" ; n="unusual 64bit unixish" ;;
5426- 124/*) ac_cv_data_model="i32" ; n="unusual int32 model" ;;
5427- 128/888) ac_cv_data_model="ILP64" ; n="unusual 64bit numeric" ;;
5428- 128/*) ac_cv_data_model="i64" ; n="unusual int64 model" ;;
5429- 222/*2) ac_cv_data_model="DSP16" ; n="strict 16bit dsptype" ;;
5430- 333/*3) ac_cv_data_model="DSP24" ; n="strict 24bit dsptype" ;;
5431- 444/*4) ac_cv_data_model="DSP32" ; n="strict 32bit dsptype" ;;
5432- 666/*6) ac_cv_data_model="DSP48" ; n="strict 48bit dsptype" ;;
5433- 888/*8) ac_cv_data_model="DSP64" ; n="strict 64bit dsptype" ;;
5434- 222/*|333/*|444/*|666/*|888/*) :
5435- ac_cv_data_model="iDSP" ; n="unusual dsptype" ;;
5436- *) ac_cv_data_model="none" ; n="very unusual model" ;;
5437- esac
5438- AC_MSG_RESULT([$ac_cv_data_model ($ac_cv_long_data_model, $n)])
5439-])
5440-
5441-dnl AX_CHECK_HEADER_STDINT_X([HEADERLIST][,ACTION-IF])
5442-AC_DEFUN([AX_CHECK_HEADER_STDINT_X],[
5443-AC_CACHE_CHECK([for stdint uintptr_t], [ac_cv_header_stdint_x],[
5444- ac_cv_header_stdint_x="" # the 1997 typedefs (inttypes.h)
5445- AC_MSG_RESULT([(..)])
5446- for i in m4_ifval([$1],[$1],[stdint.h inttypes.h sys/inttypes.h sys/types.h])
5447- do
5448- unset ac_cv_type_uintptr_t
5449- unset ac_cv_type_uint64_t
5450- AC_CHECK_TYPE(uintptr_t,[ac_cv_header_stdint_x=$i],continue,[#include <$i>])
5451- AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>])
5452- m4_ifvaln([$2],[$2]) break
5453- done
5454- AC_MSG_CHECKING([for stdint uintptr_t])
5455- ])
5456-])
5457-
5458-AC_DEFUN([AX_CHECK_HEADER_STDINT_O],[
5459-AC_CACHE_CHECK([for stdint uint32_t], [ac_cv_header_stdint_o],[
5460- ac_cv_header_stdint_o="" # the 1995 typedefs (sys/inttypes.h)
5461- AC_MSG_RESULT([(..)])
5462- for i in m4_ifval([$1],[$1],[inttypes.h sys/inttypes.h sys/types.h stdint.h])
5463- do
5464- unset ac_cv_type_uint32_t
5465- unset ac_cv_type_uint64_t
5466- AC_CHECK_TYPE(uint32_t,[ac_cv_header_stdint_o=$i],continue,[#include <$i>])
5467- AC_CHECK_TYPE(uint64_t,[and64="/uint64_t"],[and64=""],[#include<$i>])
5468- m4_ifvaln([$2],[$2]) break
5469- break;
5470- done
5471- AC_MSG_CHECKING([for stdint uint32_t])
5472- ])
5473-])
5474-
5475-AC_DEFUN([AX_CHECK_HEADER_STDINT_U],[
5476-AC_CACHE_CHECK([for stdint u_int32_t], [ac_cv_header_stdint_u],[
5477- ac_cv_header_stdint_u="" # the BSD typedefs (sys/types.h)
5478- AC_MSG_RESULT([(..)])
5479- for i in m4_ifval([$1],[$1],[sys/types.h inttypes.h sys/inttypes.h]) ; do
5480- unset ac_cv_type_u_int32_t
5481- unset ac_cv_type_u_int64_t
5482- AC_CHECK_TYPE(u_int32_t,[ac_cv_header_stdint_u=$i],continue,[#include <$i>])
5483- AC_CHECK_TYPE(u_int64_t,[and64="/u_int64_t"],[and64=""],[#include<$i>])
5484- m4_ifvaln([$2],[$2]) break
5485- break;
5486- done
5487- AC_MSG_CHECKING([for stdint u_int32_t])
5488- ])
5489-])
5490-
5491-AC_DEFUN([AX_CREATE_STDINT_H],
5492-[# ------ AX CREATE STDINT H -------------------------------------
5493-AC_MSG_CHECKING([for stdint types])
5494-ac_stdint_h=`echo ifelse($1, , _stdint.h, $1)`
5495-# try to shortcircuit - if the default include path of the compiler
5496-# can find a "stdint.h" header then we assume that all compilers can.
5497-AC_CACHE_VAL([ac_cv_header_stdint_t],[
5498-old_CXXFLAGS="$CXXFLAGS" ; CXXFLAGS=""
5499-old_CPPFLAGS="$CPPFLAGS" ; CPPFLAGS=""
5500-old_CFLAGS="$CFLAGS" ; CFLAGS=""
5501-AC_TRY_COMPILE([#include <stdint.h>],[int_least32_t v = 0;],
5502-[ac_cv_stdint_result="(assuming C99 compatible system)"
5503- ac_cv_header_stdint_t="stdint.h"; ],
5504-[ac_cv_header_stdint_t=""])
5505-if test "$GCC" = "yes" && test ".$ac_cv_header_stdint_t" = "."; then
5506-CFLAGS="-std=c99"
5507-AC_TRY_COMPILE([#include <stdint.h>],[int_least32_t v = 0;],
5508-[AC_MSG_WARN(your GCC compiler has a defunct stdint.h for its default-mode)])
5509-fi
5510-CXXFLAGS="$old_CXXFLAGS"
5511-CPPFLAGS="$old_CPPFLAGS"
5512-CFLAGS="$old_CFLAGS" ])
5513-
5514-v="... $ac_cv_header_stdint_h"
5515-if test "$ac_stdint_h" = "stdint.h" ; then
5516- AC_MSG_RESULT([(are you sure you want them in ./stdint.h?)])
5517-elif test "$ac_stdint_h" = "inttypes.h" ; then
5518- AC_MSG_RESULT([(are you sure you want them in ./inttypes.h?)])
5519-elif test "_$ac_cv_header_stdint_t" = "_" ; then
5520- AC_MSG_RESULT([(putting them into $ac_stdint_h)$v])
5521-else
5522- ac_cv_header_stdint="$ac_cv_header_stdint_t"
5523- AC_MSG_RESULT([$ac_cv_header_stdint (shortcircuit)])
5524-fi
5525-
5526-if test "_$ac_cv_header_stdint_t" = "_" ; then # can not shortcircuit..
5527-
5528-dnl .....intro message done, now do a few system checks.....
5529-dnl btw, all old CHECK_TYPE macros do automatically "DEFINE" a type,
5530-dnl therefore we use the autoconf implementation detail CHECK_TYPE_NEW
5531-dnl instead that is triggered with 3 or more arguments (see types.m4)
5532-
5533-inttype_headers=`echo $2 | sed -e 's/,/ /g'`
5534-
5535-ac_cv_stdint_result="(no helpful system typedefs seen)"
5536-AX_CHECK_HEADER_STDINT_X(dnl
5537- stdint.h inttypes.h sys/inttypes.h $inttype_headers,
5538- ac_cv_stdint_result="(seen uintptr_t$and64 in $i)")
5539-
5540-if test "_$ac_cv_header_stdint_x" = "_" ; then
5541-AX_CHECK_HEADER_STDINT_O(dnl,
5542- inttypes.h sys/inttypes.h stdint.h $inttype_headers,
5543- ac_cv_stdint_result="(seen uint32_t$and64 in $i)")
5544-fi
5545-
5546-if test "_$ac_cv_header_stdint_x" = "_" ; then
5547-if test "_$ac_cv_header_stdint_o" = "_" ; then
5548-AX_CHECK_HEADER_STDINT_U(dnl,
5549- sys/types.h inttypes.h sys/inttypes.h $inttype_headers,
5550- ac_cv_stdint_result="(seen u_int32_t$and64 in $i)")
5551-fi fi
5552-
5553-dnl if there was no good C99 header file, do some typedef checks...
5554-if test "_$ac_cv_header_stdint_x" = "_" ; then
5555- AC_MSG_CHECKING([for stdint datatype model])
5556- AC_MSG_RESULT([(..)])
5557- AX_CHECK_DATA_MODEL
5558-fi
5559-
5560-if test "_$ac_cv_header_stdint_x" != "_" ; then
5561- ac_cv_header_stdint="$ac_cv_header_stdint_x"
5562-elif test "_$ac_cv_header_stdint_o" != "_" ; then
5563- ac_cv_header_stdint="$ac_cv_header_stdint_o"
5564-elif test "_$ac_cv_header_stdint_u" != "_" ; then
5565- ac_cv_header_stdint="$ac_cv_header_stdint_u"
5566-else
5567- ac_cv_header_stdint="stddef.h"
5568-fi
5569-
5570-AC_MSG_CHECKING([for extra inttypes in chosen header])
5571-AC_MSG_RESULT([($ac_cv_header_stdint)])
5572-dnl see if int_least and int_fast types are present in _this_ header.
5573-unset ac_cv_type_int_least32_t
5574-unset ac_cv_type_int_fast32_t
5575-AC_CHECK_TYPE(int_least32_t,,,[#include <$ac_cv_header_stdint>])
5576-AC_CHECK_TYPE(int_fast32_t,,,[#include<$ac_cv_header_stdint>])
5577-AC_CHECK_TYPE(intmax_t,,,[#include <$ac_cv_header_stdint>])
5578-
5579-fi # shortcircut to system "stdint.h"
5580-# ------------------ PREPARE VARIABLES ------------------------------
5581-if test "$GCC" = "yes" ; then
5582-ac_cv_stdint_message="using gnu compiler "`$CC --version | head -1`
5583-else
5584-ac_cv_stdint_message="using $CC"
5585-fi
5586-
5587-AC_MSG_RESULT([make use of $ac_cv_header_stdint in $ac_stdint_h dnl
5588-$ac_cv_stdint_result])
5589-
5590-dnl -----------------------------------------------------------------
5591-# ----------------- DONE inttypes.h checks START header -------------
5592-AC_CONFIG_COMMANDS([$ac_stdint_h],[
5593-AC_MSG_NOTICE(creating $ac_stdint_h : $_ac_stdint_h)
5594-ac_stdint=$tmp/_stdint.h
5595-
5596-echo "#ifndef" $_ac_stdint_h >$ac_stdint
5597-echo "#define" $_ac_stdint_h "1" >>$ac_stdint
5598-echo "#ifndef" _GENERATED_STDINT_H >>$ac_stdint
5599-echo "#define" _GENERATED_STDINT_H '"'$PACKAGE $VERSION'"' >>$ac_stdint
5600-echo "/* generated $ac_cv_stdint_message */" >>$ac_stdint
5601-if test "_$ac_cv_header_stdint_t" != "_" ; then
5602-echo "#define _STDINT_HAVE_STDINT_H" "1" >>$ac_stdint
5603-echo "#include <stdint.h>" >>$ac_stdint
5604-echo "#endif" >>$ac_stdint
5605-echo "#endif" >>$ac_stdint
5606-else
5607-
5608-cat >>$ac_stdint <<STDINT_EOF
5609-
5610-/* ................... shortcircuit part ........................... */
5611-
5612-#if defined HAVE_STDINT_H || defined _STDINT_HAVE_STDINT_H
5613-#include <stdint.h>
5614-#else
5615-#include <stddef.h>
5616-
5617-/* .................... configured part ............................ */
5618-
5619-STDINT_EOF
5620-
5621-echo "/* whether we have a C99 compatible stdint header file */" >>$ac_stdint
5622-if test "_$ac_cv_header_stdint_x" != "_" ; then
5623- ac_header="$ac_cv_header_stdint_x"
5624- echo "#define _STDINT_HEADER_INTPTR" '"'"$ac_header"'"' >>$ac_stdint
5625-else
5626- echo "/* #undef _STDINT_HEADER_INTPTR */" >>$ac_stdint
5627-fi
5628-
5629-echo "/* whether we have a C96 compatible inttypes header file */" >>$ac_stdint
5630-if test "_$ac_cv_header_stdint_o" != "_" ; then
5631- ac_header="$ac_cv_header_stdint_o"
5632- echo "#define _STDINT_HEADER_UINT32" '"'"$ac_header"'"' >>$ac_stdint
5633-else
5634- echo "/* #undef _STDINT_HEADER_UINT32 */" >>$ac_stdint
5635-fi
5636-
5637-echo "/* whether we have a BSD compatible inet types header */" >>$ac_stdint
5638-if test "_$ac_cv_header_stdint_u" != "_" ; then
5639- ac_header="$ac_cv_header_stdint_u"
5640- echo "#define _STDINT_HEADER_U_INT32" '"'"$ac_header"'"' >>$ac_stdint
5641-else
5642- echo "/* #undef _STDINT_HEADER_U_INT32 */" >>$ac_stdint
5643-fi
5644-
5645-echo "" >>$ac_stdint
5646-
5647-if test "_$ac_header" != "_" ; then if test "$ac_header" != "stddef.h" ; then
5648- echo "#include <$ac_header>" >>$ac_stdint
5649- echo "" >>$ac_stdint
5650-fi fi
5651-
5652-echo "/* which 64bit typedef has been found */" >>$ac_stdint
5653-if test "$ac_cv_type_uint64_t" = "yes" ; then
5654-echo "#define _STDINT_HAVE_UINT64_T" "1" >>$ac_stdint
5655-else
5656-echo "/* #undef _STDINT_HAVE_UINT64_T */" >>$ac_stdint
5657-fi
5658-if test "$ac_cv_type_u_int64_t" = "yes" ; then
5659-echo "#define _STDINT_HAVE_U_INT64_T" "1" >>$ac_stdint
5660-else
5661-echo "/* #undef _STDINT_HAVE_U_INT64_T */" >>$ac_stdint
5662-fi
5663-echo "" >>$ac_stdint
5664-
5665-echo "/* which type model has been detected */" >>$ac_stdint
5666-if test "_$ac_cv_char_data_model" != "_" ; then
5667-echo "#define _STDINT_CHAR_MODEL" "$ac_cv_char_data_model" >>$ac_stdint
5668-echo "#define _STDINT_LONG_MODEL" "$ac_cv_long_data_model" >>$ac_stdint
5669-else
5670-echo "/* #undef _STDINT_CHAR_MODEL // skipped */" >>$ac_stdint
5671-echo "/* #undef _STDINT_LONG_MODEL // skipped */" >>$ac_stdint
5672-fi
5673-echo "" >>$ac_stdint
5674-
5675-echo "/* whether int_least types were detected */" >>$ac_stdint
5676-if test "$ac_cv_type_int_least32_t" = "yes"; then
5677-echo "#define _STDINT_HAVE_INT_LEAST32_T" "1" >>$ac_stdint
5678-else
5679-echo "/* #undef _STDINT_HAVE_INT_LEAST32_T */" >>$ac_stdint
5680-fi
5681-echo "/* whether int_fast types were detected */" >>$ac_stdint
5682-if test "$ac_cv_type_int_fast32_t" = "yes"; then
5683-echo "#define _STDINT_HAVE_INT_FAST32_T" "1" >>$ac_stdint
5684-else
5685-echo "/* #undef _STDINT_HAVE_INT_FAST32_T */" >>$ac_stdint
5686-fi
5687-echo "/* whether intmax_t type was detected */" >>$ac_stdint
5688-if test "$ac_cv_type_intmax_t" = "yes"; then
5689-echo "#define _STDINT_HAVE_INTMAX_T" "1" >>$ac_stdint
5690-else
5691-echo "/* #undef _STDINT_HAVE_INTMAX_T */" >>$ac_stdint
5692-fi
5693-echo "" >>$ac_stdint
5694-
5695- cat >>$ac_stdint <<STDINT_EOF
5696-/* .................... detections part ............................ */
5697-
5698-/* whether we need to define bitspecific types from compiler base types */
5699-#ifndef _STDINT_HEADER_INTPTR
5700-#ifndef _STDINT_HEADER_UINT32
5701-#ifndef _STDINT_HEADER_U_INT32
5702-#define _STDINT_NEED_INT_MODEL_T
5703-#else
5704-#define _STDINT_HAVE_U_INT_TYPES
5705-#endif
5706-#endif
5707-#endif
5708-
5709-#ifdef _STDINT_HAVE_U_INT_TYPES
5710-#undef _STDINT_NEED_INT_MODEL_T
5711-#endif
5712-
5713-#ifdef _STDINT_CHAR_MODEL
5714-#if _STDINT_CHAR_MODEL+0 == 122 || _STDINT_CHAR_MODEL+0 == 124
5715-#ifndef _STDINT_BYTE_MODEL
5716-#define _STDINT_BYTE_MODEL 12
5717-#endif
5718-#endif
5719-#endif
5720-
5721-#ifndef _STDINT_HAVE_INT_LEAST32_T
5722-#define _STDINT_NEED_INT_LEAST_T
5723-#endif
5724-
5725-#ifndef _STDINT_HAVE_INT_FAST32_T
5726-#define _STDINT_NEED_INT_FAST_T
5727-#endif
5728-
5729-#ifndef _STDINT_HEADER_INTPTR
5730-#define _STDINT_NEED_INTPTR_T
5731-#ifndef _STDINT_HAVE_INTMAX_T
5732-#define _STDINT_NEED_INTMAX_T
5733-#endif
5734-#endif
5735-
5736-
5737-/* .................... definition part ............................ */
5738-
5739-/* some system headers have good uint64_t */
5740-#ifndef _HAVE_UINT64_T
5741-#if defined _STDINT_HAVE_UINT64_T || defined HAVE_UINT64_T
5742-#define _HAVE_UINT64_T
5743-#elif defined _STDINT_HAVE_U_INT64_T || defined HAVE_U_INT64_T
5744-#define _HAVE_UINT64_T
5745-typedef u_int64_t uint64_t;
5746-#endif
5747-#endif
5748-
5749-#ifndef _HAVE_UINT64_T
5750-/* .. here are some common heuristics using compiler runtime specifics */
5751-#if defined __STDC_VERSION__ && defined __STDC_VERSION__ >= 199901L
5752-#define _HAVE_UINT64_T
5753-#define _HAVE_LONGLONG_UINT64_T
5754-typedef long long int64_t;
5755-typedef unsigned long long uint64_t;
5756-
5757-#elif !defined __STRICT_ANSI__
5758-#if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
5759-#define _HAVE_UINT64_T
5760-typedef __int64 int64_t;
5761-typedef unsigned __int64 uint64_t;
5762-
5763-#elif defined __GNUC__ || defined __MWERKS__ || defined __ELF__
5764-/* note: all ELF-systems seem to have loff-support which needs 64-bit */
5765-#if !defined _NO_LONGLONG
5766-#define _HAVE_UINT64_T
5767-#define _HAVE_LONGLONG_UINT64_T
5768-typedef long long int64_t;
5769-typedef unsigned long long uint64_t;
5770-#endif
5771-
5772-#elif defined __alpha || (defined __mips && defined _ABIN32)
5773-#if !defined _NO_LONGLONG
5774-typedef long int64_t;
5775-typedef unsigned long uint64_t;
5776-#endif
5777- /* compiler/cpu type to define int64_t */
5778-#endif
5779-#endif
5780-#endif
5781-
5782-#if defined _STDINT_HAVE_U_INT_TYPES
5783-/* int8_t int16_t int32_t defined by inet code, redeclare the u_intXX types */
5784-typedef u_int8_t uint8_t;
5785-typedef u_int16_t uint16_t;
5786-typedef u_int32_t uint32_t;
5787-
5788-/* glibc compatibility */
5789-#ifndef __int8_t_defined
5790-#define __int8_t_defined
5791-#endif
5792-#endif
5793-
5794-#ifdef _STDINT_NEED_INT_MODEL_T
5795-/* we must guess all the basic types. Apart from byte-adressable system, */
5796-/* there a few 32-bit-only dsp-systems that we guard with BYTE_MODEL 8-} */
5797-/* (btw, those nibble-addressable systems are way off, or so we assume) */
5798-
5799-dnl /* have a look at "64bit and data size neutrality" at */
5800-dnl /* http://unix.org/version2/whatsnew/login_64bit.html */
5801-dnl /* (the shorthand "ILP" types always have a "P" part) */
5802-
5803-#if defined _STDINT_BYTE_MODEL
5804-#if _STDINT_LONG_MODEL+0 == 242
5805-/* 2:4:2 = IP16 = a normal 16-bit system */
5806-typedef unsigned char uint8_t;
5807-typedef unsigned short uint16_t;
5808-typedef unsigned long uint32_t;
5809-#ifndef __int8_t_defined
5810-#define __int8_t_defined
5811-typedef char int8_t;
5812-typedef short int16_t;
5813-typedef long int32_t;
5814-#endif
5815-#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL == 444
5816-/* 2:4:4 = LP32 = a 32-bit system derived from a 16-bit */
5817-/* 4:4:4 = ILP32 = a normal 32-bit system */
5818-typedef unsigned char uint8_t;
5819-typedef unsigned short uint16_t;
5820-typedef unsigned int uint32_t;
5821-#ifndef __int8_t_defined
5822-#define __int8_t_defined
5823-typedef char int8_t;
5824-typedef short int16_t;
5825-typedef int int32_t;
5826-#endif
5827-#elif _STDINT_LONG_MODEL+0 == 484 || _STDINT_LONG_MODEL+0 == 488
5828-/* 4:8:4 = IP32 = a 32-bit system prepared for 64-bit */
5829-/* 4:8:8 = LP64 = a normal 64-bit system */
5830-typedef unsigned char uint8_t;
5831-typedef unsigned short uint16_t;
5832-typedef unsigned int uint32_t;
5833-#ifndef __int8_t_defined
5834-#define __int8_t_defined
5835-typedef char int8_t;
5836-typedef short int16_t;
5837-typedef int int32_t;
5838-#endif
5839-/* this system has a "long" of 64bit */
5840-#ifndef _HAVE_UINT64_T
5841-#define _HAVE_UINT64_T
5842-typedef unsigned long uint64_t;
5843-typedef long int64_t;
5844-#endif
5845-#elif _STDINT_LONG_MODEL+0 == 448
5846-/* LLP64 a 64-bit system derived from a 32-bit system */
5847-typedef unsigned char uint8_t;
5848-typedef unsigned short uint16_t;
5849-typedef unsigned int uint32_t;
5850-#ifndef __int8_t_defined
5851-#define __int8_t_defined
5852-typedef char int8_t;
5853-typedef short int16_t;
5854-typedef int int32_t;
5855-#endif
5856-/* assuming the system has a "long long" */
5857-#ifndef _HAVE_UINT64_T
5858-#define _HAVE_UINT64_T
5859-#define _HAVE_LONGLONG_UINT64_T
5860-typedef unsigned long long uint64_t;
5861-typedef long long int64_t;
5862-#endif
5863-#else
5864-#define _STDINT_NO_INT32_T
5865-#endif
5866-#else
5867-#define _STDINT_NO_INT8_T
5868-#define _STDINT_NO_INT32_T
5869-#endif
5870-#endif
5871-
5872-/*
5873- * quote from SunOS-5.8 sys/inttypes.h:
5874- * Use at your own risk. As of February 1996, the committee is squarely
5875- * behind the fixed sized types; the "least" and "fast" types are still being
5876- * discussed. The probability that the "fast" types may be removed before
5877- * the standard is finalized is high enough that they are not currently
5878- * implemented.
5879- */
5880-
5881-#if defined _STDINT_NEED_INT_LEAST_T
5882-typedef int8_t int_least8_t;
5883-typedef int16_t int_least16_t;
5884-typedef int32_t int_least32_t;
5885-#ifdef _HAVE_UINT64_T
5886-typedef int64_t int_least64_t;
5887-#endif
5888-
5889-typedef uint8_t uint_least8_t;
5890-typedef uint16_t uint_least16_t;
5891-typedef uint32_t uint_least32_t;
5892-#ifdef _HAVE_UINT64_T
5893-typedef uint64_t uint_least64_t;
5894-#endif
5895- /* least types */
5896-#endif
5897-
5898-#if defined _STDINT_NEED_INT_FAST_T
5899-typedef int8_t int_fast8_t;
5900-typedef int int_fast16_t;
5901-typedef int32_t int_fast32_t;
5902-#ifdef _HAVE_UINT64_T
5903-typedef int64_t int_fast64_t;
5904-#endif
5905-
5906-typedef uint8_t uint_fast8_t;
5907-typedef unsigned uint_fast16_t;
5908-typedef uint32_t uint_fast32_t;
5909-#ifdef _HAVE_UINT64_T
5910-typedef uint64_t uint_fast64_t;
5911-#endif
5912- /* fast types */
5913-#endif
5914-
5915-#ifdef _STDINT_NEED_INTMAX_T
5916-#ifdef _HAVE_UINT64_T
5917-typedef int64_t intmax_t;
5918-typedef uint64_t uintmax_t;
5919-#else
5920-typedef long intmax_t;
5921-typedef unsigned long uintmax_t;
5922-#endif
5923-#endif
5924-
5925-#ifdef _STDINT_NEED_INTPTR_T
5926-#ifndef __intptr_t_defined
5927-#define __intptr_t_defined
5928-/* we encourage using "long" to store pointer values, never use "int" ! */
5929-#if _STDINT_LONG_MODEL+0 == 242 || _STDINT_LONG_MODEL+0 == 484
5930-typedef unsigned int uintptr_t;
5931-typedef int intptr_t;
5932-#elif _STDINT_LONG_MODEL+0 == 244 || _STDINT_LONG_MODEL+0 == 444
5933-typedef unsigned long uintptr_t;
5934-typedef long intptr_t;
5935-#elif _STDINT_LONG_MODEL+0 == 448 && defined _HAVE_UINT64_T
5936-typedef uint64_t uintptr_t;
5937-typedef int64_t intptr_t;
5938-#else /* matches typical system types ILP32 and LP64 - but not IP16 or LLP64 */
5939-typedef unsigned long uintptr_t;
5940-typedef long intptr_t;
5941-#endif
5942-#endif
5943-#endif
5944-
5945-/* The ISO C99 standard specifies that in C++ implementations these
5946- should only be defined if explicitly requested. */
5947-#if !defined __cplusplus || defined __STDC_CONSTANT_MACROS
5948-#ifndef UINT32_C
5949-
5950-/* Signed. */
5951-# define INT8_C(c) c
5952-# define INT16_C(c) c
5953-# define INT32_C(c) c
5954-# ifdef _HAVE_LONGLONG_UINT64_T
5955-# define INT64_C(c) c ## L
5956-# else
5957-# define INT64_C(c) c ## LL
5958-# endif
5959-
5960-/* Unsigned. */
5961-# define UINT8_C(c) c ## U
5962-# define UINT16_C(c) c ## U
5963-# define UINT32_C(c) c ## U
5964-# ifdef _HAVE_LONGLONG_UINT64_T
5965-# define UINT64_C(c) c ## UL
5966-# else
5967-# define UINT64_C(c) c ## ULL
5968-# endif
5969-
5970-/* Maximal type. */
5971-# ifdef _HAVE_LONGLONG_UINT64_T
5972-# define INTMAX_C(c) c ## L
5973-# define UINTMAX_C(c) c ## UL
5974-# else
5975-# define INTMAX_C(c) c ## LL
5976-# define UINTMAX_C(c) c ## ULL
5977-# endif
5978-
5979- /* literalnumbers */
5980-#endif
5981-#endif
5982-
5983-/* These limits are merily those of a two complement byte-oriented system */
5984-
5985-/* Minimum of signed integral types. */
5986-# define INT8_MIN (-128)
5987-# define INT16_MIN (-32767-1)
5988-# define INT32_MIN (-2147483647-1)
5989-# define INT64_MIN (-__INT64_C(9223372036854775807)-1)
5990-/* Maximum of signed integral types. */
5991-# define INT8_MAX (127)
5992-# define INT16_MAX (32767)
5993-# define INT32_MAX (2147483647)
5994-# define INT64_MAX (__INT64_C(9223372036854775807))
5995-
5996-/* Maximum of unsigned integral types. */
5997-# define UINT8_MAX (255)
5998-# define UINT16_MAX (65535)
5999-# define UINT32_MAX (4294967295U)
6000-# define UINT64_MAX (__UINT64_C(18446744073709551615))
6001-
6002-/* Minimum of signed integral types having a minimum size. */
6003-# define INT_LEAST8_MIN INT8_MIN
6004-# define INT_LEAST16_MIN INT16_MIN
6005-# define INT_LEAST32_MIN INT32_MIN
6006-# define INT_LEAST64_MIN INT64_MIN
6007-/* Maximum of signed integral types having a minimum size. */
6008-# define INT_LEAST8_MAX INT8_MAX
6009-# define INT_LEAST16_MAX INT16_MAX
6010-# define INT_LEAST32_MAX INT32_MAX
6011-# define INT_LEAST64_MAX INT64_MAX
6012-
6013-/* Maximum of unsigned integral types having a minimum size. */
6014-# define UINT_LEAST8_MAX UINT8_MAX
6015-# define UINT_LEAST16_MAX UINT16_MAX
6016-# define UINT_LEAST32_MAX UINT32_MAX
6017-# define UINT_LEAST64_MAX UINT64_MAX
6018-
6019- /* shortcircuit*/
6020-#endif
6021- /* once */
6022-#endif
6023-#endif
6024-STDINT_EOF
6025-fi
6026- if cmp -s $ac_stdint_h $ac_stdint 2>/dev/null; then
6027- AC_MSG_NOTICE([$ac_stdint_h is unchanged])
6028- else
6029- ac_dir=`AS_DIRNAME(["$ac_stdint_h"])`
6030- AS_MKDIR_P(["$ac_dir"])
6031- rm -f $ac_stdint_h
6032- mv $ac_stdint $ac_stdint_h
6033- fi
6034-],[# variables for create stdint.h replacement
6035-PACKAGE="$PACKAGE"
6036-VERSION="$VERSION"
6037-ac_stdint_h="$ac_stdint_h"
6038-_ac_stdint_h=AS_TR_CPP(_$PACKAGE-$ac_stdint_h)
6039-ac_cv_stdint_message="$ac_cv_stdint_message"
6040-ac_cv_header_stdint_t="$ac_cv_header_stdint_t"
6041-ac_cv_header_stdint_x="$ac_cv_header_stdint_x"
6042-ac_cv_header_stdint_o="$ac_cv_header_stdint_o"
6043-ac_cv_header_stdint_u="$ac_cv_header_stdint_u"
6044-ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
6045-ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
6046-ac_cv_char_data_model="$ac_cv_char_data_model"
6047-ac_cv_long_data_model="$ac_cv_long_data_model"
6048-ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
6049-ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
6050-ac_cv_type_intmax_t="$ac_cv_type_intmax_t"
6051-])
6052-])
6053diff --git a/m4/ax_pthread.m4 b/m4/ax_pthread.m4
6054deleted file mode 100644
6055index e77541ce..00000000
6056--- a/m4/ax_pthread.m4
6057+++ /dev/null
6058@@ -1,337 +0,0 @@
6059-# ===========================================================================
6060-# http://www.gnu.org/software/autoconf-archive/ax_pthread.html
6061-# ===========================================================================
6062-#
6063-# SYNOPSIS
6064-#
6065-# AX_PTHREAD([ACTION-IF-FOUND[, ACTION-IF-NOT-FOUND]])
6066-#
6067-# DESCRIPTION
6068-#
6069-# This macro figures out how to build C programs using POSIX threads. It
6070-# sets the PTHREAD_LIBS output variable to the threads library and linker
6071-# flags, and the PTHREAD_CFLAGS output variable to any special C compiler
6072-# flags that are needed. (The user can also force certain compiler
6073-# flags/libs to be tested by setting these environment variables.)
6074-#
6075-# Also sets PTHREAD_CC to any special C compiler that is needed for
6076-# multi-threaded programs (defaults to the value of CC otherwise). (This
6077-# is necessary on AIX to use the special cc_r compiler alias.)
6078-#
6079-# NOTE: You are assumed to not only compile your program with these flags,
6080-# but also link it with them as well. e.g. you should link with
6081-# $PTHREAD_CC $CFLAGS $PTHREAD_CFLAGS $LDFLAGS ... $PTHREAD_LIBS $LIBS
6082-#
6083-# If you are only building threads programs, you may wish to use these
6084-# variables in your default LIBS, CFLAGS, and CC:
6085-#
6086-# LIBS="$PTHREAD_LIBS $LIBS"
6087-# CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6088-# CC="$PTHREAD_CC"
6089-#
6090-# In addition, if the PTHREAD_CREATE_JOINABLE thread-attribute constant
6091-# has a nonstandard name, defines PTHREAD_CREATE_JOINABLE to that name
6092-# (e.g. PTHREAD_CREATE_UNDETACHED on AIX).
6093-#
6094-# Also HAVE_PTHREAD_PRIO_INHERIT is defined if pthread is found and the
6095-# PTHREAD_PRIO_INHERIT symbol is defined when compiling with
6096-# PTHREAD_CFLAGS.
6097-#
6098-# ACTION-IF-FOUND is a list of shell commands to run if a threads library
6099-# is found, and ACTION-IF-NOT-FOUND is a list of commands to run it if it
6100-# is not found. If ACTION-IF-FOUND is not specified, the default action
6101-# will define HAVE_PTHREAD.
6102-#
6103-# Please let the authors know if this macro fails on any platform, or if
6104-# you have any other suggestions or comments. This macro was based on work
6105-# by SGJ on autoconf scripts for FFTW (http://www.fftw.org/) (with help
6106-# from M. Frigo), as well as ac_pthread and hb_pthread macros posted by
6107-# Alejandro Forero Cuervo to the autoconf macro repository. We are also
6108-# grateful for the helpful feedback of numerous users.
6109-#
6110-# Updated for Autoconf 2.68 by Daniel Richard G.
6111-#
6112-# LICENSE
6113-#
6114-# Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
6115-# Copyright (c) 2011 Daniel Richard G. <skunk@iSKUNK.ORG>
6116-#
6117-# This program is free software: you can redistribute it and/or modify it
6118-# under the terms of the GNU General Public License as published by the
6119-# Free Software Foundation, either version 3 of the License, or (at your
6120-# option) any later version.
6121-#
6122-# This program is distributed in the hope that it will be useful, but
6123-# WITHOUT ANY WARRANTY; without even the implied warranty of
6124-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
6125-# Public License for more details.
6126-#
6127-# You should have received a copy of the GNU General Public License along
6128-# with this program. If not, see <http://www.gnu.org/licenses/>.
6129-#
6130-# As a special exception, the respective Autoconf Macro's copyright owner
6131-# gives unlimited permission to copy, distribute and modify the configure
6132-# scripts that are the output of Autoconf when processing the Macro. You
6133-# need not follow the terms of the GNU General Public License when using
6134-# or distributing such scripts, even though portions of the text of the
6135-# Macro appear in them. The GNU General Public License (GPL) does govern
6136-# all other use of the material that constitutes the Autoconf Macro.
6137-#
6138-# This special exception to the GPL applies to versions of the Autoconf
6139-# Macro released by the Autoconf Archive. When you make and distribute a
6140-# modified version of the Autoconf Macro, you may extend this special
6141-# exception to the GPL to apply to your modified version as well.
6142-
6143-#serial 21
6144-
6145-AU_ALIAS([ACX_PTHREAD], [AX_PTHREAD])
6146-AC_DEFUN([AX_PTHREAD], [
6147-AC_REQUIRE([AC_CANONICAL_HOST])
6148-AC_LANG_PUSH([C])
6149-ax_pthread_ok=no
6150-
6151-# We used to check for pthread.h first, but this fails if pthread.h
6152-# requires special compiler flags (e.g. on True64 or Sequent).
6153-# It gets checked for in the link test anyway.
6154-
6155-# First of all, check if the user has set any of the PTHREAD_LIBS,
6156-# etcetera environment variables, and if threads linking works using
6157-# them:
6158-if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then
6159- save_CFLAGS="$CFLAGS"
6160- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6161- save_LIBS="$LIBS"
6162- LIBS="$PTHREAD_LIBS $LIBS"
6163- AC_MSG_CHECKING([for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS])
6164- AC_TRY_LINK_FUNC([pthread_join], [ax_pthread_ok=yes])
6165- AC_MSG_RESULT([$ax_pthread_ok])
6166- if test x"$ax_pthread_ok" = xno; then
6167- PTHREAD_LIBS=""
6168- PTHREAD_CFLAGS=""
6169- fi
6170- LIBS="$save_LIBS"
6171- CFLAGS="$save_CFLAGS"
6172-fi
6173-
6174-# We must check for the threads library under a number of different
6175-# names; the ordering is very important because some systems
6176-# (e.g. DEC) have both -lpthread and -lpthreads, where one of the
6177-# libraries is broken (non-POSIX).
6178-
6179-# Create a list of thread flags to try. Items starting with a "-" are
6180-# C compiler flags, and other items are library names, except for "none"
6181-# which indicates that we try without any flags at all, and "pthread-config"
6182-# which is a program returning the flags for the Pth emulation library.
6183-
6184-ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
6185-
6186-# The ordering *is* (sometimes) important. Some notes on the
6187-# individual items follow:
6188-
6189-# pthreads: AIX (must check this before -lpthread)
6190-# none: in case threads are in libc; should be tried before -Kthread and
6191-# other compiler flags to prevent continual compiler warnings
6192-# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h)
6193-# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able)
6194-# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread)
6195-# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads)
6196-# -pthreads: Solaris/gcc
6197-# -mthreads: Mingw32/gcc, Lynx/gcc
6198-# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it
6199-# doesn't hurt to check since this sometimes defines pthreads too;
6200-# also defines -D_REENTRANT)
6201-# ... -mt is also the pthreads flag for HP/aCC
6202-# pthread: Linux, etcetera
6203-# --thread-safe: KAI C++
6204-# pthread-config: use pthread-config program (for GNU Pth library)
6205-
6206-case ${host_os} in
6207- solaris*)
6208-
6209- # On Solaris (at least, for some versions), libc contains stubbed
6210- # (non-functional) versions of the pthreads routines, so link-based
6211- # tests will erroneously succeed. (We need to link with -pthreads/-mt/
6212- # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather
6213- # a function called by this macro, so we could check for that, but
6214- # who knows whether they'll stub that too in a future libc.) So,
6215- # we'll just look for -pthreads and -lpthread first:
6216-
6217- ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags"
6218- ;;
6219-
6220- darwin*)
6221- ax_pthread_flags="-pthread $ax_pthread_flags"
6222- ;;
6223- netbsd*)
6224- # use libc stubs, don't link against libpthread, to allow
6225- # dynamic loading
6226- ax_pthread_flags=""
6227- ;;
6228-esac
6229-
6230-# Clang doesn't consider unrecognized options an error unless we specify
6231-# -Werror. We throw in some extra Clang-specific options to ensure that
6232-# this doesn't happen for GCC, which also accepts -Werror.
6233-
6234-AC_MSG_CHECKING([if compiler needs -Werror to reject unknown flags])
6235-save_CFLAGS="$CFLAGS"
6236-ax_pthread_extra_flags="-Werror"
6237-CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument"
6238-AC_COMPILE_IFELSE([AC_LANG_PROGRAM([int foo(void);],[foo()])],
6239- [AC_MSG_RESULT([yes])],
6240- [ax_pthread_extra_flags=
6241- AC_MSG_RESULT([no])])
6242-CFLAGS="$save_CFLAGS"
6243-
6244-if test x"$ax_pthread_ok" = xno; then
6245-for flag in $ax_pthread_flags; do
6246-
6247- case $flag in
6248- none)
6249- AC_MSG_CHECKING([whether pthreads work without any flags])
6250- ;;
6251-
6252- -*)
6253- AC_MSG_CHECKING([whether pthreads work with $flag])
6254- PTHREAD_CFLAGS="$flag"
6255- ;;
6256-
6257- pthread-config)
6258- AC_CHECK_PROG([ax_pthread_config], [pthread-config], [yes], [no])
6259- if test x"$ax_pthread_config" = xno; then continue; fi
6260- PTHREAD_CFLAGS="`pthread-config --cflags`"
6261- PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`"
6262- ;;
6263-
6264- *)
6265- AC_MSG_CHECKING([for the pthreads library -l$flag])
6266- PTHREAD_LIBS="-l$flag"
6267- ;;
6268- esac
6269-
6270- save_LIBS="$LIBS"
6271- save_CFLAGS="$CFLAGS"
6272- LIBS="$PTHREAD_LIBS $LIBS"
6273- CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags"
6274-
6275- # Check for various functions. We must include pthread.h,
6276- # since some functions may be macros. (On the Sequent, we
6277- # need a special flag -Kthread to make this header compile.)
6278- # We check for pthread_join because it is in -lpthread on IRIX
6279- # while pthread_create is in libc. We check for pthread_attr_init
6280- # due to DEC craziness with -lpthreads. We check for
6281- # pthread_cleanup_push because it is one of the few pthread
6282- # functions on Solaris that doesn't have a non-functional libc stub.
6283- # We try pthread_create on general principles.
6284- AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>
6285- static void routine(void *a) { a = 0; }
6286- static void *start_routine(void *a) { return a; }],
6287- [pthread_t th; pthread_attr_t attr;
6288- pthread_create(&th, 0, start_routine, 0);
6289- pthread_join(th, 0);
6290- pthread_attr_init(&attr);
6291- pthread_cleanup_push(routine, 0);
6292- pthread_cleanup_pop(0) /* ; */])],
6293- [ax_pthread_ok=yes],
6294- [])
6295-
6296- LIBS="$save_LIBS"
6297- CFLAGS="$save_CFLAGS"
6298-
6299- AC_MSG_RESULT([$ax_pthread_ok])
6300- if test "x$ax_pthread_ok" = xyes; then
6301- break;
6302- fi
6303-
6304- PTHREAD_LIBS=""
6305- PTHREAD_CFLAGS=""
6306-done
6307-fi
6308-
6309-# Various other checks:
6310-if test "x$ax_pthread_ok" = xyes; then
6311- save_LIBS="$LIBS"
6312- LIBS="$PTHREAD_LIBS $LIBS"
6313- save_CFLAGS="$CFLAGS"
6314- CFLAGS="$CFLAGS $PTHREAD_CFLAGS"
6315-
6316- # Detect AIX lossage: JOINABLE attribute is called UNDETACHED.
6317- AC_MSG_CHECKING([for joinable pthread attribute])
6318- attr_name=unknown
6319- for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do
6320- AC_LINK_IFELSE([AC_LANG_PROGRAM([#include <pthread.h>],
6321- [int attr = $attr; return attr /* ; */])],
6322- [attr_name=$attr; break],
6323- [])
6324- done
6325- AC_MSG_RESULT([$attr_name])
6326- if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then
6327- AC_DEFINE_UNQUOTED([PTHREAD_CREATE_JOINABLE], [$attr_name],
6328- [Define to necessary symbol if this constant
6329- uses a non-standard name on your system.])
6330- fi
6331-
6332- AC_MSG_CHECKING([if more special flags are required for pthreads])
6333- flag=no
6334- case ${host_os} in
6335- aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";;
6336- osf* | hpux*) flag="-D_REENTRANT";;
6337- solaris*)
6338- if test "$GCC" = "yes"; then
6339- flag="-D_REENTRANT"
6340- else
6341- # TODO: What about Clang on Solaris?
6342- flag="-mt -D_REENTRANT"
6343- fi
6344- ;;
6345- esac
6346- AC_MSG_RESULT([$flag])
6347- if test "x$flag" != xno; then
6348- PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS"
6349- fi
6350-
6351- AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
6352- [ax_cv_PTHREAD_PRIO_INHERIT], [
6353- AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
6354- [[int i = PTHREAD_PRIO_INHERIT;]])],
6355- [ax_cv_PTHREAD_PRIO_INHERIT=yes],
6356- [ax_cv_PTHREAD_PRIO_INHERIT=no])
6357- ])
6358- AS_IF([test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"],
6359- [AC_DEFINE([HAVE_PTHREAD_PRIO_INHERIT], [1], [Have PTHREAD_PRIO_INHERIT.])])
6360-
6361- LIBS="$save_LIBS"
6362- CFLAGS="$save_CFLAGS"
6363-
6364- # More AIX lossage: compile with *_r variant
6365- if test "x$GCC" != xyes; then
6366- case $host_os in
6367- aix*)
6368- AS_CASE(["x/$CC"],
6369- [x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6],
6370- [#handle absolute path differently from PATH based program lookup
6371- AS_CASE(["x$CC"],
6372- [x/*],
6373- [AS_IF([AS_EXECUTABLE_P([${CC}_r])],[PTHREAD_CC="${CC}_r"])],
6374- [AC_CHECK_PROGS([PTHREAD_CC],[${CC}_r],[$CC])])])
6375- ;;
6376- esac
6377- fi
6378-fi
6379-
6380-test -n "$PTHREAD_CC" || PTHREAD_CC="$CC"
6381-
6382-AC_SUBST([PTHREAD_LIBS])
6383-AC_SUBST([PTHREAD_CFLAGS])
6384-AC_SUBST([PTHREAD_CC])
6385-
6386-# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND:
6387-if test x"$ax_pthread_ok" = xyes; then
6388- ifelse([$1],,[AC_DEFINE([HAVE_PTHREAD],[1],[Define if you have POSIX threads libraries and header files.])],[$1])
6389- :
6390-else
6391- ax_pthread_ok=no
6392- $2
6393-fi
6394-AC_LANG_POP
6395-])dnl AX_PTHREAD
6396diff --git a/m4/pkg.m4 b/m4/pkg.m4
6397deleted file mode 100644
6398index c5b26b52..00000000
6399--- a/m4/pkg.m4
6400+++ /dev/null
6401@@ -1,214 +0,0 @@
6402-# pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*-
6403-# serial 1 (pkg-config-0.24)
6404-#
6405-# Copyright © 2004 Scott James Remnant <scott@netsplit.com>.
6406-#
6407-# This program is free software; you can redistribute it and/or modify
6408-# it under the terms of the GNU General Public License as published by
6409-# the Free Software Foundation; either version 2 of the License, or
6410-# (at your option) any later version.
6411-#
6412-# This program is distributed in the hope that it will be useful, but
6413-# WITHOUT ANY WARRANTY; without even the implied warranty of
6414-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
6415-# General Public License for more details.
6416-#
6417-# You should have received a copy of the GNU General Public License
6418-# along with this program; if not, write to the Free Software
6419-# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
6420-#
6421-# As a special exception to the GNU General Public License, if you
6422-# distribute this file as part of a program that contains a
6423-# configuration script generated by Autoconf, you may include it under
6424-# the same distribution terms that you use for the rest of that program.
6425-
6426-# PKG_PROG_PKG_CONFIG([MIN-VERSION])
6427-# ----------------------------------
6428-AC_DEFUN([PKG_PROG_PKG_CONFIG],
6429-[m4_pattern_forbid([^_?PKG_[A-Z_]+$])
6430-m4_pattern_allow([^PKG_CONFIG(_(PATH|LIBDIR|SYSROOT_DIR|ALLOW_SYSTEM_(CFLAGS|LIBS)))?$])
6431-m4_pattern_allow([^PKG_CONFIG_(DISABLE_UNINSTALLED|TOP_BUILD_DIR|DEBUG_SPEW)$])
6432-AC_ARG_VAR([PKG_CONFIG], [path to pkg-config utility])
6433-AC_ARG_VAR([PKG_CONFIG_PATH], [directories to add to pkg-config's search path])
6434-AC_ARG_VAR([PKG_CONFIG_LIBDIR], [path overriding pkg-config's built-in search path])
6435-
6436-if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
6437- AC_PATH_TOOL([PKG_CONFIG], [pkg-config])
6438-fi
6439-if test -n "$PKG_CONFIG"; then
6440- _pkg_min_version=m4_default([$1], [0.9.0])
6441- AC_MSG_CHECKING([pkg-config is at least version $_pkg_min_version])
6442- if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
6443- AC_MSG_RESULT([yes])
6444- else
6445- AC_MSG_RESULT([no])
6446- PKG_CONFIG=""
6447- fi
6448-fi[]dnl
6449-])# PKG_PROG_PKG_CONFIG
6450-
6451-# PKG_CHECK_EXISTS(MODULES, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
6452-#
6453-# Check to see whether a particular set of modules exists. Similar
6454-# to PKG_CHECK_MODULES(), but does not set variables or print errors.
6455-#
6456-# Please remember that m4 expands AC_REQUIRE([PKG_PROG_PKG_CONFIG])
6457-# only at the first occurence in configure.ac, so if the first place
6458-# it's called might be skipped (such as if it is within an "if", you
6459-# have to call PKG_CHECK_EXISTS manually
6460-# --------------------------------------------------------------
6461-AC_DEFUN([PKG_CHECK_EXISTS],
6462-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6463-if test -n "$PKG_CONFIG" && \
6464- AC_RUN_LOG([$PKG_CONFIG --exists --print-errors "$1"]); then
6465- m4_default([$2], [:])
6466-m4_ifvaln([$3], [else
6467- $3])dnl
6468-fi])
6469-
6470-# _PKG_CONFIG([VARIABLE], [COMMAND], [MODULES])
6471-# ---------------------------------------------
6472-m4_define([_PKG_CONFIG],
6473-[if test -n "$$1"; then
6474- pkg_cv_[]$1="$$1"
6475- elif test -n "$PKG_CONFIG"; then
6476- PKG_CHECK_EXISTS([$3],
6477- [pkg_cv_[]$1=`$PKG_CONFIG --[]$2 "$3" 2>/dev/null`
6478- test "x$?" != "x0" && pkg_failed=yes ],
6479- [pkg_failed=yes])
6480- else
6481- pkg_failed=untried
6482-fi[]dnl
6483-])# _PKG_CONFIG
6484-
6485-# _PKG_SHORT_ERRORS_SUPPORTED
6486-# -----------------------------
6487-AC_DEFUN([_PKG_SHORT_ERRORS_SUPPORTED],
6488-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])
6489-if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
6490- _pkg_short_errors_supported=yes
6491-else
6492- _pkg_short_errors_supported=no
6493-fi[]dnl
6494-])# _PKG_SHORT_ERRORS_SUPPORTED
6495-
6496-
6497-# PKG_CHECK_MODULES(VARIABLE-PREFIX, MODULES, [ACTION-IF-FOUND],
6498-# [ACTION-IF-NOT-FOUND])
6499-#
6500-#
6501-# Note that if there is a possibility the first call to
6502-# PKG_CHECK_MODULES might not happen, you should be sure to include an
6503-# explicit call to PKG_PROG_PKG_CONFIG in your configure.ac
6504-#
6505-#
6506-# --------------------------------------------------------------
6507-AC_DEFUN([PKG_CHECK_MODULES],
6508-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6509-AC_ARG_VAR([$1][_CFLAGS], [C compiler flags for $1, overriding pkg-config])dnl
6510-AC_ARG_VAR([$1][_LIBS], [linker flags for $1, overriding pkg-config])dnl
6511-
6512-pkg_failed=no
6513-AC_MSG_CHECKING([for $1])
6514-
6515-_PKG_CONFIG([$1][_CFLAGS], [cflags], [$2])
6516-_PKG_CONFIG([$1][_LIBS], [libs], [$2])
6517-
6518-m4_define([_PKG_TEXT], [Alternatively, you may set the environment variables $1[]_CFLAGS
6519-and $1[]_LIBS to avoid the need to call pkg-config.
6520-See the pkg-config man page for more details.])
6521-
6522-if test $pkg_failed = yes; then
6523- AC_MSG_RESULT([no])
6524- _PKG_SHORT_ERRORS_SUPPORTED
6525- if test $_pkg_short_errors_supported = yes; then
6526- $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$2" 2>&1`
6527- else
6528- $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$2" 2>&1`
6529- fi
6530- # Put the nasty error message in config.log where it belongs
6531- echo "$$1[]_PKG_ERRORS" >&AS_MESSAGE_LOG_FD
6532-
6533- m4_default([$4], [AC_MSG_ERROR(
6534-[Package requirements ($2) were not met:
6535-
6536-$$1_PKG_ERRORS
6537-
6538-Consider adjusting the PKG_CONFIG_PATH environment variable if you
6539-installed software in a non-standard prefix.
6540-
6541-_PKG_TEXT])[]dnl
6542- ])
6543-elif test $pkg_failed = untried; then
6544- AC_MSG_RESULT([no])
6545- m4_default([$4], [AC_MSG_FAILURE(
6546-[The pkg-config script could not be found or is too old. Make sure it
6547-is in your PATH or set the PKG_CONFIG environment variable to the full
6548-path to pkg-config.
6549-
6550-_PKG_TEXT
6551-
6552-To get pkg-config, see <http://pkg-config.freedesktop.org/>.])[]dnl
6553- ])
6554-else
6555- $1[]_CFLAGS=$pkg_cv_[]$1[]_CFLAGS
6556- $1[]_LIBS=$pkg_cv_[]$1[]_LIBS
6557- AC_MSG_RESULT([yes])
6558- $3
6559-fi[]dnl
6560-])# PKG_CHECK_MODULES
6561-
6562-
6563-# PKG_INSTALLDIR(DIRECTORY)
6564-# -------------------------
6565-# Substitutes the variable pkgconfigdir as the location where a module
6566-# should install pkg-config .pc files. By default the directory is
6567-# $libdir/pkgconfig, but the default can be changed by passing
6568-# DIRECTORY. The user can override through the --with-pkgconfigdir
6569-# parameter.
6570-AC_DEFUN([PKG_INSTALLDIR],
6571-[m4_pushdef([pkg_default], [m4_default([$1], ['${libdir}/pkgconfig'])])
6572-m4_pushdef([pkg_description],
6573- [pkg-config installation directory @<:@]pkg_default[@:>@])
6574-AC_ARG_WITH([pkgconfigdir],
6575- [AS_HELP_STRING([--with-pkgconfigdir], pkg_description)],,
6576- [with_pkgconfigdir=]pkg_default)
6577-AC_SUBST([pkgconfigdir], [$with_pkgconfigdir])
6578-m4_popdef([pkg_default])
6579-m4_popdef([pkg_description])
6580-]) dnl PKG_INSTALLDIR
6581-
6582-
6583-# PKG_NOARCH_INSTALLDIR(DIRECTORY)
6584-# -------------------------
6585-# Substitutes the variable noarch_pkgconfigdir as the location where a
6586-# module should install arch-independent pkg-config .pc files. By
6587-# default the directory is $datadir/pkgconfig, but the default can be
6588-# changed by passing DIRECTORY. The user can override through the
6589-# --with-noarch-pkgconfigdir parameter.
6590-AC_DEFUN([PKG_NOARCH_INSTALLDIR],
6591-[m4_pushdef([pkg_default], [m4_default([$1], ['${datadir}/pkgconfig'])])
6592-m4_pushdef([pkg_description],
6593- [pkg-config arch-independent installation directory @<:@]pkg_default[@:>@])
6594-AC_ARG_WITH([noarch-pkgconfigdir],
6595- [AS_HELP_STRING([--with-noarch-pkgconfigdir], pkg_description)],,
6596- [with_noarch_pkgconfigdir=]pkg_default)
6597-AC_SUBST([noarch_pkgconfigdir], [$with_noarch_pkgconfigdir])
6598-m4_popdef([pkg_default])
6599-m4_popdef([pkg_description])
6600-]) dnl PKG_NOARCH_INSTALLDIR
6601-
6602-
6603-# PKG_CHECK_VAR(VARIABLE, MODULE, CONFIG-VARIABLE,
6604-# [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
6605-# -------------------------------------------
6606-# Retrieves the value of the pkg-config variable for the given module.
6607-AC_DEFUN([PKG_CHECK_VAR],
6608-[AC_REQUIRE([PKG_PROG_PKG_CONFIG])dnl
6609-AC_ARG_VAR([$1], [value of $3 for $2, overriding pkg-config])dnl
6610-
6611-_PKG_CONFIG([$1], [variable="][$3]["], [$2])
6612-AS_VAR_COPY([$1], [pkg_cv_][$1])
6613-
6614-AS_VAR_IF([$1], [""], [$5], [$4])dnl
6615-])# PKG_CHECK_VAR
6616diff --git a/m4/va_copy.m4 b/m4/va_copy.m4
6617deleted file mode 100644
6618index e29ac304..00000000
6619--- a/m4/va_copy.m4
6620+++ /dev/null
6621@@ -1,117 +0,0 @@
6622-dnl ##
6623-dnl ## NAME:
6624-dnl ## AC_CHECK_VA_COPY -- Check for C99 va_copy
6625-dnl ##
6626-dnl ## COPYRIGHT
6627-dnl ## Copyright (c) 2006 Ralf S. Engelschall <rse@engelschall.com>
6628-dnl ##
6629-dnl ## DESCRIPTION:
6630-dnl ## This macro checks for C99 va_copy() implementation and
6631-dnl ## provides fallback implementation if necessary. Notice: this
6632-dnl ## check is rather complex because first because we really have
6633-dnl ## to try various possible implementations in sequence and
6634-dnl ## second, we cannot define a macro in config.h with parameters
6635-dnl ## directly.
6636-dnl ##
6637-dnl ## USAGE:
6638-dnl ## configure.in:
6639-dnl ## AC_CHECK_VA_COPY
6640-dnl ## foo.c:
6641-dnl ## #include "config.h"
6642-dnl ## [...]
6643-dnl ## va_copy(d,s)
6644-dnl ##
6645-
6646-dnl # test program for va_copy() implementation
6647-changequote(<<,>>)
6648-m4_define(__va_copy_test, <<[
6649-#include <stdlib.h>
6650-#include <stdarg.h>
6651-#include <string.h>
6652-#define DO_VA_COPY(d, s) $1
6653-void test(char *str, ...)
6654-{
6655- va_list ap, ap2;
6656- int i;
6657- va_start(ap, str);
6658- DO_VA_COPY(ap2, ap);
6659- for (i = 1; i <= 9; i++) {
6660- int k = (int)va_arg(ap, int);
6661- if (k != i)
6662- abort();
6663- }
6664- DO_VA_COPY(ap, ap2);
6665- for (i = 1; i <= 9; i++) {
6666- int k = (int)va_arg(ap, int);
6667- if (k != i)
6668- abort();
6669- }
6670- va_end(ap);
6671-}
6672-int main(int argc, char *argv[])
6673-{
6674- test("test", 1, 2, 3, 4, 5, 6, 7, 8, 9);
6675- exit(0);
6676-}
6677-]>>)
6678-changequote([,])
6679-
6680-dnl # test driver for va_copy() implementation
6681-m4_define(__va_copy_check, [
6682- AH_VERBATIM($1,
6683-[/* Predefined possible va_copy() implementation (id: $1) */
6684-#define __VA_COPY_USE_$1(d, s) $2])
6685- if test ".$ac_cv_va_copy" = .; then
6686- AC_RUN_IFELSE([AC_LANG_SOURCE(AC_LANG_SOURCE([[__va_copy_test($2)]]))],[ac_cv_va_copy="$1"],[],[])
6687- fi
6688-])
6689-
6690-dnl # Autoconf check for va_copy() implementation checking
6691-AC_DEFUN([AC_CHECK_VA_COPY],[
6692- dnl # provide Autoconf display check message
6693- AC_MSG_CHECKING(for va_copy() function)
6694- dnl # check for various implementations in priorized sequence
6695- AC_CACHE_VAL(ac_cv_va_copy, [
6696- ac_cv_va_copy=""
6697- dnl # 1. check for standardized C99 macro
6698- __va_copy_check(C99, [va_copy((d), (s))])
6699- dnl # 2. check for alternative/deprecated GCC macro
6700- __va_copy_check(GCM, [VA_COPY((d), (s))])
6701- dnl # 3. check for internal GCC macro (high-level define)
6702- __va_copy_check(GCH, [__va_copy((d), (s))])
6703- dnl # 4. check for internal GCC macro (built-in function)
6704- __va_copy_check(GCB, [__builtin_va_copy((d), (s))])
6705- dnl # 5. check for assignment approach (assuming va_list is a struct)
6706- __va_copy_check(ASS, [do { (d) = (s); } while (0)])
6707- dnl # 6. check for assignment approach (assuming va_list is a pointer)
6708- __va_copy_check(ASP, [do { *(d) = *(s); } while (0)])
6709- dnl # 7. check for memory copying approach (assuming va_list is a struct)
6710- __va_copy_check(CPS, [memcpy((void *)&(d), (void *)&(s), sizeof((s)))])
6711- dnl # 8. check for memory copying approach (assuming va_list is a pointer)
6712- __va_copy_check(CPP, [memcpy((void *)(d), (void *)(s), sizeof(*(s)))])
6713- if test ".$ac_cv_va_copy" = .; then
6714- AC_MSG_ERROR([no working implementation found])
6715- fi
6716- ])
6717- dnl # optionally activate the fallback implementation
6718- if test ".$ac_cv_va_copy" = ".C99"; then
6719- AC_DEFINE(HAVE_VA_COPY, 1, [Define if va_copy() macro exists (and no fallback implementation is required)])
6720- fi
6721- dnl # declare which fallback implementation to actually use
6722- AC_DEFINE_UNQUOTED([__VA_COPY_USE], [__VA_COPY_USE_$ac_cv_va_copy],
6723- [Define to id of used va_copy() implementation])
6724- dnl # provide activation hook for fallback implementation
6725- AH_VERBATIM([__VA_COPY_ACTIVATION],
6726-[/* Optional va_copy() implementation activation */
6727-#ifndef HAVE_VA_COPY
6728-#define va_copy(d, s) __VA_COPY_USE(d, s)
6729-#endif
6730-])
6731- dnl # provide Autoconf display result message
6732- if test ".$ac_cv_va_copy" = ".C99"; then
6733- AC_MSG_RESULT([yes])
6734- else
6735- AC_MSG_RESULT([no (using fallback implementation)])
6736- fi
6737-])
6738-
6739diff --git a/meson-cc-tests/c99-vsnprint-test.c b/meson-cc-tests/c99-vsnprint-test.c
6740deleted file mode 100644
6741index 6ac89172..00000000
6742--- a/meson-cc-tests/c99-vsnprint-test.c
6743+++ /dev/null
6744@@ -1,28 +0,0 @@
6745-#include <sys/types.h>
6746-#include <stdio.h>
6747-#include <stdarg.h>
6748-#include <stdlib.h>
6749-
6750-int
6751-foo (char *format, ...)
6752-{
6753- va_list va;
6754- char c;
6755- int ret = 0;
6756-
6757- va_start (va, format);
6758- if (vsnprintf (&c, 1, format, va) < 0) {
6759- ret = -1;
6760- }
6761- va_end (va);
6762-
6763- return ret;
6764-}
6765-
6766-int
6767-main (void)
6768-{
6769- char c;
6770-
6771- return foo("foo: %s", "bar");
6772-}
6773diff --git a/meson-cc-tests/flexible-array-member-test.c b/meson-cc-tests/flexible-array-member-test.c
6774deleted file mode 100644
6775index d799b66c..00000000
6776--- a/meson-cc-tests/flexible-array-member-test.c
6777+++ /dev/null
6778@@ -1,17 +0,0 @@
6779-#include <stddef.h>
6780-#include <stdio.h>
6781-#include <stdlib.h>
6782-
6783-struct s {
6784- int n;
6785- double d[];
6786-};
6787-
6788-int
6789-main (void)
6790-{
6791- int m = getchar();
6792- struct s *p = malloc (offsetof (struct s, d) + m * sizeof (double));
6793- p->d[0] = 0.0;
6794- return p->d != (double *)NULL;
6795-}
6796diff --git a/meson-cc-tests/freetype-pcf-long-family-names.c b/meson-cc-tests/freetype-pcf-long-family-names.c
6797deleted file mode 100644
6798index 079418ef..00000000
6799--- a/meson-cc-tests/freetype-pcf-long-family-names.c
6800+++ /dev/null
6801@@ -1,11 +0,0 @@
6802-#include <ft2build.h>
6803-#include FT_CONFIG_OPTIONS_H
6804-#ifndef PCF_CONFIG_OPTION_LONG_FAMILY_NAMES
6805-# error "No pcf long family names support"
6806-#endif
6807-
6808-int
6809-main (void)
6810-{
6811- return 0;
6812-}
6813diff --git a/meson-cc-tests/gperf.txt b/meson-cc-tests/gperf.txt
6814deleted file mode 100644
6815index 47929eeb..00000000
6816--- a/meson-cc-tests/gperf.txt
6817+++ /dev/null
6818@@ -1 +0,0 @@
6819-foo,bar
6820diff --git a/meson-cc-tests/intel-atomic-primitives-test.c b/meson-cc-tests/intel-atomic-primitives-test.c
6821deleted file mode 100644
6822index 20c05c5e..00000000
6823--- a/meson-cc-tests/intel-atomic-primitives-test.c
6824+++ /dev/null
6825@@ -1,26 +0,0 @@
6826-void
6827-memory_barrier (void)
6828-{
6829- __sync_synchronize();
6830-}
6831-int
6832-atomic_add (int *i)
6833-{
6834- return __sync_fetch_and_add (i, 1);
6835-}
6836-int
6837-mutex_trylock (int *m)
6838-{
6839- return __sync_lock_test_and_set (m, 1);
6840-}
6841-void
6842-mutex_unlock (int *m)
6843-{
6844- __sync_lock_release (m);
6845-}
6846-
6847-int
6848-main (void)
6849-{
6850- return 0;
6851-}
6852diff --git a/meson-cc-tests/pthread-prio-inherit-test.c b/meson-cc-tests/pthread-prio-inherit-test.c
6853deleted file mode 100644
6854index 38b2ab80..00000000
6855--- a/meson-cc-tests/pthread-prio-inherit-test.c
6856+++ /dev/null
6857@@ -1,9 +0,0 @@
6858-#include <pthread.h>
6859-
6860-int
6861-main (void)
6862-{
6863- int i = PTHREAD_PRIO_INHERIT;
6864-
6865- return 0;
6866-}
6867diff --git a/meson-cc-tests/solaris-atomic-operations.c b/meson-cc-tests/solaris-atomic-operations.c
6868deleted file mode 100644
6869index f9b7542d..00000000
6870--- a/meson-cc-tests/solaris-atomic-operations.c
6871+++ /dev/null
6872@@ -1,24 +0,0 @@
6873-#include <atomic.h>
6874-/* This requires Solaris Studio 12.2 or newer: */
6875-#include <mbarrier.h>
6876-void
6877-memory_barrier (void)
6878-{
6879- __machine_rw_barrier();
6880-}
6881-int
6882-atomic_add (volatile unsigned *i)
6883-{
6884- return atomic_add_int_nv (i, 1);
6885-}
6886-void *
6887-atomic_ptr_cmpxchg (volatile void **target, void *cmp, void *newval)
6888-{
6889- return atomic_cas_ptr (target, cmp, newval);
6890-}
6891-
6892-int
6893-main (void)
6894-{
6895- return 0;
6896-}
6897diff --git a/meson-cc-tests/stdatomic-primitives-test.c b/meson-cc-tests/stdatomic-primitives-test.c
6898deleted file mode 100644
6899index 6fe6cb70..00000000
6900--- a/meson-cc-tests/stdatomic-primitives-test.c
6901+++ /dev/null
6902@@ -1,28 +0,0 @@
6903-#include <stdatomic.h>
6904-
6905-void
6906-memory_barrier (void)
6907-{
6908- atomic_thread_fence (memory_order_acq_rel);
6909-}
6910-int
6911-atomic_add (atomic_int *i)
6912-{
6913- return atomic_fetch_add_explicit (i, 1, memory_order_relaxed);
6914-}
6915-int
6916-mutex_trylock (atomic_flag *m)
6917-{
6918- return atomic_flag_test_and_set_explicit (m, memory_order_acquire);
6919-}
6920-void
6921-mutex_unlock (atomic_flag *m)
6922-{
6923- atomic_flag_clear_explicit (m, memory_order_release);
6924-}
6925-
6926-int
6927-main (void)
6928-{
6929- return 0;
6930-}
6931diff --git a/meson-config.h.in b/meson-config.h.in
6932deleted file mode 100644
6933index 68764176..00000000
6934--- a/meson-config.h.in
6935+++ /dev/null
6936@@ -1,4 +0,0 @@
6937-/* Copyright (C) 2025 fontconfig Authors */
6938-/* SPDX-License-Identifier: HPND */
6939-#include "meson-config.h"
6940-#include "config-fixups.h"
6941diff --git a/meson.build b/meson.build
6942deleted file mode 100644
6943index dd3f4441..00000000
6944--- a/meson.build
6945+++ /dev/null
6946@@ -1,665 +0,0 @@
6947-project('fontconfig', 'c',
6948- version: '2.18.1',
6949- meson_version : '>= 1.11.0',
6950- default_options: [
6951- 'c_std=c11,c99',
6952- 'buildtype=debugoptimized',
6953- 'rust_std=2021',
6954- ]
6955-)
6956-
6957-
6958-fs = import('fs')
6959-
6960-fc_version = meson.project_version()
6961-version_arr = fc_version.split('.')
6962-fc_version_major = version_arr[0].to_int()
6963-fc_version_minor = version_arr[1].to_int()
6964-fc_version_micro = version_arr[2].to_int()
6965-
6966-# Try and maintain compatibility with the previous libtool versioning
6967-# (this is a bit of a hack, but it should work fine for our case where
6968-# API is added, in which case LT_AGE and LIBT_CURRENT are both increased)
6969-soversion = fc_version_major - 1
6970-curversion = fc_version_minor - 1
6971-libversion = '@0@.@1@.0'.format(soversion, curversion)
6972-defversion = '@0@.@1@'.format(curversion, fc_version_micro)
6973-osxversion = curversion + 1
6974-cacheversion = '11'
6975-
6976-freetype_req = '>= 21.0.15'
6977-freetype_req_cmake = '>= 2.8.1'
6978-
6979-cc = meson.get_compiler('c')
6980-math_dep = cc.find_library('m', required: false)
6981-
6982-conf = configuration_data()
6983-
6984-conf.set('FC_VERSION_MAJOR', fc_version_major)
6985-conf.set('FC_VERSION_MINOR', fc_version_minor)
6986-conf.set('FC_VERSION_MICRO', fc_version_micro)
6987-
6988-freetype_dep = dependency('freetype2', method: 'pkg-config', version: freetype_req, required: false)
6989-
6990-# Preparation for enabling a FreeType-less build, for now, default enable.
6991-conf.set('ENABLE_FREETYPE', 1)
6992-
6993-# Give another shot using CMake
6994-if not freetype_dep.found()
6995- freetype_dep = dependency('freetype', method: 'cmake', version: freetype_req_cmake,
6996- fallback: ['freetype2', 'freetype_dep'], default_options: 'werror=false')
6997-endif
6998-
6999-if freetype_dep.type_name() == 'internal'
7000- conf.set('FREETYPE_PCF_LONG_FAMILY_NAMES', false)
7001-else
7002- if cc.compiles(files('meson-cc-tests/freetype-pcf-long-family-names.c'),
7003- dependencies: freetype_dep)
7004- conf.set('FREETYPE_PCF_LONG_FAMILY_NAMES', true)
7005- else
7006- conf.set('FREETYPE_PCF_LONG_FAMILY_NAMES', false)
7007- endif
7008-endif
7009-
7010-jsonc_dep = dependency('json-c', required: false)
7011-
7012-xml_dep = dependency('', required: false)
7013-xmlbackend = get_option('xml-backend')
7014-xmltype = ''
7015-if xmlbackend == 'auto' or xmlbackend == 'expat'
7016- # Linking expat should not be so difficult... see: https://github.com/mesonbuild/meson/issues/10516
7017- xml_dep = dependency('expat', required: false)
7018- if not xml_dep.found()
7019- xml_dep = cc.find_library('expat', required : false)
7020- if not xml_dep.found() and xmlbackend == 'expat'
7021- xml_dep = dependency('expat', method: 'system', required: true, fallback: ['expat', 'expat_dep'])
7022- else
7023- xmltype = 'expat'
7024- endif
7025- endif
7026-endif
7027-if (xmlbackend == 'auto' and not xml_dep.found()) or xmlbackend == 'libxml2'
7028- xml_dep = dependency('libxml-2.0', required: true)
7029- conf.set('ENABLE_LIBXML2', 1)
7030-endif
7031-if xmltype == ''
7032- xmltype = xml_dep.name()
7033-endif
7034-
7035-fontations = get_option('fontations')
7036-if (fontations.enabled())
7037- conf.set('ENABLE_FONTATIONS', 1)
7038- add_languages(['rust'], native: false, required : true)
7039-endif
7040-
7041-pkgmod = import('pkgconfig')
7042-python3 = import('python').find_installation()
7043-pytest = find_program('pytest', required: false)
7044-
7045-check_headers = [
7046- ['dirent.h'],
7047- ['dlfcn.h'],
7048- ['fcntl.h'],
7049- ['inttypes.h'],
7050- ['stdint.h'],
7051- ['stdio.h'],
7052- ['stdlib.h'],
7053- ['strings.h'],
7054- ['string.h'],
7055- ['unistd.h'],
7056- ['sys/statvfs.h'],
7057- ['sys/vfs.h'],
7058- ['sys/statfs.h'],
7059- ['sys/stat.h'],
7060- ['sys/types.h'],
7061- ['sys/param.h'],
7062- ['sys/mount.h'],
7063- ['time.h'],
7064- ['wchar.h'],
7065- ['xlocale.h'],
7066-]
7067-
7068-check_funcs = [
7069- ['link'],
7070- ['mkstemp'],
7071- ['_mktemp_s'],
7072- ['mkdtemp'],
7073- ['getopt'],
7074- ['getopt_long'],
7075- ['getprogname'],
7076- ['getexecname'],
7077- ['rand'],
7078- ['random'],
7079- ['lrand48'],
7080- ['random_r'],
7081- ['rand_r'],
7082- ['readlink'],
7083- ['fstatvfs'],
7084- ['fstatfs'],
7085- ['lstat'],
7086- ['strerror'],
7087- ['strerror_r'],
7088- ['mmap'],
7089- ['vasprintf_l'],
7090- ['vasprintf'],
7091- ['vprintf'],
7092- ['vsnprintf'],
7093- ['_vsnprintf_l'],
7094- ['_vsnprintf_l', {'prefix': '#include <stdio.h>'}],
7095- ['vsprintf'],
7096- ['getpagesize'],
7097- ['getpid'],
7098- ['dcgettext'],
7099- ['gettext'],
7100- ['localtime_r'],
7101- ['strdup'],
7102-]
7103-
7104-check_freetype_funcs = [
7105- ['FT_Get_BDF_Property', {'dependencies': freetype_dep}],
7106- ['FT_Get_PS_Font_Info', {'dependencies': freetype_dep}],
7107- ['FT_Has_PS_Glyph_Names', {'dependencies': freetype_dep}],
7108- ['FT_Get_X11_Font_Format', {'dependencies': freetype_dep}],
7109- ['FT_Done_MM_Var', {'dependencies': freetype_dep}],
7110-]
7111-
7112-check_header_symbols = [
7113- ['posix_fadvise', 'fcntl.h'],
7114- ['mkostemp', 'stdlib.h'],
7115-]
7116-
7117-check_struct_members = [
7118- ['struct statvfs', 'f_basetype', ['sys/statvfs.h']],
7119- ['struct statvfs', 'f_fstypename', ['sys/statvfs.h']],
7120- ['struct statfs', 'f_flags', ['sys/vfs.h', 'sys/statfs.h', 'sys/param.h', 'sys/mount.h']],
7121- ['struct statfs', 'f_fstypename', ['sys/vfs.h', 'sys/statfs.h', 'sys/param.h', 'sys/mount.h']],
7122- ['struct stat', 'st_mtim', ['sys/stat.h']],
7123- ['struct dirent', 'd_type', ['sys/types.h', 'dirent.h']],
7124-]
7125-
7126-check_sizeofs = [
7127- ['void *', {'conf-name': 'SIZEOF_VOID_P'}],
7128-]
7129-
7130-check_alignofs = [
7131- ['void *', {'conf-name': 'ALIGNOF_VOID_P'}],
7132- ['double'],
7133-]
7134-
7135-add_project_arguments('-DHAVE_CONFIG_H', language: 'c')
7136-
7137-c_args = []
7138-
7139-deps = [freetype_dep, xml_dep]
7140-incbase = include_directories('.', 'fc-lang')
7141-
7142-# For compatibility to autoconf (regardless of the usage in fontconfig)
7143-conf.set_quoted('PACKAGE_NAME', meson.project_name())
7144-conf.set_quoted('PACKAGE_TARNAME', meson.project_name())
7145-conf.set_quoted('PACKAGE_VERSION', meson.project_version())
7146-conf.set_quoted('PACKAGE_STRING', '@0@ @1@'.format(meson.project_name(), meson.project_version()))
7147-conf.set_quoted('PACKAGE_BUGREPORT', 'https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new')
7148-conf.set_quoted('PACKAGE_URL', '')
7149-conf.set('WORDS_BIGENDIAN', (host_machine.endian() == 'big').to_int())
7150-
7151-if host_machine.system() == 'windows'
7152- conf.set('EXEEXT', '.exe')
7153-else
7154- conf.set('EXEEXT', '')
7155-endif
7156-
7157-if host_machine.system() == 'sunos'
7158- if not cc.has_header_symbol('string.h', 'strdup')
7159- add_project_arguments('-D__EXTENSIONS__', language: 'c')
7160- endif
7161-endif
7162-
7163-i18n = import('i18n')
7164-gettext_args = [ '--msgid-bugs-address=@0@'.format(conf.get('PACKAGE_BUGREPORT')) ]
7165-
7166-# Check for libintl.h
7167-opt_nls = get_option('nls')
7168-libintl_dep = dependency('intl', required: opt_nls, fallback: ['libintl', 'libintl_dep'])
7169-if libintl_dep.found()
7170- conf.set('ENABLE_NLS', opt_nls.allowed().to_int())
7171- deps += [libintl_dep]
7172-else
7173- opt_nls = opt_nls.require(false)
7174-endif
7175-
7176-# Check iconv support
7177-iconv = get_option('iconv')
7178-iconv_dep = dependency('', required: false)
7179-found_iconv = 0
7180-if iconv.allowed()
7181- iconv_dep = cc.find_library('iconv', required: false)
7182- if cc.has_header_symbol('iconv.h', 'libiconv_open', dependencies: libintl_dep)
7183- conf.set('LIBICONV_PLUG', 1)
7184- found_iconv = 1
7185- elif cc.has_header('iconv.h') and cc.has_function('iconv_open', dependencies: iconv_dep)
7186- found_iconv = 1
7187- else
7188- iconv.require(false)
7189- endif
7190-endif
7191-conf.set('USE_ICONV', found_iconv)
7192-deps += [iconv_dep]
7193-
7194-# We cannot try compiling against an internal dependency
7195-if freetype_dep.type_name() == 'internal'
7196- foreach func: check_freetype_funcs
7197- name = func[0]
7198- conf.set('HAVE_@0@'.format(name.to_upper()), 1)
7199- endforeach
7200-else
7201- check_funcs += check_freetype_funcs
7202-endif
7203-
7204-foreach check : check_headers
7205- name = check[0]
7206-
7207- if cc.has_header(name)
7208- conf.set('HAVE_@0@'.format(name.to_upper().underscorify()), 1)
7209- endif
7210-endforeach
7211-
7212-foreach check : check_funcs
7213- name = check[0]
7214- opts = check.length() > 1 ? check[1] : {}
7215- extra_deps = opts.get('dependencies', [])
7216- prefix = opts.get('prefix', '')
7217-
7218- if cc.has_function(name, dependencies: extra_deps, prefix: prefix)
7219- conf.set('HAVE_@0@'.format(name.to_upper()), 1)
7220- endif
7221-endforeach
7222-
7223-foreach check : check_header_symbols
7224- name = check[0]
7225- header = check[1]
7226-
7227- if cc.has_header_symbol(header, name)
7228- conf.set('HAVE_@0@'.format(name.to_upper()), 1)
7229- endif
7230-endforeach
7231-
7232-foreach check : check_struct_members
7233- struct_name = check[0]
7234- member_name = check[1]
7235- headers = check[2]
7236-
7237- prefix = ''
7238-
7239- foreach header : headers
7240- prefix += '#include <@0@>\n'.format(header)
7241- endforeach
7242-
7243- if cc.has_member(struct_name, member_name, prefix: prefix)
7244- conf.set('HAVE_@0@_@1@'.format(struct_name, member_name).to_upper().underscorify(), 1)
7245- endif
7246-endforeach
7247-
7248-foreach check : check_sizeofs
7249- type = check[0]
7250- opts = check.length() > 1 ? check[1] : {}
7251-
7252- conf_name = opts.get('conf-name', 'SIZEOF_@0@'.format(type.to_upper()))
7253-
7254- conf.set(conf_name, cc.sizeof(type))
7255-endforeach
7256-
7257-foreach check : check_alignofs
7258- type = check[0]
7259- opts = check.length() > 1 ? check[1] : {}
7260-
7261- conf_name = opts.get('conf-name', 'ALIGNOF_@0@'.format(type.to_upper()))
7262-
7263- conf.set(conf_name, cc.alignment(type))
7264-endforeach
7265-
7266-if cc.compiles(files('meson-cc-tests/flexible-array-member-test.c'))
7267- conf.set('FLEXIBLE_ARRAY_MEMBER', '/**/')
7268-else
7269- conf.set('FLEXIBLE_ARRAY_MEMBER', 1)
7270-endif
7271-
7272-if cc.compiles(files('meson-cc-tests/pthread-prio-inherit-test.c'))
7273- conf.set('HAVE_PTHREAD_PRIO_INHERIT', 1)
7274-endif
7275-
7276-if cc.links(files('meson-cc-tests/stdatomic-primitives-test.c'), name: 'stdatomic.h atomics')
7277- conf.set('HAVE_STDATOMIC_PRIMITIVES', 1)
7278-endif
7279-
7280-if cc.links(files('meson-cc-tests/intel-atomic-primitives-test.c'), name: 'Intel atomics')
7281- conf.set('HAVE_INTEL_ATOMIC_PRIMITIVES', 1)
7282-endif
7283-
7284-if cc.links(files('meson-cc-tests/solaris-atomic-operations.c'), name: 'Solaris atomic ops')
7285- conf.set('HAVE_SOLARIS_ATOMIC_OPS', 1)
7286-endif
7287-
7288-conf.set('HAVE_C99_VSNPRINTF', 1)
7289-
7290-prefix = get_option('prefix')
7291-
7292-fonts_conf = configuration_data()
7293-
7294-default_fonts_dirs = get_option('default-fonts-dirs')
7295-if default_fonts_dirs == ['yes']
7296- if host_machine.system() == 'windows'
7297- fc_fonts_paths = ['WINDOWSFONTDIR', 'WINDOWSUSERFONTDIR']
7298- elif host_machine.system() == 'darwin'
7299- fc_fonts_paths = ['/System/Library/Fonts', '/Library/Fonts', '~/Library/Fonts', '/System/Library/Assets', '/System/Library/AssetsV2']
7300- elif host_machine.system() == 'android'
7301- fc_fonts_paths = ['/system/fonts/', '/product/fonts/']
7302- else
7303- fc_fonts_paths = ['/usr/share/fonts', '/usr/local/share/fonts']
7304- endif
7305-else
7306- fc_fonts_paths = default_fonts_dirs
7307-endif
7308-xml_path = ''
7309-escaped_xml_path = ''
7310-foreach p : fc_fonts_paths
7311- s = '\t<dir>' + p + '</dir>\n'
7312- xml_path += s
7313- # No substitution method for string
7314- s = '\\t<dir>' + p + '</dir>\\n'
7315- escaped_xml_path += s
7316-endforeach
7317-conf.set_quoted('FC_DEFAULT_FONTS', escaped_xml_path)
7318-fonts_conf.set('FC_DEFAULT_FONTS', xml_path)
7319-
7320-# Add more fonts if available. By default, add only the directories
7321-# with outline fonts; those with bitmaps can be added as desired in
7322-# local.conf or ~/.fonts.conf
7323-fc_add_fonts = []
7324-additional_fonts_dirs = get_option('additional-fonts-dirs')
7325-if additional_fonts_dirs == ['yes']
7326- fs = import('fs')
7327- foreach dir : ['/usr/X11R6/lib/X11', '/usr/X11/lib/X11', '/usr/lib/X11']
7328- if fs.is_dir(dir / 'fonts')
7329- fc_add_fonts += [dir / 'fonts']
7330- endif
7331- endforeach
7332-elif additional_fonts_dirs == ['no']
7333- # nothing to do
7334-else
7335- fc_add_fonts = additional_fonts_dirs
7336-endif
7337-xml_path = ''
7338-escaped_xml_path = ''
7339-foreach p : fc_add_fonts
7340- s = '<dir>' + p + '</dir>\n\t'
7341- xml_path += s
7342- # No substitution method for string
7343- s = '<dir>' + p + '</dir>\\n\\t'
7344- escaped_xml_path += s
7345-endforeach
7346-conf.set_quoted('FC_FONTPATH', escaped_xml_path)
7347-fonts_conf.set('FC_FONTPATH', xml_path)
7348-
7349-fc_cachedir = get_option('cache-dir')
7350-if fc_cachedir in ['yes', 'no', 'default']
7351- if host_machine.system() == 'windows'
7352- fc_cachedir = 'LOCAL_APPDATA_FONTCONFIG_CACHE'
7353- else
7354- fc_cachedir = join_paths(prefix, get_option('localstatedir'), 'cache', meson.project_name())
7355- endif
7356-endif
7357-
7358-if host_machine.system() != 'windows'
7359- thread_dep = dependency('threads')
7360- if thread_dep.found() and cc.has_header('pthread.h')
7361- conf.set('HAVE_PTHREAD', 1)
7362- deps += [thread_dep]
7363- endif
7364-endif
7365-
7366-fc_templatedir = get_option('template-dir')
7367-if fc_templatedir in ['default', 'yes', 'no']
7368- fc_templatedir = prefix / get_option('datadir') / 'fontconfig/conf.avail'
7369-endif
7370-
7371-fc_baseconfigdir = get_option('baseconfig-dir')
7372-if fc_baseconfigdir in ['default', 'yes', 'no']
7373- fc_baseconfigdir = prefix / get_option('sysconfdir') / 'fonts'
7374-endif
7375-
7376-fc_configdir = get_option('config-dir')
7377-if fc_configdir in ['default', 'yes', 'no']
7378- fc_configdir = fc_baseconfigdir / 'conf.d'
7379-endif
7380-
7381-fc_xmldir = get_option('xml-dir')
7382-if fc_xmldir in ['default', 'yes', 'no']
7383- fc_xmldir = prefix / get_option('datadir') / 'xml/fontconfig'
7384-endif
7385-
7386-conf.set_quoted('CONFIGDIR', fc_configdir)
7387-conf.set_quoted('FC_CACHEDIR', fc_cachedir)
7388-conf.set_quoted('FC_TEMPLATEDIR', fc_templatedir)
7389-conf.set_quoted('FONTCONFIG_PATH', fc_baseconfigdir)
7390-
7391-fonts_conf.set('FC_CACHEDIR', fc_cachedir)
7392-fonts_conf.set('CONFIGDIR', fc_configdir)
7393-# strip off fc_baseconfigdir prefix if that is the prefix
7394-if fc_configdir.startswith(fc_baseconfigdir + '/')
7395- fonts_conf.set('CONFIGDIR', fc_configdir.split(fc_baseconfigdir + '/')[1])
7396-endif
7397-
7398-gperf = find_program('gperf', required: false)
7399-gperf_len_type = ''
7400-
7401-if gperf.found() and get_option('wrap_mode') != 'forcefallback'
7402- gperf_test_format = '''
7403- #include <string.h>
7404- const char * in_word_set(const char *, @0@);
7405- @1@
7406- '''
7407- gperf_snippet = run_command(gperf, '-L', 'ANSI-C', files('meson-cc-tests/gperf.txt'),
7408- check: true).stdout()
7409-
7410- foreach type : ['size_t', 'unsigned']
7411- if cc.compiles(gperf_test_format.format(type, gperf_snippet))
7412- gperf_len_type = type
7413- break
7414- endif
7415- endforeach
7416-
7417- if gperf_len_type == ''
7418- error('unable to determine gperf len type')
7419- endif
7420-else
7421- # Fallback to subproject
7422- gperf = find_program('gperf')
7423- # assume if we are compiling from the wrap, the size is just size_t
7424- gperf_len_type = 'size_t'
7425-endif
7426-
7427-message('gperf len type is @0@'.format(gperf_len_type))
7428-
7429-conf.set('FC_GPERF_SIZE_T', gperf_len_type,
7430- description : 'The type of gperf "len" parameter')
7431-
7432-conf.set('_GNU_SOURCE', true)
7433-
7434-conf.set_quoted('GETTEXT_PACKAGE', meson.project_name())
7435-
7436-incsrc = include_directories('src')
7437-
7438-# We assume stdint.h is available
7439-foreach t : ['uint64_t', 'int32_t', 'uintptr_t', 'intptr_t']
7440- if not cc.has_type(t, prefix: '#include <stdint.h>')
7441- error('Sanity check failed: type @0@ not provided via stdint.h'.format(t))
7442- endif
7443-endforeach
7444-
7445-fcstdint_h = fs.copyfile('src/fcstdint.h.in', 'fcstdint.h')
7446-
7447-makealias = files('src/makealias.py')[0]
7448-fcobjs_h = files('src/fcobjs.h')[0]
7449-
7450-
7451-subdir('fontconfig')
7452-
7453-
7454-alias_input_headers = [fontconfig_h, 'src/fcdeprecate.h', 'fontconfig/fcprivate.h']
7455-if get_option('fontations').enabled()
7456- alias_input_headers += ['fontconfig/fcfontations.h']
7457-endif
7458-
7459-alias_headers = custom_target('alias_headers',
7460- output: ['fcalias.h', 'fcaliastail.h'],
7461- input: alias_input_headers,
7462- command: [python3, makealias, join_paths(meson.current_source_dir(), 'src'), '@OUTPUT@', '@INPUT@'],
7463- )
7464-
7465-ft_alias_headers = custom_target('ft_alias_headers',
7466- output: ['fcftalias.h', 'fcftaliastail.h'],
7467- input: ['fontconfig/fcfreetype.h'],
7468- command: [python3, makealias, join_paths(meson.current_source_dir(), 'src'), '@OUTPUT@', '@INPUT@']
7469- )
7470-
7471-tools_man_pages = []
7472-
7473-
7474-# Do not reorder
7475-subdir('fc-case')
7476-subdir('fc-lang')
7477-subdir('fc-const')
7478-subdir('src')
7479-
7480-if get_option('fontations').enabled()
7481- subdir('fc-fontations')
7482- lib_fontconfig_kwargs = lib_fontconfig_kwargs + {
7483- 'link_with' : lib_fontconfig_kwargs['link_with'] + [fc_fontations, fontations_query_lib]}
7484-endif
7485-
7486-libfontconfig = library('fontconfig',
7487- lib_fontconfig_sources,
7488- c_shared_args: win_export_args,
7489- soversion: soversion,
7490- version: libversion,
7491- darwin_versions: osxversion,
7492- install: true,
7493- kwargs: lib_fontconfig_kwargs)
7494-
7495-if get_option('default_library') == 'both'
7496- libfontconfig_internal = libfontconfig.get_static_lib()
7497-elif get_option('default_library') == 'static'
7498- libfontconfig_internal = libfontconfig
7499-else
7500- libfontconfig_internal = static_library('fontconfig',
7501- lib_fontconfig_sources,
7502- kwargs: lib_fontconfig_kwargs)
7503-endif
7504-
7505-fontconfig_dep = declare_dependency(link_with: libfontconfig,
7506- include_directories: incbase,
7507- dependencies: deps,
7508-)
7509-
7510-pkgmod.generate(libfontconfig,
7511- description: 'Font configuration and customization library',
7512- filebase: 'fontconfig',
7513- name: 'Fontconfig',
7514- requires_private: ['freetype2 ' + freetype_req],
7515- version: fc_version,
7516- variables: [
7517- 'sysconfdir=@0@'.format(join_paths(prefix, get_option('sysconfdir'))),
7518- 'localstatedir=@0@'.format(join_paths(prefix, get_option('localstatedir'))),
7519- 'confdir=@0@'.format(fc_baseconfigdir),
7520- 'cachedir=@0@'.format(fc_cachedir),
7521- ])
7522-
7523-if not get_option('tools').disabled()
7524- subdir('fc-cache')
7525- subdir('fc-cat')
7526- subdir('fc-conflist')
7527- subdir('fc-genconf')
7528- subdir('fc-list')
7529- subdir('fc-match')
7530- subdir('fc-pattern')
7531- subdir('fc-query')
7532- subdir('fc-scan')
7533- subdir('fc-validate')
7534-endif
7535-
7536-if not get_option('tests').disabled()
7537- subdir('test')
7538-endif
7539-
7540-subdir('conf.d')
7541-subdir('its')
7542-
7543-# xgettext is optional (on Windows for instance)
7544-if find_program('xgettext', required : opt_nls).found()
7545- subdir('po')
7546- subdir('po-conf')
7547-endif
7548-
7549-if not get_option('doc').disabled()
7550- subdir('doc')
7551-endif
7552-
7553-configure_file(output: 'meson-config.h', configuration: conf)
7554-configure_file(input: 'meson-config.h.in', output: 'config.h', copy: true)
7555-
7556-configure_file(output: 'fonts.conf',
7557- input: 'fonts.conf.in',
7558- configuration: fonts_conf,
7559- install_dir: fc_baseconfigdir,
7560- install: true,
7561- install_tag: 'runtime')
7562-
7563-install_data('fonts.dtd',
7564- install_dir: join_paths(get_option('prefix'), get_option('datadir'), 'xml/fontconfig'),
7565- install_tag: 'runtime')
7566-
7567-fc_headers = [
7568- fontconfig_h,
7569- 'fontconfig/fcfreetype.h',
7570- 'fontconfig/fcprivate.h',
7571-]
7572-
7573-install_headers(fc_headers, subdir: meson.project_name())
7574-
7575-if not meson.is_subproject()
7576- meson.add_dist_script('build-aux/meson-dist-docs.py')
7577- meson.add_dist_script('build-aux/meson-dist-autotools.py')
7578-endif
7579-
7580-if host_machine.system() != 'windows'
7581- install_emptydir(fc_cachedir,
7582- install_tag: 'runtime')
7583-endif
7584-
7585-# Summary
7586-doc_targets = get_variable('doc_targets', [])
7587-
7588-summary({
7589- 'Documentation': (doc_targets.length() > 0 ? doc_targets : false),
7590- 'NLS': not opt_nls.disabled(),
7591- 'Tests': not get_option('tests').disabled(),
7592- 'Pytest': pytest.found(),
7593- 'Tools': not get_option('tools').disabled(),
7594- 'iconv': found_iconv == 1,
7595- 'XML backend': xmltype,
7596- 'Fontations support' : fontations
7597-}, section: 'General', bool_yn: true, list_sep: ', ')
7598-summary({
7599- 'Hinting': preferred_hinting,
7600- 'Sub Pixel Rendering': preferred_sub_pixel_rendering,
7601- 'Bitmap': preferred_bitmap,
7602- 'Font directories': fc_fonts_paths,
7603- 'Additional font directories': fc_add_fonts,
7604-}, section: 'Defaults', bool_yn: true, list_sep: ', ')
7605-summary({
7606- 'Cache directory': fc_cachedir,
7607- 'Template directory': fc_templatedir,
7608- 'Base config directory': fc_baseconfigdir,
7609- 'Config directory': fc_configdir,
7610- 'XML directory': fc_xmldir,
7611-}, section: 'Paths', bool_yn: true, list_sep: ', ')
7612diff --git a/meson.options b/meson.options
7613deleted file mode 100644
7614index e2936426..00000000
7615--- a/meson.options
7616+++ /dev/null
7617@@ -1,53 +0,0 @@
7618-# Common feature options
7619-option('doc', type : 'feature', value : 'auto', yield: true,
7620- description: 'Build documentation')
7621-option('doc-txt', type: 'feature', value: 'auto')
7622-option('doc-man', type: 'feature', value: 'auto')
7623-option('doc-pdf', type: 'feature', value: 'auto')
7624-option('doc-html', type: 'feature', value: 'auto')
7625-option('nls', type : 'feature', value : 'auto', yield: true,
7626- description : 'Enable native language support (translations)')
7627-option('tests', type : 'feature', value : 'auto', yield : true,
7628- description: 'Enable unit tests')
7629-option('tests-bwrap', type: 'feature', value: 'auto')
7630-option('tools', type : 'feature', value : 'auto', yield : true,
7631- description: 'Build command-line tools (fc-list, fc-query, etc.)')
7632-option('cache-build', type : 'feature', value : 'enabled',
7633- description: 'Run fc-cache on install')
7634-option('iconv', type: 'feature', value: 'disabled')
7635-option('xml-backend', type: 'combo', choices: ['auto', 'expat', 'libxml2'], value: 'auto',
7636- description: 'Select xml backend to read config')
7637-option('fontations', type: 'feature', value: 'disabled',
7638- description: 'Use Fontations (https://github.com/googlefonts/fontations) for indexing.')
7639-
7640-# Defaults
7641-option('default-hinting', type: 'combo', choices: ['noinstall', 'none', 'slight', 'medium', 'full'], value: 'slight',
7642- description: 'Preferred hinting configuration')
7643-
7644-option('default-sub-pixel-rendering', type: 'combo', choices: ['noinstall', 'none', 'bgr', 'rgb', 'vbgr', 'vrgb'], value: 'none',
7645- description: 'Preferred sub-pixel rendering configuration')
7646-
7647-option('bitmap-conf', type: 'combo', choices: ['noinstall', 'yes', 'no', 'no-except-emoji'], value: 'no-except-emoji',
7648- description: 'What bitmap font related config file enabled by default: See 70-*bitmaps*.conf')
7649-
7650-option('default-fonts-dirs', type: 'array', value: ['yes'],
7651- description: 'Use fonts from DIR1,DIR2,... when config is busted (set to "yes" for generic system-specific defaults)')
7652-
7653-option('additional-fonts-dirs', type: 'array', value: ['yes'],
7654- description: 'Find additional fonts in DIR1,DIR2,... (set to "yes" for generic system-specific defaults)')
7655-
7656-# Configuration paths
7657-option('cache-dir', type: 'string', value: 'default',
7658- description: 'Use DIR to store cache files (default=LOCALSTATEDIR/cache/fontconfig)')
7659-
7660-option('template-dir', type: 'string', value: 'default',
7661- description: 'Use DIR to store the configuration template files (default=DATADIR/fontconfig/conf.avail)')
7662-
7663-option('baseconfig-dir', type: 'string', value: 'default',
7664- description: 'Use DIR to store the base configuration files (default=SYSCONFDIR/fonts)')
7665-
7666-option('config-dir', type: 'string', value: 'default',
7667- description: 'Use DIR to store active configuration files (default=BASECONFIGDIR/conf.d)')
7668-
7669-option('xml-dir', type: 'string', value: 'default',
7670- description: 'Use DIR to store XML schema files (default=DATADIR/xml/fontconfig)')
7671diff --git a/new-version.sh b/new-version.sh
7672deleted file mode 100644
7673index 19a5dfac..00000000
7674--- a/new-version.sh
7675+++ /dev/null
7676@@ -1,142 +0,0 @@
7677-#!/bin/sh
7678-# fontconfig/new-version.sh
7679-#
7680-# Copyright © 2000 Keith Packard
7681-#
7682-# Permission to use, copy, modify, distribute, and sell this software and its
7683-# documentation for any purpose is hereby granted without fee, provided that
7684-# the above copyright notice appear in all copies and that both that
7685-# copyright notice and this permission notice appear in supporting
7686-# documentation, and that the name of the author(s) not be used in
7687-# advertising or publicity pertaining to distribution of the software without
7688-# specific, written prior permission. The authors make no
7689-# representations about the suitability of this software for any purpose. It
7690-# is provided "as is" without express or implied warranty.
7691-#
7692-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
7693-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
7694-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
7695-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
7696-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
7697-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
7698-# PERFORMANCE OF THIS SOFTWARE.
7699-
7700-if [ "x`git status -s -uno`" != "x" ]; then
7701- echo 'Uncommited changes in repository' 1>&2
7702- exit 1
7703-fi
7704-
7705-version="$1"
7706-case "$version" in
7707-2.[0-9.]*)
7708- ;;
7709-*)
7710- echo 'Invalid version number:' "$version" 1>&2
7711- exit 1
7712- ;;
7713-esac
7714-
7715-eval `echo $version |
7716- awk -F. '{ printf ("major=%d\nminor=%d\nrevision=%d\n",
7717- $1, $2, $3); }'`
7718-
7719-# Update the version numbers
7720-
7721-sed -i configure.ac -e "/^AC_INIT(/s/2\.[0-9.]*/$version/"
7722-
7723-sed -i fontconfig/fontconfig.h.in \
7724- -e "/^#define FC_MAJOR/s/[0-9][0-9]*/$major/" \
7725- -e "/^#define FC_MINOR/s/[0-9][0-9]*/$minor/" \
7726- -e "/^#define FC_REVISION/s/[0-9][0-9]*/$revision/"
7727-
7728-sed -i meson.build -e "/version: /s/2\.[0-9.]*/$version/"
7729-
7730-#
7731-# Compute pretty form of new version number
7732-#
7733-version_note=`echo $version | awk -F. '{
7734- if ($3 > 90)
7735- printf ("%d.%d.%d (%d.%d RC%d)\n",
7736- $1, $2, $3, $1, $2 + 1, $3 - 90);
7737- else if ($3 == 0)
7738- printf ("%d.%d\n", $1, $2);
7739- else
7740- printf ("%d.%d.%d\n", $1, $2, $3); }'`
7741-
7742-#
7743-# Find previous version in NEWS
7744-#
7745-last_note=`grep '^2\.[0-9.]*' NEWS |
7746- head -1 |
7747- sed 's/ (2\.[0-9]* RC[0-9]*)//'`
7748-case $last_note in
7749-2.*.*)
7750- last=$last_note
7751- ;;
7752-2.*)
7753- last="$last_note.0"
7754- ;;
7755-*)
7756- echo 'cannot find previous changelog' 1>&2
7757- exit 1
7758-esac
7759-
7760-#
7761-# Format the current date for the NEWS header
7762-#
7763-date=`date '+%Y-%m-%d'`
7764-
7765-#
7766-# Update the readme file
7767-#
7768-if [ $version != $last ]; then
7769- #
7770- # header
7771- #
7772- (sed '/^2\.[0-9.]*/,$d' NEWS |
7773- sed -r -e "s/Version.*/Version $version_note/" \
7774- -e "s/[0-9]{4}\-[0-9]{2}\-[0-9]{2}$/$date/" | awk '
7775- /^[ \t]/ {
7776- gsub ("^[ \t]*", "");
7777- gsub ("[ \t]*$", "");
7778- space=(70 - length) / 2;
7779- for (i = 0; i < space; i++)
7780- printf (" ");
7781- print
7782- next
7783- }
7784- {
7785- print
7786- }'
7787-
7788- #
7789- # changelog
7790- #
7791-
7792- echo $version_note
7793- echo
7794- git log --no-merges --pretty=short $last.. | git shortlog | cat
7795-
7796- #
7797- # previous changelogs
7798- #
7799-
7800- sed -n '/^2\.[0-9.]*/,$p' NEWS) > NEWS.tmp ||
7801- (echo "NEWS update failed"; exit 1)
7802-
7803- mv NEWS.tmp NEWS
7804-fi
7805-
7806-$test git commit -m"Bump version to $version" \
7807- configure.ac \
7808- fontconfig/fontconfig.h.in \
7809- meson.build \
7810- NEWS
7811-
7812-# tag the tree
7813-$test git tag -s -m "Version $version" $version
7814-
7815-# Make distributed change log
7816-
7817-git log --stat $last.. > ChangeLog-$version
7818-
7819diff --git a/po-conf/ChangeLog b/po-conf/ChangeLog
7820deleted file mode 100644
7821index 9b7898ab..00000000
7822--- a/po-conf/ChangeLog
7823+++ /dev/null
7824@@ -1,12 +0,0 @@
7825-2015-01-28 gettextize <bug-gnu-gettext@gnu.org>
7826-
7827- * Makefile.in.in: New file, from gettext-0.19.4.
7828- * Rules-quot: New file, from gettext-0.19.4.
7829- * boldquot.sed: New file, from gettext-0.19.4.
7830- * en@boldquot.header: New file, from gettext-0.19.4.
7831- * en@quot.header: New file, from gettext-0.19.4.
7832- * insert-header.sin: New file, from gettext-0.19.4.
7833- * quot.sed: New file, from gettext-0.19.4.
7834- * remove-potcdate.sin: New file, from gettext-0.19.4.
7835- * POTFILES.in: New file.
7836-
7837diff --git a/po-conf/LINGUAS b/po-conf/LINGUAS
7838deleted file mode 100644
7839index 53b48dde..00000000
7840--- a/po-conf/LINGUAS
7841+++ /dev/null
7842@@ -1,3 +0,0 @@
7843-# Please keep this list sorted alphabetically.
7844-ka
7845-zh_CN
7846diff --git a/po-conf/Makevars b/po-conf/Makevars
7847deleted file mode 100644
7848index 8d57a456..00000000
7849--- a/po-conf/Makevars
7850+++ /dev/null
7851@@ -1,80 +0,0 @@
7852-# Makefile variables for PO directory in any package using GNU gettext.
7853-
7854-# Usually the message domain is the same as the package name.
7855-DOMAIN = $(PACKAGE)-conf
7856-
7857-# These two variables depend on the location of this directory.
7858-subdir = po-conf
7859-top_builddir = ..
7860-
7861-# These options get passed to xgettext.
7862-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
7863-
7864-# This is the copyright holder that gets inserted into the header of the
7865-# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
7866-# package. (Note that the msgstr strings, extracted from the package's
7867-# sources, belong to the copyright holder of the package.) Translators are
7868-# expected to transfer the copyright for their translations to this person
7869-# or entity, or to disclaim their copyright. The empty string stands for
7870-# the public domain; in this case the translators are expected to disclaim
7871-# their copyright.
7872-COPYRIGHT_HOLDER = Fontconfig Author(s)
7873-
7874-# This tells whether or not to prepend "GNU " prefix to the package
7875-# name that gets inserted into the header of the $(DOMAIN).pot file.
7876-# Possible values are "yes", "no", or empty. If it is empty, try to
7877-# detect it automatically by scanning the files in $(top_srcdir) for
7878-# "GNU packagename" string.
7879-PACKAGE_GNU = no
7880-
7881-# This is the email address or URL to which the translators shall report
7882-# bugs in the untranslated strings:
7883-# - Strings which are not entire sentences, see the maintainer guidelines
7884-# in the GNU gettext documentation, section 'Preparing Strings'.
7885-# - Strings which use unclear terms or require additional context to be
7886-# understood.
7887-# - Strings which make invalid assumptions about notation of date, time or
7888-# money.
7889-# - Pluralisation problems.
7890-# - Incorrect English spelling.
7891-# - Incorrect formatting.
7892-# It can be your email address, or a mailing list address where translators
7893-# can write to without being subscribed, or the URL of a web page through
7894-# which the translators can contact you.
7895-MSGID_BUGS_ADDRESS = https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
7896-
7897-# This is the list of locale categories, beyond LC_MESSAGES, for which the
7898-# message catalogs shall be used. It is usually empty.
7899-EXTRA_LOCALE_CATEGORIES =
7900-
7901-# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
7902-# context. Possible values are "yes" and "no". Set this to yes if the
7903-# package uses functions taking also a message context, like pgettext(), or
7904-# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
7905-USE_MSGCTXT = no
7906-
7907-# These options get passed to msgmerge.
7908-# Useful options are in particular:
7909-# --previous to keep previous msgids of translated messages,
7910-# --quiet to reduce the verbosity.
7911-MSGMERGE_OPTIONS =
7912-
7913-# These options get passed to msginit.
7914-# If you want to disable line wrapping when writing PO files, add
7915-# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and
7916-# MSGINIT_OPTIONS.
7917-MSGINIT_OPTIONS =
7918-
7919-# This tells whether or not to regenerate a PO file when $(DOMAIN).pot
7920-# has changed. Possible values are "yes" and "no". Set this to no if
7921-# the POT file is checked in the repository and the version control
7922-# program ignores timestamps.
7923-PO_DEPENDS_ON_POT = yes
7924-
7925-# This tells whether or not to forcibly update $(DOMAIN).pot and
7926-# regenerate PO files on "make dist". Possible values are "yes" and
7927-# "no". Set this to no if the POT file and PO files are maintained
7928-# externally.
7929-DIST_DEPENDS_ON_UPDATE_PO = yes
7930-
7931-$(DOMAIN).pot-update: export GETTEXTDATADIR = $(top_srcdir)
7932diff --git a/po-conf/POTFILES.in b/po-conf/POTFILES.in
7933deleted file mode 100644
7934index ad7de5c4..00000000
7935--- a/po-conf/POTFILES.in
7936+++ /dev/null
7937@@ -1,38 +0,0 @@
7938-conf.d/09-autohint-if-no-hinting.conf
7939-conf.d/10-autohint.conf
7940-conf.d/10-hinting-full.conf
7941-conf.d/10-hinting-medium.conf
7942-conf.d/10-hinting-none.conf
7943-conf.d/10-hinting-slight.conf
7944-conf.d/10-no-antialias.conf
7945-conf.d/10-scale-bitmap-fonts.conf
7946-conf.d/10-sub-pixel-bgr.conf
7947-conf.d/10-sub-pixel-none.conf
7948-conf.d/10-sub-pixel-rgb.conf
7949-conf.d/10-sub-pixel-vbgr.conf
7950-conf.d/10-sub-pixel-vrgb.conf
7951-conf.d/10-unhinted.conf
7952-conf.d/10-yes-antialias.conf
7953-conf.d/11-lcdfilter-default.conf
7954-conf.d/11-lcdfilter-legacy.conf
7955-conf.d/11-lcdfilter-light.conf
7956-conf.d/20-unhint-small-vera.conf
7957-conf.d/25-unhint-nonlatin.conf
7958-conf.d/30-metric-aliases.conf
7959-conf.d/40-nonlatin.conf
7960-conf.d/45-generic.conf
7961-conf.d/45-latin.conf
7962-conf.d/48-spacing.conf
7963-conf.d/49-sansserif.conf
7964-conf.d/50-user.conf
7965-conf.d/51-local.conf
7966-conf.d/60-generic.conf
7967-conf.d/60-latin.conf
7968-conf.d/65-fonts-persian.conf
7969-conf.d/65-khmer.conf
7970-conf.d/65-nonlatin.conf
7971-conf.d/69-unifont.conf
7972-conf.d/70-no-bitmaps.conf
7973-conf.d/70-yes-bitmaps.conf
7974-conf.d/80-delicious.conf
7975-conf.d/90-synthetic.conf
7976diff --git a/po-conf/ka.po b/po-conf/ka.po
7977deleted file mode 100644
7978index 66d6a05b..00000000
7979--- a/po-conf/ka.po
7980+++ /dev/null
7981@@ -1,139 +0,0 @@
7982-# fontconfig-conf translation to Georgian.
7983-# Copyright (C) 2022 Fontconfig Author(s)
7984-# This file is distributed under the same license as the fontconfig package.
7985-# Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2022.
7986-#
7987-msgid ""
7988-msgstr ""
7989-"Project-Id-Version: fontconfig 2.14.0\n"
7990-"Report-Msgid-Bugs-To: https://gitlab.freedesktop.org/fontconfig/fontconfig/"
7991-"issues/new\n"
7992-"POT-Creation-Date: 2022-10-01 10:16+0200\n"
7993-"PO-Revision-Date: 2022-10-01 11:01+0200\n"
7994-"Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>\n"
7995-"Language-Team: Georgian <(nothing)>\n"
7996-"Language: ka\n"
7997-"MIME-Version: 1.0\n"
7998-"Content-Type: text/plain; charset=UTF-8\n"
7999-"Content-Transfer-Encoding: 8bit\n"
8000-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
8001-"X-Generator: Poedit 3.1.1\n"
8002-
8003-#: conf.d/10-autohint.conf:4
8004-msgid "Enable autohinter"
8005-msgstr "autohinter-ის ჩართვა"
8006-
8007-#: conf.d/10-hinting-full.conf:4
8008-msgid "Set hintfull to hintstyle"
8009-msgstr "hintstyle-ის hintfull -ზე დაყენება"
8010-
8011-#: conf.d/10-hinting-medium.conf:4
8012-msgid "Set hintmedium to hintstyle"
8013-msgstr "hintstyle-ის hintmedium-ზე დაყენება"
8014-
8015-#: conf.d/10-hinting-none.conf:4
8016-msgid "Set hintnone to hintstyle"
8017-msgstr "hintstyle-ის hintnone-ზე დაყენება"
8018-
8019-#: conf.d/10-hinting-slight.conf:4
8020-msgid "Set hintslight to hintstyle"
8021-msgstr "hintstyle-ის hintslight-ზე დაყენება"
8022-
8023-#: conf.d/10-no-sub-pixel.conf:4
8024-msgid "Disable sub-pixel rendering"
8025-msgstr "ქვეპიქსელის რენდერის გამორთვა"
8026-
8027-#: conf.d/10-scale-bitmap-fonts.conf:4
8028-msgid "Bitmap scaling"
8029-msgstr "ბიტური რუკის მასშტაბირება"
8030-
8031-#: conf.d/10-sub-pixel-bgr.conf:4
8032-msgid "Enable sub-pixel rendering with the BGR stripes layout"
8033-msgstr "ქვეპიქსელების რენდერის ჩართვა BGR ზოლების განლაგებით"
8034-
8035-#: conf.d/10-sub-pixel-rgb.conf:4
8036-msgid "Enable sub-pixel rendering with the RGB stripes layout"
8037-msgstr "ქვეპიქსელების რენდერის ჩართვა RGB ზოლების განლაგებით"
8038-
8039-#: conf.d/10-sub-pixel-vbgr.conf:4
8040-msgid "Enable sub-pixel rendering with the vertical BGR stripes layout"
8041-msgstr "ქვეპიქსელების რენდერის ჩართვა ვერტიკალური BGR ზოლების განლაგებით"
8042-
8043-#: conf.d/10-sub-pixel-vrgb.conf:4
8044-msgid "Enable sub-pixel rendering with the vertical RGB stripes layout"
8045-msgstr "ქვეპიქსელების რენდერის ჩართვა ვერტიკალური RGB ზოლების განლაგებით"
8046-
8047-#: conf.d/10-unhinted.conf:4
8048-msgid "Disable hinting"
8049-msgstr "მომრგვალების გამორთვა"
8050-
8051-#: conf.d/11-lcdfilter-default.conf:4
8052-msgid "Use lcddefault as default for LCD filter"
8053-msgstr "ნაგულისხმებ LCD ფილტრად lcddefault -ის გამოყენება"
8054-
8055-#: conf.d/11-lcdfilter-legacy.conf:4
8056-msgid "Use lcdlegacy as default for LCD filter"
8057-msgstr "ნაგულისხმებ LCD ფილტრად lcdlegacy -ის გამოყენება"
8058-
8059-#: conf.d/11-lcdfilter-light.conf:4
8060-msgid "Use lcdlight as default for LCD filter"
8061-msgstr "ნაგულისხმებ LCD ფილტრად lcdlight -ის გამოყენება"
8062-
8063-#: conf.d/20-unhint-small-vera.conf:4
8064-msgid ""
8065-"Disable hinting for Bitstream Vera fonts when the size is less than 8ppem"
8066-msgstr ""
8067-"მომრგვალების გამორთვა Bitsream Vera-ის ფონტებისთვის, როცა ზომა 8ppem-ზე "
8068-"მცირეა"
8069-
8070-#: conf.d/25-unhint-nonlatin.conf:4
8071-msgid "Disable hinting for CJK fonts"
8072-msgstr "CJK ფონტების მომრგვალების გამორთვა"
8073-
8074-#: conf.d/30-metric-aliases.conf:4
8075-msgid "Set substitutions for similar/metric-compatible families"
8076-msgstr "მსგავსი/მეტრულთან-თავსებადი ოჯახების ჩანაცვლებების დაყენება"
8077-
8078-#: conf.d/40-nonlatin.conf:4
8079-msgid "Set substitutions for non-Latin fonts"
8080-msgstr "არა-Latn ფონტების ჩანაცვლებების დაყენება"
8081-
8082-#: conf.d/45-generic.conf:4
8083-msgid "Set substitutions for emoji/math fonts"
8084-msgstr "ემოჯი/მათემატიკური ფონტების ჩანაცვლებების დაყენება"
8085-
8086-#: conf.d/45-latin.conf:4
8087-msgid "Set substitutions for Latin fonts"
8088-msgstr "Latin ფონტების ჩამნაცვლებლების დაყენება"
8089-
8090-#: conf.d/49-sansserif.conf:4
8091-msgid "Add sans-serif to the family when no generic name"
8092-msgstr "როცა ზოგადი სახელი არ არსებობს, ოჯახისთვის sans-serif-ის დამატება"
8093-
8094-#: conf.d/50-user.conf:4
8095-msgid "Load per-user customization files"
8096-msgstr "მომხმარებლების საკუთარი კონფიგურაციის ფაილების ჩატვირთვა"
8097-
8098-#: conf.d/51-local.conf:4
8099-msgid "Load local customization file"
8100-msgstr "ლოკალური კონფიგურაციის ფაილის ჩაატვირთვა"
8101-
8102-#: conf.d/60-generic.conf:4
8103-msgid "Set preferable fonts for emoji/math fonts"
8104-msgstr "ემოჯი/მათემატიკური ფონტებისთვის უმჯობესი ფონტების დაყენება"
8105-
8106-#: conf.d/60-latin.conf:4
8107-msgid "Set preferable fonts for Latin"
8108-msgstr "Latin-სთვის უმჯობესი ფონტების დაყენება"
8109-
8110-#: conf.d/65-nonlatin.conf:4
8111-msgid "Set preferable fonts for non-Latin"
8112-msgstr "არა-Latin-სთვის უმჯობესი ფონტების დაყენება"
8113-
8114-#: conf.d/70-no-bitmaps.conf:4
8115-msgid "Reject bitmap fonts"
8116-msgstr "ბიტური რუკების ფონტების უარყოფა"
8117-
8118-#: conf.d/70-yes-bitmaps.conf:4
8119-msgid "Accept bitmap fonts"
8120-msgstr "ბიტური რუკების ფონტების მიღება"
8121diff --git a/po-conf/meson.build b/po-conf/meson.build
8122deleted file mode 100644
8123index 0fba329c..00000000
8124--- a/po-conf/meson.build
8125+++ /dev/null
8126@@ -1,3 +0,0 @@
8127-i18n.gettext(meson.project_name() + '-conf',
8128- args: gettext_args + ['--directory=' + meson.project_source_root()]
8129-)
8130diff --git a/po-conf/zh_CN.po b/po-conf/zh_CN.po
8131deleted file mode 100644
8132index a2ae3506..00000000
8133--- a/po-conf/zh_CN.po
8134+++ /dev/null
8135@@ -1,140 +0,0 @@
8136-# SOME DESCRIPTIVE TITLE.
8137-# Copyright (C) YEAR Fontconfig Author(s)
8138-# This file is distributed under the same license as the fontconfig package.
8139-#
8140-# Dingyuan Wang <gumblex@aosc.io>, 2018.
8141-# Mingcong Bai <jeffbai@aosc.io>, 2018.
8142-# Mingye Wang <artoria2e5@aosc.io>, 2018.
8143-#
8144-msgid ""
8145-msgstr ""
8146-"Project-Id-Version: fontconfig 2.12.92\n"
8147-"Report-Msgid-Bugs-To: https://gitlab.freedesktop.org/fontconfig/"
8148-"fontconfig/issues/new\n"
8149-"POT-Creation-Date: 2018-02-14 21:06-0600\n"
8150-"PO-Revision-Date: 2018-02-16 01:19-0600\n"
8151-"Language-Team: AOSC\n"
8152-"MIME-Version: 1.0\n"
8153-"Content-Type: text/plain; charset=UTF-8\n"
8154-"Content-Transfer-Encoding: 8bit\n"
8155-"X-Generator: Poedit 2.0.5\n"
8156-"Last-Translator: Mingcong Bai <jeffbai@aosc.xyz>\n"
8157-"Plural-Forms: nplurals=1; plural=0;\n"
8158-"Language: zh_CN\n"
8159-
8160-#: conf.d/10-autohint.conf:8
8161-msgid "Enable autohinter"
8162-msgstr "启用自动微调"
8163-
8164-#: conf.d/10-hinting-full.conf:8
8165-msgid "Set hintfull to hintstyle"
8166-msgstr "设置微调风格为“完全 (hintfull)”"
8167-
8168-#: conf.d/10-hinting-medium.conf:8
8169-msgid "Set hintmedium to hintstyle"
8170-msgstr "设置微调风格为“中等 (hintmedium)”"
8171-
8172-#: conf.d/10-hinting-none.conf:8
8173-msgid "Set hintnone to hintstyle"
8174-msgstr "设置微调风格为“无 (hintnone)”"
8175-
8176-#: conf.d/10-hinting-slight.conf:8
8177-msgid "Set hintslight to hintstyle"
8178-msgstr "设置微调风格为“轻微 (hintslight)”"
8179-
8180-#: conf.d/10-no-sub-pixel.conf:8
8181-msgid "Disable sub-pixel rendering"
8182-msgstr "禁用次像素渲染"
8183-
8184-#: conf.d/10-scale-bitmap-fonts.conf:8
8185-msgid "Bitmap scaling"
8186-msgstr "位图缩放"
8187-
8188-#: conf.d/10-sub-pixel-bgr.conf:8
8189-msgid "Enable sub-pixel rendering with the BGR stripes layout"
8190-msgstr "启用蓝绿红 (BGR) 像素布局的次像素渲染"
8191-
8192-#: conf.d/10-sub-pixel-rgb.conf:8
8193-msgid "Enable sub-pixel rendering with the RGB stripes layout"
8194-msgstr "启用红绿蓝 (RGB) 像素布局的次像素渲染"
8195-
8196-#: conf.d/10-sub-pixel-vbgr.conf:8
8197-msgid "Enable sub-pixel rendering with the vertical BGR stripes layout"
8198-msgstr "启用垂直蓝绿红 (BGR) 像素布局的次像素渲染"
8199-
8200-#: conf.d/10-sub-pixel-vrgb.conf:8
8201-msgid "Enable sub-pixel rendering with the vertical RGB stripes layout"
8202-msgstr "启用垂直红绿蓝 (RGB) 像素布局的次像素渲染"
8203-
8204-#: conf.d/10-unhinted.conf:8
8205-msgid "Disable hinting"
8206-msgstr "禁用微调"
8207-
8208-#: conf.d/11-lcdfilter-default.conf:8
8209-msgid "Use lcddefault as default for LCD filter"
8210-msgstr "将 lcddefault 设为默认 LCD 滤镜"
8211-
8212-#: conf.d/11-lcdfilter-legacy.conf:8
8213-msgid "Use lcdlegacy as default for LCD filter"
8214-msgstr "将 lcdlegacy 设为默认 LCD 滤镜"
8215-
8216-#: conf.d/11-lcdfilter-light.conf:8
8217-msgid "Use lcdlight as default for LCD filter"
8218-msgstr "将 lcdlight 设为默认 LCD 滤镜"
8219-
8220-#: conf.d/20-unhint-small-vera.conf:8
8221-msgid ""
8222-"Disable hinting for Bitstream Vera fonts when the size is less than 8ppem"
8223-msgstr "为大小小于 8ppem 的 Bitstream Vera 字体禁用微调"
8224-
8225-#: conf.d/25-unhint-nonlatin.conf:8
8226-msgid "Disable hinting for CJK fonts"
8227-msgstr "为中日韩 (CJK) 字体禁用微调"
8228-
8229-#: conf.d/30-metric-aliases.conf:8
8230-msgid "Set substitutions for similar/metric-compatible families"
8231-msgstr "为相似或规格兼容的字体家族设置替换"
8232-
8233-#: conf.d/40-nonlatin.conf:8
8234-msgid "Set substitutions for non-Latin fonts"
8235-msgstr "为非拉丁语言字体设置替换"
8236-
8237-#: conf.d/45-generic.conf:8
8238-msgid "Set substitutions for emoji/math fonts"
8239-msgstr "为绘文字 (Emoji) 或数学字体设置替换"
8240-
8241-#: conf.d/45-latin.conf:8
8242-msgid "Set substitutions for Latin fonts"
8243-msgstr "为拉丁语言字体设置替换"
8244-
8245-#: conf.d/49-sansserif.conf:8
8246-msgid "Add sans-serif to the family when no generic name"
8247-msgstr "在没有通用名称时添加 sans-serif 到字体家族"
8248-
8249-#: conf.d/50-user.conf:8
8250-msgid "Load per-user customization files"
8251-msgstr "载入用户自定义文件"
8252-
8253-#: conf.d/51-local.conf:8
8254-msgid "Load local customization file"
8255-msgstr "载入本地自定义文件"
8256-
8257-#: conf.d/60-generic.conf:8
8258-msgid "Set preferable fonts for emoji/math fonts"
8259-msgstr "设置首选绘文字 (Emoji) 或数学字体"
8260-
8261-#: conf.d/60-latin.conf:8
8262-msgid "Set preferable fonts for Latin"
8263-msgstr "设置首选拉丁语言字体"
8264-
8265-#: conf.d/65-nonlatin.conf:8
8266-msgid "Set preferable fonts for non-Latin"
8267-msgstr "设置首选非拉丁语言字体"
8268-
8269-#: conf.d/70-no-bitmaps.conf:8
8270-msgid "Reject bitmap fonts"
8271-msgstr "排除点阵字体"
8272-
8273-#: conf.d/70-yes-bitmaps.conf:8
8274-msgid "Accept bitmap fonts"
8275-msgstr "接受点阵字体"
8276diff --git a/po/ChangeLog b/po/ChangeLog
8277deleted file mode 100644
8278index 9b7898ab..00000000
8279--- a/po/ChangeLog
8280+++ /dev/null
8281@@ -1,12 +0,0 @@
8282-2015-01-28 gettextize <bug-gnu-gettext@gnu.org>
8283-
8284- * Makefile.in.in: New file, from gettext-0.19.4.
8285- * Rules-quot: New file, from gettext-0.19.4.
8286- * boldquot.sed: New file, from gettext-0.19.4.
8287- * en@boldquot.header: New file, from gettext-0.19.4.
8288- * en@quot.header: New file, from gettext-0.19.4.
8289- * insert-header.sin: New file, from gettext-0.19.4.
8290- * quot.sed: New file, from gettext-0.19.4.
8291- * remove-potcdate.sin: New file, from gettext-0.19.4.
8292- * POTFILES.in: New file.
8293-
8294diff --git a/po/LINGUAS b/po/LINGUAS
8295deleted file mode 100644
8296index 53b48dde..00000000
8297--- a/po/LINGUAS
8298+++ /dev/null
8299@@ -1,3 +0,0 @@
8300-# Please keep this list sorted alphabetically.
8301-ka
8302-zh_CN
8303diff --git a/po/Makevars b/po/Makevars
8304deleted file mode 100644
8305index 047a77e4..00000000
8306--- a/po/Makevars
8307+++ /dev/null
8308@@ -1,78 +0,0 @@
8309-# Makefile variables for PO directory in any package using GNU gettext.
8310-
8311-# Usually the message domain is the same as the package name.
8312-DOMAIN = $(PACKAGE)
8313-
8314-# These two variables depend on the location of this directory.
8315-subdir = po
8316-top_builddir = ..
8317-
8318-# These options get passed to xgettext.
8319-XGETTEXT_OPTIONS = --keyword=_ --keyword=N_
8320-
8321-# This is the copyright holder that gets inserted into the header of the
8322-# $(DOMAIN).pot file. Set this to the copyright holder of the surrounding
8323-# package. (Note that the msgstr strings, extracted from the package's
8324-# sources, belong to the copyright holder of the package.) Translators are
8325-# expected to transfer the copyright for their translations to this person
8326-# or entity, or to disclaim their copyright. The empty string stands for
8327-# the public domain; in this case the translators are expected to disclaim
8328-# their copyright.
8329-COPYRIGHT_HOLDER = Fontconfig Author(s)
8330-
8331-# This tells whether or not to prepend "GNU " prefix to the package
8332-# name that gets inserted into the header of the $(DOMAIN).pot file.
8333-# Possible values are "yes", "no", or empty. If it is empty, try to
8334-# detect it automatically by scanning the files in $(top_srcdir) for
8335-# "GNU packagename" string.
8336-PACKAGE_GNU = no
8337-
8338-# This is the email address or URL to which the translators shall report
8339-# bugs in the untranslated strings:
8340-# - Strings which are not entire sentences, see the maintainer guidelines
8341-# in the GNU gettext documentation, section 'Preparing Strings'.
8342-# - Strings which use unclear terms or require additional context to be
8343-# understood.
8344-# - Strings which make invalid assumptions about notation of date, time or
8345-# money.
8346-# - Pluralisation problems.
8347-# - Incorrect English spelling.
8348-# - Incorrect formatting.
8349-# It can be your email address, or a mailing list address where translators
8350-# can write to without being subscribed, or the URL of a web page through
8351-# which the translators can contact you.
8352-MSGID_BUGS_ADDRESS = https://gitlab.freedesktop.org/fontconfig/fontconfig/issues/new
8353-
8354-# This is the list of locale categories, beyond LC_MESSAGES, for which the
8355-# message catalogs shall be used. It is usually empty.
8356-EXTRA_LOCALE_CATEGORIES =
8357-
8358-# This tells whether the $(DOMAIN).pot file contains messages with an 'msgctxt'
8359-# context. Possible values are "yes" and "no". Set this to yes if the
8360-# package uses functions taking also a message context, like pgettext(), or
8361-# if in $(XGETTEXT_OPTIONS) you define keywords with a context argument.
8362-USE_MSGCTXT = no
8363-
8364-# These options get passed to msgmerge.
8365-# Useful options are in particular:
8366-# --previous to keep previous msgids of translated messages,
8367-# --quiet to reduce the verbosity.
8368-MSGMERGE_OPTIONS =
8369-
8370-# These options get passed to msginit.
8371-# If you want to disable line wrapping when writing PO files, add
8372-# --no-wrap to MSGMERGE_OPTIONS, XGETTEXT_OPTIONS, and
8373-# MSGINIT_OPTIONS.
8374-MSGINIT_OPTIONS =
8375-
8376-# This tells whether or not to regenerate a PO file when $(DOMAIN).pot
8377-# has changed. Possible values are "yes" and "no". Set this to no if
8378-# the POT file is checked in the repository and the version control
8379-# program ignores timestamps.
8380-PO_DEPENDS_ON_POT = yes
8381-
8382-# This tells whether or not to forcibly update $(DOMAIN).pot and
8383-# regenerate PO files on "make dist". Possible values are "yes" and
8384-# "no". Set this to no if the POT file and PO files are maintained
8385-# externally.
8386-DIST_DEPENDS_ON_UPDATE_PO = yes
8387diff --git a/po/POTFILES.in b/po/POTFILES.in
8388deleted file mode 100644
8389index 3b4697ea..00000000
8390--- a/po/POTFILES.in
8391+++ /dev/null
8392@@ -1,11 +0,0 @@
8393-# List of source files which contain translatable strings.
8394-fc-cache/fc-cache.c
8395-fc-cat/fc-cat.c
8396-fc-conflist/fc-conflist.c
8397-fc-list/fc-list.c
8398-fc-match/fc-match.c
8399-fc-pattern/fc-pattern.c
8400-fc-query/fc-query.c
8401-fc-scan/fc-scan.c
8402-fc-validate/fc-validate.c
8403-src/fccfg.c
8404diff --git a/po/ka.po b/po/ka.po
8405deleted file mode 100644
8406index 0faaac85..00000000
8407--- a/po/ka.po
8408+++ /dev/null
8409@@ -1,660 +0,0 @@
8410-# fontconfig translation to Georgian.
8411-# Copyright (C) 2022 Fontconfig Author(s)
8412-# This file is distributed under the same license as the fontconfig package.
8413-# Temuri Doghonadze <temuri.doghonadze@gmail.com>, 2022.
8414-#
8415-msgid ""
8416-msgstr ""
8417-"Project-Id-Version: fontconfig 2.14.0\n"
8418-"Report-Msgid-Bugs-To: https://gitlab.freedesktop.org/fontconfig/fontconfig/"
8419-"issues/new\n"
8420-"POT-Creation-Date: 2022-10-01 10:16+0200\n"
8421-"PO-Revision-Date: 2022-10-01 10:53+0200\n"
8422-"Last-Translator: Temuri Doghonadze <temuri.doghonadze@gmail.com>\n"
8423-"Language-Team: Georgian <(none)>\n"
8424-"Language: ka\n"
8425-"MIME-Version: 1.0\n"
8426-"Content-Type: text/plain; charset=UTF-8\n"
8427-"Content-Transfer-Encoding: 8bit\n"
8428-"Plural-Forms: nplurals=2; plural=(n != 1);\n"
8429-"X-Generator: Poedit 3.1.1\n"
8430-
8431-#: fc-cache/fc-cache.c:107
8432-#, c-format
8433-msgid ""
8434-"usage: %s [-EfrsvVh] [-y SYSROOT] [--error-on-no-fonts] [--force|--really-"
8435-"force] [--sysroot=SYSROOT] [--system-only] [--verbose] [--version] [--help] "
8436-"[dirs]\n"
8437-msgstr ""
8438-"გამოყენება: %s [-EfrsvVh] [-y SYSROOT] [--error-on-no-fonts] [--force|--"
8439-"really-force] [--sysroot=SYSROOT] [--system-only] [--verbose] [--version] "
8440-"[--help] [საქაღალდეები]\n"
8441-
8442-#: fc-cache/fc-cache.c:110
8443-#, c-format
8444-msgid "usage: %s [-EfrsvVh] [-y SYSROOT] [dirs]\n"
8445-msgstr "გამოყენება: %s [-EfrsvVh] [-y SYSROOT] [საქაღალდეები]\n"
8446-
8447-#: fc-cache/fc-cache.c:113
8448-#, c-format
8449-msgid ""
8450-"Build font information caches in [dirs]\n"
8451-"(all directories in font configuration by default).\n"
8452-msgstr ""
8453-"საქაღალდეებში ფონტის ინფორმაციის ქეშის აშენება\n"
8454-"(ნაგულისხმებად - ყველა კონფიგურაციის ფაილში მოხსენებულ საქაღალდეში).\n"
8455-
8456-#: fc-cache/fc-cache.c:117
8457-#, c-format
8458-msgid " -E, --error-on-no-fonts raise an error if no fonts in a directory\n"
8459-msgstr " -E, --error-on-no-fonts შეცდომა, თუ საქაღალდეში ფონტები არაა\n"
8460-
8461-#: fc-cache/fc-cache.c:118
8462-#, c-format
8463-msgid ""
8464-" -f, --force scan directories with apparently valid caches\n"
8465-msgstr ""
8466-" -f, --force საქაღალდეების სკანირება იმის მიუხედავად, რომ "
8467-"მათი ქეში სწორია\n"
8468-
8469-#: fc-cache/fc-cache.c:119
8470-#, c-format
8471-msgid " -r, --really-force erase all existing caches, then rescan\n"
8472-msgstr " -r, --really-force ქეშის წაშლა და თავიდან სკანირება\n"
8473-
8474-#: fc-cache/fc-cache.c:120
8475-#, c-format
8476-msgid " -s, --system-only scan system-wide directories only\n"
8477-msgstr ""
8478-" -s, --system-only მხოლოდ სისტემისთვის გლობალური საქაღალდეების "
8479-"სკანირება\n"
8480-
8481-#: fc-cache/fc-cache.c:121
8482-#, c-format
8483-msgid " -y, --sysroot=SYSROOT prepend SYSROOT to all paths for scanning\n"
8484-msgstr ""
8485-" -y, --sysroot=SYSROOT სკანირებისას ყველა ბილიკისთვის თავში SYSROOT -ის "
8486-"მიწერა\n"
8487-
8488-#: fc-cache/fc-cache.c:122
8489-#, c-format
8490-msgid " -v, --verbose display status information while busy\n"
8491-msgstr " -v, --verbose მუშაობისას სტატუსის ინფორმაციის გამოტანა\n"
8492-
8493-#: fc-cache/fc-cache.c:123
8494-#, c-format
8495-msgid " -V, --version display font config version and exit\n"
8496-msgstr " -V, --version font config -ის ვერსიის გამოტანა და გასვლა\n"
8497-
8498-#: fc-cache/fc-cache.c:124
8499-#, c-format
8500-msgid " -h, --help display this help and exit\n"
8501-msgstr " -h, --help ამ დახმარების გამოტანა და გასვლა\n"
8502-
8503-#: fc-cache/fc-cache.c:126
8504-#, c-format
8505-msgid " -E (error-on-no-fonts)\n"
8506-msgstr " -E (error-on-no-fonts)\n"
8507-
8508-#: fc-cache/fc-cache.c:127
8509-#, c-format
8510-msgid " raise an error if no fonts in a directory\n"
8511-msgstr " შეცდომა, თუ საქაღალდეში ფონტები არაა\n"
8512-
8513-#: fc-cache/fc-cache.c:128
8514-#, c-format
8515-msgid " -f (force) scan directories with apparently valid caches\n"
8516-msgstr ""
8517-" -f, (ძალით) საქაღალდეების სკანირება იმის მიუხედავად, რომ "
8518-"მათი ქეში სწორია\n"
8519-
8520-#: fc-cache/fc-cache.c:129
8521-#, c-format
8522-msgid " -r, (really force) erase all existing caches, then rescan\n"
8523-msgstr " -r (სრულად ძალით ქეშის წაშლა და თავიდან სკანირება\n"
8524-
8525-#: fc-cache/fc-cache.c:130
8526-#, c-format
8527-msgid " -s (system) scan system-wide directories only\n"
8528-msgstr ""
8529-" -s (სისტემური) მხოლოდ სისტემისთვის გლობალური საქაღალდეების "
8530-"სკანირება\n"
8531-
8532-#: fc-cache/fc-cache.c:131
8533-#, c-format
8534-msgid " -y SYSROOT (sysroot) prepend SYSROOT to all paths for scanning\n"
8535-msgstr ""
8536-" -y SYSROOT (sysroot) სკანირებისას ყველა ბილიკისთვის თავში SYSROOT -ის "
8537-"მიწერა\n"
8538-
8539-#: fc-cache/fc-cache.c:132
8540-#, c-format
8541-msgid " -v (verbose) display status information while busy\n"
8542-msgstr " -v (verbose) მუშაობისას სტატუსის ინფორმაციის გამოტანა\n"
8543-
8544-#: fc-cache/fc-cache.c:133 fc-cat/fc-cat.c:181 fc-list/fc-list.c:103
8545-#: fc-match/fc-match.c:107 fc-pattern/fc-pattern.c:101
8546-#, c-format
8547-msgid " -V (version) display font config version and exit\n"
8548-msgstr " -V (version) font config -ის ვერსიის გამოტანა და გასვლა\n"
8549-
8550-#: fc-cache/fc-cache.c:134 fc-cat/fc-cat.c:182 fc-list/fc-list.c:104
8551-#: fc-match/fc-match.c:108 fc-pattern/fc-pattern.c:102
8552-#, c-format
8553-msgid " -h (help) display this help and exit\n"
8554-msgstr " -h (help) ამ დახმარების გამოტანა და გასვლა\n"
8555-
8556-#: fc-cache/fc-cache.c:171
8557-#, c-format
8558-msgid "skipping, looped directory detected\n"
8559-msgstr "გამოტოვება. აღმოჩენილია საქაღალდეების მარყუჟი\n"
8560-
8561-#: fc-cache/fc-cache.c:190
8562-#, c-format
8563-msgid "skipping, no such directory\n"
8564-msgstr "გამოტოვება. საქაღალდე არ არსებობს\n"
8565-
8566-#: fc-cache/fc-cache.c:208
8567-#, c-format
8568-msgid "\"%s\": not a directory, skipping\n"
8569-msgstr "\"%s\": საქაღალდეს არ წარმოადგენს. გამოტოვება\n"
8570-
8571-#: fc-cache/fc-cache.c:232
8572-#, c-format
8573-msgid "\"%s\": scanning error\n"
8574-msgstr "\"%s\": სკანირების შეცდომა\n"
8575-
8576-#: fc-cache/fc-cache.c:241
8577-#, c-format
8578-msgid "skipping, existing cache is valid: %d fonts, %d dirs\n"
8579-msgstr "გამოტოვება. არსებული ქეში სწორია: %d ფონტი, %d საქაღალდე\n"
8580-
8581-#: fc-cache/fc-cache.c:247
8582-#, c-format
8583-msgid "caching, new cache contents: %d fonts, %d dirs\n"
8584-msgstr "ქეშირება. ახალი ქეშის შემცველობა: %d ფონტი, %d საქაღალდე\n"
8585-
8586-#: fc-cache/fc-cache.c:252
8587-#, c-format
8588-msgid "%s: failed to write cache\n"
8589-msgstr "%s ქეშის ჩაწერის შეცდომა\n"
8590-
8591-#: fc-cache/fc-cache.c:261
8592-#, c-format
8593-msgid "%s: Can't create subdir set\n"
8594-msgstr "%s: ქვესაქაღალდეების ნაკრების შექმნის შეცდომა\n"
8595-
8596-#: fc-cache/fc-cache.c:275
8597-#, c-format
8598-msgid "%s: Can't create subdir list\n"
8599-msgstr "%s: ქვესაქაღალდეების სიის შექმნის შეცდომა\n"
8600-
8601-#: fc-cache/fc-cache.c:383 fc-cat/fc-cat.c:309
8602-#, c-format
8603-msgid "%s: Can't initialize font config library\n"
8604-msgstr "%s: fontconfig-ის ბიბლიოთეკის ინიციალიზაციის შეცდომა\n"
8605-
8606-#: fc-cache/fc-cache.c:393
8607-#, c-format
8608-msgid "%s: Can't create list of directories\n"
8609-msgstr "%s: საქაღალდეების სიის შექმნის შეცდომა\n"
8610-
8611-#: fc-cache/fc-cache.c:401
8612-#, c-format
8613-msgid "%s: Can't add directory\n"
8614-msgstr "%s: საქაღალდის დამატების შეცდომა\n"
8615-
8616-#: fc-cache/fc-cache.c:413
8617-#, c-format
8618-msgid "Out of Memory\n"
8619-msgstr "არასაკმარისი მეხსიერება\n"
8620-
8621-#: fc-cache/fc-cache.c:456
8622-msgid "failed"
8623-msgstr "შეცდომა"
8624-
8625-#: fc-cache/fc-cache.c:456
8626-msgid "succeeded"
8627-msgstr "წარმატებული"
8628-
8629-#: fc-cat/fc-cat.c:162
8630-#, c-format
8631-msgid "usage: %s [-rv] [--recurse] [--verbose] [*-%s"
8632-msgstr "გამოყენება: %s [-rv] [--recurse] [--verbose] [*-%s"
8633-
8634-#: fc-cat/fc-cat.c:166
8635-#, c-format
8636-msgid "usage: %s [-rvVh] [*-%s"
8637-msgstr "გამოყენება: %s [-rvVh] [*-%s"
8638-
8639-#: fc-cat/fc-cat.c:169
8640-#, c-format
8641-msgid "Reads font information cache from:\n"
8642-msgstr "ფონტის ფორმაციის ქეში წაიკითხება:\n"
8643-
8644-#: fc-cat/fc-cat.c:170
8645-#, c-format
8646-msgid " 1) specified fontconfig cache file\n"
8647-msgstr " 1) მითითებული fontconfig-ის ქეშის ფაილიდან\n"
8648-
8649-#: fc-cat/fc-cat.c:171
8650-#, c-format
8651-msgid " 2) related to a particular font directory\n"
8652-msgstr " 2) მითითებული ფონტის საქაღალდიდან\n"
8653-
8654-#: fc-cat/fc-cat.c:174
8655-#, c-format
8656-msgid " -r, --recurse recurse into subdirectories\n"
8657-msgstr " -r, --recurse რეკურსია ქვესაქაღალდეებში\n"
8658-
8659-#: fc-cat/fc-cat.c:175
8660-#, c-format
8661-msgid " -v, --verbose be verbose\n"
8662-msgstr " -v, --verbose მეტი შეტყობინების გამოტანა\n"
8663-
8664-#: fc-cat/fc-cat.c:176 fc-conflist/fc-conflist.c:90 fc-list/fc-list.c:96
8665-#: fc-match/fc-match.c:99 fc-pattern/fc-pattern.c:95 fc-query/fc-query.c:98
8666-#: fc-validate/fc-validate.c:98
8667-#, c-format
8668-msgid " -V, --version display font config version and exit\n"
8669-msgstr " -V, --version font config -ის ვერსიის გამოტანა და გასვლა\n"
8670-
8671-#: fc-cat/fc-cat.c:177 fc-conflist/fc-conflist.c:91 fc-list/fc-list.c:97
8672-#: fc-match/fc-match.c:100 fc-pattern/fc-pattern.c:96 fc-query/fc-query.c:99
8673-#: fc-validate/fc-validate.c:99
8674-#, c-format
8675-msgid " -h, --help display this help and exit\n"
8676-msgstr " -h, --help ამ დახმარების გამოტანა და გასვლა\n"
8677-
8678-#: fc-cat/fc-cat.c:179
8679-#, c-format
8680-msgid " -r (recurse) recurse into subdirectories\n"
8681-msgstr " -r (recurse) რეკურსია ქვესაქაღალდეებში\n"
8682-
8683-#: fc-cat/fc-cat.c:180
8684-#, c-format
8685-msgid " -v (verbose) be verbose\n"
8686-msgstr " -v (verbose) მეტი შეტყობინების გამოტანა\n"
8687-
8688-#: fc-cat/fc-cat.c:318 fc-cat/fc-cat.c:327 fc-cat/fc-cat.c:339
8689-#: fc-cat/fc-cat.c:347
8690-#, c-format
8691-msgid "%s: malloc failure\n"
8692-msgstr "%s: malloc -ის შეცდომა\n"
8693-
8694-#: fc-cat/fc-cat.c:387
8695-#, c-format
8696-msgid ""
8697-"Directory: %s\n"
8698-"Cache: %s\n"
8699-"--------\n"
8700-msgstr ""
8701-"საქაღალდე: %s\n"
8702-"ქეში: %s\n"
8703-"--------\n"
8704-
8705-#: fc-conflist/fc-conflist.c:81
8706-#, c-format
8707-msgid "usage: %s [-Vh] [--version] [--help]\n"
8708-msgstr "გამოყენება: %s [-Vh] [--version] [--help]\n"
8709-
8710-#: fc-conflist/fc-conflist.c:84
8711-#, c-format
8712-msgid "usage: %s [-Vh]\n"
8713-msgstr "გამოყენება: %s [-Vh]\n"
8714-
8715-#: fc-conflist/fc-conflist.c:87
8716-#, c-format
8717-msgid "Show the ruleset files information on the system\n"
8718-msgstr "სისტემაში პოლიტიკის ფაილების ინფორმაციის ჩვენება\n"
8719-
8720-#: fc-conflist/fc-conflist.c:93 fc-validate/fc-validate.c:104
8721-#, c-format
8722-msgid " -V (version) display font config version and exit\n"
8723-msgstr ""
8724-" -V (version) font config -ის ვერსიის გამოტანა და გასვლა\n"
8725-
8726-#: fc-conflist/fc-conflist.c:94 fc-validate/fc-validate.c:105
8727-#, c-format
8728-msgid " -h (help) display this help and exit\n"
8729-msgstr " -h (help) ამ დახმარების გამოტანა და გასვლა\n"
8730-
8731-#: fc-list/fc-list.c:83
8732-#, c-format
8733-msgid ""
8734-"usage: %s [-vbqVh] [-f FORMAT] [--verbose] [--brief] [--format=FORMAT] [--"
8735-"quiet] [--version] [--help] [pattern] {element ...} \n"
8736-msgstr ""
8737-"გამოყენება: %s [-vbqVh] [-f ფორმატი] [--verbose] [--brief] [--"
8738-"format=ფორატი] [--quiet] [--version] [--help] [pattern] {element ...} \n"
8739-
8740-#: fc-list/fc-list.c:86
8741-#, c-format
8742-msgid "usage: %s [-vbqVh] [-f FORMAT] [pattern] {element ...} \n"
8743-msgstr "გამოყენება: %s [-vbqVh] [-f ფორმატი] [შაბლონი] {ელემენტი ...} \n"
8744-
8745-#: fc-list/fc-list.c:89
8746-#, c-format
8747-msgid "List fonts matching [pattern]\n"
8748-msgstr "ფონტები, რომლებიც ემთხვევა [შაბლონი]\n"
8749-
8750-#: fc-list/fc-list.c:92 fc-match/fc-match.c:96
8751-#, c-format
8752-msgid " -v, --verbose display entire font pattern verbosely\n"
8753-msgstr " -v, --verbose მთელი ფონტის შაბლონის ჩვენება\n"
8754-
8755-#: fc-list/fc-list.c:93 fc-match/fc-match.c:97
8756-#, c-format
8757-msgid " -b, --brief display entire font pattern briefly\n"
8758-msgstr " -b, --brief მთელი ფონტის შაბლონის მოკლედ ჩვენება\n"
8759-
8760-#: fc-list/fc-list.c:94 fc-match/fc-match.c:98 fc-pattern/fc-pattern.c:94
8761-#: fc-query/fc-query.c:97
8762-#, c-format
8763-msgid " -f, --format=FORMAT use the given output format\n"
8764-msgstr " -f, --format=ფორმატი მითითებული ფორმატის გამოყენება\n"
8765-
8766-#: fc-list/fc-list.c:95
8767-#, c-format
8768-msgid ""
8769-" -q, --quiet suppress all normal output, exit 1 if no fonts "
8770-"matched\n"
8771-msgstr ""
8772-" -q, --quiet ეკრანზე არაფერი გამოჩნდება. თუ ფონტები არ დაემთხვა, "
8773-"გამოსვლის კოდი 1-ის ტოლი იქნება\n"
8774-
8775-#: fc-list/fc-list.c:99 fc-match/fc-match.c:104
8776-#, c-format
8777-msgid " -v (verbose) display entire font pattern verbosely\n"
8778-msgstr " -v (verbose) მთელი ფონტის შაბლონის დიდად ჩვენება\n"
8779-
8780-#: fc-list/fc-list.c:100 fc-match/fc-match.c:105
8781-#, c-format
8782-msgid " -b (brief) display entire font pattern briefly\n"
8783-msgstr " -b (brief) მთელი ფონტის შაბლონის მოკლედ ჩვენება\n"
8784-
8785-#: fc-list/fc-list.c:101 fc-match/fc-match.c:106 fc-pattern/fc-pattern.c:100
8786-#, c-format
8787-msgid " -f FORMAT (format) use the given output format\n"
8788-msgstr " -f ფორმატი (format) მითითებული გამოტანის ფორმატის გამოყენება\n"
8789-
8790-#: fc-list/fc-list.c:102
8791-#, c-format
8792-msgid ""
8793-" -q, (quiet) suppress all normal output, exit 1 if no fonts "
8794-"matched\n"
8795-msgstr ""
8796-" -q, (quiet) ეკრანზე არაფერი გამოჩნდება. თუ ფონტები არ დაემთხვა, "
8797-"გამოსვლის კოდი 1-ის ტოლი იქნება\n"
8798-
8799-#: fc-list/fc-list.c:164 fc-match/fc-match.c:172 fc-pattern/fc-pattern.c:155
8800-#, c-format
8801-msgid "Unable to parse the pattern\n"
8802-msgstr "შაბლონის დამუშავების შეცდომა\n"
8803-
8804-#: fc-match/fc-match.c:85
8805-#, c-format
8806-msgid ""
8807-"usage: %s [-savbVh] [-f FORMAT] [--sort] [--all] [--verbose] [--brief] [--"
8808-"format=FORMAT] [--version] [--help] [pattern] {element...}\n"
8809-msgstr ""
8810-"გამოყენება: %s [-savbVh] [-f ფორმატი] [--sort] [--all] [--verbose] [--"
8811-"brief] [--format=ფორმატი] [--version] [--help] [შაბლონი] {ელემენტი...}\n"
8812-
8813-#: fc-match/fc-match.c:88
8814-#, c-format
8815-msgid "usage: %s [-savVh] [-f FORMAT] [pattern] {element...}\n"
8816-msgstr "გამოყენება: %s [-savVh] [-f ფორმატი] [შაბლონი] {ელემენტი...}\n"
8817-
8818-#: fc-match/fc-match.c:91 fc-pattern/fc-pattern.c:89
8819-#, c-format
8820-msgid "List best font matching [pattern]\n"
8821-msgstr "ფონტების საუკეთესო დამთხვევების სია [შაბლონი]\n"
8822-
8823-#: fc-match/fc-match.c:94
8824-#, c-format
8825-msgid " -s, --sort display sorted list of matches\n"
8826-msgstr " -s, --sort დამთხვევების დალაგებული სიის ჩვენება\n"
8827-
8828-#: fc-match/fc-match.c:95
8829-#, c-format
8830-msgid " -a, --all display unpruned sorted list of matches\n"
8831-msgstr ""
8832-" -a, --all დამთხვევების წაუკვეთავი დალაგებული სიის ჩვენება\n"
8833-
8834-#: fc-match/fc-match.c:102
8835-#, c-format
8836-msgid " -s, (sort) display sorted list of matches\n"
8837-msgstr " -s, (sort) დამთხვევების დალაგებული სიის ჩვენება\n"
8838-
8839-#: fc-match/fc-match.c:103
8840-#, c-format
8841-msgid " -a (all) display unpruned sorted list of matches\n"
8842-msgstr ""
8843-" -a (all) დამთხვევების წაუკვეთავი დალაგებული სიის ჩვენება\n"
8844-
8845-#: fc-match/fc-match.c:201
8846-#, c-format
8847-msgid "No fonts installed on the system\n"
8848-msgstr "სისტემაში ფონტები დაყენებული არაა\n"
8849-
8850-#: fc-pattern/fc-pattern.c:83
8851-#, c-format
8852-msgid ""
8853-"usage: %s [-cdVh] [-f FORMAT] [--config] [--default] [--verbose] [--"
8854-"format=FORMAT] [--version] [--help] [pattern] {element...}\n"
8855-msgstr ""
8856-"გამოყენება: %s [-cdVh] [-f ფორმატი] [--config] [--default] [--verbose] [--"
8857-"format=ფორმატი] [--version] [--help] [შაბლონი] {ელემენტი...}\n"
8858-
8859-#: fc-pattern/fc-pattern.c:86
8860-#, c-format
8861-msgid "usage: %s [-cdVh] [-f FORMAT] [pattern] {element...}\n"
8862-msgstr "გამოყენება: %s [-cdVh] [-f ფორმატი] [შაბლონი] {ელემენტი...}\n"
8863-
8864-#: fc-pattern/fc-pattern.c:92
8865-#, c-format
8866-msgid " -c, --config perform config substitution on pattern\n"
8867-msgstr " -c, --config შაბლონზე კონფიგურაციის ჩანაცვლების ჩატარება\n"
8868-
8869-#: fc-pattern/fc-pattern.c:93
8870-#, c-format
8871-msgid " -d, --default perform default substitution on pattern\n"
8872-msgstr " -d, --default შაბლონზე ნაგულისხმები ჩანაცვლების ჩატარება\n"
8873-
8874-#: fc-pattern/fc-pattern.c:98
8875-#, c-format
8876-msgid " -c, (config) perform config substitution on pattern\n"
8877-msgstr " -c, (config) შაბლონზე კონფიგურაციის ჩანაცვლების ჩატარება\n"
8878-
8879-#: fc-pattern/fc-pattern.c:99
8880-#, c-format
8881-msgid " -d, (default) perform default substitution on pattern\n"
8882-msgstr " -d, (default) შაბლონზე ნაგულისხმები ჩანაცვლების ჩატარება\n"
8883-
8884-#: fc-query/fc-query.c:86
8885-#, c-format
8886-msgid ""
8887-"usage: %s [-bVh] [-i index] [-f FORMAT] [--index index] [--brief] [--format "
8888-"FORMAT] [--version] [--help] font-file...\n"
8889-msgstr ""
8890-"გამოყენება: %s [-bVh] [-i index] [-f ფორმატი] [--index index] [--brief] [--"
8891-"format ფორმატი] [--version] [--help] ფონტის-ფაილი...\n"
8892-
8893-#: fc-query/fc-query.c:89
8894-#, c-format
8895-msgid "usage: %s [-bVh] [-i index] [-f FORMAT] font-file...\n"
8896-msgstr "გამოყენება: %s [-bVh] [-i index] [-f ფორმატი] ფონტის-ფაილი...\n"
8897-
8898-#: fc-query/fc-query.c:92
8899-#, c-format
8900-msgid "Query font files and print resulting pattern(s)\n"
8901-msgstr "ფონტის ფაილების გადამოწმება და დამთხვევების გამოტანა\n"
8902-
8903-#: fc-query/fc-query.c:95 fc-validate/fc-validate.c:95
8904-#, c-format
8905-msgid " -i, --index INDEX display the INDEX face of each font file only\n"
8906-msgstr " -i, --index INDEX თითოეული ფონტის მხოლოდ INDEX სახის ჩვენება\n"
8907-
8908-#: fc-query/fc-query.c:96
8909-#, c-format
8910-msgid " -b, --brief display font pattern briefly\n"
8911-msgstr " -b, --brief ფონტის შაბლონის მოკლედ ჩვენება\n"
8912-
8913-#: fc-query/fc-query.c:101
8914-#, c-format
8915-msgid ""
8916-" -i INDEX (index) display the INDEX face of each font file only\n"
8917-msgstr ""
8918-" -i INDEX (index) თითოეული ფონტის მხოლოდ INDEX სახის ჩვენება\n"
8919-
8920-#: fc-query/fc-query.c:102 fc-scan/fc-scan.c:101
8921-#, c-format
8922-msgid " -b (brief) display font pattern briefly\n"
8923-msgstr " -b (brief) ფონტის შაბლონის მოკლედ ჩვენება\n"
8924-
8925-#: fc-query/fc-query.c:103 fc-scan/fc-scan.c:102
8926-#, c-format
8927-msgid " -f FORMAT (format) use the given output format\n"
8928-msgstr " -f ფორმატი მითითებული გამოტანის ფორმატის გამოყენება\n"
8929-
8930-#: fc-query/fc-query.c:104 fc-scan/fc-scan.c:104
8931-#, c-format
8932-msgid " -V (version) display font config version and exit\n"
8933-msgstr ""
8934-" -V (version) font config -ის ვერსიის გამოტანა და გასვლა\n"
8935-
8936-#: fc-query/fc-query.c:105 fc-scan/fc-scan.c:105
8937-#, c-format
8938-msgid " -h (help) display this help and exit\n"
8939-msgstr " -h (help) ამ დახმარების გამოტანა და გასვლა\n"
8940-
8941-#: fc-query/fc-query.c:163
8942-#, c-format
8943-msgid "Can't query face %u of font file %s\n"
8944-msgstr "შეცდომა %u-ე სახის გამოთხოვის შეცდომა ფონტის ფაილიდან %s\n"
8945-
8946-#: fc-scan/fc-scan.c:86
8947-#, c-format
8948-msgid ""
8949-"usage: %s [-bcVh] [-f FORMAT] [-y SYSROOT] [--brief] [--format FORMAT] [--"
8950-"version] [--help] font-file...\n"
8951-msgstr ""
8952-"გამოყენება: %s [-bcVh] [-f ფორმატი] [-y SYSROOT] [--brief] [--format "
8953-"ფორმატი] [--version] [--help] ფონტის-ფაილი...\n"
8954-
8955-#: fc-scan/fc-scan.c:89
8956-#, c-format
8957-msgid "usage: %s [-bcVh] [-f FORMAT] [-y SYSROOT] font-file...\n"
8958-msgstr "გამოყენება: %s [-bcVh] [-f ფორმატი] [-y SYSROOT] ფონტის-ფაილი...\n"
8959-
8960-#: fc-scan/fc-scan.c:92
8961-#, c-format
8962-msgid "Scan font files and directories, and print resulting pattern(s)\n"
8963-msgstr "ფონტის ფაილებისა და საქაღლდეების გადამოწმება და შაბლონების გამოტანა\n"
8964-
8965-#: fc-scan/fc-scan.c:95
8966-#, c-format
8967-msgid " -b, --brief display font pattern briefly\n"
8968-msgstr " -b, --brief ფონტის შაბლონის მოკლედ ჩვენება\n"
8969-
8970-#: fc-scan/fc-scan.c:96
8971-#, c-format
8972-msgid " -f, --format=FORMAT use the given output format\n"
8973-msgstr " -f, --format=ფორმატი მითითებული გამოტანის ფორმატის გამოყენება\n"
8974-
8975-#: fc-scan/fc-scan.c:97
8976-#, c-format
8977-msgid " -y, --sysroot=SYSROOT prepend SYSROOT to all paths for scanning\n"
8978-msgstr ""
8979-" -y, --sysroot=SYSROOT სკანირებისას ყველა ბილიკისთვის თავში SYSROOT -ის "
8980-"მიწერა\n"
8981-
8982-#: fc-scan/fc-scan.c:98
8983-#, c-format
8984-msgid " -V, --version display font config version and exit\n"
8985-msgstr " -V, --version font config -ის ვერსიის გამოტანა და გასვლა\n"
8986-
8987-#: fc-scan/fc-scan.c:99
8988-#, c-format
8989-msgid " -h, --help display this help and exit\n"
8990-msgstr " -h, --help ამ დახმარების გამოტანა და გასვლა\n"
8991-
8992-#: fc-scan/fc-scan.c:103
8993-#, c-format
8994-msgid ""
8995-" -y SYSROOT (sysroot) prepend SYSROOT to all paths for scanning\n"
8996-msgstr ""
8997-" -y SYSROOT (sysroot) სკანირებისას ყველა ბილიკისთვის თავში SYSROOT -"
8998-"ის მიწერა\n"
8999-
9000-#: fc-validate/fc-validate.c:86
9001-#, c-format
9002-msgid ""
9003-"usage: %s [-Vhv] [-i index] [-l LANG] [--index index] [--lang LANG] [--"
9004-"verbose] [--version] [--help] font-file...\n"
9005-msgstr ""
9006-"გამოყენება: %s [-Vhv] [-i index] [-l ენა] [--index ინდექსი] [--lang ენა] [--"
9007-"verbose] [--version] [--help] ფონტის-ფაილი...\n"
9008-
9009-#: fc-validate/fc-validate.c:89
9010-#, c-format
9011-msgid "usage: %s [-Vhv] [-i index] [-l LANG] font-file...\n"
9012-msgstr "გამოყენება: %s [-Vhv] [-i ინდექსი] [-l ენა] ფონტის-ფაილი...\n"
9013-
9014-#: fc-validate/fc-validate.c:92
9015-#, c-format
9016-msgid "Validate font files and print result\n"
9017-msgstr "ფონტის ფაილების გადამოწმება და შედეგების გამოტანა\n"
9018-
9019-#: fc-validate/fc-validate.c:96
9020-#, c-format
9021-msgid " -l, --lang=LANG set LANG instead of current locale\n"
9022-msgstr " -l, --lang=LANG მიმდინარე ენის მაგიერ LANG-ის გამოყენება\n"
9023-
9024-#: fc-validate/fc-validate.c:97
9025-#, c-format
9026-msgid " -v, --verbose show more detailed information\n"
9027-msgstr " -v, --verbose უფრო მეტად დეტალური ინფორმაციის ჩვენება\n"
9028-
9029-#: fc-validate/fc-validate.c:101
9030-#, c-format
9031-msgid ""
9032-" -i INDEX (index) display the INDEX face of each font file only\n"
9033-msgstr ""
9034-" -i INDEX (index) თითოეული ფონტის მხოლოდ INDEX სახის ჩვენება\n"
9035-
9036-#: fc-validate/fc-validate.c:102
9037-#, c-format
9038-msgid " -l LANG (lang) set LANG instead of current locale\n"
9039-msgstr ""
9040-" -l LANG (lang) მიმდინარე ენის მაგიერ LANG-ის გამოყენება\n"
9041-
9042-#: fc-validate/fc-validate.c:103
9043-#, c-format
9044-msgid " -v (verbose) show more detailed information\n"
9045-msgstr " -v (verbose) უფრო მეტად დეტალური ინფორმაციის ჩვენება\n"
9046-
9047-#: fc-validate/fc-validate.c:170
9048-#, c-format
9049-msgid "Can't initialize FreeType library\n"
9050-msgstr "შეცდომა FreeType ბიბლიოთეკის ინიციალიზაციისას\n"
9051-
9052-#: fc-validate/fc-validate.c:188
9053-#, c-format
9054-msgid "Unable to open %s\n"
9055-msgstr "%s-ის გახსნის შეცდომა\n"
9056-
9057-#: fc-validate/fc-validate.c:204
9058-#, c-format
9059-msgid "%s:%d Missing %d glyph(s) to satisfy the coverage for %s language\n"
9060-msgstr "%s:%d აკლია %d გლიფი, რომ დააკმაყოფილოს დაფარვა ენისთვის: %s\n"
9061-
9062-#: fc-validate/fc-validate.c:234
9063-#, c-format
9064-msgid "%s:%d Satisfy the coverage for %s language\n"
9065-msgstr "%s:%d აკმაყოფილებს დაფარვას ენისთვის: %s\n"
9066-
9067-#: src/fccfg.c:3243
9068-msgid "No description"
9069-msgstr "აღწერის გარეშე"
9070diff --git a/po/meson.build b/po/meson.build
9071deleted file mode 100644
9072index 3cc33097..00000000
9073--- a/po/meson.build
9074+++ /dev/null
9075@@ -1,3 +0,0 @@
9076-i18n.gettext(meson.project_name(),
9077- args: gettext_args + ['--directory=' + meson.project_source_root()]
9078-)
9079diff --git a/po/zh_CN.po b/po/zh_CN.po
9080deleted file mode 100644
9081index ba4fe222..00000000
9082--- a/po/zh_CN.po
9083+++ /dev/null
9084@@ -1,608 +0,0 @@
9085-# SOME DESCRIPTIVE TITLE.
9086-# Copyright (C) YEAR Fontconfig Author(s)
9087-# This file is distributed under the same license as the fontconfig package.
9088-#
9089-# Dingyuan Wang <gumblex@aosc.io>, 2018.
9090-# Mingcong Bai <jeffbai@aosc.io>, 2018.
9091-# Mingye Wang <artoria2e5@aosc.io>, 2018.
9092-#
9093-#
9094-msgid ""
9095-msgstr ""
9096-"Project-Id-Version: fontconfig 2.12.92\n"
9097-"Report-Msgid-Bugs-To: https://gitlab.freedesktop.org/fontconfig/"
9098-"fontconfig/issues/new\n"
9099-"POT-Creation-Date: 2018-02-14 21:06-0600\n"
9100-"PO-Revision-Date: 2018-02-16 01:41-0600\n"
9101-"Language-Team: AOSC\n"
9102-"MIME-Version: 1.0\n"
9103-"Content-Type: text/plain; charset=UTF-8\n"
9104-"Content-Transfer-Encoding: 8bit\n"
9105-"X-Generator: Poedit 2.0.5\n"
9106-"Last-Translator: Mingcong Bai <jeffbai@aosc.xyz>\n"
9107-"Plural-Forms: nplurals=1; plural=0;\n"
9108-"Language: zh_CN\n"
9109-
9110-#: fc-cache/fc-cache.c:98
9111-#, c-format
9112-msgid ""
9113-"usage: %s [-EfrsvVh] [-y SYSROOT] [--error-on-no-fonts] [--force|--really-"
9114-"force] [--sysroot=SYSROOT] [--system-only] [--verbose] [--version] [--help] "
9115-"[dirs]\n"
9116-msgstr ""
9117-"用法:%s [-EfrsvVh] [-y <系统根>] [--error-on-no-fonts] [--force|--really-"
9118-"force] [--sysroot=<系统根>] [--system-only] [--verbose] [--version] [--"
9119-"help] [目录]\n"
9120-
9121-#: fc-cache/fc-cache.c:101
9122-#, c-format
9123-msgid "usage: %s [-EfrsvVh] [-y SYSROOT] [dirs]\n"
9124-msgstr "用法:%s [-EfrsvVh] [-y <系统根>] [目录]\n"
9125-
9126-#: fc-cache/fc-cache.c:104
9127-#, c-format
9128-msgid ""
9129-"Build font information caches in [dirs]\n"
9130-"(all directories in font configuration by default).\n"
9131-msgstr ""
9132-"在 [目录] 构建字体信息缓存\n"
9133-"(默认为所有字体配置中定义的目录)。\n"
9134-
9135-#: fc-cache/fc-cache.c:108
9136-#, c-format
9137-msgid " -E, --error-on-no-fonts raise an error if no fonts in a directory\n"
9138-msgstr " -E, --error-on-no-fonts 在目录中无字体时报错\n"
9139-
9140-#: fc-cache/fc-cache.c:109
9141-#, c-format
9142-msgid ""
9143-" -f, --force scan directories with apparently valid caches\n"
9144-msgstr " -f, --force 强制扫描已有有效缓存的目录\n"
9145-
9146-#: fc-cache/fc-cache.c:110
9147-#, c-format
9148-msgid " -r, --really-force erase all existing caches, then rescan\n"
9149-msgstr " -r, --really-force 清空所有缓存并重新扫描\n"
9150-
9151-#: fc-cache/fc-cache.c:111
9152-#, c-format
9153-msgid " -s, --system-only scan system-wide directories only\n"
9154-msgstr " -s, --system-only 仅扫描系统全局目录\n"
9155-
9156-#: fc-cache/fc-cache.c:112
9157-#, c-format
9158-msgid " -y, --sysroot=SYSROOT prepend SYSROOT to all paths for scanning\n"
9159-msgstr " -y, --sysroot=<系统根> 扫描时将 <系统根> 值附加到路径开头\n"
9160-
9161-#: fc-cache/fc-cache.c:113
9162-#, c-format
9163-msgid " -v, --verbose display status information while busy\n"
9164-msgstr " -v, --verbose 在程序工作时显示状态信息\n"
9165-
9166-#: fc-cache/fc-cache.c:114
9167-#, c-format
9168-msgid " -V, --version display font config version and exit\n"
9169-msgstr " -V, --version 显示 Fontconfig 版本并退出\n"
9170-
9171-#: fc-cache/fc-cache.c:115
9172-#, c-format
9173-msgid " -h, --help display this help and exit\n"
9174-msgstr " -h, --help 显示该帮助信息并退出\n"
9175-
9176-#: fc-cache/fc-cache.c:117
9177-#, c-format
9178-msgid " -E (error-on-no-fonts)\n"
9179-msgstr " -E (error-on-no-fonts)\n"
9180-
9181-#: fc-cache/fc-cache.c:118
9182-#, c-format
9183-msgid " raise an error if no fonts in a directory\n"
9184-msgstr " 在目录中无字体时报错\n"
9185-
9186-#: fc-cache/fc-cache.c:119
9187-#, c-format
9188-msgid " -f (force) scan directories with apparently valid caches\n"
9189-msgstr " -f (force) 强制扫描带有有效缓存的目录\n"
9190-
9191-#: fc-cache/fc-cache.c:120
9192-#, c-format
9193-msgid " -r, (really force) erase all existing caches, then rescan\n"
9194-msgstr " -r, (really-force) 清空所有缓存并重新扫描\n"
9195-
9196-#: fc-cache/fc-cache.c:121
9197-#, c-format
9198-msgid " -s (system) scan system-wide directories only\n"
9199-msgstr " -s (system) 仅扫描系统全局目录\n"
9200-
9201-#: fc-cache/fc-cache.c:122
9202-#, c-format
9203-msgid " -y SYSROOT (sysroot) prepend SYSROOT to all paths for scanning\n"
9204-msgstr " -y <系统根> (sysroot) 扫描时将 <系统根> 值附加到路径开头\n"
9205-
9206-#: fc-cache/fc-cache.c:123
9207-#, c-format
9208-msgid " -v (verbose) display status information while busy\n"
9209-msgstr " -v (verbose) 在程序工作时显示状态信息\n"
9210-
9211-#: fc-cache/fc-cache.c:124 fc-cat/fc-cat.c:178 fc-list/fc-list.c:99
9212-#: fc-match/fc-match.c:103 fc-pattern/fc-pattern.c:97
9213-#, c-format
9214-msgid " -V (version) display font config version and exit\n"
9215-msgstr " -V (version) 显示 Fontconfig 版本并退出\n"
9216-
9217-#: fc-cache/fc-cache.c:125 fc-cat/fc-cat.c:179 fc-list/fc-list.c:100
9218-#: fc-match/fc-match.c:104 fc-pattern/fc-pattern.c:98
9219-#, c-format
9220-msgid " -h (help) display this help and exit\n"
9221-msgstr " -h (help) 显示该帮助信息并退出\n"
9222-
9223-#: fc-cache/fc-cache.c:162
9224-#, c-format
9225-msgid "skipping, looped directory detected\n"
9226-msgstr "跳过,探测到循环目录\n"
9227-
9228-#: fc-cache/fc-cache.c:172
9229-#, c-format
9230-msgid "skipping, no such directory\n"
9231-msgstr "跳过,无此目录\n"
9232-
9233-#: fc-cache/fc-cache.c:185
9234-#, c-format
9235-msgid "\"%s\": not a directory, skipping\n"
9236-msgstr "“%s”:不是一个目录,跳过\n"
9237-
9238-#: fc-cache/fc-cache.c:210
9239-#, c-format
9240-msgid "\"%s\": scanning error\n"
9241-msgstr "“%s”:扫描错误\n"
9242-
9243-#: fc-cache/fc-cache.c:219
9244-#, c-format
9245-msgid "skipping, existing cache is valid: %d fonts, %d dirs\n"
9246-msgstr "跳过,当前缓存有效:%d 个字体,%d 个目录\n"
9247-
9248-#: fc-cache/fc-cache.c:225
9249-#, c-format
9250-msgid "caching, new cache contents: %d fonts, %d dirs\n"
9251-msgstr "正在生成缓存,新增缓存内容:%d 个字体,%d 个目录\n"
9252-
9253-#: fc-cache/fc-cache.c:230
9254-#, c-format
9255-msgid "%s: failed to write cache\n"
9256-msgstr "%s:无法写入缓存\n"
9257-
9258-#: fc-cache/fc-cache.c:239
9259-#, c-format
9260-msgid "%s: Can't create subdir set\n"
9261-msgstr "%s:无法创建子目录集\n"
9262-
9263-#: fc-cache/fc-cache.c:253
9264-#, c-format
9265-msgid "%s: Can't create subdir list\n"
9266-msgstr "%s:无法创建子目录列表\n"
9267-
9268-#: fc-cache/fc-cache.c:359 fc-cat/fc-cat.c:305
9269-#, c-format
9270-msgid "%s: Can't initialize font config library\n"
9271-msgstr "%s:无法初始化 Fontconfig 库\n"
9272-
9273-#: fc-cache/fc-cache.c:369
9274-#, c-format
9275-msgid "%s: Can't create list of directories\n"
9276-msgstr "%s:无法创建目录列表\n"
9277-
9278-#: fc-cache/fc-cache.c:377
9279-#, c-format
9280-msgid "%s: Can't add directory\n"
9281-msgstr "%s:无法添加目录\n"
9282-
9283-#: fc-cache/fc-cache.c:389
9284-#, c-format
9285-msgid "Out of Memory\n"
9286-msgstr "内存耗尽\n"
9287-
9288-#: fc-cache/fc-cache.c:421
9289-msgid "failed"
9290-msgstr "缓存生成失败"
9291-
9292-#: fc-cache/fc-cache.c:421
9293-msgid "succeeded"
9294-msgstr "缓存生成成功"
9295-
9296-#: fc-cat/fc-cat.c:159
9297-#, c-format
9298-msgid "usage: %s [-rv] [--recurse] [--verbose] [*-%s"
9299-msgstr "用法:%s [-rv] [--recurse] [--verbose] [*-%s"
9300-
9301-#: fc-cat/fc-cat.c:163
9302-#, c-format
9303-msgid "usage: %s [-rvVh] [*-%s"
9304-msgstr "用法:%s [-rvVh] [*-%s"
9305-
9306-#: fc-cat/fc-cat.c:166
9307-#, c-format
9308-msgid "Reads font information cache from:\n"
9309-msgstr "从此处读取字体信息缓存:\n"
9310-
9311-#: fc-cat/fc-cat.c:167
9312-#, c-format
9313-msgid " 1) specified fontconfig cache file\n"
9314-msgstr "1. 指定的 Fontconfig 缓存文件\n"
9315-
9316-#: fc-cat/fc-cat.c:168
9317-#, c-format
9318-msgid " 2) related to a particular font directory\n"
9319-msgstr "2. 相对于某个字体目录\n"
9320-
9321-#: fc-cat/fc-cat.c:171
9322-#, c-format
9323-msgid " -r, --recurse recurse into subdirectories\n"
9324-msgstr " -r, --recurse 递归进入子目录\n"
9325-
9326-#: fc-cat/fc-cat.c:172
9327-#, c-format
9328-msgid " -v, --verbose be verbose\n"
9329-msgstr " -v, --verbose 输出详尽信息\n"
9330-
9331-#: fc-cat/fc-cat.c:173 fc-conflist/fc-conflist.c:87 fc-list/fc-list.c:92
9332-#: fc-match/fc-match.c:95 fc-pattern/fc-pattern.c:91 fc-query/fc-query.c:94
9333-#: fc-scan/fc-scan.c:92 fc-validate/fc-validate.c:95
9334-#, c-format
9335-msgid " -V, --version display font config version and exit\n"
9336-msgstr " -V, --version 显示 Fontconfig 版本并退出\n"
9337-
9338-#: fc-cat/fc-cat.c:174 fc-conflist/fc-conflist.c:88 fc-list/fc-list.c:93
9339-#: fc-match/fc-match.c:96 fc-pattern/fc-pattern.c:92 fc-query/fc-query.c:95
9340-#: fc-scan/fc-scan.c:93 fc-validate/fc-validate.c:96
9341-#, c-format
9342-msgid " -h, --help display this help and exit\n"
9343-msgstr " -h, --help 显示该帮助信息并退出\n"
9344-
9345-#: fc-cat/fc-cat.c:176
9346-#, c-format
9347-msgid " -r (recurse) recurse into subdirectories\n"
9348-msgstr " -r (recurse) 递归进入子目录\n"
9349-
9350-#: fc-cat/fc-cat.c:177
9351-#, c-format
9352-msgid " -v (verbose) be verbose\n"
9353-msgstr " -v (verbose) 输出详尽信息\n"
9354-
9355-#: fc-cat/fc-cat.c:314 fc-cat/fc-cat.c:323 fc-cat/fc-cat.c:335
9356-#: fc-cat/fc-cat.c:343
9357-#, c-format
9358-msgid "%s: malloc failure\n"
9359-msgstr "%s:无法分配内存 (malloc)\n"
9360-
9361-#: fc-cat/fc-cat.c:383
9362-#, c-format
9363-msgid ""
9364-"Directory: %s\n"
9365-"Cache: %s\n"
9366-"--------\n"
9367-msgstr ""
9368-"目录:%s\n"
9369-"缓存:%s\n"
9370-"--------\n"
9371-
9372-#: fc-conflist/fc-conflist.c:78
9373-#, c-format
9374-msgid "usage: %s [-Vh] [--version] [--help]\n"
9375-msgstr "用法:%s [-Vh] [--version] [--help]\n"
9376-
9377-#: fc-conflist/fc-conflist.c:81
9378-#, c-format
9379-msgid "usage: %s [-Vh]\n"
9380-msgstr "用法:%s [-Vh]\n"
9381-
9382-#: fc-conflist/fc-conflist.c:84
9383-#, c-format
9384-msgid "Show the ruleset files information on the system\n"
9385-msgstr "显示当前系统中的规则集文件\n"
9386-
9387-#: fc-conflist/fc-conflist.c:90 fc-validate/fc-validate.c:101
9388-#, c-format
9389-msgid " -V (version) display font config version and exit\n"
9390-msgstr " -V (版本) 显示 Fontconfig 版本并退出\n"
9391-
9392-#: fc-conflist/fc-conflist.c:91 fc-validate/fc-validate.c:102
9393-#, c-format
9394-msgid " -h (help) display this help and exit\n"
9395-msgstr " -h (帮助) 显示该帮助信息并退出\n"
9396-
9397-#: fc-list/fc-list.c:79
9398-#, c-format
9399-msgid ""
9400-"usage: %s [-vbqVh] [-f FORMAT] [--verbose] [--brief] [--format=FORMAT] [--"
9401-"quiet] [--version] [--help] [pattern] {element ...} \n"
9402-msgstr ""
9403-"用法:%s [-vbqVh] [-f <输出格式>] [--verbose] [--brief] [--format=<输出格式"
9404-">] [--quiet] [--version] [--help] [匹配模式] {元素 …} \n"
9405-
9406-#: fc-list/fc-list.c:82
9407-#, c-format
9408-msgid "usage: %s [-vbqVh] [-f FORMAT] [pattern] {element ...} \n"
9409-msgstr "用法:%s [-vbqVh] [-f <输出格式>] [匹配模式] {元素 …} \n"
9410-
9411-#: fc-list/fc-list.c:85
9412-#, c-format
9413-msgid "List fonts matching [pattern]\n"
9414-msgstr "列出符合 [匹配模式] 的字体\n"
9415-
9416-#: fc-list/fc-list.c:88 fc-match/fc-match.c:92
9417-#, c-format
9418-msgid " -v, --verbose display entire font pattern verbosely\n"
9419-msgstr " -v, --verbose 详尽显示整个字体匹配模式\n"
9420-
9421-#: fc-list/fc-list.c:89 fc-match/fc-match.c:93
9422-#, c-format
9423-msgid " -b, --brief display entire font pattern briefly\n"
9424-msgstr " -b, --brief 简略显示整个字体匹配模式\n"
9425-
9426-#: fc-list/fc-list.c:90 fc-match/fc-match.c:94 fc-pattern/fc-pattern.c:90
9427-#: fc-query/fc-query.c:93 fc-scan/fc-scan.c:91
9428-#, c-format
9429-msgid " -f, --format=FORMAT use the given output format\n"
9430-msgstr " -f, --format=<输出格式> 使用指定的输出格式\n"
9431-
9432-#: fc-list/fc-list.c:91
9433-#, c-format
9434-msgid ""
9435-" -q, --quiet suppress all normal output, exit 1 if no fonts "
9436-"matched\n"
9437-msgstr " -q, --quiet 静默所有正常输出,无匹配字体时返回退出代码 1\n"
9438-
9439-#: fc-list/fc-list.c:95 fc-match/fc-match.c:100
9440-#, c-format
9441-msgid " -v (verbose) display entire font pattern verbosely\n"
9442-msgstr " -v (verbose) 详尽显示整个字体匹配模式\n"
9443-
9444-#: fc-list/fc-list.c:96 fc-match/fc-match.c:101
9445-#, c-format
9446-msgid " -b (brief) display entire font pattern briefly\n"
9447-msgstr " -b (brief) 简略显示整个字体匹配模式\n"
9448-
9449-#: fc-list/fc-list.c:97 fc-match/fc-match.c:102 fc-pattern/fc-pattern.c:96
9450-#, c-format
9451-msgid " -f FORMAT (format) use the given output format\n"
9452-msgstr " -f <输出格式> (format) 使用指定的输出格式\n"
9453-
9454-#: fc-list/fc-list.c:98
9455-#, c-format
9456-msgid ""
9457-" -q, (quiet) suppress all normal output, exit 1 if no fonts "
9458-"matched\n"
9459-msgstr " -q, (quiet) 静默所有正常输出,无匹配字体时返回退出代码 1\n"
9460-
9461-#: fc-list/fc-list.c:159 fc-match/fc-match.c:166 fc-pattern/fc-pattern.c:150
9462-#, c-format
9463-msgid "Unable to parse the pattern\n"
9464-msgstr "无法解析匹配模式\n"
9465-
9466-#: fc-match/fc-match.c:81
9467-#, c-format
9468-msgid ""
9469-"usage: %s [-savbVh] [-f FORMAT] [--sort] [--all] [--verbose] [--brief] [--"
9470-"format=FORMAT] [--version] [--help] [pattern] {element...}\n"
9471-msgstr ""
9472-"用法:%s [-savbVh] [-f <输出格式>] [--sort] [--all] [--verbose] [--brief] "
9473-"[--format=<输出格式>] [--version] [--help] [匹配模式] {元素…}\n"
9474-
9475-#: fc-match/fc-match.c:84
9476-#, c-format
9477-msgid "usage: %s [-savVh] [-f FORMAT] [pattern] {element...}\n"
9478-msgstr "用法:%s [-savVh] [-f <输出格式>] [匹配模式] {元素…}\n"
9479-
9480-#: fc-match/fc-match.c:87 fc-pattern/fc-pattern.c:85
9481-#, c-format
9482-msgid "List best font matching [pattern]\n"
9483-msgstr "列出符合 [匹配模式] 的最佳字体\n"
9484-
9485-#: fc-match/fc-match.c:90
9486-#, c-format
9487-msgid " -s, --sort display sorted list of matches\n"
9488-msgstr " -s, --sort 显示已排序的匹配列表\n"
9489-
9490-#: fc-match/fc-match.c:91
9491-#, c-format
9492-msgid " -a, --all display unpruned sorted list of matches\n"
9493-msgstr " -a, --all 显示未修剪而已排序的匹配列表\n"
9494-
9495-#: fc-match/fc-match.c:98
9496-#, c-format
9497-msgid " -s, (sort) display sorted list of matches\n"
9498-msgstr " -s, (sort) 显示已排序的匹配列表\n"
9499-
9500-#: fc-match/fc-match.c:99
9501-#, c-format
9502-msgid " -a (all) display unpruned sorted list of matches\n"
9503-msgstr " -a (all) 显示未修剪而已排序的匹配列表\n"
9504-
9505-#: fc-match/fc-match.c:195
9506-#, c-format
9507-msgid "No fonts installed on the system\n"
9508-msgstr "系统中未安装任何字体\n"
9509-
9510-#: fc-pattern/fc-pattern.c:79
9511-#, c-format
9512-msgid ""
9513-"usage: %s [-cdVh] [-f FORMAT] [--config] [--default] [--verbose] [--"
9514-"format=FORMAT] [--version] [--help] [pattern] {element...}\n"
9515-msgstr ""
9516-"用法:%s [-cdVh] [-f <输出格式>] [--config] [--default] [--verbose] [--"
9517-"format=<输出格式>] [--version] [--help] [匹配模式] {元素…}\n"
9518-
9519-#: fc-pattern/fc-pattern.c:82
9520-#, c-format
9521-msgid "usage: %s [-cdVh] [-f FORMAT] [pattern] {element...}\n"
9522-msgstr "用法:%s [-cdVh] [-f <输出格式>] [匹配模式] {元素…}\n"
9523-
9524-#: fc-pattern/fc-pattern.c:88
9525-#, c-format
9526-msgid " -c, --config perform config substitution on pattern\n"
9527-msgstr " -c, --config 根据匹配模式进行配置替换\n"
9528-
9529-#: fc-pattern/fc-pattern.c:89
9530-#, c-format
9531-msgid " -d, --default perform default substitution on pattern\n"
9532-msgstr " -d, --default 根据匹配模式进行默认值替换\n"
9533-
9534-#: fc-pattern/fc-pattern.c:94
9535-#, c-format
9536-msgid " -c, (config) perform config substitution on pattern\n"
9537-msgstr " -c, (config) 根据匹配模式进行配置替换\n"
9538-
9539-#: fc-pattern/fc-pattern.c:95
9540-#, c-format
9541-msgid " -d, (default) perform default substitution on pattern\n"
9542-msgstr " -d, (default) 根据匹配模式进行默认值替换\n"
9543-
9544-#: fc-query/fc-query.c:82
9545-#, c-format
9546-msgid ""
9547-"usage: %s [-bVh] [-i index] [-f FORMAT] [--index index] [--brief] [--format "
9548-"FORMAT] [--version] [--help] font-file...\n"
9549-msgstr ""
9550-"用法:%s [-bVh] [-i index] [-f <输出格式>] [--index index] [--brief] [--"
9551-"format <输出格式>] [--version] [--help] 字体文件…\n"
9552-
9553-#: fc-query/fc-query.c:85
9554-#, c-format
9555-msgid "usage: %s [-bVh] [-i index] [-f FORMAT] font-file...\n"
9556-msgstr "用法:%s [-bVh] [-i index] [-f <输出格式>] 字体文件…\n"
9557-
9558-#: fc-query/fc-query.c:88
9559-#, c-format
9560-msgid "Query font files and print resulting pattern(s)\n"
9561-msgstr ""
9562-"查询字体文件并输出匹配模式\n"
9563-"\n"
9564-
9565-#: fc-query/fc-query.c:91 fc-validate/fc-validate.c:92
9566-#, c-format
9567-msgid " -i, --index INDEX display the INDEX face of each font file only\n"
9568-msgstr " -i, --index <编号> 仅显示每个字体文件的 <编号> 样式\n"
9569-
9570-#: fc-query/fc-query.c:92 fc-scan/fc-scan.c:90
9571-#, c-format
9572-msgid " -b, --brief display font pattern briefly\n"
9573-msgstr " -b, --brief 简略显示字体匹配模式\n"
9574-
9575-#: fc-query/fc-query.c:97
9576-#, c-format
9577-msgid ""
9578-" -i INDEX (index) display the INDEX face of each font file only\n"
9579-msgstr " -i <编号> (index) 仅显示每个字体文件的 <编号> 样式\n"
9580-
9581-#: fc-query/fc-query.c:98 fc-scan/fc-scan.c:95
9582-#, c-format
9583-msgid " -b (brief) display font pattern briefly\n"
9584-msgstr " -b (brief) 简略显示字体匹配模式\n"
9585-
9586-#: fc-query/fc-query.c:99 fc-scan/fc-scan.c:96
9587-#, c-format
9588-msgid " -f FORMAT (format) use the given output format\n"
9589-msgstr " -f <输出格式> (format) 使用指定的输出格式\n"
9590-
9591-#: fc-query/fc-query.c:100 fc-scan/fc-scan.c:97
9592-#, c-format
9593-msgid " -V (version) display font config version and exit\n"
9594-msgstr " -V (version) 显示 Fontconfig 版本并退出\n"
9595-
9596-#: fc-query/fc-query.c:101 fc-scan/fc-scan.c:98
9597-#, c-format
9598-msgid " -h (help) display this help and exit\n"
9599-msgstr " -h (help) 显示此帮助信息并退出\n"
9600-
9601-#: fc-query/fc-query.c:158
9602-#, c-format
9603-msgid "Can't query face %u of font file %s\n"
9604-msgstr "无法查询字体文件 %2$s 的样式 %1$u\n"
9605-
9606-#: fc-scan/fc-scan.c:81
9607-#, c-format
9608-msgid ""
9609-"usage: %s [-bVh] [-f FORMAT] [--brief] [--format FORMAT] [--version] [--"
9610-"help] font-file...\n"
9611-msgstr ""
9612-"用法:%s [-bVh] [-f <输出格式>] [--brief] [--format <输出格式>] [--version] "
9613-"[--help] 字体文件…\n"
9614-
9615-#: fc-scan/fc-scan.c:84
9616-#, c-format
9617-msgid "usage: %s [-bVh] [-f FORMAT] font-file...\n"
9618-msgstr "用法:%s [-bVh] [-f <输出格式>] 字体文件…\n"
9619-
9620-#: fc-scan/fc-scan.c:87
9621-#, c-format
9622-msgid "Scan font files and directories, and print resulting pattern(s)\n"
9623-msgstr "扫描字体文件和目录并输出匹配模式\n"
9624-
9625-#: fc-validate/fc-validate.c:83
9626-#, c-format
9627-msgid ""
9628-"usage: %s [-Vhv] [-i index] [-l LANG] [--index index] [--lang LANG] [--"
9629-"verbose] [--version] [--help] font-file...\n"
9630-msgstr ""
9631-"用法:%s [-Vhv] [-i index] [-l LANG] [--index index] [--lang LANG] [--"
9632-"verbose] [--version] [--help] 字体文件…\n"
9633-
9634-#: fc-validate/fc-validate.c:86
9635-#, c-format
9636-msgid "usage: %s [-Vhv] [-i index] [-l LANG] font-file...\n"
9637-msgstr "用法:%s [-Vhv] [-i index] [-l LANG] 字体文件…\n"
9638-
9639-#: fc-validate/fc-validate.c:89
9640-#, c-format
9641-msgid "Validate font files and print result\n"
9642-msgstr "验证字体文件并输出结果\n"
9643-
9644-#: fc-validate/fc-validate.c:93
9645-#, c-format
9646-msgid " -l, --lang=LANG set LANG instead of current locale\n"
9647-msgstr " -l, --lang=LANG 使用 LANG 值替换当前区域设置\n"
9648-
9649-#: fc-validate/fc-validate.c:94
9650-#, c-format
9651-msgid " -v, --verbose show more detailed information\n"
9652-msgstr " -v, --verbose 显示详尽信息\n"
9653-
9654-#: fc-validate/fc-validate.c:98
9655-#, c-format
9656-msgid ""
9657-" -i INDEX (index) display the INDEX face of each font file only\n"
9658-msgstr " -i <编号> (index) 仅显示每个字体的 <编号> 字形\n"
9659-
9660-#: fc-validate/fc-validate.c:99
9661-#, c-format
9662-msgid " -l LANG (lang) set LANG instead of current locale\n"
9663-msgstr " -l LANG (lang) 使用 LANG 值替换当前区域设置\n"
9664-
9665-#: fc-validate/fc-validate.c:100
9666-#, c-format
9667-msgid " -v (verbose) show more detailed information\n"
9668-msgstr " -v (详尽) 显示详尽信息\n"
9669-
9670-#: fc-validate/fc-validate.c:167
9671-#, c-format
9672-msgid "Can't initalize FreeType library\n"
9673-msgstr "无法初始化 FreeType 库\n"
9674-
9675-#: fc-validate/fc-validate.c:185
9676-#, c-format
9677-msgid "Unable to open %s\n"
9678-msgstr "无法打开 %s\n"
9679-
9680-#: fc-validate/fc-validate.c:200
9681-#, c-format
9682-msgid "%s:%d Missing %d glyph(s) to satisfy the coverage for %s language\n"
9683-msgstr "%s:%d 尚需 %d 个字形以满足 %s 语言的覆盖需求\n"
9684-
9685-#: fc-validate/fc-validate.c:230
9686-#, c-format
9687-msgid "%s:%d Satisfy the coverage for %s language\n"
9688-msgstr "%s:%d 完全满足 %s 语言的覆盖需求\n"
9689-
9690-#: src/fccfg.c:2654
9691-msgid "No description"
9692-msgstr "无描述"
9693diff --git a/src/Makefile.am b/src/Makefile.am
9694deleted file mode 100644
9695index ed685793..00000000
9696--- a/src/Makefile.am
9697+++ /dev/null
9698@@ -1,227 +0,0 @@
9699-#
9700-# fontconfig/src/Makefile.am
9701-#
9702-# Copyright © 2003 Keith Packard
9703-#
9704-# Permission to use, copy, modify, distribute, and sell this software and its
9705-# documentation for any purpose is hereby granted without fee, provided that
9706-# the above copyright notice appear in all copies and that both that
9707-# copyright notice and this permission notice appear in supporting
9708-# documentation, and that the name of the author(s) not be used in
9709-# advertising or publicity pertaining to distribution of the software without
9710-# specific, written prior permission. The authors make no
9711-# representations about the suitability of this software for any purpose. It
9712-# is provided "as is" without express or implied warranty.
9713-#
9714-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
9715-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
9716-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
9717-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
9718-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
9719-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
9720-# PERFORMANCE OF THIS SOFTWARE.
9721-
9722-EXTRA_DIST =
9723-
9724-if OS_WIN32
9725-
9726-export_symbols = -export-symbols fontconfig.def
9727-
9728-fontconfig_def_dependency = fontconfig.def
9729-
9730-# gcc import library install/uninstall
9731-
9732-install-libtool-import-lib: libfontconfig.la
9733- $(MKDIR_P) $(DESTDIR)$(libdir)
9734- $(INSTALL) .libs/libfontconfig.dll.a $(DESTDIR)$(libdir)/libfontconfig.dll.a
9735- $(INSTALL) fontconfig.def $(DESTDIR)$(libdir)/fontconfig.def
9736-
9737-uninstall-libtool-import-lib:
9738- $(RM) $(DESTDIR)$(libdir)/libfontconfig.dll.a $(DESTDIR)$(libdir)/fontconfig.def
9739-
9740-else
9741-
9742-install-libtool-import-lib:
9743-uninstall-libtool-import-lib:
9744-
9745-fontconfig_def_dependency =
9746-
9747-endif
9748-
9749-if MS_LIB_AVAILABLE
9750-
9751-# Microsoft import library install/uninstall
9752-
9753-noinst_DATA = fontconfig.lib
9754-
9755-fontconfig.lib : libfontconfig.la
9756- lib -name:libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll -def:fontconfig.def -out:$@
9757-
9758-install-ms-import-lib:
9759- $(INSTALL) fontconfig.lib $(DESTDIR)$(libdir)
9760-
9761-uninstall-ms-import-lib:
9762- $(RM) $(DESTDIR)$(libdir)/fontconfig.lib
9763-
9764-else
9765-
9766-install-ms-import-lib:
9767-uninstall-ms-import-lib:
9768-
9769-endif
9770-
9771-AM_CPPFLAGS = \
9772- -I$(top_builddir) \
9773- -I$(top_srcdir) \
9774- -I$(top_srcdir)/src \
9775- -I$(top_builddir)/fc-lang \
9776- -I$(top_builddir)/fc-const \
9777- $(FREETYPE_CFLAGS) \
9778- $(ICONV_CFLAGS) \
9779- $(LIBXML2_CFLAGS) \
9780- $(EXPAT_CFLAGS) \
9781- $(WARN_CFLAGS) \
9782- -DFC_CACHEDIR='"$(FC_CACHEDIR)"' \
9783- -DCONFIGDIR='"$(CONFIGDIR)"' \
9784- -DFONTCONFIG_PATH='"$(BASECONFIGDIR)"' \
9785- -DFC_TEMPLATEDIR='"$(TEMPLATEDIR)"'
9786-LDADD = $(LIBINTL)
9787-
9788-EXTRA_DIST += makealias
9789-
9790-noinst_HEADERS=fcint.h fcftint.h fcdeprecate.h fcfoundry.h fcmd5.h fcstdint.h
9791-
9792-ALIAS_FILES = fcalias.h fcaliastail.h fcftalias.h fcftaliastail.h
9793-
9794-BUILT_SOURCES = $(ALIAS_FILES) \
9795- ../fc-case/fccase.h \
9796- ../fc-lang/fclang.h \
9797- stamp-fcstdint \
9798- $(builddir)/fcobjshash.h \
9799- fcobjshash.gperf
9800-
9801-noinst_PROGRAMS = fcarch
9802-
9803-../fc-case/fccase.h:
9804- cd ../fc-case && $(MAKE) $(AM_MAKEFLAGS) fccase.h
9805-../fc-lang/fclang.h:
9806- cd ../fc-lang && $(MAKE) $(AM_MAKEFLAGS) fclang.h
9807-
9808-fcobjshash.gperf: Makefile stamp-fcobjshash.gperf
9809- -@$(RM) stamp-fcobjshash.gperf
9810- @$(MAKE) stamp-fcobjshash.gperf
9811- @touch -r stamp-fcobjshash.gperf $@
9812-stamp-fcobjshash.gperf: fcobjshash.gperf.h fcobjs.h
9813- $(AM_V_GEN) $(CPP) -I$(top_builddir) -I$(top_srcdir) $(CPPFLAGS) $< | \
9814- $(SED) 's/^ *//;s/ *, */,/' | \
9815- awk ' \
9816- /CUT_OUT_BEGIN/ { no_write=1; next; }; \
9817- /CUT_OUT_END/ { no_write=0; next; }; \
9818- /^$$/||/^#/ { next; }; \
9819- { if (!no_write) print; next; }; \
9820- ' - > $@.tmp && \
9821- mv -f $@.tmp fcobjshash.gperf && touch $@ || ( $(RM) $@.tmp && false )
9822-
9823-$(builddir)/fcobjshash.h: Makefile fcobjshash.gperf
9824- $(AM_V_GEN) $(GPERF) --pic -m 100 fcobjshash.gperf > $@.tmp && \
9825- mv -f $@.tmp $@ || ( $(RM) $@.tmp && false )
9826-
9827-EXTRA_DIST += \
9828- fcobjshash.gperf.h
9829-
9830-libfontconfig_la_SOURCES = \
9831- fcarch.h \
9832- fcatomic.c \
9833- fcatomic.h \
9834- fccache.c \
9835- fccfg.c \
9836- fccharset.c \
9837- fccompat.c \
9838- fcdbg.c \
9839- fcdefault.c \
9840- fcdir.c \
9841- fcformat.c \
9842- fcfreetype.c \
9843- fcfs.c \
9844- fcptrlist.c \
9845- fchash.c \
9846- fcinit.c \
9847- fclang.c \
9848- fclist.c \
9849- fcmatch.c \
9850- fcmatrix.c \
9851- fcmutex.h \
9852- fcname.c \
9853- fcobjs.c \
9854- fcobjs.h \
9855- fcpat.c \
9856- fcrange.c \
9857- fcserialize.c \
9858- fcstat.c \
9859- fcstr.c \
9860- fcweight.c \
9861- fcwindows.h \
9862- fcxml.c \
9863- ftglue.h \
9864- ftglue.c
9865-
9866-lib_LTLIBRARIES = libfontconfig.la
9867-
9868-libfontconfig_la_LDFLAGS = \
9869- -version-info @LIBT_VERSION_INFO@ -no-undefined $(export_symbols)
9870-
9871-libfontconfig_la_LIBADD = $(ICONV_LIBS) $(FREETYPE_LIBS) $(LIBXML2_LIBS) $(EXPAT_LIBS) $(LTLIBINTL)
9872-
9873-libfontconfig_la_DEPENDENCIES = $(fontconfig_def_dependency)
9874-
9875-if ENABLE_SHARED
9876-install-data-local: install-ms-import-lib install-libtool-import-lib
9877-
9878-uninstall-local: uninstall-ms-import-lib uninstall-libtool-import-lib
9879-endif
9880-
9881-PUBLIC_FILES = \
9882- $(top_builddir)/fontconfig/fontconfig.h \
9883- $(top_srcdir)/src/fcdeprecate.h \
9884- $(top_srcdir)/fontconfig/fcprivate.h
9885-
9886-PUBLIC_FT_FILES = \
9887- $(top_srcdir)/fontconfig/fcfreetype.h
9888-
9889-fcaliastail.h: fcalias.h
9890-
9891-fcalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FILES)
9892- $(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcalias.h fcaliastail.h $(PUBLIC_FILES)
9893-
9894-fcftaliastail.h: fcftalias.h
9895-
9896-fcftalias.h: $(top_srcdir)/src/makealias $(PUBLIC_FT_FILES)
9897- $(AM_V_GEN) sh $(top_srcdir)/src/makealias "$(top_srcdir)/src" fcftalias.h fcftaliastail.h $(PUBLIC_FT_FILES)
9898-
9899-stamp-fcstdint: $(top_builddir)/config.status
9900- $(AM_V_GEN) cd $(top_builddir) && \
9901- $(SHELL) ./config.status src/fcstdint.h
9902- @touch $@
9903-
9904-CLEANFILES = \
9905- $(ALIAS_FILES) \
9906- fontconfig.def \
9907- $(builddir)/fcobjshash.h
9908-
9909-DISTCLEANFILES = \
9910- stamp-fcstdint \
9911- fcstdint.h \
9912- stamp-fcobjshash.gperf \
9913- fcobjshash.gperf
9914-
9915-fontconfig.def: $(PUBLIC_FILES) $(PUBLIC_FT_FILES)
9916- echo Generating $@
9917- (echo EXPORTS; \
9918- (cat $(PUBLIC_FILES) $(PUBLIC_FT_FILES) || echo 'FcERROR ()' ) | \
9919- $(GREP) '^Fc[^ ]* *(' | $(SED) -e 's/ *(.*$$//' -e 's/^/ /' | \
9920- sort; \
9921- echo LIBRARY libfontconfig-@LIBT_CURRENT_MINUS_AGE@.dll; \
9922- echo VERSION @LIBT_CURRENT@.@LIBT_REVISION@) >$@
9923- @ ! $(GREP) -q FcERROR $@ || ($(RM) $@; false)
9924-
9925--include $(top_srcdir)/git.mk
9926diff --git a/src/meson.build b/src/meson.build
9927deleted file mode 100644
9928index 0f91d4bc..00000000
9929--- a/src/meson.build
9930+++ /dev/null
9931@@ -1,79 +0,0 @@
9932-
9933-win_export_args = []
9934-# Define FcPublic appropriately for exports on windows
9935-if host_machine.system() == 'windows' and get_option('default_library') != 'static'
9936- win_export_args += '-DFcPublic=__declspec(dllexport)'
9937- win_export_args += '-DDLL_EXPORT'
9938-endif
9939-
9940-# Factor our pattern manipulation code into its own library
9941-# to break the depedency cycle:
9942-# FontConfig pattern handling - Fontations code - FontConfig.
9943-pattern_sources = [ 'fcpat.c', fcstdint_h, fclang_h, alias_headers, ft_alias_headers ]
9944-pattern_lib = static_library('patternlib_internal',
9945- pattern_sources,
9946- include_directories: incbase,
9947- dependencies: [deps],
9948- c_args: win_export_args
9949- )
9950-
9951-fc_sources = files([
9952- 'fcatomic.c',
9953- 'fccache.c',
9954- 'fccfg.c',
9955- 'fccharset.c',
9956- 'fcconffile.c',
9957- 'fccompat.c',
9958- 'fcdbg.c',
9959- 'fcdefault.c',
9960- 'fcdir.c',
9961- 'fcformat.c',
9962- 'fcfreetype.c',
9963- 'fcfs.c',
9964- 'fcptrlist.c',
9965- 'fchash.c',
9966- 'fcinit.c',
9967- 'fclang.c',
9968- 'fclist.c',
9969- 'fcmatch.c',
9970- 'fcmatrix.c',
9971- 'fcname.c',
9972- 'fcobjs.c',
9973- 'fcrange.c',
9974- 'fcserialize.c',
9975- 'fcstat.c',
9976- 'fcstr.c',
9977- 'fcweight.c',
9978- 'fcxml.c',
9979- 'ftglue.c',
9980-])
9981-
9982-
9983-
9984-fcobjshash_h = cc.preprocess('fcobjshash.gperf.h', include_directories: incbase)
9985-fcobjshash_gperf = custom_target(
9986- input: fcobjshash_h,
9987- output: 'fcobjshash.gperf',
9988- command: ['cutout.py', '@INPUT@', '@OUTPUT@'],
9989- build_by_default: true,
9990-)
9991-
9992-fcobjshash_h = custom_target('fcobjshash.h',
9993- input: fcobjshash_gperf,
9994- output: 'fcobjshash.h',
9995- command: [gperf, '--pic', '-m', '100', '@INPUT@', '--output-file', '@OUTPUT@']
9996-)
9997-
9998-lib_fontconfig_sources = [fc_sources, alias_headers, ft_alias_headers, fccase_h, fcconst_h, fclang_h, fcobjshash_h, fcstdint_h]
9999-lib_fontconfig_kwargs = {
10000- 'include_directories': incbase,
10001- 'dependencies': [deps, math_dep],
10002- 'link_with': [pattern_lib],
10003-}
10004-
10005-fcarch = executable('fcarch', ['fcarch.c', 'fcarch.h', fcstdint_h, fclang_h],
10006- include_directories: [incbase, incsrc],
10007- c_args: c_args,
10008- dependencies: [libintl_dep],
10009- install: false,
10010- install_tag: 'runtime')
10011diff --git a/subprojects/.gitignore b/subprojects/.gitignore
10012deleted file mode 100644
10013index 00191bda..00000000
10014--- a/subprojects/.gitignore
10015+++ /dev/null
10016@@ -1,6 +0,0 @@
10017-/expat-*
10018-/freetype2
10019-/gperf
10020-/zlib-*
10021-/libpng-*
10022-/packagecache
10023diff --git a/subprojects/expat.wrap b/subprojects/expat.wrap
10024deleted file mode 100644
10025index d16ba7ab..00000000
10026--- a/subprojects/expat.wrap
10027+++ /dev/null
10028@@ -1,13 +0,0 @@
10029-[wrap-file]
10030-directory = expat-2.7.3
10031-source_url = https://github.com/libexpat/libexpat/releases/download/R_2_7_3/expat-2.7.3.tar.xz
10032-source_filename = expat-2.7.3.tar.bz2
10033-source_hash = 71df8f40706a7bb0a80a5367079ea75d91da4f8c65c58ec59bcdfbf7decdab9f
10034-source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/expat_2.7.3-1/expat-2.7.3.tar.bz2
10035-patch_filename = expat_2.7.3-1_patch.zip
10036-patch_url = https://wrapdb.mesonbuild.com/v2/expat_2.7.3-1/get_patch
10037-patch_hash = e870eb4b2e3c142ce1d18ed24309aa40e07c6c911a4625fa1c6fc493ba18153a
10038-wrapdb_version = 2.7.3-1
10039-
10040-[provide]
10041-expat = expat_dep
10042diff --git a/subprojects/freetype2.wrap b/subprojects/freetype2.wrap
10043deleted file mode 100644
10044index d86a75ee..00000000
10045--- a/subprojects/freetype2.wrap
10046+++ /dev/null
10047@@ -1,5 +0,0 @@
10048-[wrap-git]
10049-directory=freetype2
10050-url=https://gitlab.freedesktop.org/freetype/freetype.git
10051-push-url=git@gitlab.freedesktop.org:freetype/freetype.git
10052-revision=master
10053diff --git a/subprojects/gperf.wrap b/subprojects/gperf.wrap
10054deleted file mode 100644
10055index d8014e06..00000000
10056--- a/subprojects/gperf.wrap
10057+++ /dev/null
10058@@ -1,8 +0,0 @@
10059-[wrap-git]
10060-directory=gperf
10061-url=https://gitlab.freedesktop.org/tpm/gperf.git
10062-push-url=https://gitlab.freedesktop.org/tpm/gperf.git
10063-revision=meson
10064-
10065-[provide]
10066-program_names=gperf
10067diff --git a/subprojects/libintl/meson.build b/subprojects/libintl/meson.build
10068deleted file mode 100644
10069index 3d92589f..00000000
10070--- a/subprojects/libintl/meson.build
10071+++ /dev/null
10072@@ -1,15 +0,0 @@
10073-project('libintl', 'c')
10074-
10075-libintl_cc = meson.get_compiler('c')
10076-libintl_inc = include_directories('/usr/local/include')
10077-
10078-if libintl_cc.has_header('libintl.h', include_directories: libintl_inc)
10079- dep = libintl_cc.find_library('intl', dirs: ['/usr/local/lib'], required: false)
10080- if dep.found()
10081- libintl_dep = declare_dependency(dependencies: dep, include_directories: libintl_inc)
10082- else
10083- libintl_dep = dependency('', required: false)
10084- endif
10085-else
10086- libintl_dep = dependency('', required: false)
10087-endif
10088diff --git a/subprojects/libpng.wrap b/subprojects/libpng.wrap
10089deleted file mode 100644
10090index dc64f963..00000000
10091--- a/subprojects/libpng.wrap
10092+++ /dev/null
10093@@ -1,13 +0,0 @@
10094-[wrap-file]
10095-directory = libpng-1.6.50
10096-source_url = https://github.com/pnggroup/libpng/archive/v1.6.50.tar.gz
10097-source_filename = libpng-1.6.50.tar.gz
10098-source_hash = 71158e53cfdf2877bc99bcab33641d78df3f48e6e0daad030afe9cb8c031aa46
10099-patch_filename = libpng_1.6.50-2_patch.zip
10100-patch_url = https://wrapdb.mesonbuild.com/v2/libpng_1.6.50-2/get_patch
10101-patch_hash = a9c9362bb8cbb422c864807a174977dec3868cdff8ca380e27bab6ee1caa22ea
10102-source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/libpng_1.6.50-2/libpng-1.6.50.tar.gz
10103-wrapdb_version = 1.6.50-2
10104-
10105-[provide]
10106-libpng = libpng_dep
10107diff --git a/subprojects/libxml2.wrap b/subprojects/libxml2.wrap
10108deleted file mode 100644
10109index b4cbc42f..00000000
10110--- a/subprojects/libxml2.wrap
10111+++ /dev/null
10112@@ -1,13 +0,0 @@
10113-[wrap-file]
10114-directory = libxml2-2.12.6
10115-source_url = https://download.gnome.org/sources/libxml2/2.12/libxml2-2.12.6.tar.xz
10116-source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/libxml2_2.12.6-1/libxml2-2.12.6.tar.xz
10117-source_filename = libxml2-2.12.6.tar.xz
10118-source_hash = 889c593a881a3db5fdd96cc9318c87df34eb648edfc458272ad46fd607353fbb
10119-patch_filename = libxml2_2.12.6-1_patch.zip
10120-patch_url = https://wrapdb.mesonbuild.com/v2/libxml2_2.12.6-1/get_patch
10121-patch_hash = 777be7ffdc4167e4d0b3f405e13492664cbdef2e6cf6f6a88cc55ec80112614c
10122-wrapdb_version = 2.12.6-1
10123-
10124-[provide]
10125-libxml-2.0 = libxml2_dep
10126diff --git a/subprojects/zlib.wrap b/subprojects/zlib.wrap
10127deleted file mode 100644
10128index e2f29581..00000000
10129--- a/subprojects/zlib.wrap
10130+++ /dev/null
10131@@ -1,13 +0,0 @@
10132-[wrap-file]
10133-directory = zlib-1.3.1
10134-source_url = http://zlib.net/fossils/zlib-1.3.1.tar.gz
10135-source_fallback_url = https://github.com/mesonbuild/wrapdb/releases/download/zlib_1.3.1-2/zlib-1.3.1.tar.gz
10136-source_filename = zlib-1.3.1.tar.gz
10137-source_hash = 9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23
10138-patch_filename = zlib_1.3.1-2_patch.zip
10139-patch_url = https://wrapdb.mesonbuild.com/v2/zlib_1.3.1-2/get_patch
10140-patch_hash = 9cacea02e1119964bc51e92dd2359b14df723a36cfe0df1c78d55d9c9f2763ae
10141-wrapdb_version = 1.3.1-2
10142-
10143-[provide]
10144-zlib = zlib_dep
10145diff --git a/test/Makefile.am b/test/Makefile.am
10146deleted file mode 100644
10147index f6dcf2d3..00000000
10148--- a/test/Makefile.am
10149+++ /dev/null
10150@@ -1,195 +0,0 @@
10151-#
10152-# test/Makefile.am
10153-#
10154-# Copyright © 2003 Keith Packard
10155-#
10156-# Permission to use, copy, modify, distribute, and sell this software and its
10157-# documentation for any purpose is hereby granted without fee, provided that
10158-# the above copyright notice appear in all copies and that both that
10159-# copyright notice and this permission notice appear in supporting
10160-# documentation, and that the name of the author(s) not be used in
10161-# advertising or publicity pertaining to distribution of the software without
10162-# specific, written prior permission. The authors make no
10163-# representations about the suitability of this software for any purpose. It
10164-# is provided "as is" without express or implied warranty.
10165-#
10166-# THE AUTHOR(S) DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
10167-# INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
10168-# EVENT SHALL THE AUTHOR(S) BE LIABLE FOR ANY SPECIAL, INDIRECT OR
10169-# CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
10170-# DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
10171-# TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
10172-# PERFORMANCE OF THIS SOFTWARE.
10173-
10174-TEST_EXTENSIONS = \
10175- .sh \
10176- $(NULL)
10177-
10178-AM_TESTS_ENVIRONMENT= \
10179- src=${srcdir}; export src; \
10180- EXEEXT=${EXEEXT}; export EXEEXT; \
10181- LOG_COMPILER=${LOG_COMPILER} ; export LOG_COMPILER; \
10182- $(NULL)
10183-
10184-BUILT_SOURCES = $(builddir)/out.expected
10185-
10186-SH_LOG_COMPILER = sh
10187-if OS_WIN32
10188-LOG_COMPILER = ${srcdir}/wrapper-script.sh
10189-endif
10190-TESTS=
10191-
10192-TESTDATA = \
10193- 4x6.pcf \
10194- 8x16.pcf \
10195- fonts.conf.in \
10196- test-45-generic.json \
10197- test-60-generic.json \
10198- test-70-no-bitmaps-and-emoji.json \
10199- test-70-no-bitmaps-except-emoji.json \
10200- test-90-synthetic.json \
10201- test-filter.json \
10202- test-issue-286.json \
10203- test-style-match.json \
10204- $(NULL)
10205-
10206-if FREETYPE_PCF_LONG_FAMILY_NAMES
10207-$(builddir)/out.expected: $(srcdir)/out.expected-long-family-names Makefile
10208- cp $(srcdir)/out.expected-long-family-names $(builddir)/out.expected
10209-else
10210-$(builddir)/out.expected: $(srcdir)/out.expected-no-long-family-names Makefile
10211- cp $(srcdir)/out.expected-no-long-family-names $(builddir)/out.expected
10212-endif
10213-
10214-AM_CPPFLAGS = -I$(top_srcdir) -I$(top_builddir)
10215-
10216-check_PROGRAMS =
10217-if HAVE_PTHREAD
10218-check_PROGRAMS += test-pthread
10219-test_pthread_LDADD = $(top_builddir)/src/libfontconfig.la
10220-# We don't enable this test by default because it will require config and fonts
10221-# to meaningfully test anything, and we are not installed yet.
10222-#TESTS += test-pthread
10223-
10224-check_PROGRAMS += test-crbug1004254
10225-test_crbug1004254_LDADD = $(top_builddir)/src/libfontconfig.la
10226-# Disabling this for the same reason as above but trying to run in run-test.sh.
10227-#TESTS += test-crbug1004254
10228-endif
10229-check_PROGRAMS += test-bz89617
10230-test_bz89617_CFLAGS = \
10231- -DSRCDIR="\"$(abs_srcdir)\""
10232-
10233-test_bz89617_LDADD = $(top_builddir)/src/libfontconfig.la
10234-TESTS += test-bz89617
10235-
10236-check_PROGRAMS += test-bz131804
10237-test_bz131804_LDADD = $(top_builddir)/src/libfontconfig.la
10238-TESTS += test-bz131804
10239-
10240-noinst_PROGRAMS = $(check_PROGRAMS)
10241-
10242-if !OS_WIN32
10243-check_PROGRAMS += test-migration
10244-test_migration_LDADD = $(top_builddir)/src/libfontconfig.la
10245-endif
10246-
10247-check_PROGRAMS += test-bz96676
10248-test_bz96676_LDADD = $(top_builddir)/src/libfontconfig.la
10249-TESTS += test-bz96676
10250-
10251-check_PROGRAMS += test-name-parse
10252-test_name_parse_LDADD = $(top_builddir)/src/libfontconfig.la
10253-TESTS += test-name-parse
10254-
10255-if ENABLE_JSONC
10256-check_PROGRAMS += test-conf
10257-test_conf_CFLAGS = $(JSONC_CFLAGS) -DSRCDIR="\"$(abs_srcdir)\""
10258-test_conf_LDADD = $(top_builddir)/src/libfontconfig.la $(JSONC_LIBS)
10259-endif
10260-
10261-check_PROGRAMS += test-bz106618
10262-test_bz106618_LDADD = $(top_builddir)/src/libfontconfig.la
10263-
10264-if !OS_WIN32
10265-check_PROGRAMS += test-bz106632
10266-test_bz106632_CFLAGS = \
10267- -I$(top_builddir) \
10268- -I$(top_builddir)/src \
10269- -I$(top_srcdir) \
10270- -I$(top_srcdir)/src \
10271- -DFONTFILE='"$(abs_top_srcdir)/test/4x6.pcf"' \
10272- -DHAVE_CONFIG_H \
10273- $(NULL)
10274-test_bz106632_LDADD = $(top_builddir)/src/libfontconfig.la
10275-TESTS += test-bz106632
10276-endif
10277-
10278-check_PROGRAMS += test-issue107
10279-test_issue107_LDADD = \
10280- $(top_builddir)/src/libfontconfig.la \
10281- $(NULL)
10282-TESTS += test-issue107
10283-
10284-if !ENABLE_SHARED
10285-if !OS_WIN32
10286-check_PROGRAMS += test-issue110
10287-test_issue110_CFLAGS = \
10288- -I$(top_builddir) \
10289- -I$(top_builddir)/src \
10290- -I$(top_srcdir) \
10291- -I$(top_srcdir)/src \
10292- -DHAVE_CONFIG_H \
10293- -DFONTCONFIG_PATH='"$(BASECONFIGDIR)"' \
10294- $(NULL)
10295-test_issue110_LDADD = \
10296- $(top_builddir)/src/libfontconfig.la \
10297- $(NULL)
10298-TESTS += test-issue110
10299-
10300-check_PROGRAMS += test-d1f48f11
10301-test_d1f48f11_CFLAGS = \
10302- -I$(top_builddir) \
10303- -I$(top_builddir)/src \
10304- -I$(top_srcdir) \
10305- -I$(top_srcdir)/src \
10306- -DHAVE_CONFIG_H \
10307- -DFONTCONFIG_PATH='"$(BASECONFIGDIR)"' \
10308- $(NULL)
10309-test_d1f48f11_LDADD = \
10310- $(top_builddir)/src/libfontconfig.la \
10311- $(NULL)
10312-TESTS += test-d1f48f11
10313-endif
10314-endif
10315-
10316-check_PROGRAMS += test-bz1744377
10317-test_bz1744377_LDADD = $(top_builddir)/src/libfontconfig.la
10318-TESTS += test-bz1744377
10319-
10320-check_PROGRAMS += test-issue180
10321-test_issue180_LDADD = $(top_builddir)/src/libfontconfig.la
10322-TESTS += test-issue180
10323-
10324-check_PROGRAMS += test-family-matching
10325-test_family_matching_LDADD = $(top_builddir)/src/libfontconfig.la
10326-TESTS += test-family-matching
10327-
10328-check_PROGRAMS += test-filter
10329-test_filter_LDADD = $(top_builddir)/src/libfontconfig.la
10330-
10331-EXTRA_DIST=wrapper-script.sh $(TESTDATA) out.expected-long-family-names out.expected-no-long-family-names
10332-
10333-CLEANFILES = \
10334- fonts.conf \
10335- out \
10336- out1 \
10337- out2 \
10338- out.expected \
10339- run*.log \
10340- run*.trs \
10341- test*.log \
10342- test*.trs \
10343- $(NULL)
10344-
10345--include $(top_srcdir)/git.mk
10346diff --git a/test/meson.build b/test/meson.build
10347deleted file mode 100644
10348index 7a5b8849..00000000
10349--- a/test/meson.build
10350+++ /dev/null
10351@@ -1,123 +0,0 @@
10352-fetch_test_fonts = custom_target(
10353- 'fetch_test_fonts',
10354- output: 'testfonts',
10355- command: [
10356- python3,
10357- join_paths(meson.project_source_root(), 'build-aux', 'fetch-testfonts.py'),
10358- '--target-dir',
10359- '@BUILD_ROOT@/testfonts',
10360- '--try-symlink',
10361- ],
10362- build_by_default: false,
10363- build_always_stale: true,
10364-)
10365-
10366-tests = [
10367- ['test-bz89617.c', {'c_args': ['-DSRCDIR="@0@"'.format(meson.current_source_dir())]}],
10368- ['test-bz131804.c'],
10369- ['test-bz96676.c'],
10370- ['test-name-parse.c'],
10371- ['test-bz106618.c'],
10372- ['test-bz1744377.c'],
10373- ['test-issue180.c'],
10374- ['test-family-matching.c'],
10375- ['test-ptrlist.c', {'include_directories': include_directories('../src'), 'dependencies': libintl_dep}],
10376- ['test-ostest.c'],
10377-]
10378-tests_build_only = [
10379- ['test-gen-testcache.c', {'include_directories': include_directories('../src'), 'dependencies': libintl_dep}],
10380-]
10381-tests_not_parallel = []
10382-
10383-if host_machine.system() != 'windows'
10384- tests += [
10385- # FIXME: ['test-migration.c'],
10386- ['test-bz106632.c', {'c_args': ['-DFONTFILE="@0@"'.format(join_paths(meson.current_source_dir(), '4x6.pcf'))]}],
10387- ['test-issue107.c'], # FIXME: fails on mingw
10388- ]
10389- tests_not_parallel += [
10390- # FIXME: this needs NotoSans-hinted.zip font downloaded and unpacked into test build directory! see run-test.sh
10391- ['test-crbug1004254.c', {'dependencies': dependency('threads')}], # for pthread
10392- ['test-mt-fccfg.c', {'include_directories': include_directories('../src'), 'dependencies': dependency('threads')}],
10393- ]
10394-
10395- if get_option('default_library') == 'static'
10396- tests += [
10397- ['test-issue110.c'],
10398- ['test-d1f48f11.c'],
10399- ]
10400- endif
10401-endif
10402-
10403-link_with_libs = [libfontconfig_internal]
10404-if get_option('fontations').enabled()
10405- link_with_libs += [fc_fontations]
10406-endif
10407-
10408-foreach test_data : tests + tests_not_parallel + tests_build_only
10409- fname = test_data[0]
10410- opts = test_data.length() > 1 ? test_data[1] : {}
10411- extra_c_args = opts.get('c_args', [])
10412- extra_deps = opts.get('dependencies', [])
10413- extra_incdir = opts.get('include_directories', [])
10414-
10415- test_name = fname.split('.')[0].underscorify()
10416-
10417- exe = executable(test_name, fname, fcstdint_h, fclang_h,
10418- c_args: c_args + extra_c_args,
10419- include_directories: [incbase] + extra_incdir,
10420- link_with: link_with_libs,
10421- dependencies: extra_deps,
10422- )
10423-
10424- if test_data not in tests_build_only
10425- if test_data in tests
10426- test(test_name, exe, timeout: 600, is_parallel: true)
10427- else
10428- test(test_name, exe, timeout: 600, is_parallel: false)
10429- endif
10430- endif
10431-endforeach
10432-
10433-
10434-if get_option('fontations').enabled()
10435- rust = import('rust')
10436- rust.test('fc_fontations_rust_tests', fc_fontations, link_with: [libfontconfig_internal], depends: fetch_test_fonts, env: ['builddir=@0@'.format(meson.project_build_root())],)
10437-endif
10438-
10439-fs = import('fs')
10440-
10441-if conf.get('FREETYPE_PCF_LONG_FAMILY_NAMES')
10442- out_expected = fs.copyfile('out.expected-long-family-names',
10443- 'out.expected')
10444-else
10445- out_expected = fs.copyfile('out.expected-no-long-family-names',
10446- 'out.expected')
10447-endif
10448-
10449-if pytest.found()
10450- test('pytest', pytest, args: ['--tap', '--assert=plain'],
10451- workdir: meson.current_source_dir(),
10452- env: [
10453- 'builddir=@0@'.format(meson.project_build_root()),
10454- 'srcdir=@0@'.format(meson.project_source_root()),
10455- 'EXEEXT=@0@'.format(conf.get('EXEEXT')),
10456- 'CC=@0@'.format(meson.get_compiler('c').cmd_array()[0]),
10457- 'FC_DISABLE_BWRAP=@0@'.format((not get_option('tests-bwrap').allowed()).to_int()),
10458- ],
10459- protocol: 'tap',
10460- timeout: 600,
10461- depends: fetch_test_fonts)
10462-endif
10463-
10464-if jsonc_dep.found()
10465- test_conf = executable('test-conf', 'test-conf.c',
10466- dependencies: [fontconfig_dep, jsonc_dep],
10467- c_args: ['-DSRCDIR="@0@"'.format(meson.current_source_dir())])
10468-endif
10469-
10470-test_const_name = executable('test_const_name', test_const_name_c,
10471- include_directories: [incbase],
10472- link_with: libfontconfig,
10473- )
10474-test('test_const_name', test_const_name)