fi
AC_PROG_INSTALL
+AUBIO_CFLAGS=
+
dnl Enable debugging (no)
AC_ARG_ENABLE(debug,
[ --enable-debug[[=value]] compile with debug [[default=no]]],
if test "$with_debug" = "yes"
then
AC_DEFINE(DEBUG,1,[Define to enable debug])
- CFLAGS="$CFLAGS -g"
+ AUBIO_CFLAGS="$(AUBIO_CFLAGS) -g"
fi
dnl Enable full warnings (yes)
CFLAGS="$CFLAGS -Wextra"
AC_COMPILE_IFELSE([void foo (void) {}],
ac_cv_cc_wextra=yes, ac_cv_cc_wextra=no)
+ CFLAGS="$old_CFLAGS"
])
if test "$ac_cv_cc_wextra" = "yes"
then
- CFLAGS="$old_CFLAGS -Wall -Wextra"
+ AUBIO_CFLAGS="$AUBIO_CFLAGS -Wall -Wextra"
else
- CFLAGS="$old_CFLAGS -Wall"
+ AUBIO_CFLAGS="$AUBIO_CFLAGS -Wall"
fi
fi
AC_ARG_ENABLE(failonerror,
[ --enable-fwarn[[=value]] fail on compilation warnings [[default=yes]]],
with_warnme="no",
- CFLAGS="$CFLAGS -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-unused-parameter")
+ AUBIO_CFLAGS="$AUBIO_CFLAGS -Werror -Wmissing-prototypes -Wmissing-declarations -Wno-unused-parameter")
dnl Check for libtool
AC_LIBTOOL_DLOPEN
dnl on macosx, cosf went to -lmx
LDFLAGS="$LDFLAGS -lmx"
dnl as long double doesn't sit well with -Wall -Werror
- CFLAGS="$CFLAGS -Wno-long-double"
+ AUBIO_CFLAGS="$AUBIO_CFLAGS -Wno-long-double"
AC_ISC_POSIX
;;
*)
endif
# global flags
-AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -I$(top_srcdir)/src -I$(top_srcdir)/ext @LASH_CFLAGS@ @FFTWLIB_CFLAGS@
+AM_CFLAGS = -DAUBIO_PREFIX=\"$(prefix)\" -I$(top_srcdir)/src -I$(top_srcdir)/ext @AUBIO_CFLAGS@ @LASH_CFLAGS@ @FFTWLIB_CFLAGS@
AM_LDFLAGS = -L$(top_builddir)/src -L$(top_builddir)/ext -laubioext -laubio @LASH_LIBS@
-#AM_SOURCES = utils.c
# add your programs to this list
bin_PROGRAMS = \
midi/midi_driver.h \
midi/midi_driver.c
-AM_CFLAGS = -I$(top_srcdir)/src @SNDLIB_CFLAGS@ @JACK_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ @ALSA_CFLAGS@
+AM_CFLAGS = -I$(top_srcdir)/src @AUBIO_CFLAGS@ @SNDLIB_CFLAGS@ @JACK_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@ @ALSA_CFLAGS@
libaubioext_la_LIBADD = @SNDLIB_LIBS@ @JACK_LIBS@ @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @ALSA_LIBS@ @LTLIBOBJS@
libaubioext_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@
filter.c \
filter.h
-AM_CFLAGS = @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
+AM_CFLAGS = @AUBIO_CFLAGS@ @FFTWLIB_CFLAGS@ @SAMPLERATE_CFLAGS@
libaubio_la_LIBADD = @FFTWLIB_LIBS@ @SAMPLERATE_LIBS@ @LTLIBOBJS@
libaubio_la_LDFLAGS = -version-info @SHARED_VERSION_INFO@