| if [ $# -ne 0 -a "$1" == "32" ]; then |
| echo "Forced 32-bit library build..." |
| if [ $# -ne 0 -a -z "$bit32" ]; then |
| elif [ -r /etc/asound/library_args ]; then |
| args="`cat /etc/asound/library_args`" |
| test -r /etc/asound/library64_args && \ |
| args="`cat /etc/asound/library64_args`" |
| test -d /usr/lib64 && libdir="/usr/lib64" |
| test -f /lib64/libasound.so.2 && libdir="/lib64" |
| test -d /usr/lib64 && libdir2="/usr/lib64" |
| test -f /lib/libasound.so.2 && libdir="/lib" |
| args="--disable-aload --prefix=$prefix --libdir=$libdir" |
| args="$args --with-plugindir=$libdir2/alsa-lib" |
| args="$args --with-pkgconfdir=$libdir2/pkgconfig" |
| libtoolize --force --copy --automake |
| automake --foreign --copy --add-missing |
| touch depcomp # seems to be missing for old automake |
| export CFLAGS='-O2 -Wall -W -pipe -g' |
| ./configure $args || exit 1 |
| if [ -z "$GITCOMPILE_NO_MAKE" ]; then |