annotate src/vamp-plugin-sdk-2.4/configure.ac @ 169:223a55898ab9 tip default

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