autoconf
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Autoheader errors


From: John Poltorak
Subject: Re: Autoheader errors
Date: Wed, 7 Nov 2001 10:54:19 +0000

On Wed, Nov 07, 2001 at 11:33:32AM +0100, Tim Van Holder wrote:
> On Wed, 2001-11-07 at 10:55, John Poltorak wrote:
> > 
> > I get the following error msgs when using autoheader while trying to 
> > build mktemp:-
> > 
> > autoheader.: checking completeness of the template
> > autoheader.: No template for symbol `HAVE_PROGNAME'
> > autoheader.: No template for symbol `MKDTEMP'
> > autoheader.: No template for symbol `MKSTEMP'
> > autoheader.: No template for symbol `_PATH_RANDOM'
> > status is 1
> > 
> > Mktemp is available here:-
> > 
> > ftp://ftp.cs.colorado.edu/pub/mktemp/mktemp-1.3.1.tar.gz
> 
> No it's not:
> --11:32:26-- 
> ftp://ftp.cs.colorado.edu:21/pub/mktemp/mktemp-1.3.1.tar.gz
>            => `mktemp-1.3.1.tar.gz'
> Connecting to ftp.cs.colorado.edu:21... 
> Connection to ftp.cs.colorado.edu:21 refused.

It did work previously. Here is the homepage for mktemp which also has 
other alternative URLs for download:-

http://www.courtesan.com/mktemp/ftp.html
 
> > Does anyone recognise these msgs and can suggest why I get them?
> 
> Yup.  It means that
> 
>    AC_DEFINE(HAVE_PROGNAME)
> 
> is used, but that none of the uses specify the comment to use.
> Autoheader wants to create config.h.in header that look like
> 
>   /* blah */
>   #define FOO <optional value>
> 
> For the 'blah' part, it has to rely on the user to tell it what to use. 
> In the olden days, acconfig.h was used for that purpose, but now
> autoheader expects AC_DEFINE to do it:
> 
>   AC_DEFINE(HAVE_PROGNAME, 1,
>             [Define if your system has the progname() function.])
> 
> Or something like that.
> So often these messages can be resolved quite easily by simply looking
> for AC_DEFINE's that lack a third argument, and add it (often a legacy
> acconfig.h will be present, in which case you can just lift the comment
> from there), optionally adding a value as well ('1' is usully OK).
> 
> Hope that helps.

So this line:-

test "$mktemp_cv_progname" = "yes" && AC_DEFINE(HAVE_PROGNAME)

should be changed to something like:- ?

test "$mktemp_cv_progname" = "yes" && AC_DEFINE(HAVE_PROGNAME, 1, [foo])


-- 
John





reply via email to

[Prev in Thread] Current Thread [Next in Thread]