From 1e93a53bc43e5111346d9cca64d2dd3b25c0e4ca Mon Sep 17 00:00:00 2001 From: Xavier Del Campo Romero Date: Fri, 13 Feb 2026 09:37:27 +0100 Subject: configure: Re-configure subprojects if required When a configuration is changed from the top-level directory, it should be reflected on the subprojects as well. Note: still, "make clean" is required so that the objects are built with the new configuration flags. --- configure | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/configure b/configure index 9ece0d2..c967734 100755 --- a/configure +++ b/configure @@ -93,6 +93,23 @@ else in_tree_libweb=1 proj_CFLAGS="$proj_CFLAGS -Ilibweb/include" proj_LDFLAGS="$proj_LDFLAGS -Llibweb -lweb" + + if [ -f libweb/Makefile ] + then + echo "Info: Re-configuring libweb" >&2 + (cd libweb && CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ./configure \ + --prefix="$prefix") + fi +fi + +if [ $build_thumbnail -ne 0 ] +then + if [ -f thumbnail/Makefile ] + then + echo "Info: Re-configuring thumbnail" >&2 + (cd thumbnail && CFLAGS="$CFLAGS" LDFLAGS="$LDFLAGS" ./configure \ + --prefix="$prefix") + fi fi if pkg-config fdzipstream -- cgit v1.2.3