[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r104608: configure.in: Try to determi
From: |
Miles Bader |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r104608: configure.in: Try to determine CRT_DIR automatically when using gcc |
Date: |
Fri, 17 Jun 2011 02:50:21 +0900 |
User-agent: |
Bazaar (2.3.1) |
------------------------------------------------------------
revno: 104608
committer: Miles Bader <address@hidden>
branch nick: trunk
timestamp: Fri 2011-06-17 02:50:21 +0900
message:
configure.in: Try to determine CRT_DIR automatically when using gcc
modified:
ChangeLog
configure.in
=== modified file 'ChangeLog'
--- a/ChangeLog 2011-06-15 22:27:54 +0000
+++ b/ChangeLog 2011-06-16 17:50:21 +0000
@@ -1,3 +1,8 @@
+2011-06-16 Miles Bader <address@hidden>
+
+ * configure.in: Try to determine CRT_DIR automatically when
+ using gcc.
+
2011-06-15 Paul Eggert <address@hidden>
* lib/ftoastr.c, lib/stdio.in.h, lib/verify.h:
=== modified file 'configure.in'
--- a/configure.in 2011-06-14 21:08:20 +0000
+++ b/configure.in 2011-06-16 17:50:21 +0000
@@ -988,6 +988,21 @@
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}z$CRT_DIR" = xyesz; then
+ crt_file=`$CC 2>/dev/null --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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r104608: configure.in: Try to determine CRT_DIR automatically when using gcc,
Miles Bader <=