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