From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: emacs build failure on today's debian Date: Thu, 16 Jun 2011 16:18:33 +0900 Message-ID: References: <8mwrgnqdp0.fsf@fencepost.gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1308208748 19670 80.91.229.12 (16 Jun 2011 07:19:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 16 Jun 2011 07:19:08 +0000 (UTC) Cc: emacs-devel@gnu.org To: Glenn Morris Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 16 09:19:00 2011 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QX6qy-0003iZ-O9 for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2011 09:19:00 +0200 Original-Received: from localhost ([::1]:36225 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QX6qx-0000k1-Kb for ged-emacs-devel@m.gmane.org; Thu, 16 Jun 2011 03:18:59 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:48834) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QX6qe-0000iU-HG for emacs-devel@gnu.org; Thu, 16 Jun 2011 03:18:41 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QX6qc-0003ji-Db for emacs-devel@gnu.org; Thu, 16 Jun 2011 03:18:40 -0400 Original-Received: from relmlor3.renesas.com ([210.160.252.173]:51608) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QX6qc-0003jI-07; Thu, 16 Jun 2011 03:18:38 -0400 Original-Received: from relmlir1.idc.renesas.com ([10.200.68.151]) by relmlor3.idc.renesas.com ( SJSMS) with ESMTP id <0LMV00C02GAZNSC0@relmlor3.idc.renesas.com>; Thu, 16 Jun 2011 16:18:35 +0900 (JST) Original-Received: from relmlac1.idc.renesas.com ([10.200.69.21]) by relmlir1.idc.renesas.com (SJSMS) with ESMTP id <0LMV00LRVGAZNYF0@relmlir1.idc.renesas.com>; Thu, 16 Jun 2011 16:18:35 +0900 (JST) Original-Received: by relmlac1.idc.renesas.com (Postfix, from userid 0) id 1E59980088; Thu, 16 Jun 2011 16:18:35 +0900 (JST) Original-Received: from relmlac1.idc.renesas.com (localhost [127.0.0.1]) by relmlac1.idc.renesas.com (Postfix) with ESMTP id 1948E80086; Thu, 16 Jun 2011 16:18:35 +0900 (JST) Original-Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac1.idc.renesas.com with ESMTP id SAF04885; Thu, 16 Jun 2011 16:18:35 +0900 X-IronPort-AV: E=Sophos;i="4.65,373,1304262000"; d="scan'208";a="32401651" Original-Received: from unknown (HELO relay11.aps.necel.com) ([10.29.19.46]) by relmlii2.idc.renesas.com with ESMTP; Thu, 16 Jun 2011 16:18:34 +0900 Original-Received: from relay11.aps.necel.com ([10.29.19.46] [10.29.19.46]) by relay11.aps.necel.com with ESMTP; Thu, 16 Jun 2011 16:18:34 +0900 Original-Received: from dhlpc061 ([10.114.96.212] [10.114.96.212]) by relay11.aps.necel.com with ESMTP; Thu, 16 Jun 2011 16:18:34 +0900 Original-Received: by dhlpc061 (Postfix, from userid 31295) id 8118B52E1F6; Thu, 16 Jun 2011 16:18:34 +0900 (JST) System-Type: x86_64-unknown-linux-gnu Blat: Foop In-reply-to: Original-Lines: 39 X-detected-operating-system: by eggs.gnu.org: Solaris 10 (1203?) X-Received-From: 210.160.252.173 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:140545 Archived-At: How's this? -miles 2011-06-16 Miles Bader * configure.in: Try to determine CRT_DIR automatically when using gcc. diff --git a/configure.in b/configure.in index 9e7ea85..60f7c4e 100644 --- a/configure.in +++ b/configure.in @@ -988,6 +988,21 @@ dnl Do this early because it can frob feature test macros for Unix-98 &c. AC_SYS_LARGEFILE +## If we're using gcc, and the user hasn't specified a crt-dir, try to +## determine it automatically by asking gcc. [If this doesn't work, +## CRT_DIR will remain empty and system-dependent code will be used +## below.] +## +if test "x${GCC}y$CRT_DIR" = xyesy; then + crt_file=`$CC --print-file-name=crt1.o` + case "$crt_file" in + */*) + CRT_DIR=`AS_DIRNAME(["$crt_file"])` + ;; + esac +fi + + ## If user specified a crt-dir, use that unconditionally. if test "X$CRT_DIR" = "X"; then -- Custard, n. A vile concoction produced by a malevolent conspiracy of the hen, the cow, and the cook.