Debian Codegraph @

libs/zziplib/aclocal.m4

raw
1 # generated automatically by aclocal 1.18.1 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2025 Free Software Foundation, Inc.
4
5 # This file is free software; the Free Software Foundation
6 # gives unlimited permission to copy and/or distribute it,
7 # with or without modifications, as long as this notice is preserved.
8
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY, to the extent permitted by law; without
11 # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
12 # PARTICULAR PURPOSE.
13
14 m4_ifndef([AC_CONFIG_MACRO_DIRS], [m4_defun([_AM_CONFIG_MACRO_DIRS], [])m4_defun([AC_CONFIG_MACRO_DIRS], [_AM_CONFIG_MACRO_DIRS($@)])])
15 m4_ifndef([AC_AUTOCONF_VERSION],
16 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
17 m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.72],,
18 [m4_warning([this file was generated for autoconf 2.72.
19 You have another version of autoconf. It may work, but is not guaranteed to.
20 If you have problems, you may need to regenerate the build system entirely.
21 To do so, use the procedure documented by the package, typically 'autoreconf'.])])
22
23 # Copyright (C) 2002-2025 Free Software Foundation, Inc.
24 #
25 # This file is free software; the Free Software Foundation
26 # gives unlimited permission to copy and/or distribute it,
27 # with or without modifications, as long as this notice is preserved.
28
29 # AM_AUTOMAKE_VERSION(VERSION)
30 # ----------------------------
31 # Automake X.Y traces this macro to ensure aclocal.m4 has been
32 # generated from the m4 files accompanying Automake X.Y.
33 # (This private macro should not be called outside this file.)
34 AC_DEFUN([AM_AUTOMAKE_VERSION],
35 [am__api_version='1.18'
36 dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
37 dnl require some minimum version. Point them to the right macro.
38 m4_if([$1], [1.18.1], [],
39 [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
40 ])
41
42 # _AM_AUTOCONF_VERSION(VERSION)
43 # -----------------------------
44 # aclocal traces this macro to find the Autoconf version.
45 # This is a private macro too. Using m4_define simplifies
46 # the logic in aclocal, which can simply ignore this definition.
47 m4_define([_AM_AUTOCONF_VERSION], [])
48
49 # AM_SET_CURRENT_AUTOMAKE_VERSION
50 # -------------------------------
51 # Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
52 # This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
53 AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
54 [AM_AUTOMAKE_VERSION([1.18.1])dnl
55 m4_ifndef([AC_AUTOCONF_VERSION],
56 [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
57 _AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
58
59 # Copyright (C) 2011-2025 Free Software Foundation, Inc.
60 #
61 # This file is free software; the Free Software Foundation
62 # gives unlimited permission to copy and/or distribute it,
63 # with or without modifications, as long as this notice is preserved.
64
65 # AM_PROG_AR([ACT-IF-FAIL])
66 # -------------------------
67 # Try to determine the archiver interface, and trigger the ar-lib wrapper
68 # if it is needed. If the detection of archiver interface fails, run
69 # ACT-IF-FAIL (default is to abort configure with a proper error message).
70 AC_DEFUN([AM_PROG_AR],
71 [AC_BEFORE([$0], [LT_INIT])dnl
72 AC_BEFORE([$0], [AC_PROG_LIBTOOL])dnl
73 AC_BEFORE([$0], [AC_PROG_AR])dnl
74 AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
75 AC_REQUIRE_AUX_FILE([ar-lib])dnl
76 AC_CHECK_TOOLS([AR], [ar lib "link -lib"], [false])
77 : ${AR=ar}
78 : ${ARFLAGS=cr}
79
80 AC_CACHE_CHECK([the archiver ($AR) interface], [am_cv_ar_interface],
81 [AC_LANG_PUSH([C])
82 am_cv_ar_interface=ar
83 AC_COMPILE_IFELSE([AC_LANG_SOURCE([[int some_variable = 0;]])],
84 [am_ar_try='$AR $ARFLAGS libconftest.a conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
85 AC_TRY_EVAL([am_ar_try])
86 if test "$ac_status" -eq 0; then
87 am_cv_ar_interface=ar
88 else
89 am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&AS_MESSAGE_LOG_FD'
90 AC_TRY_EVAL([am_ar_try])
91 if test "$ac_status" -eq 0; then
92 am_cv_ar_interface=lib
93 else
94 am_cv_ar_interface=unknown
95 fi
96 fi
97 rm -f conftest.lib libconftest.a
98 ])
99 AC_LANG_POP([C])])
100
101 case $am_cv_ar_interface in
102 ar)
103 ;;
104 lib)
105 # Microsoft lib, so override with the ar-lib wrapper script.
106 # FIXME: It is wrong to rewrite AR.
107 # But if we don't then we get into trouble of one sort or another.
108 # A longer-term fix would be to have automake use am__AR in this case,
109 # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
110 # similar.
111 AR="$am_aux_dir/ar-lib $AR"
112 ;;
113 unknown)
114 m4_default([$1],
115 [AC_MSG_ERROR([could not determine $AR interface])])
116 ;;
117 esac
118 AC_SUBST([AR])dnl
119 ])
120
121 # Figure out how to run the assembler. -*- Autoconf -*-
122
123 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
124 #
125 # This file is free software; the Free Software Foundation
126 # gives unlimited permission to copy and/or distribute it,
127 # with or without modifications, as long as this notice is preserved.
128
129 # AM_PROG_AS
130 # ----------
131 AC_DEFUN([AM_PROG_AS],
132 [# By default we simply use the C compiler to build assembly code.
133 AC_REQUIRE([AC_PROG_CC])
134 test "${CCAS+set}" = set || CCAS=$CC
135 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
136 AC_ARG_VAR([CCAS], [assembler compiler command (defaults to CC)])
137 AC_ARG_VAR([CCASFLAGS], [assembler compiler flags (defaults to CFLAGS)])
138 _AM_IF_OPTION([no-dependencies],, [_AM_DEPENDENCIES([CCAS])])dnl
139 ])
140
141 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
142
143 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
144 #
145 # This file is free software; the Free Software Foundation
146 # gives unlimited permission to copy and/or distribute it,
147 # with or without modifications, as long as this notice is preserved.
148
149 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
150 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
151 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
152 #
153 # Of course, Automake must honor this variable whenever it calls a
154 # tool from the auxiliary directory. The problem is that $srcdir (and
155 # therefore $ac_aux_dir as well) can be either absolute or relative,
156 # depending on how configure is run. This is pretty annoying, since
157 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
158 # source directory, any form will work fine, but in subdirectories a
159 # relative path needs to be adjusted first.
160 #
161 # $ac_aux_dir/missing
162 # fails when called from a subdirectory if $ac_aux_dir is relative
163 # $top_srcdir/$ac_aux_dir/missing
164 # fails if $ac_aux_dir is absolute,
165 # fails when called from a subdirectory in a VPATH build with
166 # a relative $ac_aux_dir
167 #
168 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
169 # are both prefixed by $srcdir. In an in-source build this is usually
170 # harmless because $srcdir is '.', but things will broke when you
171 # start a VPATH build or use an absolute $srcdir.
172 #
173 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
174 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
175 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
176 # and then we would define $MISSING as
177 # MISSING="\${SHELL} $am_aux_dir/missing"
178 # This will work as long as MISSING is not called from configure, because
179 # unfortunately $(top_srcdir) has no meaning in configure.
180 # However there are other variables, like CC, which are often used in
181 # configure, and could therefore not use this "fixed" $ac_aux_dir.
182 #
183 # Another solution, used here, is to always expand $ac_aux_dir to an
184 # absolute PATH. The drawback is that using absolute paths prevent a
185 # configured tree to be moved without reconfiguration.
186
187 AC_DEFUN([AM_AUX_DIR_EXPAND],
188 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
189 # Expand $ac_aux_dir to an absolute path.
190 am_aux_dir=`cd "$ac_aux_dir" && pwd`
191 ])
192
193 # AM_CONDITIONAL -*- Autoconf -*-
194
195 # Copyright (C) 1997-2025 Free Software Foundation, Inc.
196 #
197 # This file is free software; the Free Software Foundation
198 # gives unlimited permission to copy and/or distribute it,
199 # with or without modifications, as long as this notice is preserved.
200
201 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
202 # -------------------------------------
203 # Define a conditional.
204 AC_DEFUN([AM_CONDITIONAL],
205 [AC_PREREQ([2.52])dnl
206 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
207 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
208 AC_SUBST([$1_TRUE])dnl
209 AC_SUBST([$1_FALSE])dnl
210 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
211 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
212 m4_define([_AM_COND_VALUE_$1], [$2])dnl
213 if $2; then
214 $1_TRUE=
215 $1_FALSE='#'
216 else
217 $1_TRUE='#'
218 $1_FALSE=
219 fi
220 AC_CONFIG_COMMANDS_PRE(
221 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
222 AC_MSG_ERROR([[conditional "$1" was never defined.
223 Usually this means the macro was only invoked conditionally.]])
224 fi])])
225
226 # Copyright (C) 1999-2025 Free Software Foundation, Inc.
227 #
228 # This file is free software; the Free Software Foundation
229 # gives unlimited permission to copy and/or distribute it,
230 # with or without modifications, as long as this notice is preserved.
231
232
233 # There are a few dirty hacks below to avoid letting 'AC_PROG_CC' be
234 # written in clear, in which case automake, when reading aclocal.m4,
235 # will think it sees a *use*, and therefore will trigger all it's
236 # C support machinery. Also note that it means that autoscan, seeing
237 # CC etc. in the Makefile, will ask for an AC_PROG_CC use...
238
239
240 # _AM_DEPENDENCIES(NAME)
241 # ----------------------
242 # See how the compiler implements dependency checking.
243 # NAME is "CC", "CXX", "OBJC", "OBJCXX", "UPC", or "GJC".
244 # We try a few techniques and use that to set a single cache variable.
245 #
246 # We don't AC_REQUIRE the corresponding AC_PROG_CC since the latter was
247 # modified to invoke _AM_DEPENDENCIES(CC); we would have a circular
248 # dependency, and given that the user is not expected to run this macro,
249 # just rely on AC_PROG_CC.
250 AC_DEFUN([_AM_DEPENDENCIES],
251 [AC_REQUIRE([AM_SET_DEPDIR])dnl
252 AC_REQUIRE([AM_OUTPUT_DEPENDENCY_COMMANDS])dnl
253 AC_REQUIRE([AM_MAKE_INCLUDE])dnl
254 AC_REQUIRE([AM_DEP_TRACK])dnl
255
256 m4_if([$1], [CC], [depcc="$CC" am_compiler_list=],
257 [$1], [CXX], [depcc="$CXX" am_compiler_list=],
258 [$1], [OBJC], [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
259 [$1], [OBJCXX], [depcc="$OBJCXX" am_compiler_list='gcc3 gcc'],
260 [$1], [UPC], [depcc="$UPC" am_compiler_list=],
261 [$1], [GCJ], [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
262 [depcc="$$1" am_compiler_list=])
263
264 AC_CACHE_CHECK([dependency style of $depcc],
265 [am_cv_$1_dependencies_compiler_type],
266 [if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
267 # We make a subdir and do the tests there. Otherwise we can end up
268 # making bogus files that we don't know about and never remove. For
269 # instance it was reported that on HP-UX the gcc test will end up
270 # making a dummy file named 'D' -- because '-MD' means "put the output
271 # in D".
272 rm -rf conftest.dir
273 mkdir conftest.dir
274 # Copy depcomp to subdir because otherwise we won't find it if we're
275 # using a relative directory.
276 cp "$am_depcomp" conftest.dir
277 cd conftest.dir
278 # We will build objects and dependencies in a subdirectory because
279 # it helps to detect inapplicable dependency modes. For instance
280 # both Tru64's cc and ICC support -MD to output dependencies as a
281 # side effect of compilation, but ICC will put the dependencies in
282 # the current directory while Tru64 will put them in the object
283 # directory.
284 mkdir sub
285
286 am_cv_$1_dependencies_compiler_type=none
287 if test "$am_compiler_list" = ""; then
288 am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
289 fi
290 am__universal=false
291 m4_case([$1], [CC],
292 [case " $depcc " in #(
293 *\ -arch\ *\ -arch\ *) am__universal=true ;;
294 esac],
295 [CXX],
296 [case " $depcc " in #(
297 *\ -arch\ *\ -arch\ *) am__universal=true ;;
298 esac])
299
300 for depmode in $am_compiler_list; do
301 # Setup a source with many dependencies, because some compilers
302 # like to wrap large dependency lists on column 80 (with \), and
303 # we should not choose a depcomp mode which is confused by this.
304 #
305 # We need to recreate these files for each test, as the compiler may
306 # overwrite some of them when testing with obscure command lines.
307 # This happens at least with the AIX C compiler.
308 : > sub/conftest.c
309 for i in 1 2 3 4 5 6; do
310 echo '#include "conftst'$i'.h"' >> sub/conftest.c
311 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
312 # Solaris 10 /bin/sh.
313 echo '/* dummy */' > sub/conftst$i.h
314 done
315 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
316
317 # We check with '-c' and '-o' for the sake of the "dashmstdout"
318 # mode. It turns out that the SunPro C++ compiler does not properly
319 # handle '-M -o', and we need to detect this. Also, some Intel
320 # versions had trouble with output in subdirs.
321 am__obj=sub/conftest.${OBJEXT-o}
322 am__minus_obj="-o $am__obj"
323 case $depmode in
324 gcc)
325 # This depmode causes a compiler race in universal mode.
326 test "$am__universal" = false || continue
327 ;;
328 nosideeffect)
329 # After this tag, mechanisms are not by side-effect, so they'll
330 # only be used when explicitly requested.
331 if test "x$enable_dependency_tracking" = xyes; then
332 continue
333 else
334 break
335 fi
336 ;;
337 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
338 # This compiler won't grok '-c -o', but also, the minuso test has
339 # not run yet. These depmodes are late enough in the game, and
340 # so weak that their functioning should not be impacted.
341 am__obj=conftest.${OBJEXT-o}
342 am__minus_obj=
343 ;;
344 none) break ;;
345 esac
346 if depmode=$depmode \
347 source=sub/conftest.c object=$am__obj \
348 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
349 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
350 >/dev/null 2>conftest.err &&
351 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
352 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
353 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
354 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
355 # icc doesn't choke on unknown options, it will just issue warnings
356 # or remarks (even with -Werror). So we grep stderr for any message
357 # that says an option was ignored or not supported.
358 # When given -MP, icc 7.0 and 7.1 complain thus:
359 # icc: Command line warning: ignoring option '-M'; no argument required
360 # The diagnosis changed in icc 8.0:
361 # icc: Command line remark: option '-MP' not supported
362 if (grep 'ignoring option' conftest.err ||
363 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
364 am_cv_$1_dependencies_compiler_type=$depmode
365 break
366 fi
367 fi
368 done
369
370 cd ..
371 rm -rf conftest.dir
372 else
373 am_cv_$1_dependencies_compiler_type=none
374 fi
375 ])
376 AC_SUBST([$1DEPMODE], [depmode=$am_cv_$1_dependencies_compiler_type])
377 AM_CONDITIONAL([am__fastdep$1], [
378 test "x$enable_dependency_tracking" != xno \
379 && test "$am_cv_$1_dependencies_compiler_type" = gcc3])
380 ])
381
382
383 # AM_SET_DEPDIR
384 # -------------
385 # Choose a directory name for dependency files.
386 # This macro is AC_REQUIREd in _AM_DEPENDENCIES.
387 AC_DEFUN([AM_SET_DEPDIR],
388 [AC_REQUIRE([AM_SET_LEADING_DOT])dnl
389 AC_SUBST([DEPDIR], ["${am__leading_dot}deps"])dnl
390 ])
391
392
393 # AM_DEP_TRACK
394 # ------------
395 AC_DEFUN([AM_DEP_TRACK],
396 [AC_ARG_ENABLE([dependency-tracking], [dnl
397 AS_HELP_STRING(
398 [--enable-dependency-tracking],
399 [do not reject slow dependency extractors])
400 AS_HELP_STRING(
401 [--disable-dependency-tracking],
402 [speeds up one-time build])])
403 if test "x$enable_dependency_tracking" != xno; then
404 am_depcomp="$ac_aux_dir/depcomp"
405 AMDEPBACKSLASH='\'
406 am__nodep='_no'
407 fi
408 AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
409 AC_SUBST([AMDEPBACKSLASH])dnl
410 _AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
411 AC_SUBST([am__nodep])dnl
412 _AM_SUBST_NOTMAKE([am__nodep])dnl
413 ])
414
415 # Generate code to set up dependency tracking. -*- Autoconf -*-
416
417 # Copyright (C) 1999-2025 Free Software Foundation, Inc.
418 #
419 # This file is free software; the Free Software Foundation
420 # gives unlimited permission to copy and/or distribute it,
421 # with or without modifications, as long as this notice is preserved.
422
423 # _AM_OUTPUT_DEPENDENCY_COMMANDS
424 # ------------------------------
425 AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
426 [{
427 # Older Autoconf quotes --file arguments for eval, but not when files
428 # are listed without --file. Let's play safe and only enable the eval
429 # if we detect the quoting.
430 # TODO: see whether this extra hack can be removed once we start
431 # requiring Autoconf 2.70 or later.
432 AS_CASE([$CONFIG_FILES],
433 [*\'*], [eval set x "$CONFIG_FILES"],
434 [*], [set x $CONFIG_FILES])
435 shift
436 # Used to flag and report bootstrapping failures.
437 am_rc=0
438 for am_mf
439 do
440 # Strip MF so we end up with the name of the file.
441 am_mf=`AS_ECHO(["$am_mf"]) | sed -e 's/:.*$//'`
442 # Check whether this is an Automake generated Makefile which includes
443 # dependency-tracking related rules and includes.
444 # Grep'ing the whole file directly is not great: AIX grep has a line
445 # limit of 2048, but all sed's we know have understand at least 4000.
446 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \
447 || continue
448 am_dirpart=`AS_DIRNAME(["$am_mf"])`
449 am_filepart=`AS_BASENAME(["$am_mf"])`
450 AM_RUN_LOG([cd "$am_dirpart" \
451 && sed -e '/# am--include-marker/d' "$am_filepart" \
452 | $MAKE -f - am--depfiles]) || am_rc=$?
453 done
454 if test $am_rc -ne 0; then
455 AC_MSG_FAILURE([Something went wrong bootstrapping makefile fragments
456 for automatic dependency tracking. If GNU make was not used, consider
457 re-running the configure script with MAKE="gmake" (or whatever is
458 necessary). You can also try re-running configure with the
459 '--disable-dependency-tracking' option to at least be able to build
460 the package (albeit without support for automatic dependency tracking).])
461 fi
462 AS_UNSET([am_dirpart])
463 AS_UNSET([am_filepart])
464 AS_UNSET([am_mf])
465 AS_UNSET([am_rc])
466 rm -f conftest-deps.mk
467 }
468 ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
469
470
471 # AM_OUTPUT_DEPENDENCY_COMMANDS
472 # -----------------------------
473 # This macro should only be invoked once -- use via AC_REQUIRE.
474 #
475 # This code is only required when automatic dependency tracking is enabled.
476 # This creates each '.Po' and '.Plo' makefile fragment that we'll need in
477 # order to bootstrap the dependency handling code.
478 AC_DEFUN([AM_OUTPUT_DEPENDENCY_COMMANDS],
479 [AC_CONFIG_COMMANDS([depfiles],
480 [test x"$AMDEP_TRUE" != x"" || _AM_OUTPUT_DEPENDENCY_COMMANDS],
481 [AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}"])])
482
483 # Do all the work for Automake. -*- Autoconf -*-
484
485 # Copyright (C) 1996-2025 Free Software Foundation, Inc.
486 #
487 # This file is free software; the Free Software Foundation
488 # gives unlimited permission to copy and/or distribute it,
489 # with or without modifications, as long as this notice is preserved.
490
491 # This macro actually does too much. Some checks are only needed if
492 # your package does certain things. But this isn't really a big deal.
493
494 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
495 m4_define([AC_PROG_CC],
496 m4_defn([AC_PROG_CC])
497 [_AM_PROG_CC_C_O
498 ])
499
500 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
501 # AM_INIT_AUTOMAKE([OPTIONS])
502 # -----------------------------------------------
503 # The call with PACKAGE and VERSION arguments is the old style
504 # call (pre autoconf-2.50), which is being phased out. PACKAGE
505 # and VERSION should now be passed to AC_INIT and removed from
506 # the call to AM_INIT_AUTOMAKE.
507 # We support both call styles for the transition. After
508 # the next Automake release, Autoconf can make the AC_INIT
509 # arguments mandatory, and then we can depend on a new Autoconf
510 # release and drop the old call support.
511 AC_DEFUN([AM_INIT_AUTOMAKE],
512 [AC_PREREQ([2.65])dnl
513 m4_ifdef([_$0_ALREADY_INIT],
514 [m4_fatal([$0 expanded multiple times
515 ]m4_defn([_$0_ALREADY_INIT]))],
516 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
517 dnl Autoconf wants to disallow AM_ names. We explicitly allow
518 dnl the ones we care about.
519 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
520 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
521 AC_REQUIRE([AC_PROG_INSTALL])dnl
522 if test "`cd $srcdir && pwd`" != "`pwd`"; then
523 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
524 # is not polluted with repeated "-I."
525 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
526 # test to see if srcdir already configured
527 if test -f $srcdir/config.status; then
528 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
529 fi
530 fi
531
532 # test whether we have cygpath
533 if test -z "$CYGPATH_W"; then
534 if (cygpath --version) >/dev/null 2>/dev/null; then
535 CYGPATH_W='cygpath -w'
536 else
537 CYGPATH_W=echo
538 fi
539 fi
540 AC_SUBST([CYGPATH_W])
541
542 # Define the identity of the package.
543 dnl Distinguish between old-style and new-style calls.
544 m4_ifval([$2],
545 [AC_DIAGNOSE([obsolete],
546 [$0: two- and three-arguments forms are deprecated.])
547 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
548 AC_SUBST([PACKAGE], [$1])dnl
549 AC_SUBST([VERSION], [$2])],
550 [_AM_SET_OPTIONS([$1])dnl
551 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
552 m4_if(
553 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
554 [ok:ok],,
555 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
556 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
557 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
558
559 _AM_IF_OPTION([no-define],,
560 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
561 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
562
563 # Some tools Automake needs.
564 AC_REQUIRE([AM_SANITY_CHECK])dnl
565 AC_REQUIRE([AC_ARG_PROGRAM])dnl
566 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
567 AM_MISSING_PROG([AUTOCONF], [autoconf])
568 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
569 AM_MISSING_PROG([AUTOHEADER], [autoheader])
570 AM_MISSING_PROG([MAKEINFO], [makeinfo])
571 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
572 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
573 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
574 # For better backward compatibility. To be removed once Automake 1.9.x
575 # dies out for good. For more background, see:
576 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
577 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
578 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
579 # We need awk for the "check" target (and possibly the TAP driver). The
580 # system "awk" is bad on some platforms.
581 AC_REQUIRE([AC_PROG_AWK])dnl
582 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
583 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
584 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
585 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
586 [_AM_IF_OPTION([tar-v7], [_AM_PROG_TAR([v7])],
587 [_AM_PROG_TAR([ustar])])])])
588 _AM_IF_OPTION([no-dependencies],,
589 [AC_PROVIDE_IFELSE([AC_PROG_CC],
590 [_AM_DEPENDENCIES([CC])],
591 [m4_define([AC_PROG_CC],
592 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
593 AC_PROVIDE_IFELSE([AC_PROG_CXX],
594 [_AM_DEPENDENCIES([CXX])],
595 [m4_define([AC_PROG_CXX],
596 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
597 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
598 [_AM_DEPENDENCIES([OBJC])],
599 [m4_define([AC_PROG_OBJC],
600 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
601 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
602 [_AM_DEPENDENCIES([OBJCXX])],
603 [m4_define([AC_PROG_OBJCXX],
604 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
605 ])
606 # Variables for tags utilities; see am/tags.am
607 if test -z "$CTAGS"; then
608 CTAGS=ctags
609 fi
610 AC_SUBST([CTAGS])
611 if test -z "$ETAGS"; then
612 ETAGS=etags
613 fi
614 AC_SUBST([ETAGS])
615 if test -z "$CSCOPE"; then
616 CSCOPE=cscope
617 fi
618 AC_SUBST([CSCOPE])
619
620 AC_REQUIRE([_AM_SILENT_RULES])dnl
621 dnl The testsuite driver may need to know about EXEEXT, so add the
622 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
623 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
624 AC_CONFIG_COMMANDS_PRE(dnl
625 [m4_provide_if([_AM_COMPILER_EXEEXT],
626 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
627
628 AC_REQUIRE([_AM_PROG_RM_F])
629 AC_REQUIRE([_AM_PROG_XARGS_N])
630
631 dnl The trailing newline in this macro's definition is deliberate, for
632 dnl backward compatibility and to allow trailing 'dnl'-style comments
633 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
634 ])
635
636 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
637 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
638 dnl mangled by Autoconf and run in a shell conditional statement.
639 m4_define([_AC_COMPILER_EXEEXT],
640 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
641
642 # When config.status generates a header, we must update the stamp-h file.
643 # This file resides in the same directory as the config header
644 # that is generated. The stamp files are numbered to have different names.
645
646 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
647 # loop where config.status creates the headers, so we can generate
648 # our stamp files there.
649 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
650 [# Compute $1's index in $config_headers.
651 _am_arg=$1
652 _am_stamp_count=1
653 for _am_header in $config_headers :; do
654 case $_am_header in
655 $_am_arg | $_am_arg:* )
656 break ;;
657 * )
658 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
659 esac
660 done
661 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
662
663 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
664 #
665 # This file is free software; the Free Software Foundation
666 # gives unlimited permission to copy and/or distribute it,
667 # with or without modifications, as long as this notice is preserved.
668
669 # AM_PROG_INSTALL_SH
670 # ------------------
671 # Define $install_sh.
672 AC_DEFUN([AM_PROG_INSTALL_SH],
673 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
674 if test x"${install_sh+set}" != xset; then
675 case $am_aux_dir in
676 *\ * | *\ *)
677 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
678 *)
679 install_sh="\${SHELL} $am_aux_dir/install-sh"
680 esac
681 fi
682 AC_SUBST([install_sh])])
683
684 # Copyright (C) 2003-2025 Free Software Foundation, Inc.
685 #
686 # This file is free software; the Free Software Foundation
687 # gives unlimited permission to copy and/or distribute it,
688 # with or without modifications, as long as this notice is preserved.
689
690 # Check whether the underlying file-system supports filenames
691 # with a leading dot. For instance MS-DOS doesn't.
692 AC_DEFUN([AM_SET_LEADING_DOT],
693 [rm -rf .tst 2>/dev/null
694 mkdir .tst 2>/dev/null
695 if test -d .tst; then
696 am__leading_dot=.
697 else
698 am__leading_dot=_
699 fi
700 rmdir .tst 2>/dev/null
701 AC_SUBST([am__leading_dot])])
702
703 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
704 # From Jim Meyering
705
706 # Copyright (C) 1996-2025 Free Software Foundation, Inc.
707 #
708 # This file is free software; the Free Software Foundation
709 # gives unlimited permission to copy and/or distribute it,
710 # with or without modifications, as long as this notice is preserved.
711
712 # AM_MAINTAINER_MODE([DEFAULT-MODE])
713 # ----------------------------------
714 # Control maintainer-specific portions of Makefiles.
715 # Default is to disable them, unless 'enable' is passed literally.
716 # For symmetry, 'disable' may be passed as well. Anyway, the user
717 # can override the default with the --enable/--disable switch.
718 AC_DEFUN([AM_MAINTAINER_MODE],
719 [m4_case(m4_default([$1], [disable]),
720 [enable], [m4_define([am_maintainer_other], [disable])],
721 [disable], [m4_define([am_maintainer_other], [enable])],
722 [m4_define([am_maintainer_other], [enable])
723 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
724 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
725 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
726 AC_ARG_ENABLE([maintainer-mode],
727 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
728 am_maintainer_other[ make rules and dependencies not useful
729 (and sometimes confusing) to the casual installer])],
730 [USE_MAINTAINER_MODE=$enableval],
731 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
732 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
733 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
734 MAINT=$MAINTAINER_MODE_TRUE
735 AC_SUBST([MAINT])dnl
736 ]
737 )
738
739 # Check to see how 'make' treats includes. -*- Autoconf -*-
740
741 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
742 #
743 # This file is free software; the Free Software Foundation
744 # gives unlimited permission to copy and/or distribute it,
745 # with or without modifications, as long as this notice is preserved.
746
747 # AM_MAKE_INCLUDE()
748 # -----------------
749 # Check whether make has an 'include' directive that can support all
750 # the idioms we need for our automatic dependency tracking code.
751 AC_DEFUN([AM_MAKE_INCLUDE],
752 [AC_MSG_CHECKING([whether ${MAKE-make} supports the include directive])
753 cat > confinc.mk << 'END'
754 am__doit:
755 @echo this is the am__doit target >confinc.out
756 .PHONY: am__doit
757 END
758 am__include="#"
759 am__quote=
760 # BSD make does it like this.
761 echo '.include "confinc.mk" # ignored' > confmf.BSD
762 # Other make implementations (GNU, Solaris 10, AIX) do it like this.
763 echo 'include confinc.mk # ignored' > confmf.GNU
764 _am_result=no
765 for s in GNU BSD; do
766 AM_RUN_LOG([${MAKE-make} -f confmf.$s && cat confinc.out])
767 AS_CASE([$?:`cat confinc.out 2>/dev/null`],
768 ['0:this is the am__doit target'],
769 [AS_CASE([$s],
770 [BSD], [am__include='.include' am__quote='"'],
771 [am__include='include' am__quote=''])])
772 if test "$am__include" != "#"; then
773 _am_result="yes ($s style)"
774 break
775 fi
776 done
777 rm -f confinc.* confmf.*
778 AC_MSG_RESULT([${_am_result}])
779 AC_SUBST([am__include])])
780 AC_SUBST([am__quote])])
781
782 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
783
784 # Copyright (C) 1997-2025 Free Software Foundation, Inc.
785 #
786 # This file is free software; the Free Software Foundation
787 # gives unlimited permission to copy and/or distribute it,
788 # with or without modifications, as long as this notice is preserved.
789
790 # AM_MISSING_PROG(NAME, PROGRAM)
791 # ------------------------------
792 AC_DEFUN([AM_MISSING_PROG],
793 [AC_REQUIRE([AM_MISSING_HAS_RUN])
794 $1=${$1-"${am_missing_run}$2"}
795 AC_SUBST($1)])
796
797 # AM_MISSING_HAS_RUN
798 # ------------------
799 # Define MISSING if not defined so far and test if it is modern enough.
800 # If it is, set am_missing_run to use it, otherwise, to nothing.
801 AC_DEFUN([AM_MISSING_HAS_RUN],
802 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
803 AC_REQUIRE_AUX_FILE([missing])dnl
804 if test x"${MISSING+set}" != xset; then
805 MISSING="\${SHELL} '$am_aux_dir/missing'"
806 fi
807 # Use eval to expand $SHELL
808 if eval "$MISSING --is-lightweight"; then
809 am_missing_run="$MISSING "
810 else
811 am_missing_run=
812 AC_MSG_WARN(['missing' script is too old or missing])
813 fi
814 ])
815
816 # Helper functions for option handling. -*- Autoconf -*-
817
818 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
819 #
820 # This file is free software; the Free Software Foundation
821 # gives unlimited permission to copy and/or distribute it,
822 # with or without modifications, as long as this notice is preserved.
823
824 # _AM_MANGLE_OPTION(NAME)
825 # -----------------------
826 AC_DEFUN([_AM_MANGLE_OPTION],
827 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
828
829 # _AM_SET_OPTION(NAME)
830 # --------------------
831 # Set option NAME. Presently that only means defining a flag for this option.
832 AC_DEFUN([_AM_SET_OPTION],
833 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
834
835 # _AM_SET_OPTIONS(OPTIONS)
836 # ------------------------
837 # OPTIONS is a space-separated list of Automake options.
838 AC_DEFUN([_AM_SET_OPTIONS],
839 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
840
841 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
842 # -------------------------------------------
843 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
844 AC_DEFUN([_AM_IF_OPTION],
845 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
846
847 # Copyright (C) 1999-2025 Free Software Foundation, Inc.
848 #
849 # This file is free software; the Free Software Foundation
850 # gives unlimited permission to copy and/or distribute it,
851 # with or without modifications, as long as this notice is preserved.
852
853 # _AM_PROG_CC_C_O
854 # ---------------
855 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
856 # to automatically call this.
857 AC_DEFUN([_AM_PROG_CC_C_O],
858 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
859 AC_REQUIRE_AUX_FILE([compile])dnl
860 AC_LANG_PUSH([C])dnl
861 AC_CACHE_CHECK(
862 [whether $CC understands -c and -o together],
863 [am_cv_prog_cc_c_o],
864 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
865 # Make sure it works both with $CC and with simple cc.
866 # Following AC_PROG_CC_C_O, we do the test twice because some
867 # compilers refuse to overwrite an existing .o file with -o,
868 # though they will create one.
869 am_cv_prog_cc_c_o=yes
870 for am_i in 1 2; do
871 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
872 && test -f conftest2.$ac_objext; then
873 : OK
874 else
875 am_cv_prog_cc_c_o=no
876 break
877 fi
878 done
879 # aligned with autoconf, so not including core; see bug#72225.
880 rm -f -r a.out a.exe b.out conftest.$ac_ext conftest.$ac_objext \
881 conftest.dSYM conftest1.$ac_ext conftest1.$ac_objext conftest1.dSYM \
882 conftest2.$ac_ext conftest2.$ac_objext conftest2.dSYM
883 unset am_i])
884 if test "$am_cv_prog_cc_c_o" != yes; then
885 # Losing compiler, so override with the script.
886 # FIXME: It is wrong to rewrite CC.
887 # But if we don't then we get into trouble of one sort or another.
888 # A longer-term fix would be to have automake use am__CC in this case,
889 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
890 CC="$am_aux_dir/compile $CC"
891 fi
892 AC_LANG_POP([C])])
893
894 # For backward compatibility.
895 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
896
897 # Copyright (C) 2022-2025 Free Software Foundation, Inc.
898 #
899 # This file is free software; the Free Software Foundation
900 # gives unlimited permission to copy and/or distribute it,
901 # with or without modifications, as long as this notice is preserved.
902
903 # _AM_PROG_RM_F
904 # ---------------
905 # Check whether 'rm -f' without any arguments works.
906 # https://bugs.gnu.org/10828
907 AC_DEFUN([_AM_PROG_RM_F],
908 [am__rm_f_notfound=
909 AS_IF([(rm -f && rm -fr && rm -rf) 2>/dev/null], [], [am__rm_f_notfound='""'])
910 AC_SUBST(am__rm_f_notfound)
911 ])
912
913 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
914 #
915 # This file is free software; the Free Software Foundation
916 # gives unlimited permission to copy and/or distribute it,
917 # with or without modifications, as long as this notice is preserved.
918
919 # AM_RUN_LOG(COMMAND)
920 # -------------------
921 # Run COMMAND, save the exit status in ac_status, and log it.
922 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
923 AC_DEFUN([AM_RUN_LOG],
924 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
925 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
926 ac_status=$?
927 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
928 (exit $ac_status); }])
929
930 # Check to make sure that the build environment is sane. -*- Autoconf -*-
931
932 # Copyright (C) 1996-2025 Free Software Foundation, Inc.
933 #
934 # This file is free software; the Free Software Foundation
935 # gives unlimited permission to copy and/or distribute it,
936 # with or without modifications, as long as this notice is preserved.
937
938 # _AM_SLEEP_FRACTIONAL_SECONDS
939 # ----------------------------
940 AC_DEFUN([_AM_SLEEP_FRACTIONAL_SECONDS], [dnl
941 AC_CACHE_CHECK([whether sleep supports fractional seconds],
942 am_cv_sleep_fractional_seconds, [dnl
943 AS_IF([sleep 0.001 2>/dev/null], [am_cv_sleep_fractional_seconds=yes],
944 [am_cv_sleep_fractional_seconds=no])
945 ])])
946
947 # _AM_FILESYSTEM_TIMESTAMP_RESOLUTION
948 # -----------------------------------
949 # Determine the filesystem's resolution for file modification
950 # timestamps. The coarsest we know of is FAT, with a resolution
951 # of only two seconds, even with the most recent "exFAT" extensions.
952 # The finest (e.g. ext4 with large inodes, XFS, ZFS) is one
953 # nanosecond, matching clock_gettime. However, it is probably not
954 # possible to delay execution of a shell script for less than one
955 # millisecond, due to process creation overhead and scheduling
956 # granularity, so we don't check for anything finer than that. (See below.)
957 AC_DEFUN([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION], [dnl
958 AC_REQUIRE([_AM_SLEEP_FRACTIONAL_SECONDS])
959 AC_CACHE_CHECK([filesystem timestamp resolution],
960 am_cv_filesystem_timestamp_resolution, [dnl
961 # Default to the worst case.
962 am_cv_filesystem_timestamp_resolution=2
963
964 # Only try to go finer than 1 sec if sleep can do it.
965 # Don't try 1 sec, because if 0.01 sec and 0.1 sec don't work,
966 # - 1 sec is not much of a win compared to 2 sec, and
967 # - it takes 2 seconds to perform the test whether 1 sec works.
968 #
969 # Instead, just use the default 2s on platforms that have 1s resolution,
970 # accept the extra 1s delay when using $sleep in the Automake tests, in
971 # exchange for not incurring the 2s delay for running the test for all
972 # packages.
973 #
974 am_try_resolutions=
975 if test "$am_cv_sleep_fractional_seconds" = yes; then
976 # Even a millisecond often causes a bunch of false positives,
977 # so just try a hundredth of a second. The time saved between .001 and
978 # .01 is not terribly consequential.
979 am_try_resolutions="0.01 0.1 $am_try_resolutions"
980 fi
981
982 # In order to catch current-generation FAT out, we must *modify* files
983 # that already exist; the *creation* timestamp is finer. Use names
984 # that make ls -t sort them differently when they have equal
985 # timestamps than when they have distinct timestamps, keeping
986 # in mind that ls -t prints the *newest* file first.
987 rm -f conftest.ts?
988 : > conftest.ts1
989 : > conftest.ts2
990 : > conftest.ts3
991
992 # Make sure ls -t actually works. Do 'set' in a subshell so we don't
993 # clobber the current shell's arguments. (Outer-level square brackets
994 # are removed by m4; they're present so that m4 does not expand
995 # <dollar><star>; be careful, easy to get confused.)
996 if (
997 set X `[ls -t conftest.ts[12]]` &&
998 {
999 test "$[]*" != "X conftest.ts1 conftest.ts2" ||
1000 test "$[]*" != "X conftest.ts2 conftest.ts1";
1001 }
1002 ); then :; else
1003 # If neither matched, then we have a broken ls. This can happen
1004 # if, for instance, CONFIG_SHELL is bash and it inherits a
1005 # broken ls alias from the environment. This has actually
1006 # happened. Such a system could not be considered "sane".
1007 _AS_ECHO_UNQUOTED(
1008 ["Bad output from ls -t: \"`[ls -t conftest.ts[12]]`\""],
1009 [AS_MESSAGE_LOG_FD])
1010 AC_MSG_FAILURE([ls -t produces unexpected output.
1011 Make sure there is not a broken ls alias in your environment.])
1012 fi
1013
1014 for am_try_res in $am_try_resolutions; do
1015 # Any one fine-grained sleep might happen to cross the boundary
1016 # between two values of a coarser actual resolution, but if we do
1017 # two fine-grained sleeps in a row, at least one of them will fall
1018 # entirely within a coarse interval.
1019 echo alpha > conftest.ts1
1020 sleep $am_try_res
1021 echo beta > conftest.ts2
1022 sleep $am_try_res
1023 echo gamma > conftest.ts3
1024
1025 # We assume that 'ls -t' will make use of high-resolution
1026 # timestamps if the operating system supports them at all.
1027 if (set X `ls -t conftest.ts?` &&
1028 test "$[]2" = conftest.ts3 &&
1029 test "$[]3" = conftest.ts2 &&
1030 test "$[]4" = conftest.ts1); then
1031 #
1032 # Ok, ls -t worked. If we're at a resolution of 1 second, we're done,
1033 # because we don't need to test make.
1034 make_ok=true
1035 if test $am_try_res != 1; then
1036 # But if we've succeeded so far with a subsecond resolution, we
1037 # have one more thing to check: make. It can happen that
1038 # everything else supports the subsecond mtimes, but make doesn't;
1039 # notably on macOS, which ships make 3.81 from 2006 (the last one
1040 # released under GPLv2). https://bugs.gnu.org/68808
1041 #
1042 # We test $MAKE if it is defined in the environment, else "make".
1043 # It might get overridden later, but our hope is that in practice
1044 # it does not matter: it is the system "make" which is (by far)
1045 # the most likely to be broken, whereas if the user overrides it,
1046 # probably they did so with a better, or at least not worse, make.
1047 # https://lists.gnu.org/archive/html/automake/2024-06/msg00051.html
1048 #
1049 # Create a Makefile (real tab character here):
1050 rm -f conftest.mk
1051 echo 'conftest.ts1: conftest.ts2' >conftest.mk
1052 echo ' touch conftest.ts2' >>conftest.mk
1053 #
1054 # Now, running
1055 # touch conftest.ts1; touch conftest.ts2; make
1056 # should touch ts1 because ts2 is newer. This could happen by luck,
1057 # but most often, it will fail if make's support is insufficient. So
1058 # test for several consecutive successes.
1059 #
1060 # (We reuse conftest.ts[12] because we still want to modify existing
1061 # files, not create new ones, per above.)
1062 n=0
1063 make=${MAKE-make}
1064 until test $n -eq 3; do
1065 echo one > conftest.ts1
1066 sleep $am_try_res
1067 echo two > conftest.ts2 # ts2 should now be newer than ts1
1068 if $make -f conftest.mk | grep 'up to date' >/dev/null; then
1069 make_ok=false
1070 break # out of $n loop
1071 fi
1072 n=`expr $n + 1`
1073 done
1074 fi
1075 #
1076 if $make_ok; then
1077 # Everything we know to check worked out, so call this resolution good.
1078 am_cv_filesystem_timestamp_resolution=$am_try_res
1079 break # out of $am_try_res loop
1080 fi
1081 # Otherwise, we'll go on to check the next resolution.
1082 fi
1083 done
1084 rm -f conftest.ts?
1085 # (end _am_filesystem_timestamp_resolution)
1086 ])])
1087
1088 # AM_SANITY_CHECK
1089 # ---------------
1090 AC_DEFUN([AM_SANITY_CHECK],
1091 [AC_REQUIRE([_AM_FILESYSTEM_TIMESTAMP_RESOLUTION])
1092 # This check should not be cached, as it may vary across builds of
1093 # different projects.
1094 AC_MSG_CHECKING([whether build environment is sane])
1095 # Reject unsafe characters in $srcdir or the absolute working directory
1096 # name. Accept space and tab only in the latter.
1097 am_lf='
1098 '
1099 case `pwd` in
1100 *[[\\\"\#\$\&\'\`$am_lf]]*)
1101 AC_MSG_RESULT([no])
1102 AC_MSG_ERROR([unsafe absolute working directory name]);;
1103 esac
1104 case $srcdir in
1105 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
1106 AC_MSG_RESULT([no])
1107 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
1108 esac
1109
1110 # Do 'set' in a subshell so we don't clobber the current shell's
1111 # arguments. Must try -L first in case configure is actually a
1112 # symlink; some systems play weird games with the mod time of symlinks
1113 # (eg FreeBSD returns the mod time of the symlink's containing
1114 # directory).
1115 am_build_env_is_sane=no
1116 am_has_slept=no
1117 rm -f conftest.file
1118 for am_try in 1 2; do
1119 echo "timestamp, slept: $am_has_slept" > conftest.file
1120 if (
1121 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
1122 if test "$[]*" = "X"; then
1123 # -L didn't work.
1124 set X `ls -t "$srcdir/configure" conftest.file`
1125 fi
1126 test "$[]2" = conftest.file
1127 ); then
1128 am_build_env_is_sane=yes
1129 break
1130 fi
1131 # Just in case.
1132 sleep "$am_cv_filesystem_timestamp_resolution"
1133 am_has_slept=yes
1134 done
1135
1136 AC_MSG_RESULT([$am_build_env_is_sane])
1137 if test "$am_build_env_is_sane" = no; then
1138 AC_MSG_ERROR([newly created file is older than distributed files!
1139 Check your system clock])
1140 fi
1141
1142 # If we didn't sleep, we still need to ensure time stamps of config.status and
1143 # generated files are strictly newer.
1144 am_sleep_pid=
1145 AS_IF([test -e conftest.file || grep 'slept: no' conftest.file >/dev/null 2>&1],, [dnl
1146 ( sleep "$am_cv_filesystem_timestamp_resolution" ) &
1147 am_sleep_pid=$!
1148 ])
1149 AC_CONFIG_COMMANDS_PRE(
1150 [AC_MSG_CHECKING([that generated files are newer than configure])
1151 if test -n "$am_sleep_pid"; then
1152 # Hide warnings about reused PIDs.
1153 wait $am_sleep_pid 2>/dev/null
1154 fi
1155 AC_MSG_RESULT([done])])
1156 rm -f conftest.file
1157 ])
1158
1159 # Copyright (C) 2009-2025 Free Software Foundation, Inc.
1160 #
1161 # This file is free software; the Free Software Foundation
1162 # gives unlimited permission to copy and/or distribute it,
1163 # with or without modifications, as long as this notice is preserved.
1164
1165 # _AM_SILENT_RULES
1166 # ----------------
1167 # Enable less verbose build rules support.
1168 AC_DEFUN([_AM_SILENT_RULES],
1169 [AM_DEFAULT_VERBOSITY=1
1170 AC_ARG_ENABLE([silent-rules], [dnl
1171 AS_HELP_STRING(
1172 [--enable-silent-rules],
1173 [less verbose build output (undo: "make V=1")])
1174 AS_HELP_STRING(
1175 [--disable-silent-rules],
1176 [verbose build output (undo: "make V=0")])dnl
1177 ])
1178 dnl
1179 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
1180 dnl do not support nested variable expansions.
1181 dnl See automake bug#9928 and bug#10237.
1182 am_make=${MAKE-make}
1183 AC_CACHE_CHECK([whether $am_make supports nested variables],
1184 [am_cv_make_support_nested_variables],
1185 [if AS_ECHO([['TRUE=$(BAR$(V))
1186 BAR0=false
1187 BAR1=true
1188 V=1
1189 am__doit:
1190 @$(TRUE)
1191 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
1192 am_cv_make_support_nested_variables=yes
1193 else
1194 am_cv_make_support_nested_variables=no
1195 fi])
1196 AC_SUBST([AM_V])dnl
1197 AM_SUBST_NOTMAKE([AM_V])dnl
1198 AC_SUBST([AM_DEFAULT_V])dnl
1199 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
1200 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
1201 AM_BACKSLASH='\'
1202 AC_SUBST([AM_BACKSLASH])dnl
1203 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
1204 dnl Delay evaluation of AM_DEFAULT_VERBOSITY to the end to allow multiple calls
1205 dnl to AM_SILENT_RULES to change the default value.
1206 AC_CONFIG_COMMANDS_PRE([dnl
1207 case $enable_silent_rules in @%:@ (((
1208 yes) AM_DEFAULT_VERBOSITY=0;;
1209 no) AM_DEFAULT_VERBOSITY=1;;
1210 esac
1211 if test $am_cv_make_support_nested_variables = yes; then
1212 dnl Using '$V' instead of '$(V)' breaks IRIX make.
1213 AM_V='$(V)'
1214 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
1215 else
1216 AM_V=$AM_DEFAULT_VERBOSITY
1217 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
1218 fi
1219 ])dnl
1220 ])
1221
1222 # AM_SILENT_RULES([DEFAULT])
1223 # --------------------------
1224 # Set the default verbosity level to DEFAULT ("yes" being less verbose, "no" or
1225 # empty being verbose).
1226 AC_DEFUN([AM_SILENT_RULES],
1227 [AC_REQUIRE([_AM_SILENT_RULES])
1228 AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1])m4_newline
1229 dnl We intentionally force a newline after the assignment, since a) nothing
1230 dnl good can come of more text following, and b) that was the behavior
1231 dnl before 1.17. See https://bugs.gnu.org/72267.
1232 ])
1233
1234 # Copyright (C) 2001-2025 Free Software Foundation, Inc.
1235 #
1236 # This file is free software; the Free Software Foundation
1237 # gives unlimited permission to copy and/or distribute it,
1238 # with or without modifications, as long as this notice is preserved.
1239
1240 # AM_PROG_INSTALL_STRIP
1241 # ---------------------
1242 # One issue with vendor 'install' (even GNU) is that you can't
1243 # specify the program used to strip binaries. This is especially
1244 # annoying in cross-compiling environments, where the build's strip
1245 # is unlikely to handle the host's binaries.
1246 # Fortunately install-sh will honor a STRIPPROG variable, so we
1247 # always use install-sh in "make install-strip", and initialize
1248 # STRIPPROG with the value of the STRIP variable (set by the user).
1249 AC_DEFUN([AM_PROG_INSTALL_STRIP],
1250 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
1251 # Installed binaries are usually stripped using 'strip' when the user
1252 # run "make install-strip". However 'strip' might not be the right
1253 # tool to use in cross-compilation environments, therefore Automake
1254 # will honor the 'STRIP' environment variable to overrule this program.
1255 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
1256 if test "$cross_compiling" != no; then
1257 AC_CHECK_TOOL([STRIP], [strip], :)
1258 fi
1259 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
1260 AC_SUBST([INSTALL_STRIP_PROGRAM])])
1261
1262 # Copyright (C) 2006-2025 Free Software Foundation, Inc.
1263 #
1264 # This file is free software; the Free Software Foundation
1265 # gives unlimited permission to copy and/or distribute it,
1266 # with or without modifications, as long as this notice is preserved.
1267
1268 # _AM_SUBST_NOTMAKE(VARIABLE)
1269 # ---------------------------
1270 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
1271 # This macro is traced by Automake.
1272 AC_DEFUN([_AM_SUBST_NOTMAKE])
1273
1274 # AM_SUBST_NOTMAKE(VARIABLE)
1275 # --------------------------
1276 # Public sister of _AM_SUBST_NOTMAKE.
1277 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
1278
1279 # Check how to create a tarball. -*- Autoconf -*-
1280
1281 # Copyright (C) 2004-2025 Free Software Foundation, Inc.
1282 #
1283 # This file is free software; the Free Software Foundation
1284 # gives unlimited permission to copy and/or distribute it,
1285 # with or without modifications, as long as this notice is preserved.
1286
1287 # _AM_PROG_TAR(FORMAT)
1288 # --------------------
1289 # Check how to create a tarball in format FORMAT.
1290 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
1291 #
1292 # Substitute a variable $(am__tar) that is a command
1293 # writing to stdout a FORMAT-tarball containing the directory
1294 # $tardir.
1295 # tardir=directory && $(am__tar) > result.tar
1296 #
1297 # Substitute a variable $(am__untar) that extract such
1298 # a tarball read from stdin.
1299 # $(am__untar) < result.tar
1300 #
1301 AC_DEFUN([_AM_PROG_TAR],
1302 [# Always define AMTAR for backward compatibility. Yes, it's still used
1303 # in the wild :-( We should find a proper way to deprecate it ...
1304 AC_SUBST([AMTAR], ['$${TAR-tar}'])
1305
1306 # We'll loop over all known methods to create a tar archive until one works.
1307 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
1308
1309 m4_if([$1], [v7],
1310 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
1311
1312 [m4_case([$1],
1313 [ustar],
1314 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
1315 # There is notably a 21 bits limit for the UID and the GID. In fact,
1316 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
1317 # and bug#13588).
1318 am_max_uid=2097151 # 2^21 - 1
1319 am_max_gid=$am_max_uid
1320 # The $UID and $GID variables are not portable, so we need to resort
1321 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
1322 # below are definitely unexpected, so allow the users to see them
1323 # (that is, avoid stderr redirection).
1324 am_uid=`id -u || echo unknown`
1325 am_gid=`id -g || echo unknown`
1326 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
1327 if test x$am_uid = xunknown; then
1328 AC_MSG_WARN([ancient id detected; assuming current UID is ok, but dist-ustar might not work])
1329 elif test $am_uid -le $am_max_uid; then
1330 AC_MSG_RESULT([yes])
1331 else
1332 AC_MSG_RESULT([no])
1333 _am_tools=none
1334 fi
1335 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
1336 if test x$gm_gid = xunknown; then
1337 AC_MSG_WARN([ancient id detected; assuming current GID is ok, but dist-ustar might not work])
1338 elif test $am_gid -le $am_max_gid; then
1339 AC_MSG_RESULT([yes])
1340 else
1341 AC_MSG_RESULT([no])
1342 _am_tools=none
1343 fi],
1344
1345 [pax],
1346 [],
1347
1348 [m4_fatal([Unknown tar format])])
1349
1350 AC_MSG_CHECKING([how to create a $1 tar archive])
1351
1352 # Go ahead even if we have the value already cached. We do so because we
1353 # need to set the values for the 'am__tar' and 'am__untar' variables.
1354 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
1355
1356 for _am_tool in $_am_tools; do
1357 case $_am_tool in
1358 gnutar)
1359 for _am_tar in tar gnutar gtar; do
1360 AM_RUN_LOG([$_am_tar --version]) && break
1361 done
1362 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
1363 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
1364 am__untar="$_am_tar -xf -"
1365 ;;
1366 plaintar)
1367 # Must skip GNU tar: if it does not support --format= it doesn't create
1368 # ustar tarball either.
1369 (tar --version) >/dev/null 2>&1 && continue
1370 am__tar='tar chf - "$$tardir"'
1371 am__tar_='tar chf - "$tardir"'
1372 am__untar='tar xf -'
1373 ;;
1374 pax)
1375 am__tar='pax -L -x $1 -w "$$tardir"'
1376 am__tar_='pax -L -x $1 -w "$tardir"'
1377 am__untar='pax -r'
1378 ;;
1379 cpio)
1380 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
1381 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
1382 am__untar='cpio -i -H $1 -d'
1383 ;;
1384 none)
1385 am__tar=false
1386 am__tar_=false
1387 am__untar=false
1388 ;;
1389 esac
1390
1391 # If the value was cached, stop now. We just wanted to have am__tar
1392 # and am__untar set.
1393 test -n "${am_cv_prog_tar_$1}" && break
1394
1395 # tar/untar a dummy directory, and stop if the command works.
1396 rm -rf conftest.dir
1397 mkdir conftest.dir
1398 echo GrepMe > conftest.dir/file
1399 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
1400 rm -rf conftest.dir
1401 if test -s conftest.tar; then
1402 AM_RUN_LOG([$am__untar <conftest.tar])
1403 AM_RUN_LOG([cat conftest.dir/file])
1404 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
1405 fi
1406 done
1407 rm -rf conftest.dir
1408
1409 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
1410 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
1411
1412 AC_SUBST([am__tar])
1413 AC_SUBST([am__untar])
1414 ]) # _AM_PROG_TAR
1415
1416 # Copyright (C) 2022-2025 Free Software Foundation, Inc.
1417 #
1418 # This file is free software; the Free Software Foundation
1419 # gives unlimited permission to copy and/or distribute it,
1420 # with or without modifications, as long as this notice is preserved.
1421
1422 # _AM_PROG_XARGS_N
1423 # ----------------
1424 # Check whether 'xargs -n' works. It should work everywhere, so the fallback
1425 # is not optimized at all as we never expect to use it.
1426 AC_DEFUN([_AM_PROG_XARGS_N],
1427 [AC_CACHE_CHECK([xargs -n works], am_cv_xargs_n_works, [dnl
1428 AS_IF([test "`echo 1 2 3 | xargs -n2 echo`" = "1 2
1429 3"], [am_cv_xargs_n_works=yes], [am_cv_xargs_n_works=no])])
1430 AS_IF([test "$am_cv_xargs_n_works" = yes], [am__xargs_n='xargs -n'], [dnl
1431 am__xargs_n='am__xargs_n () { shift; sed "s/ /\\n/g" | while read am__xargs_n_arg; do "$@" "$am__xargs_n_arg"; done; }'
1432 ])dnl
1433 AC_SUBST(am__xargs_n)
1434 ])
1435
1436 m4_include([m4/ac_sys_largefile_sensitive.m4])
1437 m4_include([m4/ax_prefix_config_h.m4])
1438 m4_include([m4/zziplib-aligned-access.m4])
1439 m4_include([../../m4/kpse-common.m4])
1440 m4_include([../../m4/kpse-largefile.m4])
1441 m4_include([../../m4/kpse-visibility.m4])
1442 m4_include([../../m4/kpse-warnings.m4])
1443 m4_include([../../m4/kpse-zlib-flags.m4])