From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.bugs,gmane.comp.graphics.gnuplot.bugs,gmane.comp.sysutils.autoconf.bugs Subject: Re: emacs Shell mode vs AC_CHECK_PROG(EMACS, ...) Date: Mon, 11 Sep 2006 15:57:59 -0400 Message-ID: References: Reply-To: rms@gnu.org NNTP-Posting-Host: main.gmane.org Content-Type: text/plain; charset=ISO-8859-15 X-Trace: sea.gmane.org 1158004834 9834 80.91.229.2 (11 Sep 2006 20:00:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 11 Sep 2006 20:00:34 +0000 (UTC) Cc: bug-gnu-emacs@gnu.org, gnuplot-bugs@lists.sourceforge.net, bug-autoconf@gnu.org, don.bashford@stjude.org, Chet Ramey Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Sep 11 22:00:30 2006 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GMrx4-0007MO-PN for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Sep 2006 22:00:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMrx4-0007M9-BE for geb-bug-gnu-emacs@m.gmane.org; Mon, 11 Sep 2006 16:00:18 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GMrur-0005Ka-C3 for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2006 15:58:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GMruq-0005Jb-JR for bug-gnu-emacs@gnu.org; Mon, 11 Sep 2006 15:58:00 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GMruq-0005JQ-DC; Mon, 11 Sep 2006 15:58:00 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GMrwB-0006uG-85; Mon, 11 Sep 2006 15:59:23 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.34) id 1GMrup-0007rl-9m; Mon, 11 Sep 2006 15:57:59 -0400 Original-To: In-reply-to: X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:15316 gmane.comp.graphics.gnuplot.bugs:714 gmane.comp.sysutils.autoconf.bugs:5225 Archived-At: I like to do my builds of almost anything from source under emacs Shell mode. But emacs Shell mode sets the environment variable EMACS to "t". This causes the output of autoconf's AC_CHECK_PROG(EMACS, ...) to set EMACS="t", with the result that in any Makefile generated from EMACS = @EMACS@ in Makefile.in end up with the makefile variable EMACS set to "t". One example where this is a problem is the current (Sept 10) CVS version of gnuplot. For a short-term correction, I think the easiest way is to change Autoconf to ignore a value of `t' for this environment variable. Autoconf maintainers, what do you think? For longer term, perhaps the best thing is to change Emacs to use a different environment variable. Alas, I don't remember what software checks that environment variable, or the motive for binding it. Is it Bash? I have cc'd the Bash maintainer so he can answer.