[342] in Hesiod

home help back first fref pref prev next nref lref last post

Re: PATCH: hesiod3.0.0

daemon@ATHENA.MIT.EDU (Ken Raeburn)
Thu Dec 19 19:38:36 1996

To: Larry Schwimmer <rosebud@cyclone.Stanford.EDU>
Cc: hesiod@MIT.EDU
From: Ken Raeburn <raeburn@cygnus.com>
Date: 19 Dec 1996 19:38:00 -0500
In-Reply-To: Larry Schwimmer's message of Thu, 19 Dec 1996 04:41:52 -0800 (PST)


> 2) configure.in
> 
> 	* Default CFLAGS to -g if not passed to configure.  This
> 	  keeps the old default while allowing people who wish to
> 	  override it a simple way to do so without having to edit
> 	  code.

I don't think your patch will preserve an explicit setting of an empty
CFLAGS.  The "${CFLAGS+set} = set" test autoconf uses is probably a
better way to test it in this case.

Autoconf already sets a CFLAGS value, and it looks like it'll preserve
the value from the environment if there is one.  If it's not imported
from the environment, it'll use -O if the compiler is gcc, and -g
except in certain cases of gcc versions that don't support it.  In
short: generally "-g -O" for gcc and "-g" for cc.

Do things work for you if you leave out the configure.in patch but
keep the use of @CFLAGS@ in Makefile.in?

Ken

home help back first fref pref prev next nref lref last post