mirror of
https://git.code.sf.net/p/fldigi/fldigi
synced 2026-08-13 17:47:54 -04:00
This patch adds a new configure switch (--enable-benchmark) which builds a binary suitable for measuring the modems' decoding speed. The new --benchmark-* switches can also be used to batch-decode audio files if sndfile support is enabled.
17 lines
709 B
Text
17 lines
709 B
Text
AC_DEFUN([AC_FLDIGI_BENCHMARK], [
|
|
AC_ARG_ENABLE([benchmark],
|
|
AC_HELP_STRING([--enable-benchmark], [build for benchmark-only operation]),
|
|
[case "${enableval}" in
|
|
yes|no) ac_cv_benchmark="${enableval}" ;;
|
|
*) AC_MSG_ERROR([bad value ${enableval} for --enable-benchmark]) ;;
|
|
esac],
|
|
[ac_cv_benchmark=no])
|
|
|
|
if test "x$ac_cv_benchmark" = "xyes"; then
|
|
AC_DEFINE(BENCHMARK_MODE, 1, [Defined if we are building for benchmarking])
|
|
else
|
|
AC_DEFINE(BENCHMARK_MODE, 0, [Defined if we are building for benchmarking])
|
|
fi
|
|
|
|
AM_CONDITIONAL([ENABLE_BENCHMARK], [test "x$ac_cv_benchmark" = "xyes"])
|
|
])
|