diff options
author | Ryan Bloom <rbb@apache.org> | 2000-12-26 22:39:35 +0100 |
---|---|---|
committer | Ryan Bloom <rbb@apache.org> | 2000-12-26 22:39:35 +0100 |
commit | 083aa58372766953f6faaa8da0f70115bf84195a (patch) | |
tree | 0949f3b4cf128bb2aeeec5dea26d3f3504af0d70 /build | |
parent | Time for bed soon. :-) (diff) | |
download | apache2-083aa58372766953f6faaa8da0f70115bf84195a.tar.xz apache2-083aa58372766953f6faaa8da0f70115bf84195a.zip |
Allow buildconf to find the config.m4 files in the correct order. This
allows the decisions made in one config.m4 file to be based on decisions
made in previous config.m4 files. For example, the config.m4 in the
generators config.m4 can choose the correc cgi module based on which MPM
is chosen.
To do this, we find all filenames config*.m4, and then we re-order the
filename so that it looks like: *config.m4/path/to/file. Once all files
are in this format, we sort the files, and then re-arrange the file names
again to put them in the correct order. There may be better ways to do
this, but I couldn't find a portable way to call sort so that this would
work.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@87526 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'build')
-rw-r--r-- | build/build.mk | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/build/build.mk b/build/build.mk index a45069dcba..514f118c1a 100644 --- a/build/build.mk +++ b/build/build.mk @@ -91,7 +91,10 @@ generated_lists: echo "libtoolize not found in path"; \ exit 1; \ fi; - @echo config_m4_files = `find . -name config.m4` > $@ + @echo config_m4_files = `find . -name "config*.m4" | \ + sed 's#\(.*\)\/config\(.*\)\.m4#\2config.m4\1#' | \ + sort -g | \ + sed 's#\(.*\)config.m4\(.*\)#\2/config\1.m4#'` > $@ @n=`build/PrintPath libtoolize`; echo libtool_prefix = `dirname $$n`/.. >> $@ $(STAMP): build/buildcheck.sh |