From: Simon Marchi Date: Fri, 15 Mar 2024 15:33:14 +0000 (-0400) Subject: configure.ac: call `AC_USE_SYSTEM_EXTENSIONS` earlier X-Git-Url: http://git.efficios.com/?p=argpar.git;a=commitdiff_plain;h=99f9c3e523274c787038af029bb0270809e5f579 configure.ac: call `AC_USE_SYSTEM_EXTENSIONS` earlier When bootstrapping, with autoconf 2.72, I see: autoreconf: running: /usr/bin/autoconf configure.ac:7: warning: AC_COMPILE_IFELSE was called before AC_USE_SYSTEM_EXTENSIONS m4/ac_extensions.m4:38: AC_USE_SYSTEM_EXTENSIONS is expanded from... configure.ac:7: the top level Move the call to `AC_USE_SYSTEM_EXTENSIONS` earlier to avoid that. Change-Id: I836889d9816708530ddbd7c66d8e2c331eadbead Signed-off-by: Simon Marchi --- diff --git a/configure.ac b/configure.ac index d8b29f0..2713688 100644 --- a/configure.ac +++ b/configure.ac @@ -1,11 +1,11 @@ AC_INIT([argpar], [0.1.0]) +AC_USE_SYSTEM_EXTENSIONS + AM_INIT_AUTOMAKE([foreign]) LT_INIT AC_CONFIG_MACRO_DIRS([m4]) -AC_USE_SYSTEM_EXTENSIONS - # Depend on glib just for the tests. PKG_CHECK_MODULES([GLIB], [glib-2.0])