Thread: [Sablevm-developer] $(M4)
Brought to you by:
egagnon
From: David <db...@cs...> - 2004-05-03 21:33:42
|
Hi Etienne, I noticed that you replaced the m4 command with a ${M4} variable. However it is currently defined in Makefile.am. I don't know how it is on OpenBSD but with FreeBSD, I have to use gm4. In configure.ac in my sandbox, I have this line: AC_CHECK_PROGS([M4],[gm4 m4],[none],[$PATH]) It does not check the GNUness of the m4 program but it will used gm4 if found, otherwise check for m4. If neither gm4 nor m4 is found, will set M4 to none. I guess ideally would need some if stmt for the none case. What do you think of adding this to staging? David --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |
From: Etienne G. <gag...@uq...> - 2004-05-04 03:13:04
|
Hi David, David B=E9langer wrote: > I don't know how it is on OpenBSD but with FreeBSD, I have to use > gm4. It's the same. > In configure.ac in my sandbox, I have this line: > AC_CHECK_PROGS([M4],[gm4 m4],[none],[$PATH]) > It does not check the GNUness of the m4 program but it will used gm4 if= > found, otherwise check for m4. If neither gm4 nor m4 is found, will se= t > M4 to none. I guess ideally would need some if stmt for the none case.= We need 2 things: 1- Check for GNU M4's name and set $(M4) to it. If it's not found, configure should fail. I guess, configure should also be able to accept a pre-set $(M4) environment variable as override. 2- Do something similar with "-lrt", which is giving me a hell of a time. Configure should figure by itself whether it is needed or not. Any idea how tom implement these? :-) Etienne --=20 Etienne M. Gagnon, Ph.D. http://www.info.uqam.ca/~egagnon/ SableVM: http://www.sablevm.org/ SableCC: http://www.sablecc.org/ |
From: Grzegorz B. P. <ga...@de...> - 2004-05-07 07:27:06
|
On (03/05/04 22:08), Etienne Gagnon wrote: > Hi David, > > David B?langer wrote: > >I don't know how it is on OpenBSD but with FreeBSD, I have to use > >gm4. > > It's the same. > > >In configure.ac in my sandbox, I have this line: > >AC_CHECK_PROGS([M4],[gm4 m4],[none],[$PATH]) > >It does not check the GNUness of the m4 program but it will used gm4 if > >found, otherwise check for m4. If neither gm4 nor m4 is found, will set > >M4 to none. I guess ideally would need some if stmt for the none case. > > We need 2 things: > > 1- Check for GNU M4's name and set $(M4) to it. If it's not found, > configure should fail. I guess, configure should also be able > to accept a pre-set $(M4) environment variable as override. > > 2- Do something similar with "-lrt", which is giving me a hell of a > time. Configure should figure by itself whether it is needed or > not. I've just commited this into "staging": * -lrt only for Solaris, * -lpthread not for Darwin (-lc_r instead), * try $M4, gm4 and m4, issue warning if -P doesn't work, * -no-undefined for Cygwin/MinGW (but we still need to fix classpath) To Etienne and David: could you please try these on *BSD and Darwin and tune the settings if needed? HTH GBP PS: I also noticed that InliningException disappeared somehow from sablevm-classpath, not sure why. -- Grzegorz B. Prokopski <ga...@de...> Debian GNU/Linux http://www.debian.org SableVM - LGPLed JVM http://www.sablevm.org Why SableVM ?!? http://devel.sablevm.org/wiki/WhySableVM |
From: David <db...@cs...> - 2004-05-07 16:25:12
|
On Fri, May 07, 2004 at 02:51:26AM -0400, Grzegorz B. Prokopski wrote: > On (03/05/04 22:08), Etienne Gagnon wrote: > > Hi David, > >=20 > > David B?langer wrote: > > >I don't know how it is on OpenBSD but with FreeBSD, I have to use > > >gm4. > >=20 > > It's the same. > >=20 > > >In configure.ac in my sandbox, I have this line: > > >AC_CHECK_PROGS([M4],[gm4 m4],[none],[$PATH]) > > >It does not check the GNUness of the m4 program but it will used gm4= if > > >found, otherwise check for m4. If neither gm4 nor m4 is found, will= set > > >M4 to none. I guess ideally would need some if stmt for the none ca= se. > >=20 > > We need 2 things: > >=20 > > 1- Check for GNU M4's name and set $(M4) to it. If it's not found, > > configure should fail. I guess, configure should also be able > > to accept a pre-set $(M4) environment variable as override. > >=20 > > 2- Do something similar with "-lrt", which is giving me a hell of a > > time. Configure should figure by itself whether it is needed or > > not. >=20 > I've just commited this into "staging": > * -lrt only for Solaris, > * -lpthread not for Darwin (-lc_r instead), > * try $M4, gm4 and m4, issue warning if -P doesn't work, > * -no-undefined for Cygwin/MinGW (but we still need to fix classpath) >=20 > To Etienne and David: could you please try these on *BSD and Darwin and > tune the settings if needed? Hi, I am currently reinstalling OS X and I am not quite done. So there may be some delay for the test but I will try to do it today. The -lc_r instead of -lpthread is on FreeBSD and not Darwin. Darwin dit not like the -lrt. I will do some tests and fix it. Darwin has a single libSystem and all libc, libm etc. are only symlinks to libSystem. So all libs works on Darwin except -lrt as it does not exist and there is no librt symlink to libSystem. David >=20 > HTH >=20 > GBP >=20 > PS: I also noticed that InliningException disappeared somehow from > sablevm-classpath, not sure why. >=20 > --=20 > Grzegorz B. Prokopski <ga...@de...> > Debian GNU/Linux http://www.debian.org > SableVM - LGPLed JVM http://www.sablevm.org > Why SableVM ?!? http://devel.sablevm.org/wiki/WhySableVM --=20 --- David B=E9langer Graduate Student School of Computer Science McGill University Office: MC226 Web page: http://www.cs.mcgill.ca/~dbelan2/ Public key: http://www.cs.mcgill.ca/~dbelan2/public_key.txt |