comparison configure.ac @ 252:b03f1aefcd6a

* Add configure script
author cannam
date Wed, 12 Nov 2008 09:30:26 +0000
parents
children 6d355f1b7eaf
comparison
equal deleted inserted replaced
251:04bf4fd08490 252:b03f1aefcd6a
1
2 AC_INIT(vamp-plugin-sdk, 2.0, 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 PKG_CHECK_MODULES([SNDFILE],[sndfile])
18 AC_SUBST(SNDFILE_CFLAGS)
19 AC_SUBST(SNDFILE_LIBS)
20
21 changequote(,)dnl
22 if test "x$GCC" = "xyes"; then
23 case " $CXXFLAGS " in
24 *[\ \ ]-fPIC\ -Wall[\ \ ]*) ;;
25 *) CXXFLAGS="$CXXFLAGS -fPIC -Wall" ;;
26 esac
27 fi
28 changequote([,])dnl
29
30 AC_OUTPUT([Makefile])
31