home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / packer / gzip / install < prev    next >
Encoding:
Text File  |  1994-02-03  |  6.7 KB  |  157 lines

  1. This is a generic INSTALL file for utilities distributions.
  2. Some features specific to gzip have been added.
  3.  
  4. To compile this package:
  5.  
  6. 1.  Configure the package for your system.  In the directory that this
  7. file is in, type `./configure'.  If you're using `csh' on an old
  8. version of System V, you might need to type `sh configure' instead to
  9. prevent `csh' from trying to execute `configure' itself.
  10.  
  11. The `configure' shell script attempts to guess correct values for
  12. various system-dependent variables used during compilation, and
  13. creates the Makefile(s) (one in each subdirectory of the source
  14. directory).  In some packages it creates a C header file containing
  15. system-dependent definitions.  It also creates a file `config.status'
  16. that you can run in the future to recreate the current configuration.
  17.  
  18. Running `configure' takes a minute or two.  While it is running, it
  19. prints some messages that tell what it is doing.  If you don't want to
  20. see the messages, run `configure' with its standard output redirected
  21. to `/dev/null'; for example, `./configure >/dev/null'.
  22.  
  23. To compile the package in a different directory from the one
  24. containing the source code, you must use a version of make that
  25. supports the VPATH variable, such as GNU make.  `cd' to the directory
  26. where you want the object files and executables to go and run
  27. `configure'.  `configure' automatically checks for the source code in
  28. the directory that `configure' is in and in `..'.  If for some reason
  29. `configure' is not in the source code directory that you are
  30. configuring, then it will report that it can't find the source code.
  31. In that case, run `configure' with the option `--srcdir=DIR', where
  32. DIR is the directory that contains the source code.
  33.  
  34. By default, `make install' will install the package's files in
  35. /usr/local/bin, /usr/local/lib, /usr/local/man, etc.  You can specify
  36. an installation prefix other than /usr/local by giving `configure' the
  37. option `--prefix=PATH', for example:
  38.     ./configure --prefix=/usr/gnu
  39.  
  40. Alternately, you can do so by giving a value for the `prefix' variable
  41. when you run `make', e.g.,
  42.     make prefix=/usr/gnu  install
  43.  
  44. You can specify separate installation prefixes for
  45. architecture-specific files and architecture-independent files.  If
  46. you give `configure' the option `--exec_prefix=PATH' or set the
  47. `make' variable `exec_prefix' to PATH, the package will use PATH as
  48. the prefix for installing programs and libraries.  Shell scripts, data
  49. files and documentation will still use the regular prefix.  Normally,
  50. all files are installed using the regular prefix.
  51.  
  52. You can tell `configure' to figure out the configuration for your
  53. system, and record it in `config.status', without actually configuring
  54. the package (creating `Makefile's and perhaps a configuration header
  55. file).  To do this, give `configure' the `--no-create' option.  Later,
  56. you can run `./config.status' to actually configure the package.  This
  57. option is useful mainly in `Makefile' rules for updating `config.status'
  58. and `Makefile'.  You can also give `config.status' the `--recheck'
  59. option, which makes it re-run `configure' with the same arguments you
  60. used before.  This is useful if you change `configure'.
  61.  
  62. `configure' ignores any other arguments that you give it.
  63.  
  64. If your system requires unusual options for compilation or linking
  65. that `configure' doesn't know about, you can give `configure' initial
  66. values for some variables by setting them in the environment.  In
  67. Bourne-compatible shells, you can do that on the command line like
  68. this:
  69.     CC='gcc -traditional' DEFS=-D_POSIX_SOURCE ./configure
  70.  
  71. For csh compatible shells, you can do something like this:
  72.  
  73.     (setenv CC 'gcc -traditional' ; ./configure)
  74.  
  75. The `make' variables that you might want to override with environment
  76. variables when running `configure' are:
  77.  
  78. (For these variables, any value given in the environment overrides the
  79. value that `configure' would choose:)
  80. CC        C compiler program.
  81.         Default is `cc', or `gcc' if `gcc' is in your PATH.
  82. INSTALL        Program to use to install files.
  83.         Default is `install' if you have it, `cp' otherwise.
  84.  
  85. (For these variables, any value given in the environment is added to
  86. the value that `configure' chooses:)
  87. DEFS        Configuration options, in the form `-Dfoo -Dbar ...'
  88. LIBS        Libraries to link with, in the form `-lfoo -lbar ...'
  89.  
  90. If you need to do unusual things to compile the package, we encourage
  91. you to figure out how `configure' could check whether to do them, and
  92. mail diffs or instructions to the address given in the README so we
  93. can include them in the next release.
  94.  
  95. On Xenix, some preprocessors do not define M_XENIX. You may have to do:
  96.  
  97.     DEFS='-DM_XENIX' ./configure
  98.  
  99. 2.  Type `make' to compile the package.  If you want, you can override
  100. the `make' variables CFLAGS and LDFLAGS like this:
  101.  
  102.     make CFLAGS=-O2 LDFLAGS=-s
  103.  
  104. Try this if you get an error such as "ld: No such file or directory for libg"
  105. which means that your system is not correctly set up to handle the -g option.
  106.  
  107. 3.  The package comes with self-tests. If you want to run them,
  108. type `make check'.
  109.  
  110. 4.  Type `make install' to install programs, data files, and
  111. documentation. This creates links between gzip, gunzip and zcat.
  112. You can create additional links uncompress, ungzip and gzcat if
  113. you prefer these names. You can also create links to unpack and pcat
  114. if your system uses packed files by default and you want to transform
  115. them transparently to gzip'ed files.
  116.  
  117. The man pages are installed by default with an extension `.1' (one).
  118. If you want the extension `.l' (lower case L) use:
  119.  
  120.     make manext=l install
  121.  
  122. 5.  You can remove the program binaries and object files from the
  123. source directory by typing `make clean'.  To also remove the
  124. Makefile(s), the header file containing system-dependent definitions
  125. (if the package uses one), and `config.status' (all the files that
  126. `configure' created), type `make distclean'.
  127.  
  128. The file `configure.in' is used as a template to create `configure' by
  129. a program called `autoconf'.  You will only need it if you want to
  130. regenerate `configure' using a newer version of `autoconf'.
  131. Some bugs in autoconf have been fixed before generating `configure',
  132. so you may not get exactly the same output.
  133.  
  134. 6.  You  can add the following  lines  to your  /etc/magic file so that
  135. file(1), if  your system supports it,  will recognize files created by
  136. gzip:
  137.  
  138. 0    short        0x1f8b        gzip compressed data
  139. >2    byte        8        - deflate method
  140. >3    byte        &0x1        , ascii
  141. >3    byte        &0x2        , continuation
  142. >3    byte        &0x4        , extra field
  143. >3    byte        &0x8        , original file name
  144. >3    byte        &0x10        , comment
  145. >3    byte        &0x20        , encrypted
  146. >8    byte        2        , max compression
  147. >8    byte        4        , max speed
  148.  
  149. If your machine is a 386 or a Vax (little-endian machine), replace the
  150. first line with:
  151.  
  152. 0    short        0x8b1f        gzip compressed data
  153.  
  154. There is no portable way working on both little-endian and
  155. big-endian machines, since SVR4 does not like the string \037\213
  156. as a magic number.
  157.