* acgeneral.m4 (_AC_SH_QUOTE): Issue an `obsolete' warning for use

of backquotes, instead of a `syntax' warning.
This commit is contained in:
Akim Demaille 2000-10-12 14:45:05 +00:00
parent 793b1c797f
commit e7ee56216e
3 changed files with 13 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2000-10-12 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (_AC_SH_QUOTE): Issue an `obsolete' warning for use
of backquotes, instead of a `syntax' warning.
2000-10-12 Akim Demaille <akim@epita.fr>
* acgeneral.m4 (AC_VAR_IN_INDIR, AC_VAR_IF_SET): Rename as...

View File

@ -2790,10 +2790,13 @@ define([_AC_SH_QUOTE_IFELSE],
# --------------------
# If there are quoted (via backslash) backquotes do nothing, else
# backslash all the quotes.
# FIXME: In a distant future (2.51 or +), this warning should be
# classified as `syntax'. It is claissified as `obsolete' to ease
# the transition (for Libtool for instance).
define([_AC_SH_QUOTE],
[_AC_SH_QUOTE_IFELSE([$1],
[patsubst([$1], [\([`""]\)], [\\\1])],
[AC_DIAGNOSE([syntax],
[AC_DIAGNOSE([obsolete],
[backquotes and double quotes should not be backslashed in: $1])dnl
$1])])

View File

@ -2790,10 +2790,13 @@ define([_AC_SH_QUOTE_IFELSE],
# --------------------
# If there are quoted (via backslash) backquotes do nothing, else
# backslash all the quotes.
# FIXME: In a distant future (2.51 or +), this warning should be
# classified as `syntax'. It is claissified as `obsolete' to ease
# the transition (for Libtool for instance).
define([_AC_SH_QUOTE],
[_AC_SH_QUOTE_IFELSE([$1],
[patsubst([$1], [\([`""]\)], [\\\1])],
[AC_DIAGNOSE([syntax],
[AC_DIAGNOSE([obsolete],
[backquotes and double quotes should not be backslashed in: $1])dnl
$1])])