Update autoconf to version 2.61
[msysgit.git] / share / autoconf / autoconf / autotest.m4
blobe9990a6ac29e6cd3d36bbe4c4ac579d97f12f106
1 # This file is part of Autoconf.                       -*- Autoconf -*-
2 # Interface with Autotest.
3 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002,
4 # 2003, 2004, 2005 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2, or (at your option)
9 # any later version.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19 # 02110-1301, USA.
21 # As a special exception, the Free Software Foundation gives unlimited
22 # permission to copy, distribute and modify the configure scripts that
23 # are the output of Autoconf.  You need not follow the terms of the GNU
24 # General Public License when using or distributing such scripts, even
25 # though portions of the text of Autoconf appear in them.  The GNU
26 # General Public License (GPL) does govern all other use of the material
27 # that constitutes the Autoconf program.
29 # Certain portions of the Autoconf source text are designed to be copied
30 # (in certain cases, depending on the input) into the output of
31 # Autoconf.  We call these the "data" portions.  The rest of the Autoconf
32 # source text consists of comments plus executable code that decides which
33 # of the data portions to output in any given case.  We call these
34 # comments and executable code the "non-data" portions.  Autoconf never
35 # copies any of the non-data portions into its output.
37 # This special exception to the GPL applies to versions of Autoconf
38 # released by the Free Software Foundation.  When you make and
39 # distribute a modified version of Autoconf, you may extend this special
40 # exception to the GPL to apply to your modified version as well, *unless*
41 # your modified version has the potential to copy into its output some
42 # of the text that was the non-data portion of the version that you started
43 # with.  (In other words, unless your change moves or copies text from
44 # the non-data portions to the data portions.)  If your modification has
45 # such potential, you must delete any notice of this special exception
46 # to the GPL from your modified version.
48 # Written by David MacKenzie, with help from
49 # Franc,ois Pinard, Karl Berry, Richard Pixley, Ian Lance Taylor,
50 # Roland McGrath, Noah Friedman, david d zuhn, and many others.
53 # AC_CONFIG_TESTDIR(TEST-DIRECTORY, [AUTOTEST-PATH = TEST-DIRECTORY])
54 # -------------------------------------------------------------------
55 # Configure an Autotest test suite directory.  Invoke it once per dir,
56 # even if there are several test suites in there.
58 # AUTOTEST-PATH must help the test suite to find the executables.
59 # It is relative to the top level of the package, and is expanded
60 # into all the build dirs of AUTOTEST-PATH, then all the src dirs.
62 # Do not use _ACEOF as we are being dumped into config.status via
63 # an _ACEOF-heredoc.
64 AC_DEFUN([AC_CONFIG_TESTDIR],
65 [AC_CONFIG_COMMANDS([$1/atconfig],
66 [cat >$1/atconfig <<ATEOF
67 @%:@ Configurable variable values for building test suites.
68 @%:@ Generated by $[0].
69 @%:@ Copyright (C) 2000, 2001, 2003, 2004 Free Software Foundation, Inc.
71 # The test suite will define top_srcdir=$at_top_srcdir/../.. etc.
72 at_testdir='$1'
73 abs_builddir='$ac_abs_builddir'
74 at_srcdir='$ac_srcdir'
75 abs_srcdir='$ac_abs_srcdir'
76 at_top_srcdir='$ac_top_srcdir'
77 abs_top_srcdir='$ac_abs_top_srcdir'
78 at_top_build_prefix='$ac_top_build_prefix'
79 abs_top_builddir='$ac_abs_top_builddir'
81 # Backward compatibility with Autotest <= 2.59b:
82 at_top_builddir=\$at_top_build_prefix
84 AUTOTEST_PATH='m4_default([$2], [$1])'
86 SHELL=\${CONFIG_SHELL-'$SHELL'}
87 ATEOF
89 ])# AC_CONFIG_TESTDIR