]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
print warnings only when asked. Fixes #3032
authorAlan T. DeKok <aland@freeradius.org>
Tue, 8 Oct 2019 22:20:04 +0000 (18:20 -0400)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 8 Oct 2019 22:20:04 +0000 (18:20 -0400)
It will now ignore warnings in normal builds, and only them
when running:

    make check.configure

this change is because we can't control the timestamps on the
`configure` and `configure.ac` files on `git clone` or
`git checkout`.  The `git` program may write one file before
another, and not necessarily in any order we would like.

Since we can't fix that, we just suppress the warnings.

src/modules/all.mk

index 573f41b4fe38dff09091fb042e7e98943ba6f93e..c2e9519b63904765f276d9ee48fc94e7539f6390 100644 (file)
@@ -21,7 +21,7 @@ NEEDS_CONFIG := $(patsubst %.in,%,$(foreach file,$(SUBMAKEFILES),$(wildcard $(fi
 SUBMAKEFILES := $(sort $(SUBMAKEFILES) $(NEEDS_CONFIG))
 endif
 
-ifneq "$(MAKECMDGOALS)" "reconfig"
+ifeq "$(MAKECMDGOALS)" "check.configure"
 src/modules/%/configure: src/modules/%/configure.ac
        @echo WARNING - may need "'make reconfig'" for AUTOCONF $(dir $@)
 endif