This repository was archived by the owner on Sep 7, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathconfigure.ac
More file actions
110 lines (87 loc) · 3.14 KB
/
configure.ac
File metadata and controls
110 lines (87 loc) · 3.14 KB
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
dnl -*- mode: m4 -*-
AC_PREREQ([2.68])
AC_INIT([gnome-calendar],[0.0.2],[],[gnome-calendar])
AC_CONFIG_HEADERS([config/config.h])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([config])
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
# require automake 1.11
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip tar-ustar])
AM_MAINTAINER_MODE
dnl ***************************************************************************
dnl Internationalization
dnl ***************************************************************************
IT_PROG_INTLTOOL([0.35.0])
PKG_PROG_PKG_CONFIG([0.22])
GETTEXT_PACKAGE=gnome-calendar
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [GETTEXT package name])
AM_GLIB_GNU_GETTEXT
## don't rerun to this point if we abort
AC_CACHE_SAVE
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_CXX
AC_SEARCH_LIBS([strerror],[cposix])
AC_HEADER_STDC
# no stupid static libraries
AC_DISABLE_STATIC([])
# enable libtool
LT_INIT
## don't rerun to this point if we abort
AC_CACHE_SAVE
GLIB_GSETTINGS
dnl ================================================================
dnl Misc
dnl ================================================================
AC_PATH_PROG(GLIB_MKENUMS, glib-mkenums)
GNOME_COMMON_INIT
GNOME_COMPILE_WARNINGS(maximum)
GNOME_MAINTAINER_MODE_DEFINES
MAINTAINER_COMPILER_FLAGS="$MAINTAINER_COMPILER_FLAGS \
-Wall -Wcast-align -Wuninitialized \
-Wno-strict-aliasing -Wempty-body -Wformat \
-Wformat-security -Wformat-nonliteral -Winit-self \
-Wdeclaration-after-statement -Wvla \
-Wpointer-arith -Wmissing-declarations \
-Wcast-align \
-Wredundant-decls"
# strip leading spaces
MAINTAINER_COMPILER_FLAGS=${MAINTAINER_COMPILER_FLAGS#* }
AC_SUBST(MAINTAINER_COMPILER_FLAGS)
GLIB_MIN_VERSION=2.30.0
GTK_MIN_VERSION=3.4.0
CLUTTER_MIN_VERSION=1.10
CLUTTER_GTK_MIN_VERSION=1.2
ECAL_REQUIRED=3.5.3
EDATASERVER_REQUIRED=3.5.3
EDATASERVERUI_REQUIRED=3.5.3
LIBICAL_REQUIRED=0.43
PKG_CHECK_MODULES(CALENDAR,
glib-2.0 >= $GLIB_MIN_VERSION
gtk+-3.0 >= $GTK_MIN_VERSION
clutter-1.0 >= $CLUTTER_MIN_VERSION
clutter-gtk-1.0 >= $CLUTTER_GTK_MIN_VERSION
libecal-1.2 >= $ECAL_REQUIRED
libedataserver-1.2 >= $EDATASERVER_REQUIRED
libedataserverui-3.0 >= $EDATASERVERUI_REQUIRED
libical >= $LIBICAL_REQUIRED)
AC_CONFIG_FILES([
Makefile
src/Makefile
data/Makefile
data/gnome-calendar.desktop.in
po/Makefile.in
doc/Makefile
])
AC_OUTPUT
dnl ==========================================================================
echo "
gnome-calendar $VERSION
==================
prefix: ${prefix}
compiler: ${CC}
flags: ${CFLAGS} ${CPPFLAGS} ${CALENDAR_CFLAGS} ${LDFLAGS} ${CALENDAR_LIBS} ${LIBS}
Now type 'make' to build $PACKAGE
"