commit: b4019f43ca1dce3ebe043926bb4ef3f831df3071
Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
AuthorDate: Sun Jan 30 08:33:39 2022 +0000
Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
CommitDate: Sun Jan 30 08:33:39 2022 +0000
URL:
https://gitweb.gentoo.org/proj/autotools-wrappers.git/commit/?id=b4019f43
autoconf-wrapper: try to enable shell POSIX mode if available
This sync the logic that's been in the automake wrapper for a long time.
Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
ac-wrapper.sh | 2 ++
1 file changed, 2 insertions(+)
diff --git a/ac-wrapper.sh b/ac-wrapper.sh
index d522576..f9b0857 100755
--- a/ac-wrapper.sh
+++ b/ac-wrapper.sh
@@ -15,6 +15,8 @@
# -or-
# - `configure' is already present and was generated by autoconf 2.13
+(set -o posix) 2>/dev/null && set -o posix
+
warn() { printf "ac-wrapper: $*\n" 1>&2; }
err() { warn "$@"; exit 1; }
unset IFS