Skip to content

WIP: Fix autoreconf/autoheader breaking compilation #15

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

bernhardschmidt
Copy link
Collaborator

When autoreconf is called to generate all the supposedly autogenerated
files the build breaks. First, an incompatibility with newer autoheader
versions is encountered

autoheader: warning: missing template: DEFAULT_MTA
autoheader: Use AC_DEFINE([DEFAULT_MTA], [], [Description])
autoheader: warning: missing template: MAXLINE
autoheader: warning: missing template: UMASK
autoreconf: /usr/bin/autoheader failed with exit status: 1

Then as far as I understand conf.h.in is supposedly generated from
all the AC_DEFINE*/AC_CHECK* macros in configure.ac. But it obviously
isn't, there are a lot of static #define statements in there that
are not defined anywhere else.

Fix this by putting all those static settings into static.h, then
include that in conf.h.in with AH_TOP([#include "static.h"])

When autoreconf is called to generate all the supposedly autogenerated
files the build breaks. First, an incompatibility with newer autoheader
versions is encountered

autoheader: warning: missing template: DEFAULT_MTA
autoheader: Use AC_DEFINE([DEFAULT_MTA], [], [Description])
autoheader: warning: missing template: MAXLINE
autoheader: warning: missing template: UMASK
autoreconf: /usr/bin/autoheader failed with exit status: 1

Then as far as I understand conf.h.in is supposedly generated from
all the AC_DEFINE*/AC_CHECK* macros in configure.ac. But it obviously
isn't, there are a lot of static #define statements in there that
are not defined anywhere else.

Fix this by putting all those static settings into static.h, then
include that in conf.h.in with AH_TOP([#include "static.h"])
@bernhardschmidt
Copy link
Collaborator Author

Note that I beat autotools into submission by trial and error. I have no idea what I'm doing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant