~ubuntu-branches/ubuntu/quantal/glom/quantal

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Iain Lane
  • Date: 2009-01-11 17:12:01 UTC
  • mfrom: (1.1.39 upstream)
  • Revision ID: james.westby@ubuntu.com-20090111171201-0ov9zh1fxfueshxc
Tags: 1.8.5-0ubuntu1
* New upstream release (LP: #256701), fixes LP bugs: 
  + Clear the text in property dialogs for text items (LP: #309147)
  + Don't crash when showing and then hiding the grid (LP: #303453)
  + Temporarily remember the sort order so it is the same when navigating 
    away and back (LP: #303422)
  + Use the list's sort order for the top-level records in the report 
    (LP: #303425)
  + Users/Groups: Disable drag-and-drop for the treeview, because it is
    useless and confusing (LP: #299573)
  + Import: Sort the fields list alphabetically (LP: #306593)
  + delete primary key make unusuable the database (LP: #299549)
  + Spanish translate incomplete (LP: #299556)
  + import date format error (LP: #299591)
  + can't delete data from table list view (LP: #299853)
  + Field definition: default value not saved (LP: #299896)
  + reports crashing (LP: #300054)
  + Year error with date fields (LP: #300057)
  + list view: 2 records added instead of 1 (LP: #300819)
* debian/control: Refreshed dependencies for libglom-dev.
* debian/control: Updated build-deps to match configure checks. goocavnasmm
  build-dep bumped to version without .la files.
* debian/rules: Don't delete the directory containing the templates.
* debian/control, debian/rules, debian/glom-doc.*: Split out
  arch-independent manual and examples into separate package glom-doc, which
  is now recommended by glom (glom will still work if they're not available)
* debian/copyright: Rewritten to new machine-readable format. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
AM_CONFIG_HEADER(config.h)
5
5
 
6
6
# Package name and version number:
7
 
AM_INIT_AUTOMAKE(glom, 1.6.17)
 
7
AM_INIT_AUTOMAKE(glom, 1.8.5)
8
8
 
9
9
AM_MAINTAINER_MODE
10
10
 
11
11
# Checks for programs:
12
12
AC_PROG_CC
13
13
AC_PROG_CXX
 
14
AC_LIBTOOL_WIN32_DLL
14
15
AM_PROG_LIBTOOL
15
16
AM_SANITY_CHECK
16
17
 
28
29
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["$GETTEXT_PACKAGE"],
29
30
                   [The domain name to use with gettext.])
30
31
 
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"
32
33
 
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}'])
44
45
 
 
46
# Copied from gobby:
 
47
AC_MSG_CHECKING([whether to enable WIN32 specific flags])
 
48
case "$host_os" in
 
49
*mingw*)
 
50
        win32=true
 
51
        AC_MSG_RESULT([yes])
 
52
        AC_CHECK_TOOL(WINDRES, windres)
 
53
        ;;
 
54
*)
 
55
        win32=false
 
56
        AC_MSG_RESULT([no])
 
57
        ;;
 
58
esac
 
59
AM_CONDITIONAL(WIN32, test x$win32 = xtrue)
45
60
 
46
61
AC_LANG_CPLUSPLUS
47
62
 
70
85
        AC_DEFINE([GLOM_ENABLE_CLIENT_ONLY], 1, [Whether to disable support for self-hosting and developer mode])
71
86
fi
72
87
 
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"
77
92
fi
78
93
 
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";
82
99
else
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";
84
101
fi
85
102
 
86
103
# Checks for libraries
87
 
# We need libgnome only for gnome_help_display().:
88
104
PKG_CHECK_MODULES(GLOM, $REQUIRED_LIBS)
89
105
 
90
106
GLOM_LIBS="$GLOM_LIBS --no-undefined"
91
107
AC_SUBST(GLOM_CFLAGS)
92
108
AC_SUBST(GLOM_LIBS)
93
109
 
 
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)
 
114
 
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])
96
117
 
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)])
99
120
 
 
121
# We don't have this on mingw, for example
 
122
AC_CHECK_FUNCS(strptime)
100
123
 
101
124
# Install path for DTD (e.g. /usr/local/share/glom):
102
125
 
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")
118
141
 
119
 
 
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]
126
 
)
127
 
 
128
 
AC_SUBST(POSTGRES_UTILS_PATH)
129
 
AC_DEFINE_UNQUOTED([POSTGRES_UTILS_PATH], ["${POSTGRES_UTILS_PATH}"], [Path to the postgres utilities, such as postmaster.])
130
 
 
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]
 
150
        )
 
151
 
 
152
        AC_SUBST(POSTGRES_UTILS_PATH)
 
153
        AC_DEFINE_UNQUOTED([POSTGRES_UTILS_PATH], ["${POSTGRES_UTILS_PATH}"], [Path to the postgres utilities, such as postmaster.])
 
154
 
 
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.])
 
160
                fi
136
161
        fi
137
162
fi
138
163
 
144
169
        [enable_doc=$enableval],
145
170
        [enable_doc=yes])
146
171
 
 
172
 
147
173
AM_CONDITIONAL(HAVE_GNOME_DOC_UTILS, test "$enable_doc" = "yes")
148
174
 
149
175
# For gnome-doc-utils:
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 \
203
236
      icons/32x32/Makefile \
204
237
      icons/48x48/Makefile \
205
238
      icons/scalable/Makefile \
 
239
      icons/win32/Makefile \
206
240
    xslt/Makefile \
207
241
    po/Makefile.in \
208
242
  macros/Makefile \
209
243
  examples/Makefile \
210
244
  regression_tests/Makefile \
211
 
  glom.desktop.in
 
245
  glom.desktop.in \
 
246
  win32/Makefile \
 
247
  win32/glom.iss
212
248
)
213
249
 
214
250