1 | -*- mode: m4 -*- |
---|
2 | AC_PREREQ(2.52) |
---|
3 | AC_INIT(libgnomeprintui, 2.8.2, |
---|
4 | http://bugzilla.gnome.org/enter_bug.cgi?product=gnome-print) |
---|
5 | |
---|
6 | AM_CONFIG_HEADER(config.h) |
---|
7 | AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
---|
8 | |
---|
9 | dnl make sure we keep ACLOCAL_FLAGS around for maintainer builds to work |
---|
10 | AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS") |
---|
11 | |
---|
12 | AM_MAINTAINER_MODE |
---|
13 | |
---|
14 | AC_ISC_POSIX |
---|
15 | AC_PROG_CC |
---|
16 | AC_PROG_CPP |
---|
17 | AC_PROG_CXX |
---|
18 | AC_STDC_HEADERS |
---|
19 | AC_LIBTOOL_WIN32_DLL |
---|
20 | AM_PROG_LIBTOOL |
---|
21 | |
---|
22 | # If the source code has changed at all, increment GNOMEPRINT_REVISION |
---|
23 | # If any interfaces have been added, removed, or changed, increment GNOMEPRINT_CURRENT, and set GNOMEPRINT_REVISION to 0. |
---|
24 | # If any interfaces have been added since the last public release, then increment GNOMEPRINT_AGE. |
---|
25 | # If any interfaces have been removed since the last public release, then set GNOMEPRINT_AGE to 0. |
---|
26 | GNOMEPRINT_REVISION=0 |
---|
27 | GNOMEPRINT_CURRENT=1 |
---|
28 | GNOMEPRINT_AGE=1 |
---|
29 | AC_SUBST(GNOMEPRINT_REVISION) |
---|
30 | AC_SUBST(GNOMEPRINT_CURRENT) |
---|
31 | AC_SUBST(GNOMEPRINT_AGE) |
---|
32 | |
---|
33 | AC_DEFINE(WE_ARE_LIBGNOMEPRINT_INTERNALS, 1, [Define it so that we can read libgnomprint's private headers]) |
---|
34 | |
---|
35 | dnl ============= |
---|
36 | dnl Warning flags |
---|
37 | dnl ============= |
---|
38 | GNOME_COMPILE_WARNINGS(maximum) |
---|
39 | CFLAGS="$CFLAGS $warning_flags" |
---|
40 | |
---|
41 | dnl ======= |
---|
42 | dnl gettext |
---|
43 | dnl ======= |
---|
44 | GETTEXT_PACKAGE=libgnomeprintui-2.2 |
---|
45 | AC_SUBST(GETTEXT_PACKAGE) |
---|
46 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package]) |
---|
47 | |
---|
48 | ALL_LINGUAS="af am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gl gu he hi hr hu id is it ja kn ko li lt lv ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@Latn sv ta th tr uk vi wa zh_CN zh_TW" |
---|
49 | AM_GLIB_GNU_GETTEXT |
---|
50 | |
---|
51 | dnl ========================================== |
---|
52 | dnl Checks for gtk-doc and docbook-tools |
---|
53 | dnl ========================================== |
---|
54 | GTK_DOC_CHECK([1.0]) |
---|
55 | |
---|
56 | dnl ================= |
---|
57 | dnl pkg-config checks |
---|
58 | dnl ================= |
---|
59 | dnl It is ugly to put a build time check in for a run time dependency on gnome-icon-theme |
---|
60 | dnl but this will hopefully keep the packagers on their toes |
---|
61 | PKG_CHECK_MODULES(LIBGNOMEPRINTUI, [ |
---|
62 | gtk+-2.0 >= 2.4.0 |
---|
63 | libgnomeprint-2.2 >= 2.8.2 |
---|
64 | libgnomecanvas-2.0 >= 1.117.0 |
---|
65 | gnome-icon-theme >= 1.1.92 |
---|
66 | ]) |
---|
67 | AC_SUBST(LIBGNOMEPRINTUI_CFLAGS) |
---|
68 | AC_SUBST(LIBGNOMEPRINTUI_LIBS) |
---|
69 | |
---|
70 | AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) |
---|
71 | |
---|
72 | dnl ================================================ |
---|
73 | dnl Used for the examples that need libglade support |
---|
74 | dnl ================================================ |
---|
75 | PKG_CHECK_MODULES(LIBGLADE, [libglade-2.0], [libglade_msg=yes], [libglade_msg=no], [foo=yes]) |
---|
76 | AM_CONDITIONAL(WITH_LIBGLADE, test x"$libglade_msg" = "xyes") |
---|
77 | AC_SUBST(LIBGLADE_CFLAGS) |
---|
78 | AC_SUBST(LIBGLADE_LIBS) |
---|
79 | |
---|
80 | dnl ============================================================================ |
---|
81 | dnl We might want to link the examples with |
---|
82 | dnl ../libgnomeprint/libgnomeprint/libgnomeprint-2-2.la to not have to make |
---|
83 | dnl install after modifying libgnomeprint |
---|
84 | dnl ============================================================================ |
---|
85 | AC_CHECK_FILE(../libgnomeprint/libgnomeprint/libgnomeprint-2-2.la, use_local_libgnomeprint_la="yes", use_local_libgnomeprint_la="no") |
---|
86 | AM_CONDITIONAL(EXAMPLES_USE_LOCAL_LIBGNOMEPRINT, test "x$use_local_libgnomeprint_la" = "xyes") |
---|
87 | |
---|
88 | AC_OUTPUT([ |
---|
89 | Makefile |
---|
90 | po/Makefile.in |
---|
91 | libgnomeprintui/Makefile |
---|
92 | libgnomeprintui/gpaui/Makefile |
---|
93 | libgnomeprintui/libgnomeprintui-2.2.pc |
---|
94 | libgnomeprintui/libgnomeprintui-uninstalled-2.2.pc |
---|
95 | tests/Makefile |
---|
96 | examples/Makefile |
---|
97 | doc/Makefile |
---|
98 | ]) |
---|
99 | |
---|
100 | echo " |
---|
101 | Compiler: ${CC} |
---|
102 | Compiler flags: ${CFLAGS}" |
---|
103 | if test "x$use_local_libgnomeprint_la" = "xyes" ; then |
---|
104 | echo " Use local libgnomeprint-2-2.la for examples : Yes" |
---|
105 | else |
---|
106 | echo " Use local libgnomeprint-2-2.la for examples : No" |
---|
107 | fi |
---|
108 | if test "x$set_more_warnings" = "xno" ; then |
---|
109 | echo " Disable more warnings: Yes" |
---|
110 | else |
---|
111 | echo " Disable more warnings: No" |
---|
112 | fi |
---|
113 | if test x$enable_gtk_doc = xyes ; then |
---|
114 | echo " Enable gtk-doc: Yes" |
---|
115 | else |
---|
116 | echo " Enable gtk-doc: No" |
---|
117 | fi |
---|
118 | echo |
---|