On Wed, May 10, 2006 at 04:50:22PM +0200, Enrico Forestieri wrote:
> On Wed, May 10, 2006 at 04:41:38PM +0200, Jean-Marc Lasgouttes wrote:

> > Could you try the following patch, on either 1.4 or 1.5? I will
> > additionally remove cygwin.m4.
> 
> I am going to do that.

The patch works. Actually I applied only the qt.m4 part as I still
have stuff in cygwin.m4 from the auto-view patch (the shlwapi thing).

> I have also tested the attached patch which
> helps recognizing qt during the configure phase.

I also wanted to give ccache a try, so I configured using
CC="ccache gcc" and CXX="ccache g++". Suddenly, even using the patch
I am talking about, configure failed to recognize qt. Funny that it
was working before... I learn something new every day.
Please attached find a revised patch to qt.m4 which also works when
CC and CXX are defined.

-- 
Enrico
Index: config/qt.m4
===================================================================
--- config/qt.m4        (revision 13791)
+++ config/qt.m4        (working copy)
@@ -88,6 +88,8 @@ AC_DEFUN([QT_FIND_MOC],
 dnl check a particular libname
 AC_DEFUN([QT_TRY_LINK],
 [
+       SAVE_CXX="$CXX"
+       CXX="$SHELL ./libtool --mode=link $CXX"
        SAVE_LIBS="$LIBS"
        LIBS="$LIBS $1"
        AC_TRY_LINK([
@@ -103,6 +105,7 @@ AC_DEFUN([QT_TRY_LINK],
        qt_cv_libname=$1,
        )
        LIBS="$SAVE_LIBS"
+       CXX="$SAVE_CXX"
 ])
 
 dnl check we can do a compile

Reply via email to