11 while [ -z "$endloop" ]; do
15 echo "Forced 32-bit library build..."
19 echo "Forced mixer modules build..."
23 echo "Forced alisp code build..."
27 echo "Forced python2 interpreter build..."
30 lto="-flto -flto-partition=none"
31 echo "Forced lto build..."
39 if [ $# -ne 0 -a -z "$bit32" ]; then
41 elif [ -r /etc/asound/library_args ]; then
42 args="`cat /etc/asound/library_args`"
43 if [ -z "$bit32" ]; then
44 test -r /etc/asound/library64_args && \
45 args="`cat /etc/asound/library64_args`"
51 if [ -z "$bit32" ]; then
52 test -d /usr/lib64 && libdir="/usr/lib64"
53 test -f /lib64/libasound.so.2 && libdir="/lib64"
54 test -d /usr/lib64 && libdir2="/usr/lib64"
56 test -f /lib/libasound.so.2 && libdir="/lib"
58 args="--disable-aload --prefix=$prefix --libdir=$libdir"
59 args="$args --with-plugindir=$libdir2/alsa-lib"
60 args="$args --with-pkgconfdir=$libdir2/pkgconfig"
63 if [ "$modules" = "yes" ]; then
64 args="$args --enable-mixer-modules"
65 args="$args --enable-mixer-pymods"
68 if [ "$alisp" = "yes" ]; then
69 args="$args --enable-alisp"
72 if [ "$python2" = "yes" ]; then
73 args="$args --enable-python2"
77 libtoolize --force --copy --automake
78 aclocal $ACLOCAL_FLAGS
80 automake --foreign --copy --add-missing
81 touch depcomp # seems to be missing for old automake
83 export CFLAGS="-O2 -Wall -W -Wunused-const-variable=0 -pipe -g $lto"
84 if [ -n "$lto" ]; then
86 export RANLIB="gcc-ranlib"
89 echo "./configure $args"
90 ./configure $args || exit 1
92 if [ -z "$GITCOMPILE_NO_MAKE" ]; then