diff options
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index 9dfe443..c6773a3 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ AC_PREREQ(2.59) AC_INIT([libslv2],[0.0.1],[drobilla@connect.carleton.ca]) AC_CONFIG_SRCDIR([src/plugin.c]) AC_CONFIG_SRCDIR([slv2/plugin.h]) -AC_CONFIG_SRCDIR([utils/ladspa2lv2.c]) +AC_CONFIG_SRCDIR([utils/ladspa2lv2.cc]) AC_CONFIG_SRCDIR([examples/plugins/Amp-swh.lv2/amp.c]) AC_CONFIG_SRCDIR([examples/hosts/test_host.c]) AC_CONFIG_HEADER([config.h]) @@ -27,8 +27,10 @@ AC_ARG_ENABLE(debug, [debug="$enableval"]) if test "$debug" = "yes"; then CFLAGS="-O0 -g -DDEBUG" + CXXFLAGS="-O0 -g -DDEBUG" else CFLAGS="$CFLAGS -DNDEBUG" + CXXFLAGS="$CFLAGS -DNDEBUG" fi # Check for strict flag @@ -38,6 +40,7 @@ AC_ARG_ENABLE(strict, [strict="$enableval"]) if test "$strict" = "yes"; then CFLAGS="$CFLAGS -std=c99 -pedantic -Wall -Wextra -Wconversion -Winit-self" + CXXFLAGS="$CFLAGS -ansi -pedantic -Wall -Wextra -Wconversion -Winit-self" fi # Build utilities? @@ -45,6 +48,10 @@ build_utilities="no" AC_ARG_ENABLE(utilities, [AS_HELP_STRING(--enable-utilities, [Build utilities (no) - EXPERIMENTAL])], [build_utilities="$enableval"]) +if test "$build_utilities" = "yes"; then + AC_PROG_CXX + PKG_CHECK_MODULES(RAUL, raul >= 0.0.0) +fi AM_CONDITIONAL(BUILD_UTILITIES, [test "$build_utilities" = "yes"]) # Bolt on a few specific flags to CXXFLAGS that should always be used |