[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Make depmode=cpp work with Microsoft Visual C++ on MSYS.
From: |
Peter Rosin |
Subject: |
Make depmode=cpp work with Microsoft Visual C++ on MSYS. |
Date: |
Tue, 27 Jan 2009 02:32:01 +0100 |
User-agent: |
Thunderbird 2.0.0.19 (Windows/20081209) |
Hi!
When using MSVC on MSYS, there is nothing that prevents depmode=cpp
from being used. It works fine. depmode=msvisualcpp doesn't work
as it assumes that cygpath can be used.
So, here's a tiny patch to make it work for me.
I'm not subscribed, please CC me.
Cheers,
Peter
diff --git a/ChangeLog b/ChangeLog
index 2463967..05af8a4 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2009-01-27 Peter Rosin <address@hidden> (tiny change)
+
+ Make depmode=cpp work with Microsoft Visual C++ on MSYS.
+ * m4/depend.m4 (_AM_DEPENDENCIES): depmode=cpp outputs paths
+ with double backslashes (instead of single slashes) on MSYS.
+ Adjust greps to recognize this.
+
2009-01-23 Eric Blake <address@hidden>
Use no-arg macros via AC_REQUIRE for consistency.
diff --git a/m4/depend.m4 b/m4/depend.m4
index fd09373..2255db1 100644
--- a/m4/depend.m4
+++ b/m4/depend.m4
@@ -100,9 +100,9 @@ AC_CACHE_CHECK([dependency style of $depcc],
depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
$SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
>/dev/null 2>conftest.err &&
- grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
- grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub[/\\][\\]*conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub[/\\][\\]*conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
+ grep sub[/\\][\\]*conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1
&&
${MAKE-make} -s -f confmf > /dev/null 2>&1; then
# icc doesn't choke on unknown options, it will just issue warnings
# or remarks (even with -Werror). So we grep stderr for any message
- Make depmode=cpp work with Microsoft Visual C++ on MSYS.,
Peter Rosin <=
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Ralf Wildenhues, 2009/01/28
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Peter Rosin, 2009/01/28
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Ralf Wildenhues, 2009/01/28
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Peter Rosin, 2009/01/29
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Ralf Wildenhues, 2009/01/29
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Peter Rosin, 2009/01/29
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Ralf Wildenhues, 2009/01/30
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Peter Rosin, 2009/01/30
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Peter Rosin, 2009/01/30
- Re: Make depmode=cpp work with Microsoft Visual C++ on MSYS., Ralf Wildenhues, 2009/01/31