From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#15675: the configure script invoked before make Date: Thu, 24 Oct 2013 19:11:32 +0300 Message-ID: <834n86ir7v.fsf@gnu.org> References: <20131021170256.GA1699@glam> <82bo2fpj4e.fsf@gmail.com> <2xmwlz8lbz.fsf@fencepost.gnu.org> <827gd3pc2k.fsf@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1382631197 18599 80.91.229.3 (24 Oct 2013 16:13:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 24 Oct 2013 16:13:17 +0000 (UTC) Cc: 15675@debbugs.gnu.org, andrewjmoreton@gmail.com To: Glenn Morris Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 24 18:13:20 2013 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VZNXB-0003hL-Pe for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 18:13:17 +0200 Original-Received: from localhost ([::1]:55173 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZNXB-0007ZE-CO for geb-bug-gnu-emacs@m.gmane.org; Thu, 24 Oct 2013 12:13:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54679) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZNX2-0007Yr-L3 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2013 12:13:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VZNWw-0005ui-O9 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2013 12:13:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:55621) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VZNWw-0005ue-Ko for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2013 12:13:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VZNWw-0002io-00 for bug-gnu-emacs@gnu.org; Thu, 24 Oct 2013 12:13:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 24 Oct 2013 16:13:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15675 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15675-submit@debbugs.gnu.org id=B15675.138263112210384 (code B ref 15675); Thu, 24 Oct 2013 16:13:01 +0000 Original-Received: (at 15675) by debbugs.gnu.org; 24 Oct 2013 16:12:02 +0000 Original-Received: from localhost ([127.0.0.1]:41406 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VZNVx-0002hC-Ox for submit@debbugs.gnu.org; Thu, 24 Oct 2013 12:12:02 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:51658) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VZNVu-0002gq-MM for 15675@debbugs.gnu.org; Thu, 24 Oct 2013 12:12:00 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0MV600E00KPDPT00@a-mtaout23.012.net.il> for 15675@debbugs.gnu.org; Thu, 24 Oct 2013 19:11:51 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MV600EBQKZKN260@a-mtaout23.012.net.il>; Thu, 24 Oct 2013 19:11:44 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:79593 Archived-At: > From: Glenn Morris > Date: Thu, 24 Oct 2013 00:07:01 -0400 > Cc: 15675@debbugs.gnu.org > > Andy Moreton wrote: > > > CPP = gcc -I ../nt/inc -E > > Seems wrong to me for CPP to contain any -I option. Where does that come from? >From the configure script. The story begins, innocently enough, here: case "${canonical}" in *-darwin* ) opsys=darwin ;; *-mingw32 ) opsys=mingw32 # MinGW overrides and adds some system headers in nt/inc. GCC_TEST_OPTIONS="-I $srcdir/nt/inc" (MinGW needs the test programs to pick up headers in nt/inc, since those headers define some stuff which is not available in the MinGW system headers. This is what GCC_TEST_OPTIONS are for, right?) Then the configure script sets CC to something that uses these switches: if test x$GCC = xyes; then test "x$GCC_TEST_OPTIONS" != x && CC="$CC $GCC_TEST_OPTIONS" So far, so good. But then: { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 $as_echo_n "checking how to run the C preprocessor... " >&6; } # On Suns, sometimes $CPP names a directory. if test -n "$CPP" && test -d "$CPP"; then CPP= fi if test -z "$CPP"; then if test "${ac_cv_prog_CPP+set}" = set; then : $as_echo_n "(cached) " >&6 else # Double quotes because CPP needs to be expanded for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" do ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [...] done ac_cv_prog_CPP=$CPP fi CPP=$ac_cv_prog_CPP This sets CPP to "$CC -E", and the rest, as they say, is history. The problem here seems to be that the script confuses the value of CPP needed to run the test programs with the value of CPP that is needed to be substituted for @CPP@. The latter should have any GCC_TEST_OPTIONS removed from it.