From: Ben Pfaff Date: Sun, 20 Sep 2009 21:04:28 +0000 (-0700) Subject: Fix "make check" with --enable-relocatable. X-Git-Tag: build37~3 X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c81ed67896a7d3522c4ccdaf09e832491efd589;hp=2c81ed67896a7d3522c4ccdaf09e832491efd589;p=pspp-builds.git 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. ---