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