doc: remove IRIX from manual
[autoconf.git] / lib / autoconf / autotest.m4
blobe4689fcbe976ece12000cad32b56a46805a4ca6c
1 # This file is part of Autoconf.                       -*- Autoconf -*-
2 # Interface with Autotest.
3 # Copyright (C) 1992-1996, 1998-2005, 2009-2017, 2020-2024 Free Software
4 # Foundation, Inc.
6 # This file is part of Autoconf.  This program is free
7 # software; you can redistribute it and/or modify it under the
8 # terms of the GNU General Public License as published by the
9 # Free Software Foundation, either version 3 of the License, or
10 # (at your option) any later version.
12 # This program is distributed in the hope that it will be useful,
13 # but WITHOUT ANY WARRANTY; without even the implied warranty of
14 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 # GNU General Public License for more details.
17 # Under Section 7 of GPL version 3, you are granted additional
18 # permissions described in the Autoconf Configure Script Exception,
19 # version 3.0, as published by the Free Software Foundation.
21 # You should have received a copy of the GNU General Public License
22 # and a copy of the Autoconf Configure Script Exception along with
23 # this program; see the files COPYINGv3 and COPYING.EXCEPTION
24 # respectively.  If not, see <https://www.gnu.org/licenses/> and
25 # <https://git.savannah.gnu.org/gitweb/?p=autoconf.git;a=blob_plain;f=COPYING.EXCEPTION>.
27 # Written by David MacKenzie, with help from
28 # François Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
29 # Roland McGrath, Noah Friedman, david d zuhn, and many others.
32 # AC_CONFIG_TESTDIR(TEST-DIRECTORY, [AUTOTEST-PATH = TEST-DIRECTORY])
33 # -------------------------------------------------------------------
34 # Configure an Autotest test suite directory.  Invoke it once per dir,
35 # even if there are several test suites in there.
37 # AUTOTEST-PATH must help the test suite to find the executables.
38 # It is relative to the top level of the package, and is expanded
39 # into all the build dirs of AUTOTEST-PATH, then all the src dirs.
41 # Do not use _ACEOF as we are being dumped into config.status via
42 # an _ACEOF-heredoc.
43 AC_DEFUN([AC_CONFIG_TESTDIR],
44 [AC_CONFIG_COMMANDS([$1/atconfig],
45 [cat >$1/atconfig <<ATEOF
46 @%:@ Configurable variable values for building test suites.
47 @%:@ Generated by $[0].
48 @%:@ Copyright (C) m4_PACKAGE_YEAR Free Software Foundation, Inc.
50 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
51 at_testdir='$1'
52 abs_builddir='$ac_abs_builddir'
53 at_srcdir='$ac_srcdir'
54 abs_srcdir='$ac_abs_srcdir'
55 at_top_srcdir='$ac_top_srcdir'
56 abs_top_srcdir='$ac_abs_top_srcdir'
57 at_top_build_prefix='$ac_top_build_prefix'
58 abs_top_builddir='$ac_abs_top_builddir'
60 # Backward compatibility with Autotest <= 2.59b:
61 at_top_builddir=\$at_top_build_prefix
63 m4_provide_if([_AC_COMPILER_EXEEXT], [
64 EXEEXT='$ac_cv_exeext'
65 ])dnl
66 AUTOTEST_PATH='m4_default([$2], [$1])'
68 SHELL=\${CONFIG_SHELL-'$SHELL'}
69 m4_provide_if([AC_ERLANG_PATH_ERL], [
70 ERL='$ERL'
71 ])dnl
72 m4_provide_if([AC_ERLANG_PATH_ERLC], [
73 ERLC='$ERLC'
74 ERLCFLAGS='$ERLCFLAGS'
75 ])dnl
76 ATEOF
78 [m4_provide_if([_AC_COMPILER_EXEEXT], [ac_cv_exeext="$ac_cv_exeext"
79 ])m4_provide_if([AC_ERLANG_PATH_ERL], [ERL="$ERL"
80 ])m4_provide_if([AC_ERLANG_PATH_ERLC], [ERLC="$ERLC"
81 ERLCFLAGS="$ERLCFLAGS"
82 ])])])# AC_CONFIG_TESTDIR