Changeset 588ee77 for configure.ac


Ignore:
Timestamp:
Sep 26, 2009, 7:11:23 AM (15 years ago)
Author:
Paul Brossier <piem@piem.org>
Branches:
feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
Children:
31a5c0e8
Parents:
c85c8b6
Message:

configure.ac: make libsamplerate optional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    rc85c8b6 r588ee77  
    143143AC_PATH_PROG(PKG_CONFIG,pkg-config,no)
    144144
    145 PKG_CHECK_MODULES(SNDLIB,     sndfile >= 1.0.4,       HAVE_SNDLIB=1)
    146 PKG_CHECK_MODULES(SAMPLERATE, samplerate  >= 0.0.15,  HAVE_SAMPLERATE=1)
    147 
    148 if test "${HAVE_SNDLIB}" = "1"; then
    149   AC_DEFINE(HAVE_SNDLIB,1,[Define to enable libsndfile support])
     145PKG_CHECK_MODULES(SNDFILE,     sndfile >= 1.0.4,       HAVE_SNDFILE=1)
     146if test "${HAVE_SNDFILE}" = "1"; then
     147  AC_DEFINE(HAVE_SNDFILE,1,[Define to enable libsndfile support])
     148fi
     149
     150dnl Enable samplerate support (auto)
     151AC_ARG_ENABLE(samplerate,
     152  AC_HELP_STRING([--enable-samplerate],[compile with samplerate [[default=auto]]]),
     153  [with_samplerate=$enableval],
     154  with_samplerate="yes")
     155if test "$with_samplerate" = "yes"; then
     156  PKG_CHECK_MODULES(SAMPLERATE, samplerate  >= 0.0.15,  HAVE_SAMPLERATE=1)
     157  if test "${HAVE_SAMPLERATE}" = "1"; then
     158    AC_DEFINE(HAVE_SAMPLERATE,1,[Define to enable libsamplerate support])
     159  fi
    150160fi
    151161
     
    261271fi
    262272fi
    263 if test "${HAVE_SNDLIB}" = "1"; then
     273if test "${HAVE_SNDFILE}" = "1"; then
    264274  echo "Libsndfile:              yes"
    265275else
Note: See TracChangeset for help on using the changeset viewer.