try something like this up near the top of configure.in after the initial init 
commands

# Absolute source/build directory
sofia_srcdir=`(cd $srcdir && pwd)`
sofia_builddir=`pwd`
AC_SUBST(sofia_srcdir)
AC_SUBST(sofia_builddir)

On Jul 8, 2010, at 11:20 AM, Stefano Sabatini wrote:

> On date Tuesday 2010-07-06 19:35:38 +0300, Pekka Pessi phoned this:
>> 2010/7/6 Stefano Sabatini <ssabat...@reilabs.com>:
>>> this patch fixes the configuration problem as reported here:
>>> http://thread.gmane.org/gmane.comp.telephony.sofia-sip.devel/3853
>> 
>> Thanks for the patch.
>> 
>>> -CFLAGS="$CFLAGS -I\$(top_srcdir)/win32/pthread -DWINVER=0x0501 \
>>> +CFLAGS="$CFLAGS -I${srcdir}/win32/pthread -DWINVER=0x0501 \
>> 
>> Can you actually compile sofia-sip with this? It seems to me that the
>> relative srcdir does dot work when make descends deeper into source
>> tree.
> 
> Mmh no, indeed compilation was failing with a libtool error (I had to
> hack the generated libtool script to fix it, as reported in another
> thread).
> 
> So it seems that the patch defined in sac-general.m4 needs to be
> *absolute*. I tried to use $abs_srcdir but that is expanded to the
> empty string, then I hacked this:
> 
> abs_srcdir=`(cd $srcdir && pwd)`
> CFLAGS="$CFLAGS -I${abs_srcdir}/win32/pthread -DWINVER=0x0501 \ ...
> 
> and now it is working (configure and libtool and all).
> 
> Now I need to understand why it isn't expanding $abs_srcdir...
> 
> Regards.
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> Sofia-sip-devel mailing list
> Sofia-sip-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Sofia-sip-devel mailing list
Sofia-sip-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sofia-sip-devel

Reply via email to