On 15 May 2013, at 16:42, John Sørland <j...@nsm.aero> wrote:
> During ./configure of flex-2.5.37 on the raspberrypi I get an error: > > “M4 that supports –P” > > > M4 (latest) is built with success… > Any tip/hint? $ export M4=`which gm4` $ if test -z "$M4" || test -z "`$M4 --help 2>&1 |grep prefix-builtins 2>/dev/null`"; then M4=`which m4`; fi $ $M4 --help |grep prefix-builtins If the last command above is a string containing prefix-builtins, they building flex with M4 set like that. Otherwise download ftp://ftp.gnu.org/gnu/m4/m4-1.4.16.tar.gz, unpack it, configure with: $ ./configure --prefix=$HOME --program-transform-name='s|^|g|' $ make all install $ export M4=$HOME/bin/gm4 And try building flex again. HTH, -- Gary V. Vaughan (gary AT vaughan DOT pe)