From 0462d760af09de22374df19cc031520acf67348b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dag-Erling=20Sm=C3=B8rgrav?= Date: Mon, 9 Sep 2024 12:34:33 +0200 Subject: [PATCH] Further modernize configure.ac. * Remove `AM_PROG_CC_C_O`, it is implied my `AC_PROG_CC`. * Move `AC_USE_SYSTEM_EXTENSIONS` up as it need to precede any check that uses the compiler. --- configure.ac | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/configure.ac b/configure.ac index 256a180..375e2e6 100644 --- a/configure.ac +++ b/configure.ac @@ -11,7 +11,11 @@ dnl Checks for programs. AC_PROG_CC AC_PROG_CPP AC_PROG_INSTALL -AM_PROG_CC_C_O + +dnl Checks for compiler characteristics. +AC_USE_SYSTEM_EXTENSIONS +AC_C_CONST +AC_C_INLINE tre_version_1=`echo $PACKAGE_VERSION | cut -d . -f 1` tre_version_2=`echo $PACKAGE_VERSION | cut -d . -f 2` @@ -96,11 +100,6 @@ else fi -dnl Checks for compiler characteristics. -AC_C_CONST -AC_C_INLINE -AC_USE_SYSTEM_EXTENSIONS - dnl Make sure locally configured headers are used (this adds the #define to config.h). AC_DEFINE(USE_LOCAL_TRE_H, 1, [ Define to ensure locally configured headers are used ])