mirror of
https://gitee.com/openharmony/third_party_alsa-utils
synced 2024-11-30 10:30:23 +00:00
6d7dfb4607
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
26 lines
705 B
Bash
Executable File
26 lines
705 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if test -d ../alsa-lib/utils && ! test -r `aclocal --print-ac-dir`/alsa.m4; then
|
|
alsa_m4_flags="-I ../alsa-lib/utils"
|
|
fi
|
|
aclocal $alsa_m4_flags $ACLOCAL_FLAGS
|
|
# save original files to avoid stupid modifications by gettextize
|
|
cp Makefile.am Makefile.am.ok
|
|
cp configure.ac configure.ac.ok
|
|
gettextize -c -f --no-changelog
|
|
echo "EXTRA_DIST = gettext.m4" > m4/Makefile.am
|
|
cp Makefile.am.ok Makefile.am
|
|
cp configure.ac.ok configure.ac
|
|
autoheader
|
|
automake --foreign --copy --add-missing
|
|
touch depcomp # for older automake
|
|
autoconf
|
|
export CFLAGS='-O2 -Wall -pipe -g'
|
|
echo "CFLAGS=$CFLAGS"
|
|
echo "./configure $@"
|
|
./configure $@ || exit 1
|
|
unset CFLAGS
|
|
if [ -z "$GITCOMPILE_NO_MAKE" ]; then
|
|
make
|
|
fi
|