File: configure.ac

package info (click to toggle)
bijiben 3.20.2-1.1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,588 kB
  • sloc: ansic: 21,624; sh: 4,094; makefile: 647; xml: 114
file content (135 lines) | stat: -rw-r--r-- 2,977 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
dnl Process this file with autoconf to produce a configure script.

AC_INIT(bijiben, 3.20.2)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])

dnl _FOR_DOC
AC_CONFIG_MACRO_DIR([m4])
dnl end of _FOR_DOC

AM_INIT_AUTOMAKE
AM_INIT_AUTOMAKE([subdir-objects])
AC_CONFIG_HEADERS([config.h])
AM_MAINTAINER_MODE

AC_PROG_CC

GNOME_DOC_PREPARE


YELP_HELP_INIT


dnl ***************************************************************************
dnl Internatinalization
dnl ***************************************************************************
GETTEXT_PACKAGE=bijiben
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
IT_PROG_INTLTOOL([0.50.1])







#
# Check if we should update the mime database
#

AC_PATH_PROG(UPDATE_MIME_DATABASE, update-mime-database, no)

AC_ARG_ENABLE(update-mimedb,
   AC_HELP_STRING([--disable-update-mimedb],
                   [disable the update-mime-database after install [default=no]]),,
    enable_update_mimedb=yes)
AM_CONDITIONAL(ENABLE_UPDATE_MIMEDB, (test x$enable_update_mimedb = xyes) && (test x$UPDATE_MIME_DATABASE != xno))


AC_PATH_PROG(DESKTOP_FILE_VALIDATE, desktop-file-validate)


AM_PROG_LIBTOOL

# Requirements

# check for AppStream
APPSTREAM_XML


# version, modules
GLIB_REQUIRED_VERSION=2.28
GTK_REQUIRED_VERSION=3.11.4
EDS_REQUIRED_VERSION=3.13.90


PKG_CHECK_MODULES([TRACKER], [tracker-sparql-1.0], [sparql_version="tracker-sparql-1.0"],
   [PKG_CHECK_MODULES([TRACKER], [tracker-sparql-0.18], [sparql_version="tracker-sparql-0.18"])
])

PKG_CHECK_MODULES(BIJIBEN,
                  [ libecal-1.2 >= $EDS_REQUIRED_VERSION
		    libedataserver-1.2 >= $EDS_REQUIRED_VERSION
		    libedataserverui-1.2 >= $EDS_REQUIRED_VERSION
                    gio-unix-2.0
                    glib-2.0 >= $GLIB_REQUIRED_VERSION
                    goa-1.0
                    gtk+-3.0 >= $GTK_REQUIRED_VERSION
		    libecal-1.2
                    libxml-2.0
                    $sparql_version
                    uuid
                    webkitgtk-3.0])


# check for zeitgeist
AC_ARG_ENABLE([zeitgeist],
  [AS_HELP_STRING([--disable-zeitgeist], [Disable zeitgeist support @<:@auto@:>@])],
  [:],
  [enable_zeitgeist=auto])

AS_IF([test "$enable_zeitgeist" != "no"],
  [PKG_CHECK_MODULES([ZEITGEIST],
    [zeitgeist-2.0],
    [enable_zeitgeist=yes],
    [AS_IF([test "$enable_zeitgeist" = "yes"],
      [AC_MSG_ERROR([zeitgeist-2.0 required, but not found.])],
      [enable_zeitgeist=no])
    ])
])

AM_CONDITIONAL([BUILD_ZEITGEIST], [test "$enable_zeitgeist" = "yes"])


GLIB_GSETTINGS

LIBGD_INIT([
  view-common
  gtk-hacks
  main-view
  static
  tagged-entry
])

AC_CONFIG_FILES([
Makefile
libgd/Makefile
data/Makefile
data/org.gnome.bijiben.desktop.in
data/icons/Makefile
help/Makefile
po/Makefile.in
src/libbiji/Makefile
src/Makefile
])

AC_OUTPUT

echo "	Version:	        $VERSION
        Enable Zeitgeist  $enable_zeitgeist

	Run make to compile."