Re: Specifying AM_CPPFLAGS from within configure.ac

2005-06-03 Thread Jirka Hanika
Hi Matthew, Stepan, Ralf, first let me thank Ralf and Stepan, for your comments about the code snippet, I've learned a lot. You are both right. For example I'll try to upgrade the "unused variable" warning avoidance code to something like if (((int)argv) * ((int)argv) < 0 || argc < 0) printf(""

Re: conditionally linking to mingw32 library

2005-06-03 Thread Alexandre Duret-Lutz
>>> "Mark" == Mark Brand <[EMAIL PROTECTED]> writes: [...] Mark> "my_old_LIBS" and "my_ac_save_LIBS" were meant to be the same variable, Mark> right? Yep. Bits of this code were stolen from Curl's configure.ac. Mark> Thanks. Even though "./configure --with-msw --target=i586-mingw32msvc Mar

Re: conditionally linking to mingw32 library

2005-06-03 Thread Mark Brand
Alexandre Duret-Lutz wrote: "Mark" == Mark Brand <[EMAIL PROTECTED]> writes: > >[...] > > Mark> > Mark> if test x$target_os == xmingw32; then > Mark> WINSOCK=-lws2_32 > Mark> fi > Mark> AC_SUBST(WINSOCK) > Mark> > >Eww. That would be $host, not $target, and anyway testing the >h

Re: Specifying AM_CPPFLAGS from within configure.ac

2005-06-03 Thread Matthew Walker
Hi Jirka, Firstly, thank you very very much for your comments. They were well and truly more thorough than I'd ever hoped for. Unfortunately, I don't understand much of what you have said. Jirka Hanika wrote: On Thu, Jun 02, 2005 at 05:50:14PM +1200, Matthew Walker wrote: Hi, I would

Re: conditionally linking to mingw32 library

2005-06-03 Thread Mark Brand
"Mark" == Mark Brand <[EMAIL PROTECTED]> writes: > >[...] > > Mark> > Mark> if test x$target_os == xmingw32; then > Mark> WINSOCK=-lws2_32 > Mark> fi > Mark> AC_SUBST(WINSOCK) > Mark> > >Eww. That would be $host, not $target, and anyway testing the >host type should always be y

Re: Specifying AM_CPPFLAGS from within configure.ac

2005-06-03 Thread Ralf Wildenhues
Hi Jirko, Stepan, * Stepan Kasal wrote on Fri, Jun 03, 2005 at 08:44:48AM CEST: > > Regarding your macro MY_CXX_OPTION, if you want to be really portable, > things can get even more scary. This thread[1] contains a couple more hints. :) > I think the definition of your macro can be improved. >

Re: Specifying AM_CPPFLAGS from within configure.ac

2005-06-03 Thread Stepan Kasal
Hello Jirko, some nit picking: Regarding your macro MY_CXX_OPTION, if you want to be really portable, things can get even more scary. See http://lists.gnu.org/archive/html/autoconf/2005-05/msg00109.html This will point you to latest sources in the 1.5.x branch of libtool. (The thread continues a