Josh Coalson | 9f429ba | 2001-01-19 22:39:39 +0000 | [diff] [blame] | 1 | AC_INIT(src/flac/main.c) |
Josh Coalson | 2bfc33d | 2001-03-21 23:18:04 +0000 | [diff] [blame] | 2 | AM_INIT_AUTOMAKE(flac, 0.9) |
Josh Coalson | 9f429ba | 2001-01-19 22:39:39 +0000 | [diff] [blame] | 3 | |
| 4 | # We need two libtools, one that builds both shared and static, and |
| 5 | # one that builds only static. This is because the resulting libtool |
| 6 | # does not allow us to choose which to build at runtime. |
| 7 | AM_PROG_LIBTOOL |
| 8 | sed -e 's/^build_old_libs=yes/build_old_libs=no/' libtool > libtool-disable-static |
| 9 | chmod +x libtool-disable-static |
| 10 | |
| 11 | AC_PROG_MAKE_SET |
| 12 | |
| 13 | AC_ARG_ENABLE(debug, |
| 14 | [ --enable-debug Turn on debugging], |
| 15 | [case "${enableval}" in |
| 16 | yes) debug=true ;; |
| 17 | no) debug=false ;; |
| 18 | *) AC_MSG_ERROR(bad value ${enableval} for --enable-debug) ;; |
| 19 | esac],[debug=false]) |
| 20 | AM_CONDITIONAL(DEBUG, test x$debug = xtrue) |
| 21 | |
| 22 | AM_PATH_XMMS(0.9.5.1, , AC_MSG_WARN([*** XMMS >= 0.9.5.1 not installed - xmms support will not be built])) |
| 23 | AM_CONDITIONAL(XMMS, test x$XMMS_INPUT_PLUGIN_DIR != x) |
| 24 | |
| 25 | CFLAGS='-I./include -I $(top_srcdir)/include -Wall -W' |
| 26 | if test x$debug = xtrue; then |
| 27 | CFLAGS="$CFLAGS -g -O0 -DDEBUG" |
| 28 | else |
Josh Coalson | 230e0f5 | 2001-02-05 23:19:09 +0000 | [diff] [blame] | 29 | CFLAGS="$CFLAGS -O3 -fomit-frame-pointer -funroll-loops -ffast-math -finline-functions -DNDEBUG" |
Josh Coalson | 9f429ba | 2001-01-19 22:39:39 +0000 | [diff] [blame] | 30 | fi |
| 31 | |
| 32 | AC_OUTPUT( Makefile \ |
| 33 | src/Makefile \ |
| 34 | src/libFLAC/Makefile \ |
| 35 | src/flac/Makefile \ |
Josh Coalson | b72c550 | 2001-03-08 20:31:05 +0000 | [diff] [blame] | 36 | src/metaflac/Makefile \ |
Josh Coalson | 9f429ba | 2001-01-19 22:39:39 +0000 | [diff] [blame] | 37 | src/plugin_xmms/Makefile \ |
| 38 | src/test_streams/Makefile \ |
| 39 | src/test_unit/Makefile \ |
| 40 | test/Makefile \ |
| 41 | ) |