From: Ralf Wildenhues Date: Wed, 22 Aug 2007 05:00:47 +0000 (+0000) Subject: * doc/autoconf.texi (Defining Directories): Mention X-Git-Tag: v2.62~284 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4bda609982d86a80a37ea05b6d7014417d9b8f86;p=thirdparty%2Fautoconf.git * doc/autoconf.texi (Defining Directories): Mention AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake. --- diff --git a/ChangeLog b/ChangeLog index c1e9320e..81cd5ad5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-08-22 Stepan Kasal + Ralf Wildenhues + + * doc/autoconf.texi (Defining Directories): Mention + AM_CPPFLAGS, as the way to modify CPPFLAGS when using Automake. + 2007-08-21 Ralf Wildenhues * lib/autoconf/general.m4 (AC_SITE_LOAD): Do not overwrite "$@" diff --git a/doc/autoconf.texi b/doc/autoconf.texi index cb7345e4..b4a961ef 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -19170,11 +19170,18 @@ CPPFLAGS = -DDATADIR='"$(datadir)"' @@CPPFLAGS@@ @end example @noindent -or create a dedicated header file: +If you are using Automake, you should use @code{AM_CPPFLAGS} instead: @example -DISTCLEANFILES = datadir.h -datadir.h: Makefile +AM_CPPFLAGS = -DDATADIR='"$(datadir)"' +@end example + +@noindent +Alternatively, create a dedicated header file: + +@example +DISTCLEANFILES = myprog-paths.h +myprog-paths.h: Makefile echo '#define DATADIR "$(datadir)"' >$@@ @end example