r2 - 14 Jun 2003 - 17:35:28 - BobKrzaczekYou are here: TWiki >  Help Web  >  AdminStuff > SoftwareInstalls > BuildingFromScratch > BuildingGnuMFour
Tags:
create new tag
, view all tags
  • Version: 1.4.3
  • Summary: The GNU implementation of the m4 macro processor, addressing many limitations in the original.

Obtaining

Pull it down from your friendly neighborhood GNU mirror. When this topic was written, version 1.4.3 was current. I'll be surprised if that ever changes...

   cd /cis/src/misc
   <... download m4-1.4.3.tar.gz ...>

Solaris, 64 Bit, Native Tools

Use this for your PATH

PATH=/bin/sparcv9:/bin:/sbin:/usr/bin:/usr/sbin:/usr/openwin/bin:/usr/dt/bin:/usr/ccs/bin/sparcv9:/usr/ccs/bin:/opt/SUNWspro/bin/sparcv9:/opt/SUNWspro/bin:/usr/java/bin:/cis/bin/sparcv9:/cis/bin:/cis/sbin

Unfortunately, the build and install is pretty old on m4. So, we do it a little differently than what you're used to. Remember, your current working directory is /cis/src/misc.

mkdir m4-1.4.3
cd m4-1.4.3
bzip2 -dc ../m4-1.4.3.tar.bz2 |tar xf -
mv m4-1.4.3 obj-sol-cis64
cd obj-sol-cis64
CC='cc -xtarget=ultra -xarch=v9a' \
   CXX='CC -xtarget=ultra -xarch=v9a' \
   F77='f77 -xtarget=ultra -xarch=v9a' \
   CFLAGS=-O CXXFLAGS=-O F77FLAGS=-O\
   CPPFLAGS=-I/cis/include \
   LDFLAGS='-L/cis/lib/sparcv9 -R/cis/lib/sparcv9' \
   MAKE=gmake GNUMAKE=gmake PERL=/cis/bin/perl \
      ./configure --prefix=/cis \
         --bindir=/cis/bin/sparcv9 \
         --libdir=/cis/lib/sparcv9 \
         --sbindir=/cis/sbin/sparcv9
gmake
gmake check
gmake bindir=/cis/bin/sparcv9 install

Solaris, 32 Bit, Native Tools

Use this for your PATH

PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/openwin/bin:/usr/dt/bin:/usr/ccs/bin:/opt/SUNWspro/bin:/usr/java/bin:/cis/bin:/cis/sbin

Unfortunately, the build and install is pretty old on m4. So, we do it a little differently than what you're used to. Remember, your current working directory is /cis/src/misc.

mkdir m4-1.4.3
cd m4-1.4.3
bzip2 -dc ../m4-1.4.3.tar.bz2 |tar xf -
mv m4-1.4.3 obj-sol-cis
cd obj-sol-cis
CC='cc -xtarget=ultra -xarch=v8plusa' \
   CXX='CC -xtarget=ultra -xarch=v8plusa' \
   F77='f77 -xtarget=ultra -xarch=v8plusa' \
   CFLAGS=-O CXXFLAGS=-O F77FLAGS=-O \
   CPPFLAGS=-I/cis/include \
   LDFLAGS='-L/cis/lib -R/cis/lib' \
   MAKE=gmake GNUMAKE=gmake PERL=/cis/bin/perl \
      ./configure --prefix=/cis
gmake
gmake check
gmake install


Old stuff from here...

Solaris

Much like the build of GNU Make (see BuildingGnuMake), we'll build this into the /gnu tree as m4, and then do the symlink game to make it gm4 under /cis. gm4 is a fairly standard way of identifying the GNU M4 processor. Don't try to make a 64 bit version; GNU m4 is not 64-bit clean.
   CFLAGS='-mcpu=ultrasparc -O' ./configure --prefix=/gnu
   gmake
   gmake check
   gmake install

Documentation

   mkdir -m 0775 /gnu/share/doc/m4
   cp COPY* NEWS README THANKS /gnu/share/doc/m4
   cd doc
   gmake dvi
   texi2dvi -p m4.texinfo
   dvips -o m4.ps m4.dvi
   cp *.dvi *.ps *.pdf /gnu/share/doc/m4
   cd ..

Symlinks

   ln -s /gnu/bin/m4 /cis/bin/gm4
   ln -s /gnu/share/doc/m4 /cis/share/doc/m4
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
 
Powered by TWiki
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback