Request for review: glpk

Ralf Corsepius rc040203 at freenet.de
Tue Aug 2 07:02:15 UTC 2005


On Mon, 2005-08-01 at 12:55 -0500, Quentin Spencer wrote:
> Ralf Corsepius wrote:
> 
> >On Mon, 2005-08-01 at 12:20 -0500, Tom 'spot' Callaway wrote:
> >  
> >
> >>On Mon, 2005-08-01 at 11:41 -0500, Quentin Spencer wrote:

> >If octave's configure script is properly written
> >CPPFLAGS=-I/usr/include/glpk ./configure
> >should work out of the box.
> >  
> >
> 
> Unfortunately, it doesn't work, as illustrated by the following excerpt 
> from config.log:
> configure:8588: checking glpk.h usability
> configure:8600: gcc -c -I/usr/include/glpk  conftest.c >&5
> <snip>
> configure:8633: checking glpk.h presence
> configure:8643: gcc -E  conftest.c
> 
> For some reason, the second check throws out the flags that I passed in. 
> I have to admit I don't know much about autotools.
> Is this normal in a configure script?
No, conversely, configure scripts are supposed to accept several flags
such as CPPFLAGS, CFLAGS, CXXFLAGS, LDFLAGS etc. and are not supposed to
override them, but ... I have seen better configure scripts than
octave's ;)

Ralf





More information about the fedora-extras-list mailing list