~mhr3/unity-lens-applications/bug-850714

241 by Mikkel Kamstrup Erlandsen
Release 0.4.10
1
AC_INIT(unity-lens-applications, 0.4.10, https://launchpad.net/unity-lens-applications)
232.1.11 by Mikkel Kamstrup Erlandsen
Try and add checks for headers db.h and xapian.h but autoconf is screwing me over...
2
AC_COPYRIGHT([Copyright 2010-2011 Canonical])
3
AM_INIT_AUTOMAKE([1.11])
18 by Mikkel Kamstrup Erlandsen
Rip all project internals out and replace them with stuff from unity-place-files.
4
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
5
#############################################
6
# Silent build rules
7
#############################################
1 by Neil Jagdish Patel
Initial import
8
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
9
232.1.15 by Mikkel Kamstrup Erlandsen
Make checks for xapian.h and db.h work
10
AC_PREREQ(2.59)
1 by Neil Jagdish Patel
Initial import
11
5 by Neil Jagdish Patel
[build] Service file + po stuff
12
AC_CONFIG_HEADERS([config.h])
1 by Neil Jagdish Patel
Initial import
13
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
14
#############################################
15
# Init the other things we depend on
16
#############################################
1 by Neil Jagdish Patel
Initial import
17
AM_MAINTAINER_MODE
121 by Mikkel Kamstrup Erlandsen
Port to GDBus and fix a few places where we made Dee unhappy by passing some NULLs to the results_model
18
AM_PROG_VALAC([0.11.3])
1 by Neil Jagdish Patel
Initial import
19
AS_IF([test -z "$VALAC"], [AC_MSG_ERROR(["No valac compiler found."])])
20
AC_PROG_CC
21
AM_PROG_CC_C_O
22
AC_HEADER_STDC
232.1.15 by Mikkel Kamstrup Erlandsen
Make checks for xapian.h and db.h work
23
AC_LANG([C++])
1 by Neil Jagdish Patel
Initial import
24
5 by Neil Jagdish Patel
[build] Service file + po stuff
25
LT_INIT
232.1.15 by Mikkel Kamstrup Erlandsen
Make checks for xapian.h and db.h work
26
AC_CONFIG_MACRO_DIR([m4])
1 by Neil Jagdish Patel
Initial import
27
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
28
#############################################
29
# Gettext
30
#############################################
31
GETTEXT_PACKAGE="$PACKAGE"
32
AC_SUBST(GETTEXT_PACKAGE)
33
AC_SUBST([CONFIG_STATUS_DEPENDENCIES],['$(top_srcdir)/po/LINGUAS'])
34
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [gettext domain])
76 by Mikkel Kamstrup Erlandsen
Put the configure.ac gettext magic more in line with those recommended by the Ubuntu wiki
35
AM_GLIB_GNU_GETTEXT
36
37
# AM_GNOME_GETTEXT above substs $DATADIRNAME
38
# this is the directory where the *.{mo,gmo} files are installed
39
localedir='${prefix}/${DATADIRNAME}/locale'
40
AC_SUBST(localedir)
41
42
IT_PROG_INTLTOOL([0.40.0])
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
43
10 by Neil Jagdish Patel
[i18n] Support
44
AC_DEFINE_UNQUOTED(LOCALE_DIR, "${PREFIX}/${DATADIRNAME}/locale",[Locale directory])
18 by Mikkel Kamstrup Erlandsen
Rip all project internals out and replace them with stuff from unity-place-files.
45
AC_DEFINE_UNQUOTED(DATADIR, "${PREFIX}/${DATADIRNAME}",[Data directory])
46
AC_DEFINE_UNQUOTED(PREFIXDIR, "${PREFIX}",[Prefix directory])
1 by Neil Jagdish Patel
Initial import
47
101.1.1 by Mikkel Kamstrup Erlandsen
WIP: make .place files translatable
48
######################################################
211.2.5 by Neil Jagdish Patel
s/place/lens
49
# intltool rule for generating translated .lens file
101.1.1 by Mikkel Kamstrup Erlandsen
WIP: make .place files translatable
50
######################################################
211.2.5 by Neil Jagdish Patel
s/place/lens
51
INTLTOOL_LENS_RULE='%.lens: %.lens.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< [$]@'
52
AC_SUBST(INTLTOOL_LENS_RULE)
101.1.1 by Mikkel Kamstrup Erlandsen
WIP: make .place files translatable
53
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
54
#############################################
55
# Check for module and library dependancies
56
#############################################
122 by Mikkel Kamstrup Erlandsen
Bump required glib version, now that we depend on GApplication
57
GLIB_REQUIRED=2.27
211.2.5 by Neil Jagdish Patel
s/place/lens
58
PKG_CHECK_MODULES(LENS_DAEMON,
1 by Neil Jagdish Patel
Initial import
59
                  glib-2.0 >= $GLIB_REQUIRED
60
                  gobject-2.0 >= $GLIB_REQUIRED
18 by Mikkel Kamstrup Erlandsen
Rip all project internals out and replace them with stuff from unity-place-files.
61
                  gio-2.0 >= $GLIB_REQUIRED
21 by Mikkel Kamstrup Erlandsen
Populate sections and groups as per spec
62
                  gio-unix-2.0 >= $GLIB_REQUIRED
163.1.3 by Didier Roche
first history implementation with some reshaping for folder activation
63
                  gconf-2.0
1 by Neil Jagdish Patel
Initial import
64
                  gee-1.0
181 by Mikkel Kamstrup Erlandsen
Release 0.2.40 (bumping Dee dep to 0.5.16)
65
                  dee-1.0 >= 0.5.16
189 by Mikkel Kamstrup Erlandsen
Release 0.2.42
66
                  zeitgeist-1.0 >= 0.3.8
237.1.2 by Mikkel Kamstrup Erlandsen
Index and search X-GNOME-Keywords and X-AppInstall-Keywords. This requires lp:~kamstrup/libunity/keywords-index.
67
                  unity >= 4.0.5
149 by Didier Roche
removing dbusmenu as it's libunity leaking the API
68
                  libgnome-menu)
