mirror of
git://git.sv.gnu.org/autoconf
synced 2025-01-24 10:54:42 +08:00
Don't assume -j is a solo 'make' argument.
This commit is contained in:
parent
87f8817fdc
commit
132dcb2111
@ -1,3 +1,9 @@
|
||||
2003-10-09 Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* lib/Autom4te/XFile.pm: Don't assume -j is solo.
|
||||
Issue a more-informative diagnostic.
|
||||
Problems reported by Eric Sunshine.
|
||||
|
||||
2003-10-08 Steven G. Johnson <stevenj@alum.mit.edu>
|
||||
|
||||
* lib/autoconf/fortran.m4 (_AC_PROG_FC_V_OUTPUT): Omit quoted
|
||||
@ -714,7 +720,7 @@
|
||||
White spaces cleanup.
|
||||
|
||||
2003-05-22 Jim Meyering <jim@meyering.net>
|
||||
and Paul Eggert <eggert@twinsun.com>
|
||||
Paul Eggert <eggert@twinsun.com>
|
||||
|
||||
* lib/autoconf/c.m4 (_AC_PROG_CXX_EXIT_DECLARATION):
|
||||
Remove `#include <stdlib.h>' from the list; we should never
|
||||
|
@ -223,12 +223,15 @@ sub lock
|
||||
# perl was not built with -Ud_flock. Normally, this problem is harmless,
|
||||
# so ignore the ENOLCK errors that are reported in that situation,
|
||||
# However, if the invoker is using "make -j", the problem is not harmless,
|
||||
# so report it in that case. Admittedly this is a bit of a hack.
|
||||
# so report it in that case, by inspecting MAKEFLAGS and looking for
|
||||
# any arguments indicating that the invoker used -j.
|
||||
# Admittedly this is a bit of a hack.
|
||||
if (!flock ($fh, $mode)
|
||||
&& (!$!{ENOLCK} || " $ENV{'MAKEFLAGS'}" =~ / (-j|--jobs)/))
|
||||
&& (!$!{ENOLCK}
|
||||
|| " -$ENV{'MAKEFLAGS'}" =~ / (-[BdeikrRsSw]*j|---?jobs)/))
|
||||
{
|
||||
my $file = $fh->name;
|
||||
fatal "cannot lock $file with mode $mode: $!";
|
||||
fatal "cannot lock $file with mode $mode (perhaps you are running make -j on a lame NFS client?): $!";
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user