xref: /kernel/linux/linux-6.6/tools/usb/usbip/INSTALL (revision 62306a36)
162306a36Sopenharmony_ciInstallation Instructions
262306a36Sopenharmony_ci*************************
362306a36Sopenharmony_ci
462306a36Sopenharmony_ciCopyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
562306a36Sopenharmony_ci2006, 2007 Free Software Foundation, Inc.
662306a36Sopenharmony_ci
762306a36Sopenharmony_ciThis file is free documentation; the Free Software Foundation gives
862306a36Sopenharmony_ciunlimited permission to copy, distribute and modify it.
962306a36Sopenharmony_ci
1062306a36Sopenharmony_ciBasic Installation
1162306a36Sopenharmony_ci==================
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ciBriefly, the shell commands `./configure; make; make install' should
1462306a36Sopenharmony_ciconfigure, build, and install this package.  The following
1562306a36Sopenharmony_cimore-detailed instructions are generic; see the `README' file for
1662306a36Sopenharmony_ciinstructions specific to this package.
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci   The `configure' shell script attempts to guess correct values for
1962306a36Sopenharmony_civarious system-dependent variables used during compilation.  It uses
2062306a36Sopenharmony_cithose values to create a `Makefile' in each directory of the package.
2162306a36Sopenharmony_ciIt may also create one or more `.h' files containing system-dependent
2262306a36Sopenharmony_cidefinitions.  Finally, it creates a shell script `config.status' that
2362306a36Sopenharmony_ciyou can run in the future to recreate the current configuration, and a
2462306a36Sopenharmony_cifile `config.log' containing compiler output (useful mainly for
2562306a36Sopenharmony_cidebugging `configure').
2662306a36Sopenharmony_ci
2762306a36Sopenharmony_ci   It can also use an optional file (typically called `config.cache'
2862306a36Sopenharmony_ciand enabled with `--cache-file=config.cache' or simply `-C') that saves
2962306a36Sopenharmony_cithe results of its tests to speed up reconfiguring.  Caching is
3062306a36Sopenharmony_cidisabled by default to prevent problems with accidental use of stale
3162306a36Sopenharmony_cicache files.
3262306a36Sopenharmony_ci
3362306a36Sopenharmony_ci   If you need to do unusual things to compile the package, please try
3462306a36Sopenharmony_cito figure out how `configure' could check whether to do them, and mail
3562306a36Sopenharmony_cidiffs or instructions to the address given in the `README' so they can
3662306a36Sopenharmony_cibe considered for the next release.  If you are using the cache, and at
3762306a36Sopenharmony_cisome point `config.cache' contains results you don't want to keep, you
3862306a36Sopenharmony_cimay remove or edit it.
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci   The file `configure.ac' (or `configure.in') is used to create
4162306a36Sopenharmony_ci`configure' by a program called `autoconf'.  You need `configure.ac' if
4262306a36Sopenharmony_ciyou want to change it or regenerate `configure' using a newer version
4362306a36Sopenharmony_ciof `autoconf'.
4462306a36Sopenharmony_ci
4562306a36Sopenharmony_ciThe simplest way to compile this package is:
4662306a36Sopenharmony_ci
4762306a36Sopenharmony_ci  1. `cd' to the directory containing the package's source code and type
4862306a36Sopenharmony_ci     `./configure' to configure the package for your system.
4962306a36Sopenharmony_ci
5062306a36Sopenharmony_ci     Running `configure' might take a while.  While running, it prints
5162306a36Sopenharmony_ci     some messages telling which features it is checking for.
5262306a36Sopenharmony_ci
5362306a36Sopenharmony_ci  2. Type `make' to compile the package.
5462306a36Sopenharmony_ci
5562306a36Sopenharmony_ci  3. Optionally, type `make check' to run any self-tests that come with
5662306a36Sopenharmony_ci     the package.
5762306a36Sopenharmony_ci
5862306a36Sopenharmony_ci  4. Type `make install' to install the programs and any data files and
5962306a36Sopenharmony_ci     documentation.
6062306a36Sopenharmony_ci
6162306a36Sopenharmony_ci  5. You can remove the program binaries and object files from the
6262306a36Sopenharmony_ci     source code directory by typing `make clean'.  To also remove the
6362306a36Sopenharmony_ci     files that `configure' created (so you can compile the package for
6462306a36Sopenharmony_ci     a different kind of computer), type `make distclean'.  There is
6562306a36Sopenharmony_ci     also a `make maintainer-clean' target, but that is intended mainly
6662306a36Sopenharmony_ci     for the package's developers.  If you use it, you may have to get
6762306a36Sopenharmony_ci     all sorts of other programs in order to regenerate files that came
6862306a36Sopenharmony_ci     with the distribution.
6962306a36Sopenharmony_ci
7062306a36Sopenharmony_ci  6. Often, you can also type `make uninstall' to remove the installed
7162306a36Sopenharmony_ci     files again.
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ciCompilers and Options
7462306a36Sopenharmony_ci=====================
7562306a36Sopenharmony_ci
7662306a36Sopenharmony_ciSome systems require unusual options for compilation or linking that the
7762306a36Sopenharmony_ci`configure' script does not know about.  Run `./configure --help' for
7862306a36Sopenharmony_cidetails on some of the pertinent environment variables.
7962306a36Sopenharmony_ci
8062306a36Sopenharmony_ci   You can give `configure' initial values for configuration parameters
8162306a36Sopenharmony_ciby setting variables in the command line or in the environment.  Here
8262306a36Sopenharmony_ciis an example:
8362306a36Sopenharmony_ci
8462306a36Sopenharmony_ci     ./configure CC=c99 CFLAGS=-g LIBS=-lposix
8562306a36Sopenharmony_ci
8662306a36Sopenharmony_ci   *Note Defining Variables::, for more details.
8762306a36Sopenharmony_ci
8862306a36Sopenharmony_ciCompiling For Multiple Architectures
8962306a36Sopenharmony_ci====================================
9062306a36Sopenharmony_ci
9162306a36Sopenharmony_ciYou can compile the package for more than one kind of computer at the
9262306a36Sopenharmony_cisame time, by placing the object files for each architecture in their
9362306a36Sopenharmony_ciown directory.  To do this, you can use GNU `make'.  `cd' to the
9462306a36Sopenharmony_cidirectory where you want the object files and executables to go and run
9562306a36Sopenharmony_cithe `configure' script.  `configure' automatically checks for the
9662306a36Sopenharmony_cisource code in the directory that `configure' is in and in `..'.
9762306a36Sopenharmony_ci
9862306a36Sopenharmony_ci   With a non-GNU `make', it is safer to compile the package for one
9962306a36Sopenharmony_ciarchitecture at a time in the source code directory.  After you have
10062306a36Sopenharmony_ciinstalled the package for one architecture, use `make distclean' before
10162306a36Sopenharmony_cireconfiguring for another architecture.
10262306a36Sopenharmony_ci
10362306a36Sopenharmony_ciInstallation Names
10462306a36Sopenharmony_ci==================
10562306a36Sopenharmony_ci
10662306a36Sopenharmony_ciBy default, `make install' installs the package's commands under
10762306a36Sopenharmony_ci`/usr/local/bin', include files under `/usr/local/include', etc.  You
10862306a36Sopenharmony_cican specify an installation prefix other than `/usr/local' by giving
10962306a36Sopenharmony_ci`configure' the option `--prefix=PREFIX'.
11062306a36Sopenharmony_ci
11162306a36Sopenharmony_ci   You can specify separate installation prefixes for
11262306a36Sopenharmony_ciarchitecture-specific files and architecture-independent files.  If you
11362306a36Sopenharmony_cipass the option `--exec-prefix=PREFIX' to `configure', the package uses
11462306a36Sopenharmony_ciPREFIX as the prefix for installing programs and libraries.
11562306a36Sopenharmony_ciDocumentation and other data files still use the regular prefix.
11662306a36Sopenharmony_ci
11762306a36Sopenharmony_ci   In addition, if you use an unusual directory layout you can give
11862306a36Sopenharmony_cioptions like `--bindir=DIR' to specify different values for particular
11962306a36Sopenharmony_cikinds of files.  Run `configure --help' for a list of the directories
12062306a36Sopenharmony_ciyou can set and what kinds of files go in them.
12162306a36Sopenharmony_ci
12262306a36Sopenharmony_ci   If the package supports it, you can cause programs to be installed
12362306a36Sopenharmony_ciwith an extra prefix or suffix on their names by giving `configure' the
12462306a36Sopenharmony_cioption `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
12562306a36Sopenharmony_ci
12662306a36Sopenharmony_ciOptional Features
12762306a36Sopenharmony_ci=================
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ciSome packages pay attention to `--enable-FEATURE' options to
13062306a36Sopenharmony_ci`configure', where FEATURE indicates an optional part of the package.
13162306a36Sopenharmony_ciThey may also pay attention to `--with-PACKAGE' options, where PACKAGE
13262306a36Sopenharmony_ciis something like `gnu-as' or `x' (for the X Window System).  The
13362306a36Sopenharmony_ci`README' should mention any `--enable-' and `--with-' options that the
13462306a36Sopenharmony_cipackage recognizes.
13562306a36Sopenharmony_ci
13662306a36Sopenharmony_ci   For packages that use the X Window System, `configure' can usually
13762306a36Sopenharmony_cifind the X include and library files automatically, but if it doesn't,
13862306a36Sopenharmony_ciyou can use the `configure' options `--x-includes=DIR' and
13962306a36Sopenharmony_ci`--x-libraries=DIR' to specify their locations.
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ciSpecifying the System Type
14262306a36Sopenharmony_ci==========================
14362306a36Sopenharmony_ci
14462306a36Sopenharmony_ciThere may be some features `configure' cannot figure out automatically,
14562306a36Sopenharmony_cibut needs to determine by the type of machine the package will run on.
14662306a36Sopenharmony_ciUsually, assuming the package is built to be run on the _same_
14762306a36Sopenharmony_ciarchitectures, `configure' can figure that out, but if it prints a
14862306a36Sopenharmony_cimessage saying it cannot guess the machine type, give it the
14962306a36Sopenharmony_ci`--build=TYPE' option.  TYPE can either be a short name for the system
15062306a36Sopenharmony_citype, such as `sun4', or a canonical name which has the form:
15162306a36Sopenharmony_ci
15262306a36Sopenharmony_ci     CPU-COMPANY-SYSTEM
15362306a36Sopenharmony_ci
15462306a36Sopenharmony_ciwhere SYSTEM can have one of these forms:
15562306a36Sopenharmony_ci
15662306a36Sopenharmony_ci     OS KERNEL-OS
15762306a36Sopenharmony_ci
15862306a36Sopenharmony_ci   See the file `config.sub' for the possible values of each field.  If
15962306a36Sopenharmony_ci`config.sub' isn't included in this package, then this package doesn't
16062306a36Sopenharmony_cineed to know the machine type.
16162306a36Sopenharmony_ci
16262306a36Sopenharmony_ci   If you are _building_ compiler tools for cross-compiling, you should
16362306a36Sopenharmony_ciuse the option `--target=TYPE' to select the type of system they will
16462306a36Sopenharmony_ciproduce code for.
16562306a36Sopenharmony_ci
16662306a36Sopenharmony_ci   If you want to _use_ a cross compiler, that generates code for a
16762306a36Sopenharmony_ciplatform different from the build platform, you should specify the
16862306a36Sopenharmony_ci"host" platform (i.e., that on which the generated programs will
16962306a36Sopenharmony_cieventually be run) with `--host=TYPE'.
17062306a36Sopenharmony_ci
17162306a36Sopenharmony_ciSharing Defaults
17262306a36Sopenharmony_ci================
17362306a36Sopenharmony_ci
17462306a36Sopenharmony_ciIf you want to set default values for `configure' scripts to share, you
17562306a36Sopenharmony_cican create a site shell script called `config.site' that gives default
17662306a36Sopenharmony_civalues for variables like `CC', `cache_file', and `prefix'.
17762306a36Sopenharmony_ci`configure' looks for `PREFIX/share/config.site' if it exists, then
17862306a36Sopenharmony_ci`PREFIX/etc/config.site' if it exists.  Or, you can set the
17962306a36Sopenharmony_ci`CONFIG_SITE' environment variable to the location of the site script.
18062306a36Sopenharmony_ciA warning: not all `configure' scripts look for a site script.
18162306a36Sopenharmony_ci
18262306a36Sopenharmony_ciDefining Variables
18362306a36Sopenharmony_ci==================
18462306a36Sopenharmony_ci
18562306a36Sopenharmony_ciVariables not defined in a site shell script can be set in the
18662306a36Sopenharmony_cienvironment passed to `configure'.  However, some packages may run
18762306a36Sopenharmony_ciconfigure again during the build, and the customized values of these
18862306a36Sopenharmony_civariables may be lost.  In order to avoid this problem, you should set
18962306a36Sopenharmony_cithem in the `configure' command line, using `VAR=value'.  For example:
19062306a36Sopenharmony_ci
19162306a36Sopenharmony_ci     ./configure CC=/usr/local2/bin/gcc
19262306a36Sopenharmony_ci
19362306a36Sopenharmony_cicauses the specified `gcc' to be used as the C compiler (unless it is
19462306a36Sopenharmony_cioverridden in the site shell script).
19562306a36Sopenharmony_ci
19662306a36Sopenharmony_ciUnfortunately, this technique does not work for `CONFIG_SHELL' due to
19762306a36Sopenharmony_cian Autoconf bug.  Until the bug is fixed you can use this workaround:
19862306a36Sopenharmony_ci
19962306a36Sopenharmony_ci     CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
20062306a36Sopenharmony_ci
20162306a36Sopenharmony_ci`configure' Invocation
20262306a36Sopenharmony_ci======================
20362306a36Sopenharmony_ci
20462306a36Sopenharmony_ci`configure' recognizes the following options to control how it operates.
20562306a36Sopenharmony_ci
20662306a36Sopenharmony_ci`--help'
20762306a36Sopenharmony_ci`-h'
20862306a36Sopenharmony_ci     Print a summary of the options to `configure', and exit.
20962306a36Sopenharmony_ci
21062306a36Sopenharmony_ci`--version'
21162306a36Sopenharmony_ci`-V'
21262306a36Sopenharmony_ci     Print the version of Autoconf used to generate the `configure'
21362306a36Sopenharmony_ci     script, and exit.
21462306a36Sopenharmony_ci
21562306a36Sopenharmony_ci`--cache-file=FILE'
21662306a36Sopenharmony_ci     Enable the cache: use and save the results of the tests in FILE,
21762306a36Sopenharmony_ci     traditionally `config.cache'.  FILE defaults to `/dev/null' to
21862306a36Sopenharmony_ci     disable caching.
21962306a36Sopenharmony_ci
22062306a36Sopenharmony_ci`--config-cache'
22162306a36Sopenharmony_ci`-C'
22262306a36Sopenharmony_ci     Alias for `--cache-file=config.cache'.
22362306a36Sopenharmony_ci
22462306a36Sopenharmony_ci`--quiet'
22562306a36Sopenharmony_ci`--silent'
22662306a36Sopenharmony_ci`-q'
22762306a36Sopenharmony_ci     Do not print messages saying which checks are being made.  To
22862306a36Sopenharmony_ci     suppress all normal output, redirect it to `/dev/null' (any error
22962306a36Sopenharmony_ci     messages will still be shown).
23062306a36Sopenharmony_ci
23162306a36Sopenharmony_ci`--srcdir=DIR'
23262306a36Sopenharmony_ci     Look for the package's source code in directory DIR.  Usually
23362306a36Sopenharmony_ci     `configure' can determine that directory automatically.
23462306a36Sopenharmony_ci
23562306a36Sopenharmony_ci`configure' also accepts some other, not widely useful, options.  Run
23662306a36Sopenharmony_ci`configure --help' for more details.
23762306a36Sopenharmony_ci
238