Download ILU 2.0beta1 Reference Manual

Transcript
Chapter 18: Installation of ILU
264
18.2.4 Real Configuration
ILU uses the GNU autoconf system to configure the release, before building. The very simplest way to
configure your system is type type
% ./configure
at the top of the source tree.
What will happen is that ILUSRC /imake/configure will go out and look along the value of your
PATH environment variable for various executable programs. If it finds cc, it will assume that you want to
build ANSI C support for ILU. If it finds java, it will assume that you want to build Java support for ILU.
If it finds cl or franz, it will assume that you want to build Lisp support for ILU. If it finds python, it will
assume that you want to build Python support for ILU. If it finds CC or cxx or c++, it will assume that you
want to build C++ support for ILU. It will also assume that the first executable with an appropriate name is
the one you wish to use for compiling programs in that language. By default, it will assume that you wish
to include support only for using ONC RPC over TCP/IP. By default, it will assume that you do not wish to
provide support for OMG IDL.
imake must be on your path, or in ‘/usr/bin/X11/’, for the build to work properly.
Since our Makefiles are constructed via imake from Imakefiles, which involves running the C
preprocessor, watch out for use of predefined C preprocessor symbols in pathnames! Common boobytraps
include names of processors, vendors, and operating systems (e.g., "sparc", "sun", "hpux"), which are
used (as isolated tokens according to C rules) in some folks’ conventions for naming directories. If you’re
lucky, you can solve these problems with quoting. A more heavy-duty approach is to configure, then #undef
the offending macros at the start of ‘ILUSRC /imake/ilu.defs.new’, and re-#define them at the end of
that file.
18.2.4.1 Configuration Options
The program configure can be invoked with a number of command line options, to customize the
build for your site. It actually supports more options than shown here, but these are the only options that
will work at this point in the release process. For those options that begin --enable-FEATURE , you can
specify the switch either with --enable-FEATURE , to enable the feature or option, or --disable-FEATURE ,
to disable the feature or option.
--with-destdir=PATH -- this should be the name of the directory you would like the files installed
into, in the make Install step. The default is ‘/usr/local/ilu’, which may be OK for your
system.
--with-iluhome=PATH -- this should be the name of the directory users will expect ILU to be
installed under, the value of ILUHOME. The two options --with-destdir and --with-iluhome
are provided separately because a directory may have two different names that are used to access it in
different ways. At PARC, for instance, installation directories are often write-protected if named with