[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[avr-gcc-list] [Patch, avr-libc]: Relax sanity check for CC from *avr*gc
From: |
Georg-Johann Lay |
Subject: |
[avr-gcc-list] [Patch, avr-libc]: Relax sanity check for CC from *avr*gcc* to *gcc* |
Date: |
Mon, 31 Oct 2011 20:57:20 +0100 |
User-agent: |
Thunderbird 2.0.0.24 (X11/20100302) |
This is a proposed patch to allow compiler names that don't fit into the
"avr-gcc" scheme like, e.g. "xgcc".
Johann
* configure.ac (CC): Use `${CC} -dumpmachine` to query for right cross
compiler instead of checking CC.
Index: configure.ac
===================================================================
--- configure.ac (revision 2259)
+++ configure.ac (working copy)
@@ -146,7 +146,12 @@ AC_CHECK_TOOL(AR, ar, ar)
# Make sure that we found the right avr cross-compiler.
case "${CC}" in
- *avr*gcc*) ;;
+ *gcc*)
+ case "X`${CC} -dumpmachine`X" in
+ XavrX) ;;
+ *) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
+ esac
+ ;;
*) AC_MSG_ERROR(Wrong C compiler found; check the PATH!) ;;
esac
case "${AS}" in
- [avr-gcc-list] [Patch, avr-libc]: Relax sanity check for CC from *avr*gcc* to *gcc*,
Georg-Johann Lay <=