* tests/base.at, tests/compile.at, tests/foreign.at,
* tests/m4sh.at, tests/m4sugar.at, tests/mktests.sh,
* tests/semantics.at, tests/suite.at, tests/tools.at,
* tests/torture.at: Ask Autotest mode, not Autoconf mode.
2001-08-20 22:44:38 +08:00
|
|
|
# -*- Autotest -*-
|
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
|
|
|
|
2000-11-29 18:12:05 +08:00
|
|
|
AT_BANNER([M4sh.])
|
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
|
|
|
|
* AUTHORS, BUGS, ChangeLog, ChangeLog.0, ChangeLog.1,
ChangeLog.2, GNUmakefile, Makefile.maint, NEWS, README,
README-alpha, TODO, configure.ac, lib/autoconf/Makefile.am,
m4/atconfig.m4, m4/init.m4, m4/m4.m4, m4/missing.m4,
m4/sanity.m4, tests/README, tests/aclocal.m4,
tests/atspecific.m4, tests/base.at, tests/compile.at,
tests/foreign.at, tests/m4sh.at, tests/m4sugar.at,
tests/semantics.at, tests/suite.at, tests/tools.at,
tests/torture.at: Add copyright notice.
* tests/mktests.sh: Update year in copyright notice.
2001-08-12 21:05:11 +08:00
|
|
|
# Copyright 2000, 2001 Free Software Foundation, Inc.
|
|
|
|
#
|
|
|
|
# This program is free software; you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU General Public License as published by
|
|
|
|
# the Free Software Foundation; either version 2, or (at your option)
|
|
|
|
# any later version.
|
|
|
|
#
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU General Public License for more details.
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU General Public License
|
|
|
|
# along with this program; if not, write to the Free Software
|
|
|
|
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
# 02111-1307, USA.
|
|
|
|
|
2001-08-20 22:45:00 +08:00
|
|
|
# Used in many tests.
|
|
|
|
m4_pattern_allow([^AS_EXIT$])
|
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
|
|
|
|
2001-10-06 00:12:22 +08:00
|
|
|
## ---------------- ##
|
|
|
|
## LINENO support. ##
|
|
|
|
## ---------------- ##
|
|
|
|
|
|
|
|
AT_SETUP([LINENO])
|
|
|
|
|
|
|
|
# AT_DATA_LINENO(FILENAME,
|
|
|
|
# UNSET-LINENO = true | false, COUNTER, COUNTER-RE)
|
|
|
|
# ----------------------------------------------------------------
|
|
|
|
# Produce FILENAME which uses the COUNTER LINENO or _oline_, which
|
|
|
|
# we can recognized via COUNTER-RE. Unset LINENO is UNSET-LINENO.
|
|
|
|
#
|
|
|
|
# Use COUNTER, COUNTER-RE = [$@&t@LINENO], [LINENO]
|
|
|
|
# or = [__@&t@oline__], [_oline__]
|
|
|
|
# to make sure we are not replace in the test suite itself and to avoid
|
|
|
|
# seeing the COUNTER-RE being replaced.
|
|
|
|
#
|
|
|
|
# UNSET-LINENO is a shell condition to make sure the scripts have the
|
|
|
|
# same number of lines in the output, so that their outputs be identical.
|
|
|
|
m4_define([AT_DATA_LINENO],
|
|
|
|
[AT_DATA([$1],
|
|
|
|
[[AS@&t@_INIT
|
|
|
|
m4@&t@_divert_push([0])d@&t@nl
|
|
|
|
m4@&t@_wrap([m4@&t@_divert_pop([0])[]])d@&t@nl
|
|
|
|
#! /bin/sh
|
|
|
|
if $2; then
|
|
|
|
AS@&t@_UNSET([LINENO])
|
|
|
|
fi
|
|
|
|
AS@&t@_SHELL_SANITIZE
|
|
|
|
echo "Line: $3"
|
|
|
|
grep 'Line: .*$4' $[0] >/dev/null ||
|
|
|
|
AS@&t@_ERROR([cannot find original script])
|
|
|
|
exit 0
|
|
|
|
]])
|
|
|
|
])# AT_DATA_LINENO
|
|
|
|
|
|
|
|
# `_oline_', once processed and ran, produces our reference.
|
|
|
|
# We check that we find ourself by looking at a string which is
|
|
|
|
# available only in the original script: `_oline_'.
|
|
|
|
AT_DATA_LINENO([reference.as], [false], [__@&t@oline__], [_oline__])
|
|
|
|
AT_CHECK([autom4te -l m4sh reference.as -o reference])
|
|
|
|
AT_CHECK([./reference], 0, [stdout])
|
|
|
|
|
|
|
|
# The reference:
|
|
|
|
mv stdout expout
|
|
|
|
|
|
|
|
# Now using a maybe-functioning LINENO, with different call conventions.
|
|
|
|
# Be sure to be out of the PATH.
|
|
|
|
AT_CHECK([mkdir test || exit 77])
|
|
|
|
|
|
|
|
AT_DATA_LINENO([test/test-1.as], [false], [$@&t@LINENO], [LINENO])
|
|
|
|
AT_CHECK([autom4te -l m4sh test/test-1.as -o test/test-1])
|
|
|
|
AT_CHECK([test/test-1], 0, [expout])
|
|
|
|
AT_CHECK([PATH=test$PATH_SEPARATOR$PATH test-1], 0, [expout])
|
|
|
|
AT_CHECK([sh test/test-1], 0, [expout])
|
|
|
|
|
|
|
|
# Now using a disabled LINENO, with different call conventions.
|
|
|
|
AT_DATA_LINENO([test/test-2.as], [true], [$@&t@LINENO], [LINENO])
|
|
|
|
AT_CHECK([autom4te -l m4sh test/test-2.as -o test/test-2])
|
|
|
|
AT_CHECK([test/test-2], 0, [expout])
|
|
|
|
AT_CHECK([PATH=test$PATH_SEPARATOR$PATH test-2], 0, [expout])
|
|
|
|
AT_CHECK([sh test/test-2], 0, [expout])
|
|
|
|
|
|
|
|
# Beware that *.lineno scripts can be *here* while the masters are in test/.
|
|
|
|
AT_CLEANUP(reference test test-1.lineno test-2.lineno)
|
|
|
|
|
|
|
|
|
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
|
|
|
## ----------------------------- ##
|
|
|
|
## AS_DIRNAME & AS_DIRNAME_SED. ##
|
|
|
|
## ----------------------------- ##
|
|
|
|
|
|
|
|
# Build nested dirs.
|
2001-08-20 22:45:00 +08:00
|
|
|
m4_pattern_allow([^AS_DIRNAME(_SED)?$])
|
2000-11-23 17:45:48 +08:00
|
|
|
AT_SETUP([[AS_DIRNAME & AS_DIRNAME_SED]])
|
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
|
|
|
|
2001-08-20 22:45:09 +08:00
|
|
|
AT_DATA([configure.ac],
|
2001-09-13 23:47:34 +08:00
|
|
|
[[AC_PLAIN_SCRIPT()#! /bin/sh
|
2001-05-31 15:02:13 +08:00
|
|
|
|
2001-08-29 21:11:16 +08:00
|
|
|
_AS@&t@_EXPR_PREPARE
|
2000-11-29 23:52:02 +08:00
|
|
|
|
2001-08-20 22:45:00 +08:00
|
|
|
m4_define([DIRNAME_TEST],
|
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
|
|
|
[dir=`AS_DIRNAME([$1])`
|
|
|
|
test "$dir" = "$2" ||
|
2000-11-14 18:40:42 +08:00
|
|
|
echo "dirname($1) = $dir instead of $2" >&2
|
|
|
|
|
|
|
|
dir=`AS_DIRNAME_SED([$1])`
|
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
|
|
|
test "$dir" = "$2" ||
|
|
|
|
echo "dirname_sed($1) = $dir instead of $2" >&2])
|
|
|
|
|
2001-09-18 20:26:36 +08:00
|
|
|
DIRNAME_TEST([/], [/])
|
|
|
|
DIRNAME_TEST([//], [//])
|
|
|
|
DIRNAME_TEST([///], [/])
|
2001-08-20 22:45:00 +08:00
|
|
|
DIRNAME_TEST([//1], [//])
|
|
|
|
DIRNAME_TEST([/1], [/])
|
|
|
|
DIRNAME_TEST([./1], [.])
|
|
|
|
DIRNAME_TEST([../../2], [../..])
|
|
|
|
DIRNAME_TEST([//1/], [//])
|
|
|
|
DIRNAME_TEST([/1/], [/])
|
|
|
|
DIRNAME_TEST([./1/], [.])
|
|
|
|
DIRNAME_TEST([../../2], [../..])
|
|
|
|
DIRNAME_TEST([//1/3], [//1])
|
|
|
|
DIRNAME_TEST([/1/3], [/1])
|
|
|
|
DIRNAME_TEST([./1/3], [./1])
|
|
|
|
DIRNAME_TEST([../../2/3], [../../2])
|
|
|
|
DIRNAME_TEST([//1/3///], [//1])
|
|
|
|
DIRNAME_TEST([/1/3///], [/1])
|
|
|
|
DIRNAME_TEST([./1/3///], [./1])
|
|
|
|
DIRNAME_TEST([../../2/3///], [../../2])
|
|
|
|
DIRNAME_TEST([//1//3/], [//1])
|
|
|
|
DIRNAME_TEST([/1//3/], [/1])
|
|
|
|
DIRNAME_TEST([./1//3/], [./1])
|
|
|
|
DIRNAME_TEST([../../2//3/], [../../2])
|
2000-11-02 03:57:54 +08:00
|
|
|
AS_EXIT(0)
|
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
|
|
|
]])
|
|
|
|
|
2000-11-23 17:52:35 +08:00
|
|
|
AT_CHECK_AUTOCONF
|
2000-12-19 16:15:48 +08:00
|
|
|
AT_CHECK_CONFIGURE
|
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
|
|
|
|
|
|
|
AT_CLEANUP(configure)
|
2000-11-10 18:14:44 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
2001-09-18 20:26:36 +08:00
|
|
|
## ------------------------------- ##
|
|
|
|
## AS_BASENAME & AS_BASENAME_SED. ##
|
|
|
|
## ------------------------------- ##
|
|
|
|
|
|
|
|
# Build nested dirs.
|
|
|
|
m4_pattern_allow([^AS_BASENAME(_SED)?$])
|
|
|
|
AT_SETUP([[AS_BASENAME & AS_BASENAME_SED]])
|
|
|
|
|
|
|
|
AT_DATA([configure.ac],
|
|
|
|
[[AC_PLAIN_SCRIPT()#! /bin/sh
|
|
|
|
|
|
|
|
_AS@&t@_EXPR_PREPARE
|
|
|
|
|
|
|
|
m4_define([BASENAME_TEST],
|
|
|
|
[base=`AS_BASENAME([$1])`
|
|
|
|
test "$base" = "$2" ||
|
|
|
|
echo "basename($1) = $base instead of $2" >&2
|
|
|
|
|
|
|
|
base=`AS_BASENAME_SED([$1])`
|
|
|
|
test "$base" = "$2" ||
|
|
|
|
echo "basename_sed($1) = $base instead of $2" >&2])
|
|
|
|
|
|
|
|
BASENAME_TEST([//1], [1])
|
|
|
|
BASENAME_TEST([/1], [1])
|
|
|
|
BASENAME_TEST([./1], [1])
|
|
|
|
BASENAME_TEST([../../2], [2])
|
|
|
|
BASENAME_TEST([//1/], [1])
|
|
|
|
BASENAME_TEST([/1/], [1])
|
|
|
|
BASENAME_TEST([./1/], [1])
|
|
|
|
BASENAME_TEST([../../2], [2])
|
|
|
|
BASENAME_TEST([//1/3], [3])
|
|
|
|
BASENAME_TEST([/1/3], [3])
|
|
|
|
BASENAME_TEST([./1/3], [3])
|
|
|
|
BASENAME_TEST([../../2/3], [3])
|
|
|
|
BASENAME_TEST([//1/3///], [3])
|
|
|
|
BASENAME_TEST([/1/3///], [3])
|
|
|
|
BASENAME_TEST([./1/3///], [3])
|
|
|
|
BASENAME_TEST([../../2/3///], [3])
|
|
|
|
BASENAME_TEST([//1//3/], [3])
|
|
|
|
BASENAME_TEST([/1//3/], [3])
|
|
|
|
BASENAME_TEST([./1//3/], [3])
|
|
|
|
BASENAME_TEST([a.c], [a.c])
|
|
|
|
BASENAME_TEST([a.c/], [a.c])
|
|
|
|
BASENAME_TEST([/a.c/], [a.c])
|
|
|
|
BASENAME_TEST([/1/a.c], [a.c])
|
|
|
|
BASENAME_TEST([/1/a.c/], [a.c])
|
|
|
|
BASENAME_TEST([/1/../a.c], [a.c])
|
|
|
|
BASENAME_TEST([/1/../a.c/], [a.c])
|
|
|
|
BASENAME_TEST([./1/a.c], [a.c])
|
|
|
|
BASENAME_TEST([./1/a.c/], [a.c])
|
|
|
|
AS_EXIT(0)
|
|
|
|
]])
|
|
|
|
|
|
|
|
AT_CHECK_AUTOCONF
|
|
|
|
AT_CHECK_CONFIGURE
|
|
|
|
|
|
|
|
AT_CLEANUP(configure)
|
|
|
|
|
|
|
|
|
|
|
|
|
2000-11-10 18:14:44 +08:00
|
|
|
## ------------ ##
|
|
|
|
## AS_MKDIR_P. ##
|
|
|
|
## ------------ ##
|
|
|
|
|
|
|
|
# Build nested dirs.
|
2001-08-20 22:45:00 +08:00
|
|
|
m4_pattern_allow([^AS_MKDIR_P$])
|
2000-11-23 17:45:48 +08:00
|
|
|
AT_SETUP([[AS_MKDIR_P]])
|
2000-11-10 18:14:44 +08:00
|
|
|
|
2000-12-23 18:11:57 +08:00
|
|
|
AT_DATA([configure.ac],
|
2001-09-13 23:47:34 +08:00
|
|
|
[[AC_PLAIN_SCRIPT()#! /bin/sh
|
2001-05-31 15:02:13 +08:00
|
|
|
|
2000-11-10 18:14:44 +08:00
|
|
|
pwd=`pwd`
|
|
|
|
set -e
|
|
|
|
# Absolute
|
|
|
|
AS_MKDIR_P(["$pwd/1/2/3/4/5/6"])
|
|
|
|
test -d "$pwd/1/2/3/4/5/6" ||
|
|
|
|
AC_MSG_ERROR([$pwd/1/2/3/4/5/6 has not been properly created])
|
|
|
|
# Relative
|
|
|
|
AS_MKDIR_P(["a/b/c/d/e/f"])
|
|
|
|
test -d a/b/c/d/e/f ||
|
|
|
|
AC_MSG_ERROR([a/b/c/d/e/f has not been properly created])
|
|
|
|
AS_EXIT(0)
|
|
|
|
]])
|
|
|
|
|
2000-11-23 17:52:35 +08:00
|
|
|
AT_CHECK_AUTOCONF
|
2000-12-19 16:15:48 +08:00
|
|
|
AT_CHECK_CONFIGURE
|
2000-11-10 18:14:44 +08:00
|
|
|
|
|
|
|
AT_CLEANUP(configure 1 a)
|
2000-11-10 22:43:33 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## ----------------------------- ##
|
|
|
|
## Negated classes in globbing. ##
|
|
|
|
## ----------------------------- ##
|
|
|
|
|
|
|
|
# It is known that `[^...]' is not universally supported, but it is
|
|
|
|
# unknown for `[!...]'.
|
|
|
|
|
|
|
|
AT_SETUP([Negated classes in globbing])
|
|
|
|
|
2000-12-23 18:11:57 +08:00
|
|
|
AT_DATA([configure.ac],
|
2001-09-13 23:47:34 +08:00
|
|
|
[[AC_PLAIN_SCRIPT()#! /bin/sh
|
2001-05-31 15:02:13 +08:00
|
|
|
|
2000-11-10 22:43:33 +08:00
|
|
|
case 'with!two!bangs' in
|
|
|
|
*[[!a-z]]*) ;;
|
|
|
|
*) AC_MSG_ERROR([[`*[!a-z]*' didn't match `with!two!bangs']]);;
|
|
|
|
esac
|
|
|
|
|
|
|
|
case without in
|
|
|
|
*[[!a-z]]*) AC_MSG_ERROR([[`*[!a-z]*' matched `without']]);;
|
|
|
|
esac
|
|
|
|
]])
|
|
|
|
|
2000-11-23 17:52:35 +08:00
|
|
|
AT_CHECK_AUTOCONF
|
2000-12-19 16:15:48 +08:00
|
|
|
AT_CHECK_CONFIGURE
|
2000-11-10 22:43:33 +08:00
|
|
|
|
2001-08-20 22:45:00 +08:00
|
|
|
AT_CLEANUP
|