diff options
| author | Miles Bader | 2011-06-17 02:50:21 +0900 |
|---|---|---|
| committer | Miles Bader | 2011-06-17 02:50:21 +0900 |
| commit | 0cca0a78a4ee6b761c2fd91ee5a6628f23e3368c (patch) | |
| tree | 1185dce2173ce2fd2f400f19fa6bfb3ab6d62792 | |
| parent | 67222e1dfff23c792ecdd4995dd144c1b41027c9 (diff) | |
| download | emacs-0cca0a78a4ee6b761c2fd91ee5a6628f23e3368c.tar.gz emacs-0cca0a78a4ee6b761c2fd91ee5a6628f23e3368c.zip | |
configure.in: Try to determine CRT_DIR automatically when using gcc
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | configure.in | 15 |
2 files changed, 20 insertions, 0 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-06-16 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * configure.in: Try to determine CRT_DIR automatically when | ||
| 4 | using gcc. | ||
| 5 | |||
| 1 | 2011-06-15 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2011-06-15 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * lib/ftoastr.c, lib/stdio.in.h, lib/verify.h: | 8 | * lib/ftoastr.c, lib/stdio.in.h, lib/verify.h: |
diff --git a/configure.in b/configure.in index 9e7ea8522b2..60b4d55be51 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. | |||
| 988 | AC_SYS_LARGEFILE | 988 | AC_SYS_LARGEFILE |
| 989 | 989 | ||
| 990 | 990 | ||
| 991 | ## If we're using gcc, and the user hasn't specified a crt-dir, try to | ||
| 992 | ## determine it automatically by asking gcc. [If this doesn't work, | ||
| 993 | ## CRT_DIR will remain empty and system-dependent code will be used | ||
| 994 | ## below.] | ||
| 995 | ## | ||
| 996 | if test "x${GCC}z$CRT_DIR" = xyesz; then | ||
| 997 | crt_file=`$CC 2>/dev/null --print-file-name=crt1.o` | ||
| 998 | case "$crt_file" in | ||
| 999 | */*) | ||
| 1000 | CRT_DIR=`AS_DIRNAME(["$crt_file"])` | ||
| 1001 | ;; | ||
| 1002 | esac | ||
| 1003 | fi | ||
| 1004 | |||
| 1005 | |||
| 991 | ## If user specified a crt-dir, use that unconditionally. | 1006 | ## If user specified a crt-dir, use that unconditionally. |
| 992 | if test "X$CRT_DIR" = "X"; then | 1007 | if test "X$CRT_DIR" = "X"; then |
| 993 | 1008 | ||