Fix "make check" with --enable-relocatable.
authorBen Pfaff <blp@cs.stanford.edu>
Sun, 20 Sep 2009 21:04:28 +0000 (14:04 -0700)
committerBen Pfaff <blp@cs.stanford.edu>
Sun, 20 Sep 2009 21:04:28 +0000 (14:04 -0700)
commit2c81ed67896a7d3522c4ccdaf09e832491efd589
tree40916bd66878e8f82cdd195626c863dc0000d595
parent9a70199c7c4dba088e44db539580580362bc27a7
Fix "make check" with --enable-relocatable.

When --enable-relocatable was passed to "configure", "make check" failed
while building datasheet-test:

tests/data/datasheet-test.c: In function 'main':
tests/data/datasheet-test.c:880: error: 'INSTALLDIR' undeclared (first use in this function)

Line 880 of that file is:

set_program_name (argv[0]);

which is a little mysterious until one realizes that --enable-relocatable
defines set_program_name() as a macro that expands to a value that includes
INSTALLDIR.

So this commit fixes the problem by making sure that INSTALLDIR is defined
as part of CPPFLAGS for all compiles.
Makefile.am
src/ui/gui/automake.mk
src/ui/terminal/automake.mk
tests/automake.mk