1#!/bin/bash 2 3if test -d ../alsa-lib/utils && ! test -r `aclocal --print-ac-dir`/alsa.m4; then 4 alsa_m4_flags="-I ../alsa-lib/utils" 5fi 6aclocal $alsa_m4_flags $ACLOCAL_FLAGS 7# save original files to avoid stupid modifications by gettextize 8cp Makefile.am Makefile.am.ok 9cp configure.ac configure.ac.ok 10gettextize -c -f --no-changelog 11echo "EXTRA_DIST = gettext.m4" > m4/Makefile.am 12cp Makefile.am.ok Makefile.am 13cp configure.ac.ok configure.ac 14touch ltconfig 15libtoolize --force --copy --automake 16aclocal $ACLOCAL_FLAGS 17autoheader 18automake --foreign --copy --add-missing 19touch depcomp # for older automake 20autoconf 21export CFLAGS='-O2 -Wall -W -Wunused-const-variable=0 -pipe -g' 22echo "CFLAGS=$CFLAGS" 23echo "./configure $@" 24./configure $@ || exit 1 25unset CFLAGS 26if [ -z "$GITCOMPILE_NO_MAKE" ]; then 27 make 28fi 29