* m4sh.m4 (AS_SHELL_SANITIZE): this.
+2000-11-14 Akim Demaille <akim@epita.fr>
+
+ * acgeneral.m4 (_AC_INIT_DEFAULTS_ENVIRONMENT): Rename as...
+ * m4sh.m4 (AS_SHELL_SANITIZE): this.
+
2000-11-14 Akim Demaille <akim@epita.fr>
* tests/atspecific.m4 (_AT_CHECK_AC_MACRO): Don't neutralize
])
-# _AC_INIT_DEFAULTS_ENVIRONMENT
-# -----------------------------
-# Tune the behavior of the shell.
-m4_define([_AC_INIT_DEFAULTS_ENVIRONMENT],
-[# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
-fi
-
-_AS_UNSET_PREPARE
-
-# NLS nuisances.
-AS_UNSET([LANG], [C])
-AS_UNSET([LC_ALL], [C])
-AS_UNSET([LC_TIME], [C])
-AS_UNSET([LC_CTYPE], [C])
-AS_UNSET([LANGUAGE], [C])
-AS_UNSET([LC_COLLATE], [C])
-AS_UNSET([LC_NUMERIC], [C])
-AS_UNSET([LC_MESSAGES], [C])
-
-# IFS
-# We need space, tab and new line, in precisely that order.
-ac_nl='
-'
-IFS=" $ac_nl"
-
-# CDPATH.
-AS_UNSET([CDPATH], [:])
-])# _AC_INIT_DEFAULTS_ENVIRONMENT
-
-
# _AC_INIT_DEFAULTS_FDS
# ---------------------
# Set up the file descriptors used by `configure'.
m4_define([_AC_INIT_DEFAULTS],
[m4_divert_push([DEFAULTS])dnl
-_AC_INIT_DEFAULTS_ENVIRONMENT
+AS_SHELL_SANITIZE
cat >config.log << EOF
This file contains any messages produced by compilers while
as_me=`echo "$[0]" | sed 's,.*/,,'`
SHELL=${CONFIG_SHELL-/bin/sh}
-_AC_INIT_DEFAULTS_ENVIRONMENT
+AS_SHELL_SANITIZE
_AC_INIT_DEFAULTS_FDS
cat >&AS_MESSAGE_LOG_FD << EOF
])
-# _AC_INIT_DEFAULTS_ENVIRONMENT
-# -----------------------------
-# Tune the behavior of the shell.
-m4_define([_AC_INIT_DEFAULTS_ENVIRONMENT],
-[# Be Bourne compatible
-if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
- emulate sh
- NULLCMD=:
-elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
- set -o posix
-fi
-
-_AS_UNSET_PREPARE
-
-# NLS nuisances.
-AS_UNSET([LANG], [C])
-AS_UNSET([LC_ALL], [C])
-AS_UNSET([LC_TIME], [C])
-AS_UNSET([LC_CTYPE], [C])
-AS_UNSET([LANGUAGE], [C])
-AS_UNSET([LC_COLLATE], [C])
-AS_UNSET([LC_NUMERIC], [C])
-AS_UNSET([LC_MESSAGES], [C])
-
-# IFS
-# We need space, tab and new line, in precisely that order.
-ac_nl='
-'
-IFS=" $ac_nl"
-
-# CDPATH.
-AS_UNSET([CDPATH], [:])
-])# _AC_INIT_DEFAULTS_ENVIRONMENT
-
-
# _AC_INIT_DEFAULTS_FDS
# ---------------------
# Set up the file descriptors used by `configure'.
m4_define([_AC_INIT_DEFAULTS],
[m4_divert_push([DEFAULTS])dnl
-_AC_INIT_DEFAULTS_ENVIRONMENT
+AS_SHELL_SANITIZE
cat >config.log << EOF
This file contains any messages produced by compilers while
as_me=`echo "$[0]" | sed 's,.*/,,'`
SHELL=${CONFIG_SHELL-/bin/sh}
-_AC_INIT_DEFAULTS_ENVIRONMENT
+AS_SHELL_SANITIZE
_AC_INIT_DEFAULTS_FDS
cat >&AS_MESSAGE_LOG_FD << EOF
# and many other people.
+## ------------------------- ##
+## 1. Sanitizing the shell. ##
+## ------------------------- ##
+
+# AS_SHELL_SANITIZE
+# -----------------
+# Try to be as Bourne and/or POSIX as possible.
+m4_defun([AS_SHELL_SANITIZE],
+[# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+ set -o posix
+fi
+
+_AS_UNSET_PREPARE
+
+# NLS nuisances.
+AS_UNSET([LANG], [C])
+AS_UNSET([LC_ALL], [C])
+AS_UNSET([LC_TIME], [C])
+AS_UNSET([LC_CTYPE], [C])
+AS_UNSET([LANGUAGE], [C])
+AS_UNSET([LC_COLLATE], [C])
+AS_UNSET([LC_NUMERIC], [C])
+AS_UNSET([LC_MESSAGES], [C])
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+ac_nl='
+'
+IFS=" $ac_nl"
+
+# CDPATH.
+AS_UNSET([CDPATH], [:])
+])
+
+
## ----------------------------- ##
-## 1. Wrappers around builtins. ##
+## 2. Wrappers around builtins. ##
## ----------------------------- ##
# This section is lexicographically sorted.
## ------------------------------------------ ##
-## 2. Error and warnings at the shell level. ##
+## 3. Error and warnings at the shell level. ##
## ------------------------------------------ ##
# If AS_MESSAGE_LOG_FD is defined, shell messages are duplicated there
## ------------------------------------------- ##
-## 3. Portable versions of common file utils. ##
+## 4. Portable versions of common file utils. ##
## ------------------------------------------- ##
# This section is lexicographically sorted.
## ------------------ ##
-## 4. Common idioms. ##
+## 5. Common idioms. ##
## ------------------ ##
# This section is lexicographically sorted.
# and many other people.
+## ------------------------- ##
+## 1. Sanitizing the shell. ##
+## ------------------------- ##
+
+# AS_SHELL_SANITIZE
+# -----------------
+# Try to be as Bourne and/or POSIX as possible.
+m4_defun([AS_SHELL_SANITIZE],
+[# Be Bourne compatible
+if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
+ emulate sh
+ NULLCMD=:
+elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
+ set -o posix
+fi
+
+_AS_UNSET_PREPARE
+
+# NLS nuisances.
+AS_UNSET([LANG], [C])
+AS_UNSET([LC_ALL], [C])
+AS_UNSET([LC_TIME], [C])
+AS_UNSET([LC_CTYPE], [C])
+AS_UNSET([LANGUAGE], [C])
+AS_UNSET([LC_COLLATE], [C])
+AS_UNSET([LC_NUMERIC], [C])
+AS_UNSET([LC_MESSAGES], [C])
+
+# IFS
+# We need space, tab and new line, in precisely that order.
+ac_nl='
+'
+IFS=" $ac_nl"
+
+# CDPATH.
+AS_UNSET([CDPATH], [:])
+])
+
+
## ----------------------------- ##
-## 1. Wrappers around builtins. ##
+## 2. Wrappers around builtins. ##
## ----------------------------- ##
# This section is lexicographically sorted.
## ------------------------------------------ ##
-## 2. Error and warnings at the shell level. ##
+## 3. Error and warnings at the shell level. ##
## ------------------------------------------ ##
# If AS_MESSAGE_LOG_FD is defined, shell messages are duplicated there
## ------------------------------------------- ##
-## 3. Portable versions of common file utils. ##
+## 4. Portable versions of common file utils. ##
## ------------------------------------------- ##
# This section is lexicographically sorted.
## ------------------ ##
-## 4. Common idioms. ##
+## 5. Common idioms. ##
## ------------------ ##
# This section is lexicographically sorted.