naemon / naemon-core

Networks, Applications and Event Monitor
http://www.naemon.io/
GNU General Public License v2.0
153 stars 63 forks source link

warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' #7

Closed berendt closed 10 years ago

berendt commented 10 years ago

On a SLES11 SP3 I got the following warnings while running autoreconf -i (autoconf-2.69-40.1).

naemon/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
naemon/lib/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
ageric commented 10 years ago

On 2013-11-27 11:37, Christian Berendt wrote:

On a SLES11 SP3 I got the following warnings while running autoreconf -i (autoconf-2.69-40.1).

naemon/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')
naemon/lib/Makefile.am:2: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')

This is one of the reasons I really detest the autotools. Older versions of autotools don't understand AM_CPPFLAGS instead, so we're kinda shafted either way. Do you happen to know which version the name changed?

/Andreas

ageric commented 10 years ago

commit 9d4f1ea1a3dadb4464b9313c9f87433d8cea50c2 (HEAD, origin/master, master) Author: Andreas Ericsson ae@op5.se Date: Wed Nov 27 15:32:23 2013 +0100

autotools: s/INCLUDES/AM_CPPFLAGS/

Apparently this option has been renamed in the autotools machinery
sometime, so at least with 2.69 it produces a warning. Since we
intend to use modern autotools to generate makefiles etc for when
we create releases, we should be just fine with tha patch like this.

Signed-off-by: Andreas Ericsson <ae@op5.se>
rebroad commented 9 years ago

so, what is the solution?

danielcoringa commented 9 years ago

Simple:

./configure US_CPPFLAGS="-03"

wujinghust commented 8 years ago

plugins/Makefile.am:14: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS') plugins/Makefile.am: installing './depcomp' tests/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '__CPPFLAGS')

there are two warning when I install tslib.So,what should I do?