> * In message <[EMAIL PROTECTED]> > * On the subject of "Re: AC_CHECK_DECL+autoheader ==> nothing in config.h.in?" > * Sent on Mon, 28 Jul 2003 08:07:57 -0400 > * Honorable Derek Robert Price <[EMAIL PROTECTED]> writes: > > Sam Steingold wrote: > > >I put AC_CHECK_DECL(signgam) in configure.in to check for the lgamma() > >sign indicator. > >I expected autoheader to place "#undef HAVE_DECL_SIGNGAM" in > >config.h.in, but it does not do that. > >Do I _have_ to use the full version, like > >AC_CHECK_DECL(signgam, > > AC_DEFINE([HAVE_DECL_SIGNGAM],[1],[lgamma sign is in signgam]), > > AC_DEFINE([HAVE_DECL_SIGNGAM],[0],[lgamma sign is not available]), > > [#include <math.h>] ) > >?? [I guess I do - because of math.h, but, still, AC_CHECK_DECL was > >supposed to put something in config.h.in, right?] > > AC_CHECK_DECLS defines the config.h.in variable automatically. If you > want to use AC_CHECK_DECL, yes, you have to use a construct like you > mentioned.
Thank you very much. what about <math.h>? how do I have <math.h> included during the check for signgam without having to define [ACTION-IF-FOUND] and [ACTION-IF-NOT-FOUND] myself? -- Sam Steingold (http://www.podval.org/~sds) running w2k <http://www.camera.org> <http://www.iris.org.il> <http://www.memri.org/> <http://www.mideasttruth.com/> <http://www.palestine-central.com/links.html> C combines the power of assembler with the portability of assembler.