Subject: bug#9868: closed (Re: bug#9868: 24.0.90; autodepend: check environment before using `make')

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 25 Oct 2011 16:44:02 +0000

Your bug report

#9868: 24.0.90; autodepend: check environment before using `make'

which was filed against the emacs package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
9868: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9868
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#9868: 24.0.90; autodepend: check environment before using `make'
From: Glenn Morris <[email-masked]>
To: [email-masked]
Date: Tue, 25 Oct 2011 12:41:41 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Version: 24.0.91

Thanks; applied.

Subject: 24.0.90; autodepend: check environment before using `make'
From: Nali Toja <[email-masked]>
To: [email-masked]
Date: Tue, 25 Oct 2011 09:57:11 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

During build `make' may be available under an alternative name on
non-GNU systems. Try to use MAKE from environment like AC_PROG_MAKE_SET
before falling back to `make', ${MAKE} is already used for epaths.h.

At least, MAKE=gmake is used by FreeBSD/OpenBSD ports.

forwarding http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/160986

=== modified file 'configure.in'
--- configure.in	2011-10-24 02:40:23 +0000
+++ configure.in	2011-10-25 09:10:22 +0000
@@ -1374,7 +1374,7 @@ dnl check for GNU Make if we have GCC an
 if test "$GCC" = yes && test "$ac_enable_autodepend" = yes; then
    AC_MSG_CHECKING([whether we are using GNU Make])
    HAVE_GNU_MAKE=no
-   testval=`make --version 2>/dev/null | grep 'GNU Make'`
+   testval=`${MAKE-make} --version 2>/dev/null | grep 'GNU Make'`
    if test "x$testval" != x; then
       HAVE_GNU_MAKE=yes
    else

--
In GNU Emacs 24.0.90.1 (amd64-portbld-freebsd9.9)
 of 2011-10-25 on hidden
configured using `configure  '--localstatedir=/var' '--without-x' '--without-dbus' '--without-gnutls' '--prefix=/usr/local' '--mandir=/usr/local/man' '--infodir=/usr/local/info/' '--build=amd64-portbld-freebsd9.9' 'build_alias=amd64-portbld-freebsd9.9' 'CC=cc' 'CFLAGS=-O2 -pipe' 'LDFLAGS= -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib' 'CPPFLAGS=-I/usr/local/include' 'CPP=cpp''