Skip to content

Conversation

@frankdean
Copy link
Contributor

These changes allow make dist and make distcheck to succeed (tested on Debian 13 Trixie), although CPPFLAGS needs some extra parameters, especially when building outside the source tree (such as when running make distcheck). E.g.

./configure CPPFLAGS='-I$(top_srcdir)'

and for make distcheck

DISTCHECK_CONFIGURE_FLAGS='CPPFLAGS=-I../../.. \
    --disable-install-cmake-modules' make distcheck

Including these flags in AM_CPPFLAGS in the relevant Makefile.am files should be harmless and simplify any instructions. I've tried to make as few changes as necessary. Additionally I have not sorted any of the lists of files to make merge conflicts easier to handle. Ideally they should be sorted after a successful merge.

make dist creates both tar and zip distribution files. That can be changed in AM_INIT_AUTOMAKE in configure.ac. The distribution files contain the same contents as currently in the distribution files created by Github.

The advantage of using the autotools distribution file is that the end user does not need to install autotools etc. Nor will there be autotool version conflicts. The only dependencies to build on Debian 13 (Trixie) are pkg-config g++ libncurses-dev. libcppunit-dev would be required to build the unit tests.

I also included an option to disable attempting to install CMake modules as this causes make distcheck to fail.

These changes allow `make dist` and `make distcheck` to succeed (tested on
Debian 13 Trixie), although CPPFLAGS needs some extra parameters, especially
when building outside the source tree (such as when running `make distcheck`).
E.g.

    ./configure CPPFLAGS='-I$(top_srcdir)'

and for `make distcheck`

    DISTCHECK_CONFIGURE_FLAGS='CPPFLAGS=-I../../.. \
        --disable-install-cmake-modules' make distcheck

Including these flags in `AM_CPPFLAGS` in the relevant `Makefile.am` files
should be harmless and simplify any instructions.  I've tried to make as few
changes as necessary.  Additionally I have not sorted any of the lists of
files to make merge conflicts easier to handle.  Ideally they should be sorted
after a successful merge.

`make dist` creates both tar and zip distribution files.  That can be changed
in `AM_INIT_AUTOMAKE` in `configure.ac`.  The distribution files contain the
same contents as currently in the distribution files created by Github.

The advantage of using the autotools distribution file is that the end user
does not need to install autotools etc.  Nor will there be autotool version
conflicts.  The only dependencies to build on Debian 13 (Trixie) are
`pkg-config g++ libncurses-dev`.  `libcppunit-dev` would be required to build
the unit tests.

I also included an option to disable attempting to install CMake modules as
this causes `make distcheck` to fail.
@gansm
Copy link
Owner

gansm commented Feb 9, 2026

Great job! I’m especially pleased that you followed the coding standard exactly as required.

@gansm gansm merged commit c57d6a0 into gansm:main Feb 9, 2026
14 checks passed
@gansm
Copy link
Owner

gansm commented Feb 9, 2026

Okay, and now in alphabetical order again (c7f2925).

@frankdean frankdean deleted the update-autotools branch February 10, 2026 11:31
@frankdean
Copy link
Contributor Author

Many thanks!

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.

2 participants