autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: $abs_srcdir expansion


From: Stefano Sabatini
Subject: Re: $abs_srcdir expansion
Date: Thu, 8 Jul 2010 18:18:39 +0200
User-agent: Mutt/1.5.20 (2009-06-14)

On date Thursday 2010-07-08 18:00:56 +0200, Peter Breitenlohner wrote:
> On Thu, 8 Jul 2010, Stefano Sabatini wrote:
> 
> >-- Variable: srcdir
> >    The name of the directory that contains the source code for that
> >    makefile.
> >
> >-- Variable: abs_srcdir
> >    Absolute name of `srcdir'.
> 
> Hi Stefano,
> 
> these are `Preset Output Variables', i.e., substituted in Makefile, but
> (except for srcdir) not necessarily defined at configure time.
> 
> >if test "$sac_cv_cc_environment" = mingw32 ; then
> >CFLAGS="$CFLAGS -I${abs_srcdir}/win32/pthread ...
> 
>   CFLAGS="$CFLAGS -I\${abs_srcdir}/win32/pthread ...
> will do the right thing.

No, this will not work, because I need LDFLAGS to be defined during
configuration, or configure tests will fail with something along the
line of this:

configure:15998: result: no
configure:16018: checking whether IO functions support size specifier for long 
long
configure:16045: gcc -o conftest.exe -g -O2 -I${abs_srcdir}/win32/pthread 
-DWINVER=0x0501       -D_WIN32_WINNT=0x0501 -DIN_LIBSOFIA_SIP_UA 
-DIN_LIBSOFIA_SRES   -mms-bitfields  -pipe -mno-cygwin -mwindows -mconsole 
-Wall -g -O0   -Wl,--enable-auto-image-base conftest.c 
-L${abs_srcdir}/win32/pthread -lpthreadVC2 -lws2_32        -lwsock32 >&5
c:/mingw/bin/../lib/gcc/mingw32/4.5.0/../../../../mingw32/bin/ld.exe: cannot 
find -lpthreadVC2

Regards.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]