2000-02-09 16:36:01 +08:00
|
|
|
# -*- autoconf -*-
|
|
|
|
|
|
|
|
cat <<EOF
|
|
|
|
|
Move the Autoconf independent shell macros into the file
`shell.m4' and the name space `AS_*'.
* acgeneral.m4 (AC_SHELL_IFELSE, _AC_SHELL_TMPDIR, AC_SHELL_UNSET)
(AC_SHELL_MKDIR_P, AC_SHELL_DIRNAME): Rename and move to...
* shell.m4 (AS_IFELSE, AS_TMPDIR, AS_UNSET, AS_MKDIR_P)
(AS_DIRNAME): here, a new file.
Adjust all dependencies.
* tests/base.m4 (m4_wrap): Eve out into...
* tests/shell.m4: here, new file.
* tests/base.m4 (AC_SHELL_MKDIR_P)
(AC_SHELL_DIRNAME & AC_SHELL_DIRNAME_SED): Eve out into...
* tests/m4sugar.m4 (AS_MKDIR_P, AS_DIRNAME & AS_DIRNAME_SED):
here, new file.
Adjust the test suite.
2000-10-26 01:51:10 +08:00
|
|
|
Autoconf base layer.
|
2000-02-09 16:36:01 +08:00
|
|
|
|
|
|
|
EOF
|
|
|
|
|
2000-06-26 17:06:02 +08:00
|
|
|
|
2000-10-25 23:04:29 +08:00
|
|
|
## ------------ ##
|
|
|
|
## AC_REQUIRE. ##
|
|
|
|
## ------------ ##
|
2000-06-26 17:06:02 +08:00
|
|
|
|
|
|
|
# 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])
|
|
|
|
|
2000-07-10 16:56:19 +08:00
|
|
|
AC_PLAIN_SCRIPT
|
2000-06-26 17:06:02 +08:00
|
|
|
TEST1
|
2000-10-27 22:15:28 +08:00
|
|
|
test -z "$test1" &&
|
|
|
|
AC_MSG_ERROR([\$test1 is empty])
|
2000-06-26 17:06:02 +08:00
|
|
|
exit 0
|
|
|
|
]])
|
|
|
|
|
2000-07-19 17:03:53 +08:00
|
|
|
AT_CHECK([../autoconf --autoconf-dir .. -l $at_srcdir], 0, [], [])
|
2000-06-26 17:06:02 +08:00
|
|
|
AT_CHECK([./configure], 0)
|
|
|
|
|
|
|
|
AT_CLEANUP(configure)
|