Make bison grammar compatible with bison 2.1
[WebKit-https.git] / Source / cmake / WebKitCommon.cmake
1 # -----------------------------------------------------------------------------
2 # Find common packages (used by all ports)
3 # -----------------------------------------------------------------------------
4 find_package(BISON 2.1 REQUIRED)
5 if (!APPLE)
6     find_package(FLEX 2.5.34 REQUIRED)
7 endif ()
8
9 # TODO Enforce version requirement for gperf
10 find_package(Gperf 3.0.1 REQUIRED)
11
12 # TODO Enforce version requirement for perl
13 find_package(Perl 5.10.0 REQUIRED)
14
15 find_package(PythonInterp 2.7.0 REQUIRED)
16
17 # We cannot check for RUBY_FOUND because it is set only when the full package is installed and
18 # the only thing we need is the interpreter. Unlike Python, cmake does not provide a macro
19 # for finding only the Ruby interpreter.
20 find_package(Ruby 1.8.7)
21 if (NOT RUBY_EXECUTABLE OR RUBY_VERSION VERSION_LESS 1.8.7)
22     message(FATAL_ERROR "Ruby 1.8.7 or higher is required.")
23 endif ()
24
25 include(WebKitMacros)
26 include(WebKitFS)
27 include(WebKitHelpers)
28 include(WebKitFeatures)
29
30 include(OptionsCommon)
31 include(Options${PORT})
32
33 CREATE_CONFIGURATION_HEADER()