On Sun, 25 Oct 2015, Clive Nicholas wrote:
 Sorry for the delay in response: the weekend took over! See my code
and
 (very long) output below:
 clive@clivubu:~/gretl-git$ sudo ./configure --prefix=/usr/local
 --enable-quiet-build --enable-openmp --enable-build-doc 
You don't want to use "sudo" for any of the steps in a gretl build 
(or git pull) except the final "make install". If you perform any of 
the prior steps as the superuser you're thereby creating files that 
you cannot modify "as yourself", so the build will run into 
permissions problems such as the following:
 clive@clivubu:~/gretl-git$ make
 ./builddate
 Can't write to build.h
 Makefile:103: recipe for target 'buildstamp' failed 
The "sudo" in "sudo make install" is required (only) because at that 
point you need to write to public file-space (under /usr/local by 
default) for which you don't have write permission as an ordinary 
user.
Allin Cottrell