Skip to content
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

Update autoconf config for modern toolchain in preparation for release 1.9.6 #44

Open
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

royhills
Copy link
Owner

@royhills royhills commented Sep 13, 2024

Update the autoconf configuration in configure.ac and the associated macros and header files for a modern toolchain in preparation for release 1.9.6.

We assume:

  • autoconf 2.70 or later (was 2.61 or later)
  • a C99 compliant C compiler (was C89)

These assumptions permits:

  • Removal of autoconf tests for fixed-width integer types and printf formats, because C99 mandates the <inttypes.h> header which defines them.
  • Moving local autoconf macros from acinclude.m4 to seperate files under the m4 directory.
  • Moving autoconf auxilliary build files from the top level directory to build-aux.

This pull request also includes refactoring and general tidying up of configure.ac and associated macros.

@royhills royhills changed the title Update autoconf config for modern toolchain in preparation for release 1.9.7 Update autoconf config for modern toolchain in preparation for release 1.9.6 Sep 13, 2024
@coveralls
Copy link

coveralls commented Sep 13, 2024

Coverage Status

coverage: 76.647%. remained the same
when pulling c63a9e1 on support-modern-toolchain
into c74c01f on master.

@royhills royhills mentioned this pull request Sep 13, 2024
@royhills royhills self-assigned this Sep 15, 2024
…re checks.

Order header includes by C standard (C89, C99) and POSIX.1 issue number.
…g_only.

Most systems support getopt_long_only, but NetBSD doesn't as of v9.3.
… own.

Stripped out autoconf type checks and use uint{8,16,32,64}_t and PRIu64 in code.
The associated code was removed in 9024c3a dated Jul 1 2006.
…m4 directory

Removed unused macros that used to check fixed width integer types and formats.
Require autoconf 2.70 or later.
Modified autoconf macro gcc-stack-protect to link instead of compile
…tests.

All modern versions of GCC and Clang support these options.
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