mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-27 01:49:56 +08:00
7eadb5fda3
* tests/README: New file. * tests/semantics.at: Don't just `exit 1' or `exit 77' from configure.in: call AC_MSG_ERROR. * tests/base.m4: Likewise. * tests/m4sh.at: Likewise. * tests/semantics.at (AT_CHECK_PROGS_PREPARE): New macro, eved out of... (AC_CHECK_PROG & AC_PATH_PROG): here. Split into two individual tests... (AC_CHECK_PROG & AC_CHECK_PROGS, AC_PATH_PROG & AC_PATH_PROGS): these.
50 lines
776 B
Plaintext
50 lines
776 B
Plaintext
# -*- autoconf -*-
|
|
|
|
cat <<EOF
|
|
|
|
Autoconf base layer.
|
|
|
|
EOF
|
|
|
|
|
|
## ------------ ##
|
|
## AC_REQUIRE. ##
|
|
## ------------ ##
|
|
|
|
# Check that dependencies are always properly honored.
|
|
|
|
AT_SETUP(AC_REQUIRE)
|
|
|
|
AT_DATA(configure.in,
|
|
[[define([REQUIRE_AND_CHECK],
|
|
[AC_REQUIRE([$1])dnl
|
|
test -z "$translit([$1], [A-Z], [a-z])" && exit 1])
|
|
|
|
AC_DEFUN([TEST1],
|
|
[REQUIRE_AND_CHECK([TEST2a])
|
|
REQUIRE_AND_CHECK([TEST2b])
|
|
test1=set])
|
|
|
|
AC_DEFUN([TEST2a],
|
|
[test2a=set])
|
|
|
|
AC_DEFUN([TEST2b],
|
|
[REQUIRE_AND_CHECK([TEST3])
|
|
test2b=set])
|
|
|
|
AC_DEFUN([TEST3],
|
|
[REQUIRE_AND_CHECK([TEST2a])
|
|
test3=set])
|
|
|
|
AC_PLAIN_SCRIPT
|
|
TEST1
|
|
test -z "$test1" &&
|
|
AC_MSG_ERROR([\$test1 is empty])
|
|
exit 0
|
|
]])
|
|
|
|
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
|
|
AT_CHECK([./configure], 0)
|
|
|
|
AT_CLEANUP(configure)
|