comparison mupdf-source/thirdparty/zint/backend_tcl/configure.ac @ 2:b50eed0cc0ef upstream

ADD: MuPDF v1.26.7: the MuPDF source as downloaded by a default build of PyMuPDF 1.26.4. The directory name has changed: no version number in the expanded directory now.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Sep 2025 11:43:07 +0200
parents
children
comparison
equal deleted inserted replaced
1:1d09e1dec1d9 2:b50eed0cc0ef
1 #!/bin/bash -norc
2 dnl This file is an input file used by the GNU "autoconf" program to
3 dnl generate the file "configure", which is run during Tcl installation
4 dnl to configure the system for the local environment.
5
6 #-----------------------------------------------------------------------
7 # Sample configure.ac for Tcl Extensions. The only places you should
8 # need to modify this file are marked by the string __CHANGE__
9 #-----------------------------------------------------------------------
10
11 #-----------------------------------------------------------------------
12 # __CHANGE__
13 # Set your package name and version numbers here.
14 #
15 # This initializes the environment with PACKAGE_NAME and PACKAGE_VERSION
16 # set as provided. These will also be added as -D defs in your Makefile
17 # so you can encode the package version directly into the source files.
18 # This will also define a special symbol for Windows (BUILD_<PACKAGE_NAME>
19 # so that we create the export library with the dll.
20 #-----------------------------------------------------------------------
21
22 AC_INIT([zint],[2.13.0])
23
24 #--------------------------------------------------------------------
25 # Call TEA_INIT as the first TEA_ macro to set up initial vars.
26 # This will define a ${TEA_PLATFORM} variable == "unix" or "windows"
27 # as well as PKG_LIB_FILE and PKG_STUB_LIB_FILE.
28 #--------------------------------------------------------------------
29
30 TEA_INIT()
31
32 AC_CONFIG_AUX_DIR(tclconfig)
33
34 #--------------------------------------------------------------------
35 # Load the tclConfig.sh file
36 #--------------------------------------------------------------------
37
38 TEA_PATH_TCLCONFIG
39 TEA_LOAD_TCLCONFIG
40
41 #--------------------------------------------------------------------
42 # Load the tkConfig.sh file if necessary (Tk extension)
43 #--------------------------------------------------------------------
44
45 #TEA_PATH_TKCONFIG
46 #TEA_LOAD_TKCONFIG
47
48 #-----------------------------------------------------------------------
49 # Handle the --prefix=... option by defaulting to what Tcl gave.
50 # Must be called after TEA_LOAD_TCLCONFIG and before TEA_SETUP_COMPILER.
51 #-----------------------------------------------------------------------
52
53 TEA_PREFIX
54
55 #-----------------------------------------------------------------------
56 # Standard compiler checks.
57 # This sets up CC by using the CC env var, or looks for gcc otherwise.
58 # This also calls AC_PROG_CC and a few others to create the basic setup
59 # necessary to compile executables.
60 #-----------------------------------------------------------------------
61
62 TEA_SETUP_COMPILER
63
64 #-----------------------------------------------------------------------
65 # __CHANGE__
66 # Specify the C source files to compile in TEA_ADD_SOURCES,
67 # public headers that need to be installed in TEA_ADD_HEADERS,
68 # stub library C source files to compile in TEA_ADD_STUB_SOURCES,
69 # and runtime Tcl library files in TEA_ADD_TCL_SOURCES.
70 # This defines PKG(_STUB)_SOURCES, PKG(_STUB)_OBJECTS, PKG_HEADERS
71 # and PKG_TCL_SOURCES.
72 #-----------------------------------------------------------------------
73
74 TEA_ADD_SOURCES([
75 ../backend/2of5.c
76 ../backend/auspost.c
77 ../backend/aztec.c
78 ../backend/bc412.c
79 ../backend/bmp.c
80 ../backend/codablock.c
81 ../backend/code128.c
82 ../backend/code16k.c
83 ../backend/code1.c
84 ../backend/code49.c
85 ../backend/code.c
86 ../backend/common.c
87 ../backend/composite.c
88 ../backend/dllversion.c
89 ../backend/dmatrix.c
90 ../backend/dotcode.c
91 ../backend/dxfilmedge.c
92 ../backend/eci.c
93 ../backend/emf.c
94 ../backend/filemem.c
95 ../backend/general_field.c
96 ../backend/gif.c
97 ../backend/gridmtx.c
98 ../backend/gs1.c
99 ../backend/hanxin.c
100 ../backend/imail.c
101 ../backend/large.c
102 ../backend/library.c
103 ../backend/mailmark.c
104 ../backend/maxicode.c
105 ../backend/medical.c
106 ../backend/output.c
107 ../backend/pcx.c
108 ../backend/pdf417.c
109 ../backend/plessey.c
110 ../backend/png.c
111 ../backend/postal.c
112 ../backend/ps.c
113 ../backend/qr.c
114 ../backend/raster.c
115 ../backend/reedsol.c
116 ../backend/rss.c
117 ../backend/svg.c
118 ../backend/telepen.c
119 ../backend/tif.c
120 ../backend/ultra.c
121 ../backend/upcean.c
122 ../backend/vector.c
123 zint.c
124 ])
125 TEA_ADD_HEADERS([])
126 TEA_ADD_INCLUDES([])
127 TEA_ADD_LIBS()
128 TEA_ADD_CFLAGS([-I../backend -DZINT_NO_PNG=1 -DZINT_VERSION=PACKAGE_VERSION])
129 TEA_ADD_STUB_SOURCES([])
130 TEA_ADD_TCL_SOURCES([demo/demo.tcl])
131
132 #--------------------------------------------------------------------
133 # __CHANGE__
134 #
135 # You can add more files to clean if your extension creates any extra
136 # files by extending CLEANFILES.
137 # Add pkgIndex.tcl if it is generated in the Makefile instead of ./configure
138 # and change Makefile.in to move it from CONFIG_CLEAN_FILES to BINARIES var.
139 #
140 # A few miscellaneous platform-specific items:
141 # TEA_ADD_* any platform specific compiler/build info here.
142 #--------------------------------------------------------------------
143
144 #CLEANFILES="$CLEANFILES pkgIndex.tcl"
145 if test "${TEA_PLATFORM}" = "windows" ; then
146 # Ensure no empty if clauses
147 :
148 #TEA_ADD_SOURCES([win/winFile.c])
149 #TEA_ADD_INCLUDES([-I\"$(${CYGPATH} ${srcdir}/win)\"])
150 else
151 # Ensure no empty else clauses
152 :
153 #TEA_ADD_SOURCES([unix/unixFile.c])
154 TEA_ADD_LIBS()
155 fi
156
157 #--------------------------------------------------------------------
158 # __CHANGE__
159 # Choose which headers you need. Extension authors should try very
160 # hard to only rely on the Tcl public header files. Internal headers
161 # contain private data structures and are subject to change without
162 # notice.
163 # This MUST be called after TEA_LOAD_TCLCONFIG / TEA_LOAD_TKCONFIG
164 #--------------------------------------------------------------------
165
166 TEA_PUBLIC_TCL_HEADERS
167 #TEA_PRIVATE_TCL_HEADERS
168
169 #TEA_PUBLIC_TK_HEADERS
170 #TEA_PRIVATE_TK_HEADERS
171 #TEA_PATH_X
172
173 #--------------------------------------------------------------------
174 # Check whether --enable-threads or --disable-threads was given.
175 # This auto-enables if Tcl was compiled threaded.
176 #--------------------------------------------------------------------
177
178 TEA_ENABLE_THREADS
179
180 #--------------------------------------------------------------------
181 # The statement below defines a collection of symbols related to
182 # building as a shared library instead of a static library.
183 #--------------------------------------------------------------------
184
185 TEA_ENABLE_SHARED
186
187 #--------------------------------------------------------------------
188 # This macro figures out what flags to use with the compiler/linker
189 # when building shared/static debug/optimized objects. This information
190 # can be taken from the tclConfig.sh file, but this figures it all out.
191 #--------------------------------------------------------------------
192
193 TEA_CONFIG_CFLAGS
194
195 #--------------------------------------------------------------------
196 # Set the default compiler switches based on the --enable-symbols option.
197 #--------------------------------------------------------------------
198
199 TEA_ENABLE_SYMBOLS
200
201 #--------------------------------------------------------------------
202 # This macro generates a line to use when building a library. It
203 # depends on values set by the TEA_ENABLE_SHARED, TEA_ENABLE_SYMBOLS,
204 # and TEA_LOAD_TCLCONFIG macros above.
205 #--------------------------------------------------------------------
206
207 TEA_MAKE_LIB
208
209 #--------------------------------------------------------------------
210 # Determine the name of the tclsh and/or wish executables in the
211 # Tcl and Tk build directories or the location they were installed
212 # into. These paths are used to support running test cases only,
213 # the Makefile should not be making use of these paths to generate
214 # a pkgIndex.tcl file or anything else at extension build time.
215 #--------------------------------------------------------------------
216
217 TEA_PROG_TCLSH
218 #TEA_PROG_WISH
219
220 #--------------------------------------------------------------------
221 # Setup a *Config.sh.in configuration file.
222 #--------------------------------------------------------------------
223
224 #TEA_EXPORT_CONFIG([sample])
225 #AC_SUBST(SAMPLE_VAR)
226
227 #--------------------------------------------------------------------
228 # Specify files to substitute AC variables in. You may alternatively
229 # have a special pkgIndex.tcl.in or other files which require
230 # substituting the AC variables in. Include these here.
231 #--------------------------------------------------------------------
232
233 AC_CONFIG_FILES([Makefile pkgIndex.tcl])
234 #AC_CONFIG_FILES([sampleConfig.sh])
235
236 #--------------------------------------------------------------------
237 # Finally, substitute all of the various values into the files
238 # specified with AC_CONFIG_FILES.
239 #--------------------------------------------------------------------
240
241 AC_OUTPUT