Update mojo sdk to rev 1dc8a9a5db73d3718d99917fadf31f5fb2ebad4f
[chromium-blink-merge.git] / third_party / ots / configure.ac
blob1f1f1de8040c073c74ff1aad085540334f72eaab
1 AC_INIT([OTS],
2         [0.0.1],
3         [https://github.com/khaledhosny/ots/issues],
4         [ots],
5         [https://github.com/khaledhosny/ots])
7 AC_CONFIG_MACRO_DIR([m4])
8 AC_CONFIG_HEADERS([config.h])
10 AM_INIT_AUTOMAKE([foreign subdir-objects])
11 AM_SILENT_RULES([yes])
13 AC_PROG_CC
14 AC_PROG_CXX
15 AC_PROG_RANLIB
16 PKG_PROG_PKG_CONFIG([0.20])
18 have_freetype=false
19 PKG_CHECK_MODULES(FREETYPE, freetype2, have_freetype=true, :)
20 if $have_freetype; then
21         AC_DEFINE(HAVE_FREETYPE, 1, [Have FreeType 2 library])
23 AM_CONDITIONAL(HAVE_FREETYPE, $have_freetype)
25 have_pthread=false
26 AX_PTHREAD([have_pthread=true])
27 if $have_pthread; then
28         GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=1"
29 else
30         GTEST_CPPFLAGS="-DGTEST_HAS_PTHREAD=0"
32 AC_SUBST([GTEST_CPPFLAGS])
34 have_coretext=false
35 AC_CHECK_TYPE(CTFontRef, have_coretext=true,, [#include <ApplicationServices/ApplicationServices.h>])
36 if $have_coretext; then
37         CORETEXT_CFLAGS=
38         CORETEXT_LIBS="-framework ApplicationServices"
39         AC_DEFINE(HAVE_CORETEXT, 1, [Have Core Text framework])
41 AC_SUBST(CORETEXT_CFLAGS)
42 AC_SUBST(CORETEXT_LIBS)
43 AM_CONDITIONAL(HAVE_CORETEXT, $have_coretext)
45 AC_CONFIG_FILES([Makefile])
47 AC_OUTPUT