~ps-jenkins/ido/latestsnapshot-13.10.0+13.10.20130920-0ubuntu1

1 by Cody Russell
IDO initial commit, scale menuitem
1
#
2
# shamelessly stolen from clutter-gtk
3
#
126.1.5 by Lars Uebernickel
Bumb version to 13.10
4
m4_define([ido_major_version], [13])
109.1.9 by Charles Kerr
bump to 12.10.0
5
m4_define([ido_minor_version], [10])
130.1.8 by Charles Kerr
bump version from 13.10.0 to 13.10.1
6
m4_define([ido_micro_version], [1])
1 by Cody Russell
IDO initial commit, scale menuitem
7
8
m4_define([ido_api_version],
9
          [ido_major_version.ido_minor_version])
10
m4_define([ido_version],
11
          [ido_major_version.ido_minor_version.ido_micro_version])
12
13
m4_define([ido_interface_age], [0])
14
m4_define([ido_binary_age],
15
          [m4_eval(100 * ido_minor_version + ido_micro_version)])
16
82.3.2 by Javier Jardón
configure.ac: Update autotools config a bit
17
AC_PREREQ([2.64])
1 by Cody Russell
IDO initial commit, scale menuitem
18
19
AC_INIT([ido],
20
        [ido_version],
82.3.2 by Javier Jardón
configure.ac: Update autotools config a bit
21
        [http://bugs.launchpad.net/ido],
22
        [ido],
23
        [http://launchpad.net/ido])
24
25
AC_CONFIG_HEADERS([config.h])
10 by Cody Russell
Fix distcheck
26
AC_CONFIG_SRCDIR([src/libido.h])
82.3.1 by Javier Jardón
build: Use upstream silent rules instead shave
27
AC_CONFIG_MACRO_DIR([m4])
1 by Cody Russell
IDO initial commit, scale menuitem
28
117 by Charles Kerr
one-liner to add 'check-news' to our AM_INIT_AUTOMAKE invocation
29
AM_INIT_AUTOMAKE([check-news 1.11 foreign])
82.3.1 by Javier Jardón
build: Use upstream silent rules instead shave
30
31
AM_SILENT_RULES([yes])
1 by Cody Russell
IDO initial commit, scale menuitem
32
33
IDO_MAJOR_VERSION=ido_major_version
34
IDO_MINOR_VERSION=ido_minor_version
35
IDO_MICRO_VERSION=ido_micro_version
36
IDO_VERSION=ido_version
37
AC_SUBST(IDO_MAJOR_VERSION)
38
AC_SUBST(IDO_MINOR_VERSION)
39
AC_SUBST(IDO_MICRO_VERSION)
40
AC_SUBST(IDO_VERSION)
41
42
m4_define([lt_current],
43
          [m4_eval(100 * ido_minor_version + ido_micro_version - ido_interface_age)])
44
m4_define([lt_revision], [ido_interface_age])
45
m4_define([lt_age], [m4_eval(ido_binary_age - ido_interface_age)])
46
IDO_LT_CURRENT=lt_current
47
IDO_LT_REV=lt_revision
48
IDO_LT_AGE=lt_age
49
IDO_LT_VERSION="$IDO_LT_CURRENT:$IDO_LT_REV:$IDO_LT_AGE"
50
IDO_LT_LDFLAGS="-version-info $IDO_LT_VERSION"
51
52
AC_SUBST(IDO_LT_VERSION)
53
AC_SUBST(IDO_LT_LDFLAGS)
54
55
dnl ===========================================================================
56
57
# Checks for programs
58
AC_PROG_CC
77.1.3 by Michael Terry
some further automake magic for dual versioning
59
AM_PROG_CC_C_O
108.1.2 by Ted Gould
Adding in Google test build utilities
60
AC_PROG_CXX
82.3.2 by Javier Jardón
configure.ac: Update autotools config a bit
61
62
# Initialize libtool
63
LT_PREREQ([2.2])
64
LT_INIT([disable-static])
65
1 by Cody Russell
IDO initial commit, scale menuitem
66
AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
77.1.3 by Michael Terry
some further automake magic for dual versioning
67
PKG_PROG_PKG_CONFIG
1 by Cody Russell
IDO initial commit, scale menuitem
68
69
# Checks for header files
70
AC_HEADER_STDC
71
AC_CHECK_HEADERS([fcntl.h stdlib.h string.h unistd.h])
72
73
# Checks for typedefs, structures and compiler charecteristics
74
AC_C_CONST
75
76
# Checks for library functions
77
AC_FUNC_MALLOC
78
AC_FUNC_MMAP
79
AC_CHECK_FUNCS([memset munmap strcasecmp strdup])
109.2.1 by Ken VanDine
Use AC_CHECK_LIBM to get -lm now that gtk doesn't include that in it's .pc file
80
AC_CHECK_LIBM
81
126.1.11 by Lars Uebernickel
Bump glib and gtk dependencies
82
GIO_REQUIRED_VERSION=2.37.0
83
GTK_REQUIRED_VERSION=3.8.2
109.3.3 by Charles Kerr
sync with lp:ido
84
85
PKG_CHECK_MODULES(GTK,[gtk+-3.0 >= $GTK_REQUIRED_VERSION
126.1.11 by Lars Uebernickel
Bump glib and gtk dependencies
86
                       gio-2.0 >= $GIO_REQUIRED_VERSION])
109.3.3 by Charles Kerr
sync with lp:ido
87
1 by Cody Russell
IDO initial commit, scale menuitem
88
AC_SUBST(GTK_CFLAGS)
89
AC_SUBST(GTK_LIBS)
90
91
dnl ===========================================================================
92
93
if test "x$GCC" = "xyes"; then
94
  GCC_FLAGS="-g -Wall"
95
fi
96
AC_SUBST(GCC_FLAGS)
97
98
# use strict compiler flags only on development releases
99
m4_define([maintainer_flags_default], [m4_if(m4_eval(ido_minor_version % 2), [1], [yes], [no])])
100
AC_ARG_ENABLE([maintainer-flags],
82.3.2 by Javier Jardón
configure.ac: Update autotools config a bit
101
              [AS_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
1 by Cody Russell
IDO initial commit, scale menuitem
102
                              [Use strict compiler flags @<:@default=no@:>@])],
103
              [],
104
              [enable_maintainer_flags=maintainer_flags_default])
105
106
MAINTAINER_CFLAGS=""
107
AS_IF([test "x$enable_maintainer_flags" = "xyes" && test "x$GCC" = "xyes"],
108
      [
109
        MAINTAINER_CFLAGS="-Werror -Wall -Wshadow -Wcast-align -Wno-uninitialized -Wempty-body -Wformat-security -Winit-self"
110
      ]
111
)
112
113
AC_SUBST(MAINTAINER_CFLAGS)
114
100.2.1 by Allan LeSage
Added gcov coverage tooling.
115
dnl = gcov Coverage Reporting =================================================
116
117
m4_include([m4/gcov.m4])
118
AC_TDD_GCOV
119
AM_CONDITIONAL([HAVE_GCOV], [test "x$ac_cv_check_gcov" = xyes])
120
AM_CONDITIONAL([HAVE_LCOV], [test "x$ac_cv_check_lcov" = xyes])
121
AM_CONDITIONAL([HAVE_GCOVR], [test "x$ac_cv_check_gcovr" = xyes])
122
AC_SUBST(COVERAGE_CFLAGS)
123
AC_SUBST(COVERAGE_CXXFLAGS)
124
AC_SUBST(COVERAGE_LDFLAGS)
1 by Cody Russell
IDO initial commit, scale menuitem
125
120.2.1 by Robert Ancell
Add introspection and Vala support to IDO
126
dnl = GObject Introspection ===================================================
127
128
GOBJECT_INTROSPECTION_CHECK([0.6.7])
129
130
dnl = Vala API Generation =====================================================
131
132
AC_PATH_PROG([VALA_API_GEN], [vapigen])
133
108.1.2 by Ted Gould
Adding in Google test build utilities
134
dnl = Google Test Framework ===================================================
135
123.1.1 by Mathieu Trudel-Lapierre
Avoid FTBFS due to conflicting paths to gtest source, or because the relevant gtest files aren't found -- always use the xorg-gtest gtest source, and adjust path accordingly.
136
dnl xorg-gtest also provides gtest.
108.1.11 by Ted Gould
Bring in xorg-gtest to get an X11 wrapper
137
CHECK_XORG_GTEST
108.1.2 by Ted Gould
Adding in Google test build utilities
138
1 by Cody Russell
IDO initial commit, scale menuitem
139
dnl = GTK Doc Check ===========================================================
140
141
GTK_DOC_CHECK([1.8])
142
143
dnl ===========================================================================
144
145
AC_CONFIG_FILES([
146
  Makefile
147
  src/Makefile
148
  example/Makefile
108.1.3 by Ted Gould
We've now got a test directory!
149
  tests/Makefile
1 by Cody Russell
IDO initial commit, scale menuitem
150
  libido.pc
77.1.2 by Michael Terry
allow building either gtk2 or gtk3 versions; some deprecation cleanups
151
  libido3.pc
1 by Cody Russell
IDO initial commit, scale menuitem
152
])
153
154
AC_OUTPUT
155
156
echo ""
157
echo " ido $VERSION"
158
echo " ==============================="
159
echo ""
160
echo " Prefix       : ${prefix}"
100.2.1 by Allan LeSage
Added gcov coverage tooling.
161
echo " gcov         : ${use_gcov}"
120.2.1 by Robert Ancell
Add introspection and Vala support to IDO
162
echo " introspection: ${enable_introspection}"
1 by Cody Russell
IDO initial commit, scale menuitem
163
echo ""
164
echo " Documentation: ${enable_gtk_doc}"
165
echo ""