I would like to install bison to a machine where I don't have root privileges. When I tried to use
configure then I got the following error:
checking for GNU M4 that supports accurate traces... configure: error: no acceptable m4 could be found in $PATH. GNU M4 1.4.6 or later is required; 1.4.16 or newer is recommended. GNU M4 1.4.15 uses a buggy replacement strstr on some systems. Glibc 2.9 - 2.12 and GNU M4 1.4.11 - 1.4.15 have another strstr bug.
I found out that my version of M4 is 1.4.13. I installed a newer version (1.4.17) to my home folder and wanted
configure to use this local version, to do that I found this in configure script:
M4 Location of GNU M4 1.4.6 or later. Defaults to the first program of 'm4', 'gm4', or 'gnum4' on PATH that meets Autoconf needs.
So I used the command:
../configure --prefix=$HOME/local/bison M4='$HOME/local/m4/bin/'
Which I assume was OK to do (correct me if I'm wrong).
After this I got this error:
checking for flex... flex checking whether lex is flex... no checking lex output file root... lex.yy checking lex library... none needed checking whether yytext is a pointer... no configure: error: Flex is required
I installed flex locally into
$HOME/local/flex and tried to modify the
, but I still got the same error. So I don't know how to tell configure to use this location. I don't think this time there are options for it like there was for
m4. And even if there would be, I would still be interested if it is possible to specify a location(s) for
configure to look for arbitrary programs (with preferably higher priority than