Next Previous Contents

27. Installing and Porting

GNU autoconf is used to handle the configuration, compilation, and installation of mgv so the standard

        ./configure
        make
        make install
should work.

The configure script will disable debug information and enable optimization by default but this can be changed with the following switches:

--enable-debug, --disable-debug

Enable or disable debugging, debugging is disabled by default. The default debug switch it -g but you can change it by setting the DEBUGFLAG environment variable before running configure.

--enable-optimize, --disable-optimize

Enable or disable optimization, optimization is enabled by default. The default optimization switch is -O2 but you can change it by setting the OPTFLAG environment variable before running configure.

If optimization is requested but debugging is not requested, the final executable will be stripped by passing the -s switch to the linker, if you need to use a different stripping switch, set the STRIPFLAG environment variable before running configure.

If the configure script is having trouble finding X on your system then you may have to specify the header and library paths explicitly with one or more of the following switches:

--x-includes=DIR, --x-libraries=DIR

Specify the location of the X11 headers and libraries.

--motif-includes=DIR, --motif-libraries=DIR

Specify the location of the Motif headers and libraries.

--xpm-includes=DIR, --xpm-libraries=DIR

Specify the location of the XPM headers and libraries. If you don't want to use XPM even though you have it, you can disable XPM with --without-xpm.

I assume ANSI and POSIX support, if your system doesn't have an ANSI C compiler and POSIX libraries then you're out of luck. I'm not willing to give up this assumption, trying to support non-POSIX systems is more trouble than I care to think about.

If you have installed any of the 1.x versions of mgv you should delete the old application defaults file (probably /usr/X11/lib/app-defaults/MGv or something similar) before running mgv; if you don't, mgv will warn you about it and the user interface will be really screwed up. If you have just compiled a new version of mgv and you haven't installed it yet, you can set the XENVIRONMENT environment variable to temporarily fix the version problem:

        XENVIRONMENT=MGv ./mgv
However, you really should delete the old application defaults file anyway: none of the mgv versions need it, the whole application defaults file has always been compiled in as default resources.

I have had success reports on the following systems:


Next Previous Contents