Go to the first, previous, next, last section, table of contents.

Example: setting prefix and exec-prefix

Use `--prefix' and `--exec-prefix' to explicitly set installation directories. These variables are set to subdirectories of `/usr/cygnus/progressive-date' by default (see section Building with the defaults). For more involved discussion on the nuances of these options, see section The Heterogeneous Updateable Toolkit. For discussion on the options themselves, see section Options to configure.

This example shows different installation directories from the default. The defaults for this example are as follows (the release is shown as `94q4'):

prefix       set on command line
exec-prefix  set on command line
target       nonexistent by default; cross example shows `m68k-coff'
srcdir       current directory; example shows `/usr/local/src'
objdir       same as srcdir
release      shown on distribution tape (example uses `94q4')

The native and cross examples show a complete walk-through for each type of build. (The only difference is the use of the `--target' option to configure for a cross-development toolkit. We'll use `m68k-coff' as an example for building a cross-development toolkit.)

For this example, we'll set the configuration to install host-independent files (documentation, library source code) in `/usr/local', and host-dependent files (binary programs, precompiled libraries) in `/usr/local/H-sun4'. The programs are to be accessible after installation via the symbolic link `/usr/progressive' (see section The Heterogeneous Updateable Toolkit). Builds are shown independently; for an example of a simultaneous build, see section Multiple simultaneous builds.

Native: @let@nonarrowing=@comment

$ cd /usr/local/src
$ ./configure --prefix=/usr/local/94q4 \
    --exec-prefix=/usr/local/94q4/H-sun4
Configuring for a sparc-sun-sunos4.1.3_U1 host.
...time passes...
$ make all info > ./make.log
...time passes...
$ su        (may need root priviledge to install in `/usr')
# mkdir /usr/local/94q4
# make install install-info >> ./make.log
# ln -s /usr/local/94q4 /usr/local/progressive
# ln -s /usr/local/progressive/H-sun4 /usr/progressive
# exit
$ ls /usr/progressive/bin
ar              gcov            objdump
as              gdb             patch
byacc           genclass        ranlib
c++             gperf           sdiff
c++filt         gprof           send-pr
cmp             info            size
diff            install-sid     sparc-sun-sunos4.1.3-gcc
diff3           ld              strings
flex            make            strip
g++             makeinfo        texi2dvi
gasp            nm              texindex
gcc             objcopy         

Cross:

$ cd /usr/local/src
$ ./configure --target=m68k-coff --prefix=/usr/local/94q4 \
    --exec-prefix=/usr/local/94q4/H-sun4
Configuring for a sparc-sun-sunos4.1.3_U1 host.
...time passes...
$ make all info > ./make.log
...time passes...
$ su        (may need root priviledge to install in `/usr')
# mkdir /usr/local/94q4
# make install install-info >> ./make.log
# ln -s /usr/local/94q4 /usr/local/progressive
# ln -s /usr/local/progressive/H-sun4 /usr/progressive
# exit
$ ls /usr/progressive/bin
byacc     install-sid        m68k-coff-gdb      m68k-coff-strip
cmp       m68k-coff-ar       m68k-coff-ld       make
diff      m68k-coff-as       m68k-coff-nm       makeinfo
diff3     m68k-coff-c++      m68k-coff-objcopy  patch
flex      m68k-coff-c++filt  m68k-coff-objdump  sdiff
gcov      m68k-coff-g++      m68k-coff-ranlib   send-pr
genclass  m68k-coff-gasp     m68k-coff-size     texi2dvi
info      m68k-coff-gcc      m68k-coff-strings  texindex

@let@nonarrowing=@relax

In either of the above examples, you must set your PATH to include `/usr/progressive/bin' in order to access the tools easily.


Go to the first, previous, next, last section, table of contents.