• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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
14autoheader
15automake --foreign --copy --add-missing
16touch depcomp		# for older automake
17autoconf
18export CFLAGS='-O2 -Wall -pipe -g'
19echo "CFLAGS=$CFLAGS"
20echo "./configure $@"
21./configure $@ || exit 1
22unset CFLAGS
23if [ -z "$GITCOMPILE_NO_MAKE" ]; then
24  make
25fi
26