18 by Mikkel Kamstrup Erlandsen
Rip all project internals out and replace them with stuff from unity-place-files.
69
211.2.5 by Neil Jagdish Patel
s/place/lens
70
AC_SUBST(LENS_DAEMON_CFLAGS)
71
AC_SUBST(LENS_DAEMON_LIBS)
9 by Neil Jagdish Patel
[desktop] Add support for the desktop file
72
232.1.15 by Mikkel Kamstrup Erlandsen
Make checks for xapian.h and db.h work
73
AC_CHECK_HEADER(db.h, [],
74
                AC_MSG_FAILURE([Unable to find db.h. Please install the package libdb4.8-dev]))
75
76
AC_CHECK_HEADER(xapian.h, [],
77
                AC_MSG_FAILURE([Unable to find xapian.h. Please install the package libxapian-dev]))
78
232.1.11 by Mikkel Kamstrup Erlandsen
Try and add checks for headers db.h and xapian.h but autoconf is screwing me over...
79
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
80
#############################################
81
# local install for distcheck and stand-alone running
82
#############################################
73.1.1 by Mikkel Kamstrup Erlandsen
Make distcheck pass
83
with_localinstall="no"
84
AC_ARG_ENABLE(localinstall,
85
              AS_HELP_STRING([--enable-localinstall],
86
                             [Install all of the files locally instead of in system directories (for distcheck)]),
87
              with_localinstall=$enableval,
88
              with_localinstall=no)
89
90
AM_CONDITIONAL([HAVE_LOCALINSTALL], [test "x$with_localinstall" = "xyes"])
91
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
92
#############################################
93
# Expand variables needed for config.vala
94
#############################################
19 by Mikkel Kamstrup Erlandsen
Properly expand all variables in config.vala.in
95
AS_AC_EXPAND(PREFIX, $prefix)
96
AC_SUBST(PREFIX)
97
98
AS_AC_EXPAND(DATADIR, $datarootdir)
99
AC_SUBST(DATADIR)
100
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
101
#############################################
102
# look for dbus service dir
103
#############################################
73.1.1 by Mikkel Kamstrup Erlandsen
Make distcheck pass
104
if test "x$with_localinstall" = "xyes"; then
105
	DBUSSERVICEDIR="${datadir}/dbus-1/services/"
106
else
107
	DBUSSERVICEDIR=`$PKG_CONFIG --variable=session_bus_services_dir dbus-1`
108
fi
30.1.1 by Didier Roche
- enable install dbus service file
109
AC_SUBST(DBUSSERVICEDIR)
110
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
111
#############################################
112
# Create the Makefiles
113
#############################################
1 by Neil Jagdish Patel
Initial import
114
AC_CONFIG_FILES([
115
  Makefile
211.2.5 by Neil Jagdish Patel
s/place/lens
116
  applications.lens.in
117
  commands.lens.in
27 by Mikkel Kamstrup Erlandsen
Build and install .menu and .directory files needed for using libgnome-menu. There is some i18n stuff to figure out here...
118
  data/Makefile
89.1.1 by Mikkel Kamstrup Erlandsen
PACKAGERS: You now need to compile with --sysconfdir=/etc in order to install the .menu file correctly
119
  data/X-Unity-All-Applications.directory
211.2.5 by Neil Jagdish Patel
s/place/lens
120
  data/unity-lens-applications.menu
1 by Neil Jagdish Patel
Initial import
121
  src/Makefile
18 by Mikkel Kamstrup Erlandsen
Rip all project internals out and replace them with stuff from unity-place-files.
122
  src/config.vala
73.1.2 by Mikkel Kamstrup Erlandsen
Enable translated messages everywhere
123
  po/Makefile.in
1 by Neil Jagdish Patel
Initial import
124
])
125
AC_OUTPUT
126
127
dnl Output the results
128
AC_MSG_NOTICE([
129
211.2.5 by Neil Jagdish Patel
s/place/lens
130
  Unity Applications Lens Daemon $VERSION
18 by Mikkel Kamstrup Erlandsen
Rip all project internals out and replace them with stuff from unity-place-files.
131
  ------------------------------------
1 by Neil Jagdish Patel
Initial import
132
133
  Prefix         : ${prefix}
89.1.1 by Mikkel Kamstrup Erlandsen
PACKAGERS: You now need to compile with --sysconfdir=/etc in order to install the .menu file correctly
134
  Sysconfdir     : ${sysconfdir}
73.1.1 by Mikkel Kamstrup Erlandsen
Make distcheck pass
135
  
73.1.3 by Mikkel Kamstrup Erlandsen
Add AM_GLIB_GNU_GETTEXT
136
  Local install  : ${with_localinstall}
1 by Neil Jagdish Patel
Initial import
137
138
  Extra CFlags   : ${CPPFLAGS} $MAINTAINER_CFLAGS
139
  Extra ValaFlags: ${CPPFLAGS} $MAINTAINER_VALAFLAGS
140
])