comparison src/vamp-plugin-sdk-2.5/configure.ac @ 23:619f715526df sv_v2.1

Update Vamp plugin SDK to 2.5
author Chris Cannam
date Thu, 09 May 2013 10:52:46 +0100
parents
children
comparison
equal deleted inserted replaced
22:b07fe9e906dc 23:619f715526df
1
2 AC_INIT(vamp-plugin-sdk, 2.5, cannam@all-day-breakfast.com)
3
4 AC_CONFIG_SRCDIR(vamp/vamp.h)
5 AC_PROG_CXX
6 AC_HEADER_STDC
7 AC_C_BIGENDIAN
8
9 if pkg-config --modversion vamp-sdk >/dev/null 2>&1; then
10 echo "WARNING: A version of the Vamp plugin SDK is already installed."
11 echo " Expect worries and sorrows if you install a new version"
12 echo " without removing the old one first. (Continuing)"
13 fi
14
15 AC_SEARCH_LIBS([dlopen],[dl])
16
17 dnl See if the user wants to build programs, or just the SDK
18 AC_ARG_ENABLE(programs, [AS_HELP_STRING([--enable-programs],
19 [enable building of example host and RDF generator [default=yes]])],
20 PROGS_ARGUMENT=$enableval,
21 PROGS_ARGUMENT="yes")
22
23 dnl if the user wants progs, then we need to check for libsndfile
24 if test "x$PROGS_ARGUMENT" = "xyes" ; then
25 PKG_CHECK_MODULES([SNDFILE],[sndfile],have_sndfile="yes",have_sndfile="no")
26 if test "x$have_sndfile" = "xyes" ; then
27 dnl all good, build everything
28 TARGETS="sdk plugins host rdfgen test"
29 else
30 dnl no libsndfile - can't build host!
31 AC_MSG_ERROR([libsndfile not found - cannot build example Vamp host!
32 If you don't want to build the host, configure with --disable-programs.])
33 fi
34 else
35 dnl user didn't want programs - so we won't build them
36 TARGETS="sdk plugins"
37 fi
38
39 AC_SUBST(SNDFILE_CFLAGS)
40 AC_SUBST(SNDFILE_LIBS)
41 AC_SUBST(TARGETS)
42
43 changequote(,)dnl
44 if test "x$GCC" = "xyes"; then
45 case " $CXXFLAGS " in
46 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;;
47 *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
48 esac
49 fi
50 changequote([,])dnl
51
52 AC_SUBST(CXXFLAGS)
53 AC_OUTPUT([Makefile])
54