From: Paul Eggert Date: Sat, 31 Aug 2002 05:48:04 +0000 (+0000) Subject: (AS_SHELL_SANITIZE): Use AS_UNSET instead X-Git-Tag: AUTOCONF-2.53c~26 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f27d2995ab5be884f9ab623ee9fc221e06e94372;p=thirdparty%2Fautoconf.git (AS_SHELL_SANITIZE): Use AS_UNSET instead of rolling our own unset. (_AS_PREPARE): $as_unset CDPATH instead of AS_UNSETting it, since in practice we needn't worry about CDPATH if unset doesn't work. --- diff --git a/lib/m4sugar/m4sh.m4 b/lib/m4sugar/m4sh.m4 index 4487490d5..13d75a4f8 100644 --- a/lib/m4sugar/m4sh.m4 +++ b/lib/m4sugar/m4sh.m4 @@ -159,8 +159,7 @@ m4_foreach([_AS_var], [LANG, LC_ALL, LC_TIME, LC_CTYPE, LANGUAGE, LC_COLLATE, LC_NUMERIC, LC_MESSAGES], [(set +x; test -n "`(_AS_var=C; export _AS_var) 2>&1`") && - { $as_unset _AS_var || test "${_AS_var+set}" != set; } || - { _AS_var=C; export _AS_var; } + { AS_UNSET(_AS_var, C); } ]) # Required to use basename. @@ -206,7 +205,7 @@ as_nl=' IFS=" $as_nl" # CDPATH. -AS_UNSET([CDPATH], [$PATH_SEPARATOR]) +$as_unset CDPATH ])