Re: Specifying AM_CPPFLAGS from within configure.ac

2005-06-06 Thread Ralf Wildenhues
Hi Jirka, * Jirka Hanika wrote on Sat, Jun 04, 2005 at 10:12:18PM CEST: > > I've decided to send one more piece of reaction directly to you, because it > doesn't belong to the automake list anymore and it might confuse the > AC_COMPILER_OPTION thread on the autoconf list unless verbosely > introd

Re: Specifying AM_CPPFLAGS from within configure.ac

2005-06-06 Thread Jirka Hanika
On Mon, Jun 06, 2005 at 03:12:48PM +0200, Andreas Schwab wrote: > Jirka Hanika <[EMAIL PROTECTED]> writes: > > > 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(""); > > conftest.c: In

Re: Specifying AM_CPPFLAGS from within configure.ac

2005-06-06 Thread Andreas Schwab
Jirka Hanika <[EMAIL PROTECTED]> writes: > 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(""); conftest.c: In function ‘main’: conftest.c:5: warning: cast from pointer to integer of differe

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: 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: 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

Re: Specifying AM_CPPFLAGS from within configure.ac

2005-06-02 Thread Jirka Hanika
On Thu, Jun 02, 2005 at 05:50:14PM +1200, Matthew Walker wrote: > Hi, > > I would like to know how I should go about specifying AM_CPPFLAGS from > within my configure.ac. For such things, it is VERY useful to add something like this: include $(top_srcdir)/Makefile.common at the top of every Ma

Specifying AM_CPPFLAGS from within configure.ac

2005-06-02 Thread Matthew Walker
Hi, I would like to know how I should go about specifying AM_CPPFLAGS from within my configure.ac. I read Norman Gray and Alexandre Duret-Lutz's discussion from this mailing list on this topic (http://www.mail-archive.com/automake@gnu.org/msg10024.html) but could not understand quite what I