From: Miles Bader <miles@gnu.org>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: emacs build failure on today's debian
Date: Thu, 16 Jun 2011 16:18:33 +0900 [thread overview]
Message-ID: <buo62o69rcm.fsf@dhlpc061.dev.necel.com> (raw)
In-Reply-To: <ro1uyup8kv.fsf@fencepost.gnu.org>
How's this? -miles
2011-06-16 Miles Bader <miles@gnu.org>
* 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.
next prev parent reply other threads:[~2011-06-16 7:18 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-15 8:52 emacs build failure on today's debian Miles Bader
2011-06-15 9:16 ` Julien Danjou
2011-06-15 9:38 ` Miles Bader
2011-06-15 9:50 ` Andreas Schwab
2011-06-15 16:09 ` Glenn Morris
2011-06-16 4:14 ` Miles Bader
2011-06-16 6:57 ` Glenn Morris
2011-06-16 7:18 ` Miles Bader [this message]
2011-06-16 7:33 ` Glenn Morris
2011-06-15 9:56 ` Bruce Stephens
2011-06-15 10:06 ` Julien Danjou
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=buo62o69rcm.fsf@dhlpc061.dev.necel.com \
--to=miles@gnu.org \
--cc=emacs-devel@gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.