28
29
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
29
30
[The domain name to use with gettext.])
31
ALL_LINGUAS="ar ca cs de dz en_CA en_GB es fi fr gl gu hu it nb ne nl pa pt pt_BR rw sq sv tr vi zh_CN"
32
ALL_LINGUAS="ar ca cs de dz en_CA en_GB es fi fr gl gu hu it nb ne nl oc pa pt pt_BR rw sq sv tr vi zh_CN"
33
34
AM_GLIB_GNU_GETTEXT
34
35
IT_PROG_INTLTOOL([0.35.0])
42
43
#AC_CONFIG_AUX_DIR(macros)
43
44
AC_SUBST([ACLOCAL_AMFLAGS], ['-I macros ${ACLOCAL_FLAGS}'])
47
AC_MSG_CHECKING([whether to enable WIN32 specific flags])
52
AC_CHECK_TOOL(WINDRES, windres)
59
AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
70
85
AC_DEFINE([GLOM_ENABLE_CLIENT_ONLY], 1, [Whether to disable support for self-hosting and developer mode])
73
# Do not require avahi, goocanvas and gtksourceviewmm in client only mode
74
REQUIRED_LIBS="bakery-2.4 >= 2.4.3 gthread-2.0 gnome-vfsmm-2.6 >= 2.11.1 libxslt >= 1.1.10 pygda-3.0 pygtk-2.0 >= 2.6.0 libgdamm-3.0 >= 2.9.81 libgda-3.0 >= 3.0.2 libgda-postgres-3.0"
75
if test "$enable_client_only" != "yes"; then
76
REQUIRED_LIBS="$REQUIRED_LIBS libgtksourceviewmm-1.0 goocanvas avahi-glib"
88
# Do not require, goocanvas and gtksourceviewmm in client only mode
89
REQUIRED_LIBS="bakery-2.6 >= 2.6.0 gtkmm-2.4 >= 2.10 gthread-2.0 libxslt >= 1.1.10 pygda-3.0 pygtk-2.0 >= 2.6.0 libgdamm-3.0 libgda-3.0 libgda-postgres-3.0 goocanvasmm-1.0 >= 0.13.0"
90
if test $enable_client_only != yes; then
91
REQUIRED_LIBS="$REQUIRED_LIBS gtksourceviewmm-2.0"
79
94
# TODO_maemo: Make sure bakery was also compiled with (or without, respectively) maemo support
80
95
if test "$enable_maemo" = "yes"; then
81
REQUIRED_LIBS="$REQUIRED_LIBS gtkmm-2.4 >= 2.10 hildonmm"
96
REQUIRED_LIBS="$REQUIRED_LIBS hildonmm libepc-1.0 >= 0.3.1 avahi-ui";
97
elif test "$win32" = "true"; then
98
REQUIRED_LIBS="$REQUIRED_LIBS gtkmm-2.4 >= 2.10";
83
REQUIRED_LIBS="$REQUIRED_LIBS gtkmm-2.4 >= 2.10 libgnome-2.0 >= 2.6.0 iso-codes"
100
REQUIRED_LIBS="$REQUIRED_LIBS iso-codes libepc-1.0 >= 0.3.1 avahi-ui";
86
103
# Checks for libraries
87
# We need libgnome only for gnome_help_display().:
88
104
PKG_CHECK_MODULES(GLOM, $REQUIRED_LIBS)
90
106
GLOM_LIBS="$GLOM_LIBS --no-undefined"
91
107
AC_SUBST(GLOM_CFLAGS)
92
108
AC_SUBST(GLOM_LIBS)
110
# Temporary egg CFLAGS
111
PKG_CHECK_MODULES(EGG, gtk+-2.0 >= 2.5.0)
112
GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
113
AC_SUBST(GLIB_GENMARSHAL)
94
115
#Get the location of the ISO-Codes (currencies, languages) files:
95
116
AC_DEFINE_UNQUOTED([ISO_CODES_PREFIX],["`$PKG_CONFIG --variable=prefix iso-codes`"],[ISO codes prefix])
97
118
# Get the CFLAGS and LIBS for python's embedding API:
98
119
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])
121
# We don't have this on mingw, for example
122
AC_CHECK_FUNCS(strptime)
101
124
# Install path for DTD (e.g. /usr/local/share/glom):
116
139
[do not run the update-mime-database utility (mostly useful for package maintainers) ]))
117
140
AM_CONDITIONAL(UPDATE_MIME_DATABASE, test "$enable_update_mime_database" != "no")
120
# Ask user for path to the directory containing the postgresql utilities, such as the postmaster executable, so we can self-host postgresql databases:
121
# We default to the path used by Ubuntu (Dapper and Edgy) so that the build works at least somewhere by default.
122
AC_ARG_WITH(postgres-utils,
123
[ --with-postgres-utils=<path> path to the postmaster executable. e.g. /usr/lib/postgresql/8.2/bin],
124
[POSTGRES_UTILS_PATH=$with_postgres_utils],
125
[POSTGRES_UTILS_PATH=/usr/lib/postgresql/8.2/bin]
128
AC_SUBST(POSTGRES_UTILS_PATH)
129
AC_DEFINE_UNQUOTED([POSTGRES_UTILS_PATH], ["${POSTGRES_UTILS_PATH}"], [Path to the postgres utilities, such as postmaster.])
131
if test $enable_client_only != yes; then
132
# Check that the supplied (or default) path really contains the postgres utilities:
133
AC_CHECK_PROG(HAVE_POSTMASTER, postmaster, yes, no, ${POSTGRES_UTILS_PATH})
134
if test "x$HAVE_POSTMASTER" = "xno"; then
135
AC_MSG_ERROR([The postgres utilities could not be found in the path: ${POSTGRES_UTILS_PATH}. They are needed for self-hosting of Glom databases. Please make sure that Postgres is installed, and provide the correct path with the --with-postgres-utils option.])
142
# Option not needed on Windows
143
if test $win32 != true; then
144
# Ask user for path to the directory containing the postgresql utilities, such as the postmaster executable, so we can self-host postgresql databases:
145
# We default to the path used by Ubuntu (Dapper and Edgy) so that the build works at least somewhere by default.
146
AC_ARG_WITH(postgres-utils,
147
[ --with-postgres-utils=<path> path to the postmaster executable. e.g. /usr/lib/postgresql/8.2/bin (ignored on Windows)],
148
[POSTGRES_UTILS_PATH=$with_postgres_utils],
149
[POSTGRES_UTILS_PATH=/usr/lib/postgresql/8.3/bin]
152
AC_SUBST(POSTGRES_UTILS_PATH)
153
AC_DEFINE_UNQUOTED([POSTGRES_UTILS_PATH], ["${POSTGRES_UTILS_PATH}"], [Path to the postgres utilities, such as postmaster.])
155
if test $enable_client_only != yes; then
156
# Check that the supplied (or default) path really contains the postgres utilities:
157
AC_CHECK_PROG(HAVE_POSTMASTER, postmaster, yes, no, ${POSTGRES_UTILS_PATH})
158
if test "x$HAVE_POSTMASTER" = "xno"; then
159
AC_MSG_ERROR([The postgres utilities could not be found in the path: ${POSTGRES_UTILS_PATH}. They are needed for self-hosting of Glom databases. Please make sure that Postgres is installed, and provide the correct path with the --with-postgres-utils option.])
183
209
glom/mode_data/Makefile \
184
210
glom/mode_design/Makefile \
185
211
glom/mode_design/fields/Makefile \
212
glom/mode_design/print_layouts/Makefile \
186
213
glom/mode_design/users/Makefile \
187
214
glom/mode_design/script_library/Makefile \
188
215
glom/mode_find/Makefile \
189
216
glom/navigation/Makefile \
190
217
glom/utility_widgets/Makefile \
218
glom/utility_widgets/calendar/Makefile \
219
glom/utility_widgets/cellrendererlist/Makefile \
191
220
glom/utility_widgets/adddel/Makefile \
192
221
glom/utility_widgets/adddel/eggcolumnchooser/Makefile \
222
glom/utility_widgets/canvas/Makefile \
193
223
glom/utility_widgets/db_adddel/Makefile \
224
glom/utility_widgets/egg/Makefile
225
glom/utility_widgets/egg/toolpalette/Makefile \
226
glom/utility_widgets/egg/util/Makefile \
194
227
glom/python_embed/Makefile \
195
228
glom/python_embed/python_module/Makefile \
196
229
glom/relationships_overview/Makefile \