source: git/MP/INSTALL @ 1b7361b

spielwiese
Last change on this file since 1b7361b was 678cfd, checked in by Olaf Bachmann <obachman@…>, 27 years ago
This commit was generated by cvs2svn to compensate for changes in r337, which included commits to RCS files with non-trunk default branches. git-svn-id: file:///usr/local/Singular/svn/trunk@338 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 15.1 KB
Line 
1                   MP version 1.1.2:  Multi Protocol
2                   Kent State University, Kent, OH
3                Authors:  S. Gray, N. Kajler, P. Wang
4         (C) 1993, 1994, 1995, 1996, 1997 All Rights Reserved
5
6                INSTALLATION INSTRUCTIONS FOR MP
7                ================================
8
9This file contains instructions on how to install MP.  For general
10information about MP and copying information, see the file 'README'
11contained in this directory.  For comments, problems, or bugs,
12please send mail to mp@mcs.kent.edu.
13
14
15Basic Installation
16==================
17
18The `configure' shell script in this directory attempts to guess
19correct values for various system-dependent variables used during
20compilation.  It uses those values to create `Makefile's from the
21files 'Makefile.in' and the file 'MP/MP_Config.h' (which contains
22system-dependent definitions) from the file'MP/h/MP_Config.h.in'.
23Finally, it creates a shell script `config.status' that you can run
24to recreate the current configuration, a file `config.cache' that
25saves the results of its tests to speed up reconfiguring, and a file
26`config.log' containing output from `configure' (useful mainly for
27debugging `configure').
28
29The file `configure.in' is used to create `configure' by a program
30called `autoconf'.  You only need `configure.in' if you want to change
31it or regenerate `configure' using a newer version of `autoconf'.
32
33The simplest way to install MP is:
34
35  1. `cd' to the directory containing the MP's source code and type
36     `./configure' to configure the package for your system.  If you're
37     using `csh' on an old version of System V, you might need to type
38     `sh ./configure' to prevent `csh' from trying to execute
39     `configure' itself.
40
41     Running `configure' takes a while.  While running, it prints some
42     messages telling which features it is checking for.
43
44  2. Type `make install' to compile and install the gmp, MP, and MPT
45     libraries and header files. You can customize what is built and
46     where the libraries and header files are installed by giving
47     'configure' appropriate options (see below). NOTE: If you do not
48     have the header file 'gmp.h' installed in a standard location on
49     your system, then a './configure' followed by a simple 'make'
50     command will fail. You need to do './configure --enable-gmp'
51     followed by 'make install'.
52
53  3. You can remove the program binaries and object files from the
54     source code directory by typing `make clean'.  To also remove the
55     files that `configure' created (so you can compile the package
56     for a different architecture), type `make distclean'.  There is
57     also a `make maintainer-clean' target, but that is intended
58     mainly for the package's developers.  If you use it, you may have
59     to install all sorts of other programs in order to regenerate
60     files that came with the distribution.
61
62  4. Other make targets are:
63     'MP','libMP.a'   : Creates the MP library only.
64     'MPT','libMPT.a' : Creates the MPT library only.
65     'examples'       : Builds MP implementation examples.
66     'mpviewer'       : Builds the mpviewer.
67     'mp-pvm3'        : Builds an example mp-pvm implementation.
68     'dist'      : Creates a distribution of all source files of MP.
69     'TAGS'      : Creates/updates a tags table for MP's source files.
70     'uninstall' : Deletes all installed files that the 'install'
71                   target created (the library, header, info files)
72
73Compilers and Options
74=====================
75
76You need an ANSI-C compiler for compiling MP. We recommend that you
77use the GNU C/C++ (gcc) compiler. If you have gcc installed on your
78system, configure will automatically find and use it for building
79MP. Otherwise, configure will try to find another ANSI-C compiler. To
80explicitly use an alternative compiler, or to set some unusual options
81for compilation or linking that the `configure' script does not know
82about, you can give `configure' initial values for variables by
83setting them in the environment.  Using a Bourne-compatible shell,
84you can do that on the command line like this:
85
86           CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
87or
88           CXX=CC CXXFLAGS=+O3 LIBS=-liostream ./configure
89
90Or on systems that have the `env' program, you can do it like this:
91
92     env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
93
94
95Installation Names
96==================
97
98By default, `make install' will install the libraries in ./lib, and
99headers in ./include. You can specify an installation prefix other
100than the current directory by giving `configure' the option
101`--prefix=PATH'. You can specify an alternative directory where the
102libraries are installed by giving configure the option
103`--libdir=PATH'. For the header files, use '--includedir=PATH'. Make
104sure that PATH is an _absolute_ (_not_ a relative) pathname.
105
106
107Optional Features
108=================
109
110MP's configure script pays attention to the following:
111
112`--disable-PACKAGE' option where PACKAGE can be:
113
114  'MPT' : Do not build the MPT (MP Tree) library and header files. MPT
115          is a library for reading/manipulating memory representations
116          of MP trees. By default MPT is built with MP and, on
117          installation, the files MPT.h and libMPT.a are installed in
118          the specified directories.
119
120  'gmp' : Do not build the GNU Multiple Precision (GMP) library and
121          header file. GMP is a library for multiple precision integer
122          and floating point arithmetic. Unless the option
123          --without-gmp is given to configure (see below), building MP
124          requires that the header file gmp.h has been installed
125          _before_ the MP library is built. By default, the GMP
126          library is installed before the MP library is built and on
127          installation of GMP, the files gmp.h and libgmp.a are
128          installed in the specified directories.
129
130`--enable-PACKAGE' option where PACKAGE can be:
131
132  'examples' : The distribution comes with some example implementations
133              contained in the directory 'examples'. By default, the
134              examples are not built when MP is built. Use this option
135              to build the examples together with MP. NOTE: Make sure
136              that MP is installed before the examples are built. See
137              also the README file contained in the 'examples'
138              directory.
139
140  'mpviewer': The distribution comes with an mpviewer implementation
141              contained in the directory 'mpviewer'. By default, the
142              mpviewer is not built when MP is built. Use this option
143              to build the mpviewer together with MP. NOTE: Make sure
144              that MP is installed before the mpviewer is built. See
145              also the README file contained in the 'mpviewer'
146              directory.
147
148  'mppvm' : The distribution comes with some pvm example
149              implementations (demonstrating the use of the PVM
150              transport device) contained in the directory
151              'mp-pvm3'. By default, the pvm examples are not built
152              when MP is build. Use this option to build the pvm
153              examples together with MP. NOTE: Make sure that MP is
154              installed before the examples are built. See also the
155              README file contained in the 'mp-pvm3' directory.
156
157
158`--without-PACKAGE' option where PACKAGE can be:
159
160  'gmp' : Build MP _without_ Put/Get routines for gmp numbers. By
161          default, MP is built with routines to Put and Get gmp
162          numbers. However, this requires the header file gmp.h to be
163          installed. Use this option if you do not have or do not want
164          to install this header file or have these routines included
165          in the library.  Note that this option is different from
166          --disable-gmp, which indicates whether or not the gmp
167          library is to be built.  The --without option specifies that
168          MP will not build routines for putting and getting gmp
169          numbers.
170
171
172`--with-PACKAGE' option where PACKAGE can be:
173
174  'pari'  : MP comes with routines which Put/Get (arbitrary precision)
175            integers in the pari format. By default, MP is built
176            without these routines. NOTE: You need to have the header
177            file 'genpari.h' installed on your system to build MP
178            with the pari routines and you need to link your
179            application with the pari library.
180
181  'saclib': MP comes with routines which Put/Get (arbitrary precision)
182            integers in the saclib format. By default, MP is built
183            without these routines. NOTE: You need to have the header
184            file 'saclib.h' and 'gmp.h' installed on your system to
185            build MP with the saclib routines and you need to link
186            your application with the saclib and gmp libraries.
187
188  'tb'    : MP comes with a ToolBus device interface implementation. 
189            By default, MP is built without this device. NOTE: You
190            need to have the header file 'TB.h' installed on your
191            system to build MP with the ToolBus device and you need
192            to link your application with the ToolBus library.
193
194  'pvm'   : MP comes with a Pvm3 device interface implementation. By
195            default, MP is built without this device. NOTE: You need
196            to have the header  file 'pvm3' installed on your system
197            to build MP with the Pvm3 device and you need to link your
198            application with the Pvm3 library.
199
200  'debug' : The libraries are built with debug options and logging of
201            MP communications turned on.
202
203
204`--with-default_apint=PACKAGE' option where PACKAGE can be:
205
206  'gmp'   : The gmp Put/Get routines are used as default routines to
207            Put/Get arbitrary precision integers (default).  Requires
208            the header 'gmp.h' to be installed.
209  'pari'  : The pari Put/Get routines are used as default routines to
210            Put/Get  arbitrary precision integers. Requires the header
211            'genpari.h' to be installed.
212  'saclib': The saclib Put/Get routines are used as default routines to
213            Put/Get  arbitrary precision integers. Requires the headers
214            'saclib.h' and 'gmp.h' to be installed.
215  'none'  : Dummy routines are used as default routines to Put/Get
216            arbitrary precision integers which, when used, always
217            return an error.
218
219
220`--with-default_apreal=PACKAGE' option where PACKAGE can be:
221
222  'gmp'   : The gmp Put/Get routines are used as default routines to
223            Put/Get arbitrary precision reals (default).  Requires the
224            header 'gmp.h' to be installed.
225  'none'  : Dummy routines are used as default routines to Put/Get
226            arbitrary precision reals which, when used, always
227            return an error.
228
229
230By default, configure searches through the given includedir and the
231system's default include directories for header files, and through the
232given libdir and through the system's default library directory for
233library files. If one of the requirements for a PACKAGE is not met,
234configure prints a warning message and builds MP without the
235respective PACKAGE, disabling its functionality.
236
237
238System Requirements
239===================
240
241The following requirements have to be met by your system, so that you
242can build MP:
243  1. The condition (sizeof(void*) == 4) has to be true.
244  2. The standard C headers and libraries have to be installed.
245
246
247Operation Controls
248==================
249
250   `configure' recognizes the following options to control how it
251operates.
252
253`--cache-file=FILE'
254     Use and save the results of the tests in FILE instead of
255     `./config.cache'.  Set FILE to `/dev/null' to disable caching and
256     for debugging `configure'.
257
258
259`--quiet'
260`--silent'
261`-q'
262     Do not print messages saying which checks are being made.
263
264`--version'
265     Print the version of Autoconf used to generate the `configure'
266     script, and exit.
267
268`--help'
269     Prints the following summary of the options to `configure', and exits.
270
271Usage: configure [options] [host]
272Options: [defaults in brackets after descriptions]
273Configuration:
274  --cache-file=FILE       cache test results in FILE
275  --help                  print this message
276  --no-create             do not create output files
277  --quiet, --silent       do not print `checking...' messages
278  --version               print the version of autoconf that created configure
279Directory and file names:
280  --prefix=PREFIX         install architecture-independent files in PREFIX
281                          [default is current directory]
282  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
283                          [same as prefix]
284  --bindir=DIR            user executables in DIR [EPREFIX/bin]
285  --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
286  --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
287  --datadir=DIR           read-only architecture-independent data in DIR
288                          [PREFIX/share]
289  --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
290  --sharedstatedir=DIR    modifiable architecture-independent data in DIR
291                          [PREFIX/com]
292  --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
293  --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
294  --includedir=DIR        C header files in DIR [PREFIX/include]
295  --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
296  --infodir=DIR           info documentation in DIR [PREFIX/info]
297  --mandir=DIR            man documentation in DIR [PREFIX/man]
298  --srcdir=DIR            find the sources in DIR [configure dir or ..]
299  --program-prefix=PREFIX prepend PREFIX to installed program names
300  --program-suffix=SUFFIX append SUFFIX to installed program names
301  --program-transform-name=PROGRAM
302                          run sed PROGRAM on installed program names
303Host type:
304  --build=BUILD           configure for building on BUILD [BUILD=HOST]
305  --host=HOST             configure for HOST [guessed]
306  --target=TARGET         configure for TARGET [TARGET=HOST]
307Features and packages:
308  --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
309  --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
310  --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
311  --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
312  --x-includes=DIR        X include files are in DIR
313  --x-libraries=DIR       X library files are in DIR
314--enable and --with options recognized:
315   --disable-MPT           configure and build without MPT library
316   --disable-gmp           configure and build without gmp library
317   --enable-examples       enable building of example programs
318   --enable-mpviewer       enable building of mpviewer program
319   --enable-mppvm          enable building of mppvm routines
320   --with-default_int=PACKAGE    use PACKAGE as MP's default ApInt format
321                           where PACKAGE can be: gmp (default), pari,
322                           saclib, none
323   --with-default_real=PACKAGE   use PACKAGE as MP's default ApReal format
324                           where PACKAGE can be:  gmp (default), none
325   --without-gmp           build without gmp routines
326   --with-pari             build with pari routines
327   --with-saclib           build with saclib ApInt routines
328   --with-tb               build with Toolbus device interface
329   --with-pvm              build with Pvm saclib device interface
330   --with-debug            build with debug options and logging
Note: See TracBrowser for help on using the repository browser.