bug-ncurses
[Top][All Lists]
Advanced

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

Re: ncurses-5.2


From: Thomas Dickey
Subject: Re: ncurses-5.2
Date: Wed, 2 Jul 2003 16:01:13 -0400
User-agent: Mutt/1.3.28i

On Mon, Jun 30, 2003 at 08:25:12PM -0500, Dan Grayson wrote:
> 
> In aclocal.m4 occurs this:
> 
>     AC_DEFUN([CF_INCLUDE_DIRS],
>     [
>     CPPFLAGS="$CPPFLAGS -I. -I../include"
>     ...
> 
> I had CPPFLAGS set, upon entry to ./configure, to -I$HOME/local/include, and
> because of the code above, $HOME/local/include was searched *before* ncurses'
> own directory ../include, not what was intended.  I suggest something like
> the following fix:
> 
>     CPPFLAGS="-I. -I../include $CPPFLAGS"

dnl ---------------------------------------------------------------------------
dnl CF_INCLUDE_DIRS version: 4 updated: 2002/12/01 00:12:15
dnl ---------------
dnl Construct the list of include-options according to whether we're building
dnl in the source directory or using '--srcdir=DIR' option.  If we're building
dnl with gcc, don't append the includedir if it happens to be /usr/include,
dnl since that usually breaks gcc's shadow-includes.
AC_DEFUN([CF_INCLUDE_DIRS],
[
CPPFLAGS="-I. -I../include $CPPFLAGS"
if test "$srcdir" != "."; then
        CPPFLAGS="-I\$(srcdir)/../include $CPPFLAGS"
fi
if test "$GCC" != yes; then
        CPPFLAGS="$CPPFLAGS -I\$(includedir)"
elif test "$includedir" != "/usr/include"; then
        if test "$includedir" = '${prefix}/include' ; then
                if test $prefix != /usr ; then
                        CPPFLAGS="$CPPFLAGS -I\$(includedir)"
                fi
        else
                CPPFLAGS="$CPPFLAGS -I\$(includedir)"
        fi
fi
AC_SUBST(CPPFLAGS)
])dnl

-- 
Thomas E. Dickey <address@hidden>
http://invisible-island.net
ftp://invisible-island.net




reply via email to

[Prev in Thread] Current Thread [Next in Thread]