1 | AC_PREREQ(2.52) |
---|
2 | AC_INIT(libgtkhtml/document/htmldocument.c) |
---|
3 | |
---|
4 | AM_CONFIG_HEADER(config.h) |
---|
5 | |
---|
6 | AM_INIT_AUTOMAKE(libgtkhtml, 2.6.3) |
---|
7 | |
---|
8 | AM_MAINTAINER_MODE |
---|
9 | |
---|
10 | AC_PROG_CC |
---|
11 | AC_ISC_POSIX |
---|
12 | AC_HEADER_STDC |
---|
13 | AM_PROG_LIBTOOL |
---|
14 | |
---|
15 | dnl ALL_LINGUAS="hi" |
---|
16 | dnl AM_GNU_GETTEXT |
---|
17 | |
---|
18 | AC_ARG_ENABLE(more-warnings, |
---|
19 | [ --enable-more-warnings maximum compiler warnings], |
---|
20 | set_more_warnings="$enableval",set_more_warnings=no) |
---|
21 | |
---|
22 | if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then |
---|
23 | echo "enable compile warnings = $set_more_warnings" |
---|
24 | CFLAGS="-Wall -Wno-uninitialized \ |
---|
25 | -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \ |
---|
26 | -Wnested-externs -Wpointer-arith \ |
---|
27 | -Wno-sign-compare -Wsign-promo -Werror \ |
---|
28 | $CFLAGS" |
---|
29 | fi |
---|
30 | |
---|
31 | AC_SUBST(CFLAGS) |
---|
32 | AC_SUBST(LDFLAGS) |
---|
33 | |
---|
34 | |
---|
35 | PKG_CHECK_MODULES(GTKHTML2, gtk+-2.0 >= 2.0.0 libxml-2.0 >= 2.4.16) |
---|
36 | |
---|
37 | |
---|
38 | AC_ARG_ENABLE(accessibility, |
---|
39 | [ --enable-accessibility enable accessibility support (needs gail) [default=yes]], , |
---|
40 | enable_accessibility=yes) |
---|
41 | |
---|
42 | if test x$enable_accessibility = xyes; then |
---|
43 | PKG_CHECK_MODULES(GAILUTIL, gail >= 1.8, , |
---|
44 | AC_MSG_ERROR([ |
---|
45 | *** gail is needed for accessibility. Either install gail or turn off |
---|
46 | *** accessibility support using the --disable-accessibility option.])) |
---|
47 | |
---|
48 | AC_DEFINE(ENABLE_ACCESSIBILITY, 1, |
---|
49 | [Define to 1 to enable accessibility support.]) |
---|
50 | else |
---|
51 | AC_MSG_WARN([*** GtkHtml2 will be built without accessibility support.]) |
---|
52 | fi |
---|
53 | |
---|
54 | AM_CONDITIONAL(ENABLE_ACCESSIBILITY, test x$enable_accessibility = xyes) |
---|
55 | |
---|
56 | |
---|
57 | PKG_CHECK_MODULES(GNOME_VFS, gnome-vfs-2.0 >= 1.9.8, have_vfs=true, |
---|
58 | AC_MSG_WARN([*** test apps will be built without GNOME VFS support.]) |
---|
59 | have_vfs=false) |
---|
60 | |
---|
61 | AM_CONDITIONAL(HAVE_GNOME_VFS, test x$have_vfs = xtrue) |
---|
62 | |
---|
63 | |
---|
64 | AC_SUBST(GTKHTML2_CFLAGS) |
---|
65 | AC_SUBST(GTKHTML2_LIBS) |
---|
66 | AC_SUBST(GNOME_VFS_CFLAGS) |
---|
67 | AC_SUBST(GNOME_VFS_LIBS) |
---|
68 | AC_SUBST(GAILUTIL_CFLAGS) |
---|
69 | AC_SUBST(GAILUTIL_LIBS) |
---|
70 | AC_SUBST(A11Y) |
---|
71 | |
---|
72 | AC_OUTPUT([ |
---|
73 | Makefile |
---|
74 | docs/Makefile |
---|
75 | libgtkhtml/Makefile |
---|
76 | libgtkhtml/css/Makefile |
---|
77 | libgtkhtml/document/Makefile |
---|
78 | libgtkhtml/dom/Makefile |
---|
79 | libgtkhtml/dom/core/Makefile |
---|
80 | libgtkhtml/dom/html/Makefile |
---|
81 | libgtkhtml/dom/events/Makefile |
---|
82 | libgtkhtml/dom/views/Makefile |
---|
83 | libgtkhtml/dom/traversal/Makefile |
---|
84 | libgtkhtml/graphics/Makefile |
---|
85 | libgtkhtml/layout/Makefile |
---|
86 | libgtkhtml/layout/html/Makefile |
---|
87 | libgtkhtml/util/Makefile |
---|
88 | libgtkhtml/view/Makefile |
---|
89 | libgtkhtml/a11y/Makefile |
---|
90 | tests/Makefile |
---|
91 | libgtkhtml-2.0.pc |
---|
92 | ]) |
---|
93 | |
---|
94 | |
---|