1 | dnl Process this file with autoconf to produce a configure script. |
---|
2 | |
---|
3 | AC_PREREQ(2.52) |
---|
4 | |
---|
5 | AC_INIT(file-roller, 2.8.4) |
---|
6 | AC_CONFIG_SRCDIR(src/main.c) |
---|
7 | AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION) |
---|
8 | AM_CONFIG_HEADER(config.h) |
---|
9 | |
---|
10 | AM_PROG_LIBTOOL |
---|
11 | |
---|
12 | dnl ========================================================================== |
---|
13 | dnl |
---|
14 | dnl If you add a version number here, you *must* add an AC_SUBST line for |
---|
15 | dnl it too, or it will never make it into the spec file! |
---|
16 | dnl |
---|
17 | dnl ========================================================================== |
---|
18 | |
---|
19 | GLIB_REQUIRED=2.0.0 |
---|
20 | GTK_REQUIRED=2.1.0 |
---|
21 | LIBGNOME_REQUIRED=2.1.0 |
---|
22 | LIBGNOMEUI_REQUIRED=2.1.0 |
---|
23 | GNOME_VFS_REQUIRED=2.1.3 |
---|
24 | LIBGLADE_REQUIRED=2.0.0 |
---|
25 | BONOBO_ACTIVATION_REQUIRED=1.0.0 |
---|
26 | LIBBONOBO_REQUIRED=2.0.0 |
---|
27 | LIBBONOBOUI_REQUIRED=2.0.0 |
---|
28 | |
---|
29 | AC_SUBST(GLIB_REQUIRED) |
---|
30 | AC_SUBST(GTK_REQUIRED) |
---|
31 | AC_SUBST(LIBGNOME_REQUIRED) |
---|
32 | AC_SUBST(LIBGNOMEUI_REQUIRED) |
---|
33 | AC_SUBST(GNOME_VFS_REQUIRED) |
---|
34 | AC_SUBST(LIBGLADE_REQUIRED) |
---|
35 | AC_SUBST(BONOBO_ACTIVATION_REQUIRED) |
---|
36 | AC_SUBST(LIBBONOBO_REQUIRED) |
---|
37 | AC_SUBST(LIBBONOBOUI_REQUIRED) |
---|
38 | |
---|
39 | dnl =========================================================================== |
---|
40 | |
---|
41 | PKG_CHECK_MODULES(FR, \ |
---|
42 | glib-2.0 \ |
---|
43 | gthread-2.0 \ |
---|
44 | gtk+-2.0 \ |
---|
45 | libgnome-2.0 \ |
---|
46 | libgnomeui-2.0 \ |
---|
47 | gnome-vfs-2.0 \ |
---|
48 | gnome-vfs-module-2.0 \ |
---|
49 | libglade-2.0 \ |
---|
50 | bonobo-activation-2.0) |
---|
51 | AC_SUBST(FR_CFLAGS) |
---|
52 | AC_SUBST(FR_LIBS) |
---|
53 | |
---|
54 | AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal) |
---|
55 | |
---|
56 | dnl ****************************** |
---|
57 | |
---|
58 | ALL_LINGUAS="am ar az be bg bn bs ca cs cy da de el en_CA en_GB es et eu fa fi fr ga gu he hi hr hu id is it ja kn ko lt lv mk ml mn ms nb ne nl nn no pa pl pt pt_BR ro ru sk sl sq sr sr@ije sr@Latn sv ta th tk tr uk vi zh_CN zh_TW" |
---|
59 | |
---|
60 | GETTEXT_PACKAGE=file-roller |
---|
61 | AC_SUBST(GETTEXT_PACKAGE) |
---|
62 | AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [GetText Package]) |
---|
63 | |
---|
64 | AM_GLIB_GNU_GETTEXT |
---|
65 | AC_PROG_INTLTOOL |
---|
66 | |
---|
67 | if test "x${prefix}" = "xNONE"; then |
---|
68 | AC_DEFINE_UNQUOTED(LOCALEDIR, "${ac_default_prefix}/${DATADIRNAME}/locale", [Locale dir]) |
---|
69 | else |
---|
70 | AC_DEFINE_UNQUOTED(LOCALEDIR, "${prefix}/${DATADIRNAME}/locale", [Locale dir]) |
---|
71 | fi |
---|
72 | |
---|
73 | dnl ****************************** |
---|
74 | |
---|
75 | AC_ARG_ENABLE(deprecations,AC_HELP_STRING([--enable-deprecations],[warn about deprecated usages])) |
---|
76 | |
---|
77 | AM_CONDITIONAL(ENABLE_DEPRECATIONS, test "x$enable_deprecations" = xyes) |
---|
78 | |
---|
79 | dnl ****************************** |
---|
80 | |
---|
81 | AC_ARG_ENABLE(schemas-install,AC_HELP_STRING([--disable-schemas-install], |
---|
82 | [Disable installation of the gconf schemas])) |
---|
83 | |
---|
84 | AM_CONDITIONAL(SCHEMAS_INSTALL, test x$enable_schemas_install != xno) |
---|
85 | |
---|
86 | AC_PATH_PROG(GCONFTOOL, gconftool-2, no) |
---|
87 | if test x"$GCONFTOOL" = xno; then |
---|
88 | AC_MSG_ERROR([gconftool-2 executable not found in your path - should be installed with GConf]) |
---|
89 | fi |
---|
90 | AM_GCONF_SOURCE_2 |
---|
91 | |
---|
92 | dnl ****************************** |
---|
93 | |
---|
94 | AC_OUTPUT([ |
---|
95 | Makefile |
---|
96 | file-roller.spec |
---|
97 | src/Makefile |
---|
98 | src/icons/Makefile |
---|
99 | src/recent-files/Makefile |
---|
100 | component/Makefile |
---|
101 | po/Makefile.in |
---|
102 | help/Makefile |
---|
103 | help/C/Makefile |
---|
104 | help/de/Makefile |
---|
105 | help/es/Makefile |
---|
106 | help/fr/Makefile |
---|
107 | help/it/Makefile |
---|
108 | help/ja/Makefile |
---|
109 | help/ko/Makefile |
---|
110 | help/ru/Makefile |
---|
111 | help/sv/Makefile |
---|
112 | help/uk/Makefile |
---|
113 | help/zh_CN/Makefile |
---|
114 | help/zh_HK/Makefile |
---|
115 | help/zh_TW/Makefile |
---|
116 | ]) |
---|