Chandra-MARX / marx

Chandra X-ray Observatory ray-trace simulator
http://space.mit.edu/cxc/marx/
5 stars 4 forks source link

configure script reports, but does not use environment variables #8

Closed hamogu closed 8 years ago

hamogu commented 9 years ago

I found this problem when I tried to use CFLAGS to turn of optimization to help me in debugging during development. The following works (and is the GNU standard way of doing things, so this is not a very urgent problem to fix): ./configure CFLAGS="-O0 -g" The output is:

You are compiling MARX with the following compiler configuration:
       CC = gcc
   CFLAGS = -O0 -g
  LDFLAGS =  

and indeed I get the code I requested. However, if I set the CFLAGS enviroment varible, then the output of configure is exactly the same, but the CFLAGS that's actually used in the Makefiles is different (just the default value).

This might not be worth fixing on it's own. Instead it might be more time-efficient to just change the whole installation to use the entire autotools stack instead of hand-writing configure.in.

hamogu commented 8 years ago

I tried again and it works. No idea what went wrong, when I opened this issue, but since it's not reproducible I'll close this issue.