about summary refs log tree commit diff
path: root/Makeconfig
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconfig')
-rw-r--r--Makeconfig10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makeconfig b/Makeconfig
index 41f5839afc..5936f237ad 100644
--- a/Makeconfig
+++ b/Makeconfig
@@ -86,8 +86,16 @@ include $(common-objpfx)config.make
 $(common-objpfx)config.make: $(common-objpfx)config.status $(..)config.h.in
 	cd $(<D); $(SHELL) $(<F)
 
+# Find all the sysdeps configure fragments, to make sure we re-run
+# configure when any of them changes.
+sysdep-configures = $(foreach dir,$(config-sysdirs),\
+			      $(patsubst %.in,%,\
+					 $(firstword $(wildcard \
+					    $(dir)/configure \
+					    $(dir)/configure.in)))
+
 # Force the user to configure before making.
-$(common-objpfx)config.status: $(..)configure
+$(common-objpfx)config.status: $(..)configure $(sysdep-configures)
 	@cd $(@D); if test -f $(@F); then exec $(SHELL) $(@F) --recheck; else \
 	 echo The GNU C library has not been configured. >&2; \
 	 echo Run \`configure\' to configure it before building. >&2; \