OSDN Git Service

A bit updated
[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         libtoolize --force --copy --automake
31         aclocal
32         autoheader
33         automake --foreign --copy --add-missing
34         autoconf
35         ./configure
36         make
37
38 The included cvscompile script does this job for you.
39
40 Note: Some automake packages have missing aclocal program. Use newer version
41       in the case.
42
43 Compilation of static library
44 -----------------------------
45
46 If you would like to use the static ALSA library, you need to use these
47 options for the configure script:
48
49         ./configure --enable-shared=no --enable-static=yes
50
51 Unfortunately, due to bug in the libtool script, the shared and static
52 library cannot be built together.