INSTALL 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  1. This is a generic INSTALL file for utilities distributions.
  2. If this package does not come with, e.g., installable documentation or
  3. data files, please ignore the references to them below.
  4. The `configure' shell script attempts to guess correct values for
  5. various system-dependent variables used during compilation, and
  6. creates the Makefile(s) (one in each subdirectory of the source
  7. directory). In some packages it creates a C header file containing
  8. system-dependent definitions. It also creates a file `config.status'
  9. that you can run in the future to recreate the current configuration.
  10. To compile this package:
  11. 1. Configure the package for your system.
  12. Normally, you just `cd' to the directory containing the package's
  13. source code and type `./configure'. If you're using `csh' on an old
  14. version of System V, you might need to type `sh configure' instead to
  15. prevent `csh' from trying to execute `configure' itself.
  16. Running `configure' takes awhile. While it is running, it
  17. prints some messages that tell what it is doing. If you don't want to
  18. see any messages, run `configure' with its standard output redirected
  19. to `/dev/null'; for example, `./configure >/dev/null'.
  20. To compile the package in a different directory from the one
  21. containing the source code, you must use a version of `make' that
  22. supports the `VPATH' variable, such as GNU `make'. `cd' to the
  23. directory where you want the object files and executables to go and run
  24. the `configure' script. `configure' automatically checks for the
  25. source code in the directory that `configure' is in and in `..'. If
  26. for some reason `configure' is not in the source code directory that
  27. you are configuring, then it will report that it can't find the source
  28. code. In that case, run `configure' with the option `--srcdir=DIR',
  29. where DIR is the directory that contains the source code.
  30. By default, `make install' will install the package's files in
  31. `/usr/local/bin', `/usr/local/man', etc. You can specify an
  32. installation prefix other than `/usr/local' by giving `configure' the
  33. option `--prefix=PATH'. Alternately, you can do so by consistently
  34. giving a value for the `prefix' variable when you run `make', e.g.,
  35. make prefix=/usr/gnu
  36. make prefix=/usr/gnu install
  37. You can specify separate installation prefixes for
  38. architecture-specific files and architecture-independent files. If you
  39. give `configure' the option `--exec-prefix=PATH' or set the `make'
  40. variable `exec_prefix' to PATH, the package will use PATH as the prefix
  41. for installing programs and libraries. Data files and documentation
  42. will still use the regular prefix. Normally, all files are installed
  43. using the same prefix.
  44. Some packages pay attention to `--with-PACKAGE' options to
  45. `configure', where PACKAGE is something like `gnu-as' or `x' (for the
  46. X Window System). They may also pay attention to `--enable-FEATURE'
  47. options, where FEATURE indicates an optional part of the package. The
  48. README should mention any `--with-' and `--enable-' options that the
  49. package recognizes.
  50. `configure' also recognizes the following options:
  51. `--help'
  52. Print a summary of the options to `configure', and exit.
  53. `--quiet'
  54. `--silent'
  55. Do not print messages saying which checks are being made.
  56. `--verbose'
  57. Print the results of the checks.
  58. `--version'
  59. Print the version of Autoconf used to generate the `configure'
  60. script, and exit.
  61. `--x-includes=DIR'
  62. X include files are in DIR.
  63. `--x-libraries=DIR'
  64. X library files are in DIR.
  65. `configure' also accepts and ignores some other options.
  66. On systems that require unusual options for compilation or linking
  67. that the package's `configure' script does not know about, you can give
  68. `configure' initial values for variables by setting them in the
  69. environment. In Bourne-compatible shells, you can do that on the
  70. command line like this:
  71. CC='gcc -traditional' LIBS=-lposix ./configure
  72. On systems that have the `env' program, you can do it like this:
  73. env CC='gcc -traditional' LIBS=-lposix ./configure
  74. Here are the `make' variables that you might want to override with
  75. environment variables when running `configure'.
  76. For these variables, any value given in the environment overrides the
  77. value that `configure' would choose:
  78. - Variable: CC
  79. C compiler program. The default is `cc'.
  80. - Variable: INSTALL
  81. Program to use to install files. The default is `install' if you
  82. have it, `cp' otherwise.
  83. For these variables, any value given in the environment is added to
  84. the value that `configure' chooses:
  85. - Variable: DEFS
  86. Configuration options, in the form `-Dfoo -Dbar...'. Do not use
  87. this variable in packages that create a configuration header file.
  88. - Variable: LIBS
  89. Libraries to link with, in the form `-lfoo -lbar...'.
  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. 2. Type `make' to compile the package. If you want, you can override
  95. the `make' variables CFLAGS and LDFLAGS like this:
  96. make CFLAGS=-O2 LDFLAGS=-s
  97. 3. If the package comes with self-tests and you want to run them,
  98. type `make check'. If you're not sure whether there are any, try it;
  99. if `make' responds with something like
  100. make: *** No way to make target `check'. Stop.
  101. then the package does not come with self-tests.
  102. 4. Type `make install' to install programs, data files, and
  103. documentation.
  104. 5. You can remove the program binaries and object files from the
  105. source directory by typing `make clean'. To also remove the
  106. Makefile(s), the header file containing system-dependent definitions
  107. (if the package uses one), and `config.status' (all the files that
  108. `configure' created), type `make distclean'.
  109. The file `configure.in' is used to create `configure' by a program
  110. called `autoconf'. You only need it if you want to regenerate
  111. `configure' using a newer version of `autoconf'.