Vincent Lefevre on Thu, 24 Nov 2005 12:03:20 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: Configure bug when CPPFLAGS is set


On 2005-11-23 18:16:57 -0800, Ilya Zakharevich wrote:
> On Wed, Nov 02, 2005 at 04:28:16AM +0100, Vincent Lefevre wrote:
> > --- config/get_readline.orig	2005-11-02 03:50:33.000000000 +0100
> > +++ config/get_readline	2005-11-02 03:50:45.000000000 +0100
> > @@ -31,7 +31,7 @@
> >        $cygtop/usr/include\
> >        $cygtop/H-${arch}-cygwin32/${arch}-cygwin32/include\
> >        ";;
> > -    *) incpth="\
> > +    *) incpth="`echo $C_INCLUDE_PATH | sed -e 's%\([^:]*\):*%\1 \1/readline %g'`\
> >        /usr/local/include/readline\
> >        /usr/include/readline\
> >        /opt/include/readline\
> 
> This assumes C_INCLUDE_PATH is :-delimited.  It is not on DOSHISH
> systems.

Then how about:

    *) incpth="`echo $C_INCLUDE_PATH | sed -e \"s%\([^$dir_sep]*\)$dir_sep*%\1 \1/readline %g\"`\

I thought that systems with not :-delimited paths would have been
caught earlier in the case "$osname".

-- 
Vincent Lefèvre <vincent@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / SPACES project at LORIA