2001-01-19 22:39:39 +00:00
|
|
|
AC_INIT(src/flac/main.c)
|
2001-02-23 21:13:02 +00:00
|
|
|
AM_INIT_AUTOMAKE(flac, 0.8)
|
2001-01-19 22:39:39 +00:00
|
|
|
|
|
|
|
# We need two libtools, one that builds both shared and static, and
|
|
|
|
# one that builds only static. This is because the resulting libtool
|
|
|
|
# does not allow us to choose which to build at runtime.
|
|
|
|
AM_PROG_LIBTOOL
|
|
|
|
sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static
|
|
|
|
chmod +x libtool-disable-static
|
|
|
|
|
|
|
|
AC_PROG_MAKE_SET
|
|
|
|
|
|
|
|
AC_ARG_ENABLE(debug,
|
|
|
|
[ --enable-debug Turn on debugging],
|
|
|
|
[case "${enableval}" in
|
|
|
|
yes) debug=true ;;
|
|
|
|
no) debug=false ;;
|
|
|
|
*) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;;
|
|
|
|
esac],[debug=false])
|
|
|
|
AM_CONDITIONAL(DEBUG, test x$debug = xtrue)
|
|
|
|
|
|
|
|
AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built]))
|
|
|
|
AM_CONDITIONAL(XMMS, test x$XMMS_INPUT_PLUGIN_DIR != x)
|
|
|
|
|
|
|
|
CFLAGS='-I./include -I $(top_srcdir)/include -Wall -W'
|
|
|
|
if test x$debug = xtrue; then
|
|
|
|
CFLAGS="$CFLAGS -g -O0 -DDEBUG"
|
|
|
|
else
|
2001-02-05 23:19:09 +00:00
|
|
|
CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions -DNDEBUG"
|
2001-01-19 22:39:39 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
AC_OUTPUT( Makefile \
|
|
|
|
src/Makefile \
|
|
|
|
src/libFLAC/Makefile \
|
|
|
|
src/flac/Makefile \
|
2001-03-08 20:31:05 +00:00
|
|
|
src/metaflac/Makefile \
|
2001-01-19 22:39:39 +00:00
|
|
|
src/plugin_xmms/Makefile \
|
|
|
|
src/test_streams/Makefile \
|
|
|
|
src/test_unit/Makefile \
|
|
|
|
test/Makefile \
|
|
|
|
)
|