📄 configure.in
字号:
dnldnl libresample configure.in scriptdnldnl Dominic Mazzonidnldnl Require autoconf >= 2.13AC_PREREQ(2.13)dnl Init autoconf and make sure configure is being calleddnl from the right directoryAC_INIT([src/resample.c])dnl Checks for programs.AC_PROG_CCAC_PROG_RANLIBAC_PATH_PROG(AR, ar, no)if [[ $AR = "no" ]] ; then AC_MSG_ERROR("Could not find ar - needed to create a library");fiAC_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"fiAC_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"fiAC_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 ""fiif [[ $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 ""fiecho "Type 'configure --help' to see options."echo ""echo "Type 'make' to build libresample and tests."
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -