diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-19 00:19:29 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-19 00:19:29 +0000 |
commit | f8247040e6231c4b3b5099ea3a526348b7941566 (patch) | |
tree | 0cc92ad6ebf6ae49a62f6e7ef8ec819121d63630 /trunk/main/libresample/configure.in | |
parent | d88e56c61ce2042544c1a8a71c93b69ab2e6ffba (diff) |
Creating tag for the release of asterisk-1.6.0-beta1v1.6.0-beta1
git-svn-id: http://svn.digium.com/svn/asterisk/tags/1.6.0-beta1@99163 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'trunk/main/libresample/configure.in')
-rw-r--r-- | trunk/main/libresample/configure.in | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/trunk/main/libresample/configure.in b/trunk/main/libresample/configure.in new file mode 100644 index 000000000..e676b69f2 --- /dev/null +++ b/trunk/main/libresample/configure.in @@ -0,0 +1,68 @@ +dnl +dnl libresample configure.in script +dnl +dnl Dominic Mazzoni +dnl + +dnl Require autoconf >= 2.13 +AC_PREREQ(2.13) + +dnl Init autoconf and make sure configure is being called +dnl from the right directory +AC_INIT([src/resample.c]) + +dnl Checks for programs. +AC_PROG_CC +AC_PROG_RANLIB + +AC_PATH_PROG(AR, ar, no) +if [[ $AR = "no" ]] ; then + AC_MSG_ERROR("Could not find ar - needed to create a library"); +fi + +AC_SUBST(TARGETS) +TARGETS="libresample.a tests/testresample" + +AC_CHECK_LIB(sndfile, sf_open, have_libsndfile=yes, have_libsndfile=no) +AC_CHECK_HEADER(sndfile.h, , have_libsndfile=no) + +if [[ $have_libsndfile = "yes" ]] ; then + TARGETS="$TARGETS tests/resample-sndfile" +fi + +AC_CHECK_LIB(samplerate, src_simple, have_libsamplerate=yes, have_libsamplerate=no) +AC_CHECK_HEADER(samplerate.h, , have_libsamplerate=no) + +if [[ $have_libsamplerate = "yes" ]] ; then + TARGETS="$TARGETS tests/compareresample" +fi + +AC_CHECK_HEADERS(inttypes.h) + +AC_CONFIG_HEADER(src/config.h:src/configtemplate.h) +AC_OUTPUT([Makefile]) + +echo "" + +if [[ $have_libsamplerate = "yes" ]] ; then + echo "Configured to build tests/resample-sndfile using libsndfile" + echo "" +else + echo "Could not find libsndfile - needed if you want to" + echo "compile tests/resample-sndfile" + echo "" +fi + +if [[ $have_libsamplerate = "yes" ]] ; then + echo "Configured to build tests/compareresample to compare against" + echo "Erik de Castro Lopo's libsamplerate library." + echo "" +else + echo "Could not find libsamplerate - only needed if you want to" + echo "compile tests/compareresample to compare their performance." + echo "" +fi + +echo "Type 'configure --help' to see options." +echo "" +echo "Type 'make' to build libresample and tests." |