6 if [ $# -ne 0 -a "$1" == "32" ]; then
8 echo "Forced 32-bit library build..."
10 if [ $# -ne 0 -a -z "$bit32" ]; then
12 elif [ -r /etc/asound/library_args ]; then
13 args="`cat /etc/asound/library_args`"
14 if [ -z "$bit32" ]; then
15 test -r /etc/asound/library64_args && \
16 args="`cat /etc/asound/library64_args`"
22 if [ -z "$bit32" ]; then
23 test -d /usr/lib64 && libdir="/usr/lib64"
24 test -f /lib64/libasound.so.2 && libdir="/lib64"
25 test -d /usr/lib64 && libdir2="/usr/lib64"
27 test -f /lib/libasound.so.2 && libdir="/lib"
29 args="--disable-aload --prefix=$prefix --libdir=$libdir"
30 args="$args --with-plugindir=$libdir2/alsa-lib"
31 args="$args --with-pkgconfdir=$libdir2/pkgconfig"
35 libtoolize --force --copy --automake
36 aclocal $ACLOCAL_FLAGS
38 automake --foreign --copy --add-missing
39 touch depcomp # seems to be missing for old automake
41 export CFLAGS='-O2 -Wall -W -pipe -g'
43 echo "./configure $args"
44 ./configure $args || exit 1
46 if [ -z "$GITCOMPILE_NO_MAKE" ]; then