Re: Compiler flags

2002-11-10 Thread Guido Draheim
This is an autoconf.at.gnu.org question... Michael Lemke wrote: Today I've been trying to learn automake&autoconf. Something I can't figure out although it is the main reason I am investigating automake: How do I set compiler flags based on the compiler? For example, g77 requires -fdollar-ok

Re: Compiler Flags

2000-11-23 Thread Simon Richter
On Mon, 20 Nov 2000, Tim Heath wrote: > AM_CXXFLAGS = -D_POSIX1C_SOURCE -D_HPUX_SOURCE -D_REENTRANT [...] > If you know of a better way please feel free to share it with me. I am > interested in how to do and if/then to use this only if I am compiling > on HPUX 11.0 with aCC etc. Why only wi

Re: Compiler Flags

2000-11-22 Thread Tim Heath
I put the following in my configure.in: AM_CFLAGS = -D_POSIX1C_SOURCE -D_HPUX_SOURCE -D_REENTRANT I assume this is wrong as it does not have the desired effect. Can you tell me what should be done please? Thanks, Tim Heath Tom Tromey wrote: > > > "Simon" == Simon Richter <[EMAIL PROTECT

Re: Compiler Flags

2000-11-22 Thread Tim Heath
AM_CXXFLAGS = -D_POSIX1C_SOURCE -D_HPUX_SOURCE -D_REENTRANT at the top of my Makefile.am had the desired affect I was looking for. Thanks, Tim Heath P.S. If you know of a better way please feel free to share it with me. I am interested in how to do and if/then to use this only if I am compi

Re: Compiler Flags

2000-11-19 Thread Tom Tromey
> "Simon" == Simon Richter <[EMAIL PROTECTED]> >writes: >> On Fri, 17 Nov 2000, Tim Heath wrote: >> How do I add compiler flags? What AM is necessary to accomplish that? Simon> Make your configure.in add them to $CFLAGS, before AC_PROG_CC Simon> (to make sure the compiler actually accepts

Re: Compiler Flags

2000-11-18 Thread Ossama Othman
Hi, On Sat, Nov 18, 2000 at 06:41:17PM +0100, Simon Richter wrote: > On Fri, 17 Nov 2000, Tim Heath wrote: > > > How do I add compiler flags? What AM is necessary to accomplish that? > > Make your configure.in add them to $CFLAGS, before AC_PROG_CC (to make > sure the compiler actually acc

Re: Compiler Flags

2000-11-18 Thread Simon Richter
On Fri, 17 Nov 2000, Tim Heath wrote: > How do I add compiler flags? What AM is necessary to accomplish that? Make your configure.in add them to $CFLAGS, before AC_PROG_CC (to make sure the compiler actually accepts them). Simon -- GPG public key available from http://phobos.fs.tum.