[Top][All Lists]

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

Re: parameter

From: Stefano Lattarini
Subject: Re: parameter
Date: Tue, 25 May 2010 13:30:04 +0200
User-agent: KMail/1.12.1 (Linux/2.6.30-2-686; KDE/4.3.4; i686; ; )

At Tuesday 25 May 2010, Alex Farber <address@hidden> wrote:
> ./configure WX_CPP="compiler flags..." WX_LIBS="linker flags..."
> This doesn't work, because AC_SUBST is done when configure script
>  is generated, and not when it is executed.
No, this doesn't work because you are setting the WX_CPP and WX_LIBS 
shell variables unconditionally.
>  Is there some way to get it working?
I think that setting WX_CPP and WX_LIBS conditionally should be 
enough; e.g., instead of this:
  WX_CPP="`wx-config --cppflags`"
do this:
  test x${WX_CPP+"set"} = x"set" || WX_CPP="`wx-config --cppflags`"

By the way, it would also be better to quote arguments of autoconf 
macros consistently, i.e. using `AC_SUBST([WX_CPP])' instead of
`AC_SUBST(WX_CPP)': but this is ortoghonal to the issue we are 


reply via email to

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