configure: add check for fmt::to_string function

That function is part of fmtlib v4 or newer. Use bundled copy if not
found.
This commit is contained in:
Moritz Bunkus 2020-05-15 08:36:48 +02:00
parent 90142a0ebd
commit afa1d1437f
No known key found for this signature in database
GPG Key ID: 74AF00ADF2E32C85
2 changed files with 4 additions and 1 deletions

View File

@ -44,6 +44,9 @@
For the GNU Compiler Collection (gcc) this means v7 or newer; for clang it
means v4 or newer — the same versions required by earlier MKVToolNix
versions.
* MKVToolNix now requires version 4 of fmtlib or later for the
`fmt::to_string` function. If a system-wide version is installed that's
older, the bundled copy will be used.
# Version 46.0.0 "No Deeper Escape" 2020-05-01

View File

@ -15,7 +15,7 @@ AC_CACHE_CHECK([fmt],[ac_cv_fmt],[
#include <fmt/format.h>
#include <fmt/ostream.h>
],[
fmt::format("{0:02}", 4254);
fmt::format("{0:02}", fmt::to_string(4254));
],[ac_cv_fmt=yes],[ac_cv_fmt=no])
CXXFLAGS="$ac_save_CXXFLAGS"