On 31 August 2012 at 12:08, Douglas Bates wrote: | On Fri, Aug 31, 2012 at 11:35 AM, Rodney Sparapani <rspar...@mcw.edu> wrote: | > Actually, it is not mysterious. I just checked it with R 2.15.1 | > and, if you build it with a blank CPPFLAGS in your environment, then | > within $RHOME/etc/Makeconf CPPFLAGS is blank as well. So, as I say, | > the problem was self-inflicted since our standard set up had | > CPPFLAGS=-I/opt/local/include | | No. It's in the configure script for R | | ## We provide these defaults so that headers and libraries in | ## '/usr/local' are found (by the native tools, mostly). | if test -f "/sw/etc/fink.conf"; then | : ${CPPFLAGS="-I/sw/include -I/usr/local/include"} | : ${LDFLAGS="-L/sw/lib -L/usr/local/lib"} | else | : ${CPPFLAGS="-I/usr/local/include"} | : ${LDFLAGS="-L/usr/local/${LIBnn}"} | fi
Rodney is correct here, Doug. The ':' makes it use this only iff no value has been set. So 'our' systems don't have it: edd@max:~$ grep "^CPPF" /etc/R/Makeconf /usr/local/lib/R-devel/lib/R/etc/Makeconf /etc/R/Makeconf:CPPFLAGS = /usr/local/lib/R-devel/lib/R/etc/Makeconf:CPPFLAGS = -I/usr/local/include because edd@max:~$ grep CPPFL src/debian/R/R-2.15.1/debian/rules CPPFLAGS= \ edd@max:~$ I tell the Debian build to use an empty CPPFLAGS (and that setting has probably been like that for many years). My own local build of R-devel has it set because I didn't override it. -- Dirk Eddelbuettel | e...@debian.org | http://dirk.eddelbuettel.com _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel