Debian Codegraph @

matio-1.5.30/aclocal.m4

raw
1 # generated automatically by aclocal 1.16.5 -*- Autoconf -*-
2
3 # Copyright (C) 1996-2021 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.71],,
18 [m4_warning([this file was generated for autoconf 2.71.
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-2021 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.16'
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.16.5], [],
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.16.5])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 # AM_AUX_DIR_EXPAND -*- Autoconf -*-
60
61 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
62 #
63 # This file is free software; the Free Software Foundation
64 # gives unlimited permission to copy and/or distribute it,
65 # with or without modifications, as long as this notice is preserved.
66
67 # For projects using AC_CONFIG_AUX_DIR([foo]), Autoconf sets
68 # $ac_aux_dir to '$srcdir/foo'. In other projects, it is set to
69 # '$srcdir', '$srcdir/..', or '$srcdir/../..'.
70 #
71 # Of course, Automake must honor this variable whenever it calls a
72 # tool from the auxiliary directory. The problem is that $srcdir (and
73 # therefore $ac_aux_dir as well) can be either absolute or relative,
74 # depending on how configure is run. This is pretty annoying, since
75 # it makes $ac_aux_dir quite unusable in subdirectories: in the top
76 # source directory, any form will work fine, but in subdirectories a
77 # relative path needs to be adjusted first.
78 #
79 # $ac_aux_dir/missing
80 # fails when called from a subdirectory if $ac_aux_dir is relative
81 # $top_srcdir/$ac_aux_dir/missing
82 # fails if $ac_aux_dir is absolute,
83 # fails when called from a subdirectory in a VPATH build with
84 # a relative $ac_aux_dir
85 #
86 # The reason of the latter failure is that $top_srcdir and $ac_aux_dir
87 # are both prefixed by $srcdir. In an in-source build this is usually
88 # harmless because $srcdir is '.', but things will broke when you
89 # start a VPATH build or use an absolute $srcdir.
90 #
91 # So we could use something similar to $top_srcdir/$ac_aux_dir/missing,
92 # iff we strip the leading $srcdir from $ac_aux_dir. That would be:
93 # am_aux_dir='\$(top_srcdir)/'`expr "$ac_aux_dir" : "$srcdir//*\(.*\)"`
94 # and then we would define $MISSING as
95 # MISSING="\${SHELL} $am_aux_dir/missing"
96 # This will work as long as MISSING is not called from configure, because
97 # unfortunately $(top_srcdir) has no meaning in configure.
98 # However there are other variables, like CC, which are often used in
99 # configure, and could therefore not use this "fixed" $ac_aux_dir.
100 #
101 # Another solution, used here, is to always expand $ac_aux_dir to an
102 # absolute PATH. The drawback is that using absolute paths prevent a
103 # configured tree to be moved without reconfiguration.
104
105 AC_DEFUN([AM_AUX_DIR_EXPAND],
106 [AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT])dnl
107 # Expand $ac_aux_dir to an absolute path.
108 am_aux_dir=`cd "$ac_aux_dir" && pwd`
109 ])
110
111 # AM_CONDITIONAL -*- Autoconf -*-
112
113 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
114 #
115 # This file is free software; the Free Software Foundation
116 # gives unlimited permission to copy and/or distribute it,
117 # with or without modifications, as long as this notice is preserved.
118
119 # AM_CONDITIONAL(NAME, SHELL-CONDITION)
120 # -------------------------------------
121 # Define a conditional.
122 AC_DEFUN([AM_CONDITIONAL],
123 [AC_PREREQ([2.52])dnl
124 m4_if([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
125 [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
126 AC_SUBST([$1_TRUE])dnl
127 AC_SUBST([$1_FALSE])dnl
128 _AM_SUBST_NOTMAKE([$1_TRUE])dnl
129 _AM_SUBST_NOTMAKE([$1_FALSE])dnl
130 m4_define([_AM_COND_VALUE_$1], [$2])dnl
131 if $2; then
132 $1_TRUE=
133 $1_FALSE='#'
134 else
135 $1_TRUE='#'
136 $1_FALSE=
137 fi
138 AC_CONFIG_COMMANDS_PRE(
139 [if test -z "${$1_TRUE}" && test -z "${$1_FALSE}"; then
140 AC_MSG_ERROR([[conditional "$1" was never defined.
141 Usually this means the macro was only invoked conditionally.]])
142 fi])])
143
144 # Do all the work for Automake. -*- Autoconf -*-
145
146 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
147 #
148 # This file is free software; the Free Software Foundation
149 # gives unlimited permission to copy and/or distribute it,
150 # with or without modifications, as long as this notice is preserved.
151
152 # This macro actually does too much. Some checks are only needed if
153 # your package does certain things. But this isn't really a big deal.
154
155 dnl Redefine AC_PROG_CC to automatically invoke _AM_PROG_CC_C_O.
156 m4_define([AC_PROG_CC],
157 m4_defn([AC_PROG_CC])
158 [_AM_PROG_CC_C_O
159 ])
160
161 # AM_INIT_AUTOMAKE(PACKAGE, VERSION, [NO-DEFINE])
162 # AM_INIT_AUTOMAKE([OPTIONS])
163 # -----------------------------------------------
164 # The call with PACKAGE and VERSION arguments is the old style
165 # call (pre autoconf-2.50), which is being phased out. PACKAGE
166 # and VERSION should now be passed to AC_INIT and removed from
167 # the call to AM_INIT_AUTOMAKE.
168 # We support both call styles for the transition. After
169 # the next Automake release, Autoconf can make the AC_INIT
170 # arguments mandatory, and then we can depend on a new Autoconf
171 # release and drop the old call support.
172 AC_DEFUN([AM_INIT_AUTOMAKE],
173 [AC_PREREQ([2.65])dnl
174 m4_ifdef([_$0_ALREADY_INIT],
175 [m4_fatal([$0 expanded multiple times
176 ]m4_defn([_$0_ALREADY_INIT]))],
177 [m4_define([_$0_ALREADY_INIT], m4_expansion_stack)])dnl
178 dnl Autoconf wants to disallow AM_ names. We explicitly allow
179 dnl the ones we care about.
180 m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
181 AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
182 AC_REQUIRE([AC_PROG_INSTALL])dnl
183 if test "`cd $srcdir && pwd`" != "`pwd`"; then
184 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
185 # is not polluted with repeated "-I."
186 AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
187 # test to see if srcdir already configured
188 if test -f $srcdir/config.status; then
189 AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
190 fi
191 fi
192
193 # test whether we have cygpath
194 if test -z "$CYGPATH_W"; then
195 if (cygpath --version) >/dev/null 2>/dev/null; then
196 CYGPATH_W='cygpath -w'
197 else
198 CYGPATH_W=echo
199 fi
200 fi
201 AC_SUBST([CYGPATH_W])
202
203 # Define the identity of the package.
204 dnl Distinguish between old-style and new-style calls.
205 m4_ifval([$2],
206 [AC_DIAGNOSE([obsolete],
207 [$0: two- and three-arguments forms are deprecated.])
208 m4_ifval([$3], [_AM_SET_OPTION([no-define])])dnl
209 AC_SUBST([PACKAGE], [$1])dnl
210 AC_SUBST([VERSION], [$2])],
211 [_AM_SET_OPTIONS([$1])dnl
212 dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
213 m4_if(
214 m4_ifset([AC_PACKAGE_NAME], [ok]):m4_ifset([AC_PACKAGE_VERSION], [ok]),
215 [ok:ok],,
216 [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
217 AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
218 AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
219
220 _AM_IF_OPTION([no-define],,
221 [AC_DEFINE_UNQUOTED([PACKAGE], ["$PACKAGE"], [Name of package])
222 AC_DEFINE_UNQUOTED([VERSION], ["$VERSION"], [Version number of package])])dnl
223
224 # Some tools Automake needs.
225 AC_REQUIRE([AM_SANITY_CHECK])dnl
226 AC_REQUIRE([AC_ARG_PROGRAM])dnl
227 AM_MISSING_PROG([ACLOCAL], [aclocal-${am__api_version}])
228 AM_MISSING_PROG([AUTOCONF], [autoconf])
229 AM_MISSING_PROG([AUTOMAKE], [automake-${am__api_version}])
230 AM_MISSING_PROG([AUTOHEADER], [autoheader])
231 AM_MISSING_PROG([MAKEINFO], [makeinfo])
232 AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
233 AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
234 AC_REQUIRE([AC_PROG_MKDIR_P])dnl
235 # For better backward compatibility. To be removed once Automake 1.9.x
236 # dies out for good. For more background, see:
237 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
238 # <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
239 AC_SUBST([mkdir_p], ['$(MKDIR_P)'])
240 # We need awk for the "check" target (and possibly the TAP driver). The
241 # system "awk" is bad on some platforms.
242 AC_REQUIRE([AC_PROG_AWK])dnl
243 AC_REQUIRE([AC_PROG_MAKE_SET])dnl
244 AC_REQUIRE([AM_SET_LEADING_DOT])dnl
245 _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
246 [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
247 [_AM_PROG_TAR([v7])])])
248 _AM_IF_OPTION([no-dependencies],,
249 [AC_PROVIDE_IFELSE([AC_PROG_CC],
250 [_AM_DEPENDENCIES([CC])],
251 [m4_define([AC_PROG_CC],
252 m4_defn([AC_PROG_CC])[_AM_DEPENDENCIES([CC])])])dnl
253 AC_PROVIDE_IFELSE([AC_PROG_CXX],
254 [_AM_DEPENDENCIES([CXX])],
255 [m4_define([AC_PROG_CXX],
256 m4_defn([AC_PROG_CXX])[_AM_DEPENDENCIES([CXX])])])dnl
257 AC_PROVIDE_IFELSE([AC_PROG_OBJC],
258 [_AM_DEPENDENCIES([OBJC])],
259 [m4_define([AC_PROG_OBJC],
260 m4_defn([AC_PROG_OBJC])[_AM_DEPENDENCIES([OBJC])])])dnl
261 AC_PROVIDE_IFELSE([AC_PROG_OBJCXX],
262 [_AM_DEPENDENCIES([OBJCXX])],
263 [m4_define([AC_PROG_OBJCXX],
264 m4_defn([AC_PROG_OBJCXX])[_AM_DEPENDENCIES([OBJCXX])])])dnl
265 ])
266 # Variables for tags utilities; see am/tags.am
267 if test -z "$CTAGS"; then
268 CTAGS=ctags
269 fi
270 AC_SUBST([CTAGS])
271 if test -z "$ETAGS"; then
272 ETAGS=etags
273 fi
274 AC_SUBST([ETAGS])
275 if test -z "$CSCOPE"; then
276 CSCOPE=cscope
277 fi
278 AC_SUBST([CSCOPE])
279
280 AC_REQUIRE([AM_SILENT_RULES])dnl
281 dnl The testsuite driver may need to know about EXEEXT, so add the
282 dnl 'am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This
283 dnl macro is hooked onto _AC_COMPILER_EXEEXT early, see below.
284 AC_CONFIG_COMMANDS_PRE(dnl
285 [m4_provide_if([_AM_COMPILER_EXEEXT],
286 [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
287
288 # POSIX will say in a future version that running "rm -f" with no argument
289 # is OK; and we want to be able to make that assumption in our Makefile
290 # recipes. So use an aggressive probe to check that the usage we want is
291 # actually supported "in the wild" to an acceptable degree.
292 # See automake bug#10828.
293 # To make any issue more visible, cause the running configure to be aborted
294 # by default if the 'rm' program in use doesn't match our expectations; the
295 # user can still override this though.
296 if rm -f && rm -fr && rm -rf; then : OK; else
297 cat >&2 <<'END'
298 Oops!
299
300 Your 'rm' program seems unable to run without file operands specified
301 on the command line, even when the '-f' option is present. This is contrary
302 to the behaviour of most rm programs out there, and not conforming with
303 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
304
305 Please tell [email protected] about your system, including the value
306 of your $PATH and any error possibly output before this message. This
307 can help us improve future automake versions.
308
309 END
310 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
311 echo 'Configuration will proceed anyway, since you have set the' >&2
312 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
313 echo >&2
314 else
315 cat >&2 <<'END'
316 Aborting the configuration process, to ensure you take notice of the issue.
317
318 You can download and install GNU coreutils to get an 'rm' implementation
319 that behaves properly: <https://www.gnu.org/software/coreutils/>.
320
321 If you want to complete the configuration process using your problematic
322 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
323 to "yes", and re-run configure.
324
325 END
326 AC_MSG_ERROR([Your 'rm' program is bad, sorry.])
327 fi
328 fi
329 dnl The trailing newline in this macro's definition is deliberate, for
330 dnl backward compatibility and to allow trailing 'dnl'-style comments
331 dnl after the AM_INIT_AUTOMAKE invocation. See automake bug#16841.
332 ])
333
334 dnl Hook into '_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
335 dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
336 dnl mangled by Autoconf and run in a shell conditional statement.
337 m4_define([_AC_COMPILER_EXEEXT],
338 m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
339
340 # When config.status generates a header, we must update the stamp-h file.
341 # This file resides in the same directory as the config header
342 # that is generated. The stamp files are numbered to have different names.
343
344 # Autoconf calls _AC_AM_CONFIG_HEADER_HOOK (when defined) in the
345 # loop where config.status creates the headers, so we can generate
346 # our stamp files there.
347 AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
348 [# Compute $1's index in $config_headers.
349 _am_arg=$1
350 _am_stamp_count=1
351 for _am_header in $config_headers :; do
352 case $_am_header in
353 $_am_arg | $_am_arg:* )
354 break ;;
355 * )
356 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
357 esac
358 done
359 echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
360
361 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
362 #
363 # This file is free software; the Free Software Foundation
364 # gives unlimited permission to copy and/or distribute it,
365 # with or without modifications, as long as this notice is preserved.
366
367 # AM_PROG_INSTALL_SH
368 # ------------------
369 # Define $install_sh.
370 AC_DEFUN([AM_PROG_INSTALL_SH],
371 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
372 if test x"${install_sh+set}" != xset; then
373 case $am_aux_dir in
374 *\ * | *\ *)
375 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
376 *)
377 install_sh="\${SHELL} $am_aux_dir/install-sh"
378 esac
379 fi
380 AC_SUBST([install_sh])])
381
382 # Copyright (C) 2003-2021 Free Software Foundation, Inc.
383 #
384 # This file is free software; the Free Software Foundation
385 # gives unlimited permission to copy and/or distribute it,
386 # with or without modifications, as long as this notice is preserved.
387
388 # Check whether the underlying file-system supports filenames
389 # with a leading dot. For instance MS-DOS doesn't.
390 AC_DEFUN([AM_SET_LEADING_DOT],
391 [rm -rf .tst 2>/dev/null
392 mkdir .tst 2>/dev/null
393 if test -d .tst; then
394 am__leading_dot=.
395 else
396 am__leading_dot=_
397 fi
398 rmdir .tst 2>/dev/null
399 AC_SUBST([am__leading_dot])])
400
401 # Add --enable-maintainer-mode option to configure. -*- Autoconf -*-
402 # From Jim Meyering
403
404 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
405 #
406 # This file is free software; the Free Software Foundation
407 # gives unlimited permission to copy and/or distribute it,
408 # with or without modifications, as long as this notice is preserved.
409
410 # AM_MAINTAINER_MODE([DEFAULT-MODE])
411 # ----------------------------------
412 # Control maintainer-specific portions of Makefiles.
413 # Default is to disable them, unless 'enable' is passed literally.
414 # For symmetry, 'disable' may be passed as well. Anyway, the user
415 # can override the default with the --enable/--disable switch.
416 AC_DEFUN([AM_MAINTAINER_MODE],
417 [m4_case(m4_default([$1], [disable]),
418 [enable], [m4_define([am_maintainer_other], [disable])],
419 [disable], [m4_define([am_maintainer_other], [enable])],
420 [m4_define([am_maintainer_other], [enable])
421 m4_warn([syntax], [unexpected argument to AM@&t@_MAINTAINER_MODE: $1])])
422 AC_MSG_CHECKING([whether to enable maintainer-specific portions of Makefiles])
423 dnl maintainer-mode's default is 'disable' unless 'enable' is passed
424 AC_ARG_ENABLE([maintainer-mode],
425 [AS_HELP_STRING([--]am_maintainer_other[-maintainer-mode],
426 am_maintainer_other[ make rules and dependencies not useful
427 (and sometimes confusing) to the casual installer])],
428 [USE_MAINTAINER_MODE=$enableval],
429 [USE_MAINTAINER_MODE=]m4_if(am_maintainer_other, [enable], [no], [yes]))
430 AC_MSG_RESULT([$USE_MAINTAINER_MODE])
431 AM_CONDITIONAL([MAINTAINER_MODE], [test $USE_MAINTAINER_MODE = yes])
432 MAINT=$MAINTAINER_MODE_TRUE
433 AC_SUBST([MAINT])dnl
434 ]
435 )
436
437 # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
438
439 # Copyright (C) 1997-2021 Free Software Foundation, Inc.
440 #
441 # This file is free software; the Free Software Foundation
442 # gives unlimited permission to copy and/or distribute it,
443 # with or without modifications, as long as this notice is preserved.
444
445 # AM_MISSING_PROG(NAME, PROGRAM)
446 # ------------------------------
447 AC_DEFUN([AM_MISSING_PROG],
448 [AC_REQUIRE([AM_MISSING_HAS_RUN])
449 $1=${$1-"${am_missing_run}$2"}
450 AC_SUBST($1)])
451
452 # AM_MISSING_HAS_RUN
453 # ------------------
454 # Define MISSING if not defined so far and test if it is modern enough.
455 # If it is, set am_missing_run to use it, otherwise, to nothing.
456 AC_DEFUN([AM_MISSING_HAS_RUN],
457 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
458 AC_REQUIRE_AUX_FILE([missing])dnl
459 if test x"${MISSING+set}" != xset; then
460 MISSING="\${SHELL} '$am_aux_dir/missing'"
461 fi
462 # Use eval to expand $SHELL
463 if eval "$MISSING --is-lightweight"; then
464 am_missing_run="$MISSING "
465 else
466 am_missing_run=
467 AC_MSG_WARN(['missing' script is too old or missing])
468 fi
469 ])
470
471 # Helper functions for option handling. -*- Autoconf -*-
472
473 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
474 #
475 # This file is free software; the Free Software Foundation
476 # gives unlimited permission to copy and/or distribute it,
477 # with or without modifications, as long as this notice is preserved.
478
479 # _AM_MANGLE_OPTION(NAME)
480 # -----------------------
481 AC_DEFUN([_AM_MANGLE_OPTION],
482 [[_AM_OPTION_]m4_bpatsubst($1, [[^a-zA-Z0-9_]], [_])])
483
484 # _AM_SET_OPTION(NAME)
485 # --------------------
486 # Set option NAME. Presently that only means defining a flag for this option.
487 AC_DEFUN([_AM_SET_OPTION],
488 [m4_define(_AM_MANGLE_OPTION([$1]), [1])])
489
490 # _AM_SET_OPTIONS(OPTIONS)
491 # ------------------------
492 # OPTIONS is a space-separated list of Automake options.
493 AC_DEFUN([_AM_SET_OPTIONS],
494 [m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
495
496 # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
497 # -------------------------------------------
498 # Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
499 AC_DEFUN([_AM_IF_OPTION],
500 [m4_ifset(_AM_MANGLE_OPTION([$1]), [$2], [$3])])
501
502 # Copyright (C) 1999-2021 Free Software Foundation, Inc.
503 #
504 # This file is free software; the Free Software Foundation
505 # gives unlimited permission to copy and/or distribute it,
506 # with or without modifications, as long as this notice is preserved.
507
508 # _AM_PROG_CC_C_O
509 # ---------------
510 # Like AC_PROG_CC_C_O, but changed for automake. We rewrite AC_PROG_CC
511 # to automatically call this.
512 AC_DEFUN([_AM_PROG_CC_C_O],
513 [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
514 AC_REQUIRE_AUX_FILE([compile])dnl
515 AC_LANG_PUSH([C])dnl
516 AC_CACHE_CHECK(
517 [whether $CC understands -c and -o together],
518 [am_cv_prog_cc_c_o],
519 [AC_LANG_CONFTEST([AC_LANG_PROGRAM([])])
520 # Make sure it works both with $CC and with simple cc.
521 # Following AC_PROG_CC_C_O, we do the test twice because some
522 # compilers refuse to overwrite an existing .o file with -o,
523 # though they will create one.
524 am_cv_prog_cc_c_o=yes
525 for am_i in 1 2; do
526 if AM_RUN_LOG([$CC -c conftest.$ac_ext -o conftest2.$ac_objext]) \
527 && test -f conftest2.$ac_objext; then
528 : OK
529 else
530 am_cv_prog_cc_c_o=no
531 break
532 fi
533 done
534 rm -f core conftest*
535 unset am_i])
536 if test "$am_cv_prog_cc_c_o" != yes; then
537 # Losing compiler, so override with the script.
538 # FIXME: It is wrong to rewrite CC.
539 # But if we don't then we get into trouble of one sort or another.
540 # A longer-term fix would be to have automake use am__CC in this case,
541 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
542 CC="$am_aux_dir/compile $CC"
543 fi
544 AC_LANG_POP([C])])
545
546 # For backward compatibility.
547 AC_DEFUN_ONCE([AM_PROG_CC_C_O], [AC_REQUIRE([AC_PROG_CC])])
548
549 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
550 #
551 # This file is free software; the Free Software Foundation
552 # gives unlimited permission to copy and/or distribute it,
553 # with or without modifications, as long as this notice is preserved.
554
555 # AM_RUN_LOG(COMMAND)
556 # -------------------
557 # Run COMMAND, save the exit status in ac_status, and log it.
558 # (This has been adapted from Autoconf's _AC_RUN_LOG macro.)
559 AC_DEFUN([AM_RUN_LOG],
560 [{ echo "$as_me:$LINENO: $1" >&AS_MESSAGE_LOG_FD
561 ($1) >&AS_MESSAGE_LOG_FD 2>&AS_MESSAGE_LOG_FD
562 ac_status=$?
563 echo "$as_me:$LINENO: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
564 (exit $ac_status); }])
565
566 # Check to make sure that the build environment is sane. -*- Autoconf -*-
567
568 # Copyright (C) 1996-2021 Free Software Foundation, Inc.
569 #
570 # This file is free software; the Free Software Foundation
571 # gives unlimited permission to copy and/or distribute it,
572 # with or without modifications, as long as this notice is preserved.
573
574 # AM_SANITY_CHECK
575 # ---------------
576 AC_DEFUN([AM_SANITY_CHECK],
577 [AC_MSG_CHECKING([whether build environment is sane])
578 # Reject unsafe characters in $srcdir or the absolute working directory
579 # name. Accept space and tab only in the latter.
580 am_lf='
581 '
582 case `pwd` in
583 *[[\\\"\#\$\&\'\`$am_lf]]*)
584 AC_MSG_ERROR([unsafe absolute working directory name]);;
585 esac
586 case $srcdir in
587 *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
588 AC_MSG_ERROR([unsafe srcdir value: '$srcdir']);;
589 esac
590
591 # Do 'set' in a subshell so we don't clobber the current shell's
592 # arguments. Must try -L first in case configure is actually a
593 # symlink; some systems play weird games with the mod time of symlinks
594 # (eg FreeBSD returns the mod time of the symlink's containing
595 # directory).
596 if (
597 am_has_slept=no
598 for am_try in 1 2; do
599 echo "timestamp, slept: $am_has_slept" > conftest.file
600 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
601 if test "$[*]" = "X"; then
602 # -L didn't work.
603 set X `ls -t "$srcdir/configure" conftest.file`
604 fi
605 if test "$[*]" != "X $srcdir/configure conftest.file" \
606 && test "$[*]" != "X conftest.file $srcdir/configure"; then
607
608 # If neither matched, then we have a broken ls. This can happen
609 # if, for instance, CONFIG_SHELL is bash and it inherits a
610 # broken ls alias from the environment. This has actually
611 # happened. Such a system could not be considered "sane".
612 AC_MSG_ERROR([ls -t appears to fail. Make sure there is not a broken
613 alias in your environment])
614 fi
615 if test "$[2]" = conftest.file || test $am_try -eq 2; then
616 break
617 fi
618 # Just in case.
619 sleep 1
620 am_has_slept=yes
621 done
622 test "$[2]" = conftest.file
623 )
624 then
625 # Ok.
626 :
627 else
628 AC_MSG_ERROR([newly created file is older than distributed files!
629 Check your system clock])
630 fi
631 AC_MSG_RESULT([yes])
632 # If we didn't sleep, we still need to ensure time stamps of config.status and
633 # generated files are strictly newer.
634 am_sleep_pid=
635 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
636 ( sleep 1 ) &
637 am_sleep_pid=$!
638 fi
639 AC_CONFIG_COMMANDS_PRE(
640 [AC_MSG_CHECKING([that generated files are newer than configure])
641 if test -n "$am_sleep_pid"; then
642 # Hide warnings about reused PIDs.
643 wait $am_sleep_pid 2>/dev/null
644 fi
645 AC_MSG_RESULT([done])])
646 rm -f conftest.file
647 ])
648
649 # Copyright (C) 2009-2021 Free Software Foundation, Inc.
650 #
651 # This file is free software; the Free Software Foundation
652 # gives unlimited permission to copy and/or distribute it,
653 # with or without modifications, as long as this notice is preserved.
654
655 # AM_SILENT_RULES([DEFAULT])
656 # --------------------------
657 # Enable less verbose build rules; with the default set to DEFAULT
658 # ("yes" being less verbose, "no" or empty being verbose).
659 AC_DEFUN([AM_SILENT_RULES],
660 [AC_ARG_ENABLE([silent-rules], [dnl
661 AS_HELP_STRING(
662 [--enable-silent-rules],
663 [less verbose build output (undo: "make V=1")])
664 AS_HELP_STRING(
665 [--disable-silent-rules],
666 [verbose build output (undo: "make V=0")])dnl
667 ])
668 case $enable_silent_rules in @%:@ (((
669 yes) AM_DEFAULT_VERBOSITY=0;;
670 no) AM_DEFAULT_VERBOSITY=1;;
671 *) AM_DEFAULT_VERBOSITY=m4_if([$1], [yes], [0], [1]);;
672 esac
673 dnl
674 dnl A few 'make' implementations (e.g., NonStop OS and NextStep)
675 dnl do not support nested variable expansions.
676 dnl See automake bug#9928 and bug#10237.
677 am_make=${MAKE-make}
678 AC_CACHE_CHECK([whether $am_make supports nested variables],
679 [am_cv_make_support_nested_variables],
680 [if AS_ECHO([['TRUE=$(BAR$(V))
681 BAR0=false
682 BAR1=true
683 V=1
684 am__doit:
685 @$(TRUE)
686 .PHONY: am__doit']]) | $am_make -f - >/dev/null 2>&1; then
687 am_cv_make_support_nested_variables=yes
688 else
689 am_cv_make_support_nested_variables=no
690 fi])
691 if test $am_cv_make_support_nested_variables = yes; then
692 dnl Using '$V' instead of '$(V)' breaks IRIX make.
693 AM_V='$(V)'
694 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
695 else
696 AM_V=$AM_DEFAULT_VERBOSITY
697 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
698 fi
699 AC_SUBST([AM_V])dnl
700 AM_SUBST_NOTMAKE([AM_V])dnl
701 AC_SUBST([AM_DEFAULT_V])dnl
702 AM_SUBST_NOTMAKE([AM_DEFAULT_V])dnl
703 AC_SUBST([AM_DEFAULT_VERBOSITY])dnl
704 AM_BACKSLASH='\'
705 AC_SUBST([AM_BACKSLASH])dnl
706 _AM_SUBST_NOTMAKE([AM_BACKSLASH])dnl
707 ])
708
709 # Copyright (C) 2001-2021 Free Software Foundation, Inc.
710 #
711 # This file is free software; the Free Software Foundation
712 # gives unlimited permission to copy and/or distribute it,
713 # with or without modifications, as long as this notice is preserved.
714
715 # AM_PROG_INSTALL_STRIP
716 # ---------------------
717 # One issue with vendor 'install' (even GNU) is that you can't
718 # specify the program used to strip binaries. This is especially
719 # annoying in cross-compiling environments, where the build's strip
720 # is unlikely to handle the host's binaries.
721 # Fortunately install-sh will honor a STRIPPROG variable, so we
722 # always use install-sh in "make install-strip", and initialize
723 # STRIPPROG with the value of the STRIP variable (set by the user).
724 AC_DEFUN([AM_PROG_INSTALL_STRIP],
725 [AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
726 # Installed binaries are usually stripped using 'strip' when the user
727 # run "make install-strip". However 'strip' might not be the right
728 # tool to use in cross-compilation environments, therefore Automake
729 # will honor the 'STRIP' environment variable to overrule this program.
730 dnl Don't test for $cross_compiling = yes, because it might be 'maybe'.
731 if test "$cross_compiling" != no; then
732 AC_CHECK_TOOL([STRIP], [strip], :)
733 fi
734 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
735 AC_SUBST([INSTALL_STRIP_PROGRAM])])
736
737 # Copyright (C) 2006-2021 Free Software Foundation, Inc.
738 #
739 # This file is free software; the Free Software Foundation
740 # gives unlimited permission to copy and/or distribute it,
741 # with or without modifications, as long as this notice is preserved.
742
743 # _AM_SUBST_NOTMAKE(VARIABLE)
744 # ---------------------------
745 # Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
746 # This macro is traced by Automake.
747 AC_DEFUN([_AM_SUBST_NOTMAKE])
748
749 # AM_SUBST_NOTMAKE(VARIABLE)
750 # --------------------------
751 # Public sister of _AM_SUBST_NOTMAKE.
752 AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
753
754 # Check how to create a tarball. -*- Autoconf -*-
755
756 # Copyright (C) 2004-2021 Free Software Foundation, Inc.
757 #
758 # This file is free software; the Free Software Foundation
759 # gives unlimited permission to copy and/or distribute it,
760 # with or without modifications, as long as this notice is preserved.
761
762 # _AM_PROG_TAR(FORMAT)
763 # --------------------
764 # Check how to create a tarball in format FORMAT.
765 # FORMAT should be one of 'v7', 'ustar', or 'pax'.
766 #
767 # Substitute a variable $(am__tar) that is a command
768 # writing to stdout a FORMAT-tarball containing the directory
769 # $tardir.
770 # tardir=directory && $(am__tar) > result.tar
771 #
772 # Substitute a variable $(am__untar) that extract such
773 # a tarball read from stdin.
774 # $(am__untar) < result.tar
775 #
776 AC_DEFUN([_AM_PROG_TAR],
777 [# Always define AMTAR for backward compatibility. Yes, it's still used
778 # in the wild :-( We should find a proper way to deprecate it ...
779 AC_SUBST([AMTAR], ['$${TAR-tar}'])
780
781 # We'll loop over all known methods to create a tar archive until one works.
782 _am_tools='gnutar m4_if([$1], [ustar], [plaintar]) pax cpio none'
783
784 m4_if([$1], [v7],
785 [am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'],
786
787 [m4_case([$1],
788 [ustar],
789 [# The POSIX 1988 'ustar' format is defined with fixed-size fields.
790 # There is notably a 21 bits limit for the UID and the GID. In fact,
791 # the 'pax' utility can hang on bigger UID/GID (see automake bug#8343
792 # and bug#13588).
793 am_max_uid=2097151 # 2^21 - 1
794 am_max_gid=$am_max_uid
795 # The $UID and $GID variables are not portable, so we need to resort
796 # to the POSIX-mandated id(1) utility. Errors in the 'id' calls
797 # below are definitely unexpected, so allow the users to see them
798 # (that is, avoid stderr redirection).
799 am_uid=`id -u || echo unknown`
800 am_gid=`id -g || echo unknown`
801 AC_MSG_CHECKING([whether UID '$am_uid' is supported by ustar format])
802 if test $am_uid -le $am_max_uid; then
803 AC_MSG_RESULT([yes])
804 else
805 AC_MSG_RESULT([no])
806 _am_tools=none
807 fi
808 AC_MSG_CHECKING([whether GID '$am_gid' is supported by ustar format])
809 if test $am_gid -le $am_max_gid; then
810 AC_MSG_RESULT([yes])
811 else
812 AC_MSG_RESULT([no])
813 _am_tools=none
814 fi],
815
816 [pax],
817 [],
818
819 [m4_fatal([Unknown tar format])])
820
821 AC_MSG_CHECKING([how to create a $1 tar archive])
822
823 # Go ahead even if we have the value already cached. We do so because we
824 # need to set the values for the 'am__tar' and 'am__untar' variables.
825 _am_tools=${am_cv_prog_tar_$1-$_am_tools}
826
827 for _am_tool in $_am_tools; do
828 case $_am_tool in
829 gnutar)
830 for _am_tar in tar gnutar gtar; do
831 AM_RUN_LOG([$_am_tar --version]) && break
832 done
833 am__tar="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$$tardir"'
834 am__tar_="$_am_tar --format=m4_if([$1], [pax], [posix], [$1]) -chf - "'"$tardir"'
835 am__untar="$_am_tar -xf -"
836 ;;
837 plaintar)
838 # Must skip GNU tar: if it does not support --format= it doesn't create
839 # ustar tarball either.
840 (tar --version) >/dev/null 2>&1 && continue
841 am__tar='tar chf - "$$tardir"'
842 am__tar_='tar chf - "$tardir"'
843 am__untar='tar xf -'
844 ;;
845 pax)
846 am__tar='pax -L -x $1 -w "$$tardir"'
847 am__tar_='pax -L -x $1 -w "$tardir"'
848 am__untar='pax -r'
849 ;;
850 cpio)
851 am__tar='find "$$tardir" -print | cpio -o -H $1 -L'
852 am__tar_='find "$tardir" -print | cpio -o -H $1 -L'
853 am__untar='cpio -i -H $1 -d'
854 ;;
855 none)
856 am__tar=false
857 am__tar_=false
858 am__untar=false
859 ;;
860 esac
861
862 # If the value was cached, stop now. We just wanted to have am__tar
863 # and am__untar set.
864 test -n "${am_cv_prog_tar_$1}" && break
865
866 # tar/untar a dummy directory, and stop if the command works.
867 rm -rf conftest.dir
868 mkdir conftest.dir
869 echo GrepMe > conftest.dir/file
870 AM_RUN_LOG([tardir=conftest.dir && eval $am__tar_ >conftest.tar])
871 rm -rf conftest.dir
872 if test -s conftest.tar; then
873 AM_RUN_LOG([$am__untar <conftest.tar])
874 AM_RUN_LOG([cat conftest.dir/file])
875 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
876 fi
877 done
878 rm -rf conftest.dir
879
880 AC_CACHE_VAL([am_cv_prog_tar_$1], [am_cv_prog_tar_$1=$_am_tool])
881 AC_MSG_RESULT([$am_cv_prog_tar_$1])])
882
883 AC_SUBST([am__tar])
884 AC_SUBST([am__untar])
885 ]) # _AM_PROG_TAR
886
887 m4_include([config/libtool.m4])
888 m4_include([config/ltoptions.m4])
889 m4_include([config/ltsugar.m4])
890 m4_include([config/ltversion.m4])
891 m4_include([config/lt~obsolete.m4])
892 m4_include([config/matio_def_file_ver.m4])
893 m4_include([config/matio_getopt_long.m4])
894 m4_include([config/matio_hdf5.m4])
895 m4_include([config/matio_int16_t.m4])
896 m4_include([config/matio_int32_t.m4])
897 m4_include([config/matio_int64_t.m4])
898 m4_include([config/matio_int8_t.m4])
899 m4_include([config/matio_lib_suffix.m4])
900 m4_include([config/matio_matlab.m4])
901 m4_include([config/matio_off64_t.m4])
902 m4_include([config/matio_uint16_t.m4])
903 m4_include([config/matio_uint32_t.m4])
904 m4_include([config/matio_uint64_t.m4])
905 m4_include([config/matio_uint8_t.m4])
906 m4_include([config/matio_va_copy.m4])
907 m4_include([config/matio_zlib.m4])