Files
pkgsrc-ng/devel/idutils/patches/patch-configure
2016-01-21 23:40:00 +01:00

19 lines
843 B
Plaintext

$NetBSD: patch-configure,v 1.1 2015/01/02 22:34:02 wiz Exp $
Fix autoconf bug when /bin/bash exists.
PR 49522
--- configure.orig 2012-02-03 10:41:35.000000000 +0000
+++ configure
@@ -479,6 +479,10 @@ as_cr_alnum=$as_cr_Letters$as_cr_digits
chmod +x "$as_me.lineno" ||
{ $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
+ # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
+ # already done that, so ensure we don't try to do so again and fall
+ # in an infinite loop. This has already happened in practice.
+ _as_can_reexec=no; export _as_can_reexec
# Don't try to exec as it changes $[0], causing all sort of problems
# (the dirname of $[0] is not the place where we might find the
# original and so on. Autoconf is especially sensitive to this).