[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
config.status refuses to run
From: |
Sam Steingold |
Subject: |
config.status refuses to run |
Date: |
Mon, 10 Oct 2005 12:34:10 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) |
I am getting this:
sh config.status --recheck
...
configure: loading cache ../config.cache
configure: error: `CFLAGS' was not set in the previous run
configure: error: `CPPFLAGS' was not set in the previous run
configure: error: changes in the environment can compromise the build
configure: error: run `make distclean' and/or `rm ../config.cache' and start
over
make[1]: *** [config.status] Error 1
I did not set any variables, not by hand.
how do I avoid this error?
here is my infrastructure:
I am in the mail product build directory (.)
it has several "module" subdirectories, each with its own configure (and
configure.in, config.h.in, Makefile.in &c).
they are built like this:
--- ./Makefile ---
module-dir:
cd module-dir; ./configure --cache-file=../config.cache CC=$(CC) ....
cd module-dir; make CC=$(CC) CPPFLAGS=$(CPPFLAGS) ....
--- ./Makefile ---
I thought that by adding
--- module-dir/Makefile ---
config.status : configure
sh config.status --recheck
config.h : config.status config.h.in
sh config.status --header=config.h
--- module-dir/Makefile ---
I will ensure that when module-dir/configure changes,
module-dir will be automatically reconfigured.
Unfortunately I am getting the above errors (`CFLAGS' was not set in the
previous run &c).
I understand why I am getting them, but I see no way to avoid them:
if I configure module-dir1 before module-dir2, and module-dir2/configure
changes CFLAGS, then module-dir1/configure will complain when I try to
re-run it.
So, how do you handle this issue?
the only thing I could come up with so far is quite ugly:
--- module-dir/Makefile ---
config.status : configure
sh config.status --recheck || (cd ..; rm -fv module-dir; make
module-dir)
--- module-dir/Makefile ---
any other suggestions?
--
Sam Steingold (http://www.podval.org/~sds) running w2k
<http://www.memri.org/> <http://www.palestinefacts.org/> <http://ffii.org/>
<http://www.honestreporting.com> <http://www.openvotingconsortium.org/>
Experience comes with debts.
- config.status refuses to run,
Sam Steingold <=