forked from HOST-Oman/libraqm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
56 lines (44 loc) · 1.2 KB
/
configure.ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
AC_INIT([Raqm],
[0.2.0],
[https://github.com/HOST-Oman/libraqm/issues],
[raqm],
[https://github.com/HOST-Oman/libraqm/])
AM_INIT_AUTOMAKE([foreign color-tests -Wall -Wno-portability])
AM_SILENT_RULES([yes])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_MACRO_DIRS([m4])
AC_PROG_CC
AC_PROG_CC_C99
# Enable compiler warnings
AX_COMPILER_FLAGS
LT_INIT
PKG_PROG_PKG_CONFIG([0.20])
AX_PKG_CHECK_MODULES(FREETYPE, [freetype2 >= 12.0.6], [])
AX_PKG_CHECK_MODULES(HARFBUZZ, [], harfbuzz)
AX_PKG_CHECK_MODULES(FRIBIDI, [], fribidi)
PKG_CHECK_MODULES(GLIB, glib-2.0, have_glib=true, have_glib=false)
_save_libs="$LIBS"
_save_cflags="$CFLAGS"
LIBS="$LIBS $HARFBUZZ_LIBS $FRIBIDI_LIBS"
CFLAGS="$CFLAGS $HARFBUZZ_CFLAGS $FRIBIDI_CFLAGS"
AC_CHECK_FUNCS(fribidi_reorder_runs hb_ft_font_create_referenced)
LIBS="$_save_libs"
CFLAGS="$_save_cflags"
AM_CONDITIONAL(HAVE_GLIB, $have_glib)
GTK_DOC_CHECK([1.14],[--flavour no-tmpl])
case $build_os in
mingw*)
AX_APPEND_FLAG([-D__USE_MINGW_ANSI_STDIO=1])
;;
esac
AC_CONFIG_FILES([
Makefile
raqm.pc
src/Makefile
tests/Makefile
docs/Makefile
docs/version.xml
win32/Makefile
win32/config.h.win32
])
AC_OUTPUT