OSDN Git Service

Changes for static build.
[android-x86/external-alsa-lib.git] / INSTALL
1
2                         ALSA library installation
3                         =========================
4
5 Installation from tarbal
6 ------------------------
7
8 For installation you can use these commands:
9
10         ./configure
11         make install
12
13 If ./configure command complain that alsa-driver package isn't installed,
14 please, check if --prefix option is same for alsa-driver and alsa-lib
15 package. The configure script from alsa-lib package probably cannot find
16 header file asound.h in $prefix/include/linux directory (usually in
17 /usr/include/linux directory).
18
19 Note: If you change kernel sources frequently, please, check if you have
20       installed alsa-driver for current version of your kernel.
21
22 Compilation from CVS sources
23 ----------------------------
24
25 You need also GNU packages automake and libtool installed in your system
26 to compile CVS sources of alsa-lib package.
27
28 For compilation you can use these commands:
29
30         aclocal
31         automake --foreign
32         autoconf
33         ./configure
34         make
35
36 Note: Some automake packages have missing aclocal program. Use newer version
37       in the case.
38
39 Compilation of static library
40 -----------------------------
41
42 If you would like to use the static ALSA library, you need to use these
43 options for the configure script:
44
45         ./configure --enable-shared=no --enable-static=yes
46
47 Unfortunately, due to bug in the libtool script, the shared and static
48 library cannot be built together.