configure.ac/CMake: Check for round() and stdbool.h
authorChun-wei Fan <fanchunwei@src.gnome.org>
Mon, 12 Mar 2018 05:27:38 +0000 (13:27 +0800)
committerChun-wei Fan <fanchunwei@src.gnome.org>
Tue, 13 Mar 2018 12:13:38 +0000 (20:13 +0800)
commit89dbabff65a39dfb0d9ad036516d5b96c37739de
tree98689d212dfb5436192c3111b217222c2919b01a
parent28f25f32fc63c3e1ae0d04b6eb5ea6b729fb2228
configure.ac/CMake: Check for round() and stdbool.h

Not all the compilers that HarfBuzz is buildable on supports round() and
has the header stdbool.h, so we check for them and define HAVE_ROUND and
HAVE_STDBOOL_H repsectively in our CFLAGS so that we include them only
when they are found, or use fallback implementations when necessary.

Also include FindPythonInterp earlier as we need PYTHON_EXECUTABLE to be
set for running the tests.
CMakeLists.txt
configure.ac