]> git.ipfire.org Git - thirdparty/shadow.git/commitdiff
configure.ac, Makefile.am: Propagate ./configure flags to 'distcheck'
authorAlejandro Colomar <alx@kernel.org>
Sat, 2 Aug 2025 10:35:41 +0000 (12:35 +0200)
committerSerge Hallyn <serge@hallyn.com>
Fri, 5 Dec 2025 02:07:22 +0000 (20:07 -0600)
'make distcheck' runs ./configure (among other things).  That command
should inherit the flags passed on the command line, as they are the
flags necessary to build in the current system.

This also allows testing different configurations in the same system.
Until now, we only tested the default automagic configuration.  With
this change, one can test the same default automagic configuration, by
not passing any flags to ./configure, or they can test more specific
configurations, by passing flags.

This allows removing the hardcoded AM_DISTCHECK_CONFIGURE_FLAGS in the
"Makefile.am".

Signed-off-by: Alejandro Colomar <alx@kernel.org>
Makefile.am
configure.ac

index 778d2ea77a5c6eb44e402a357c84186b5e1d4258..00e1fcbc78809f9dad31165ed8bec153c9114067 100644 (file)
@@ -1,8 +1,6 @@
 ## Process this file with automake to produce Makefile.in
 ACLOCAL_AMFLAGS = -I m4
 
-AM_DISTCHECK_CONFIGURE_FLAGS = --disable-logind
-
 SUBDIRS = lib
 
 if ENABLE_SUBIDS
index 71697e7aaeacb77e1cacc38a936db66a8fc91d60..3591abce52a3fa905ab7915888be712be3be1ae8 100644 (file)
@@ -14,6 +14,8 @@ AC_CONFIG_HEADERS([config.h])
 AM_INIT_AUTOMAKE([1.11 foreign dist-xz subdir-objects tar-pax])
 AM_SILENT_RULES([yes])
 
+AC_SUBST([AM_DISTCHECK_CONFIGURE_FLAGS], ["$ac_configure_args"])
+
 AC_SUBST([LIBSUBID_ABI_MAJOR], [libsubid_abi_major])
 AC_SUBST([LIBSUBID_ABI_MINOR], [libsubid_abi_minor])
 AC_SUBST([LIBSUBID_ABI_MICRO], [libsubid_abi_micro])