public
Description: A Clutter-based Twitter client
Homepage: http://live.gnome.org/Tweet
Clone URL: git://github.com/ebassi/tweet.git
Search Repo:
Emmanuele Bassi (author)
Thu Jul 03 08:43:52 -0700 2008
commit  79afa3cbaa9ebb027394d645be2b20666021425b
tree    376a7fba847d49d3f8341ab8c1a358af5a5d1922
parent  5ff40cff974d95032780e4e57c470d8ef63e267a
tweet / configure.ac
100644 186 lines (156 sloc) 5.799 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
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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
m4_define([tweet_major_version], [0])
m4_define([tweet_minor_version], [3])
m4_define([tweet_micro_version], [0])
 
m4_define([tweet_version],
          [tweet_major_version.tweet_minor_version.tweet_micro_version])
 
m4_define([tweet_interface_age], [0])
m4_define([tweet_binary_age],
          [m4_eval(100 * tweet_minor_version + tweet_micro_version)])
 
m4_define([lt_current],
          [m4_eval(100 * tweet_minor_version + tweet_micro_version - tweet_interface_age)])
m4_define([lt_revision], [tweet_interface_age])
m4_define([lt_age],
          [m4_eval(tweet_binary_age - tweet_interface_age)])
 
m4_define([glib_req_version], [2.16])
m4_define([json_glib_req_version], [0.6.0])
m4_define([soup_req_version], [2.4.1])
m4_define([clutter_req_version], [0.6.2])
m4_define([gtk_req_version], [2.12])
m4_define([clutter_gtk_req_version], [0.6.1])
m4_define([clutter_cairo_req_version], [0.6.2])
 
AC_PREREQ([2.59])
AC_INIT([tweet], [tweet_version], [], [tweet])
 
AM_INIT_AUTOMAKE([1.10])
AM_CONFIG_HEADER([config.h])
 
GNOME_COMMON_INIT
GNOME_COMPILE_WARNINGS
GNOME_DEBUG_CHECK
 
IT_PROG_INTLTOOL([0.35.0])
 
AM_DISABLE_STATIC
AM_PATH_GLIB_2_0
AM_PROG_CC_C_O
AM_PROG_LIBTOOL
 
AC_HEADER_STDC
AC_CHECK_HEADERS([unistd.h])
AC_C_CONST
AC_FUNC_MALLOC
AC_FUNC_MMAP
AC_PATH_PROG([GLIB_GENMARSHAL], [glib-genmarshal])
AC_PATH_PROG([GLIB_MKENUMS], [glib-mkenums])
AC_CHECK_FUNCS([strptime localtime_r])
 
TWEET_MAJOR_VERSION=tweet_major_version
TWEET_MINOR_VERSION=tweet_minor_version
TWEET_MICRO_VERSION=tweet_micro_version
TWEET_VERSION=tweet_version
AC_SUBST(TWEET_MAJOR_VERSION)
AC_SUBST(TWEET_MICRO_VERSION)
AC_SUBST(TWEET_MINOR_VERSION)
AC_SUBST(TWEET_VERSION)
 
dnl twitter-glib checks
LIBT_CURRENT=lt_current
LIBT_REVISION=lt_revision
LIBT_AGE=lt_age
LIBT_VERSION="$LIBT_CURRENT:$LIBT_REVISION:$LIBT_AGE"
TWITTER_GLIB_LT_LDFLAGS="-version-info $LIBT_VERSION"
AC_SUBST(TWITTER_GLIB_LT_LDFLAGS)
 
PKG_CHECK_MODULES(TWITTER_GLIB,
                  gobject-2.0 >= glib_req_version dnl
                  gio-2.0 >= glib_req_version dnl
                  json-glib-1.0 >= json_glib_req_version dnl
                  libsoup-2.4 >= soup_req_version dnl
                  gdk-pixbuf-2.0)
AC_SUBST(TWITTER_GLIB_CFLAGS)
AC_SUBST(TWITTER_GLIB_LIBS)
 
dnl tweet checks
PKG_CHECK_MODULES(TWEET,
                  gobject-2.0 >= glib_req_version dnl
                  json-glib-1.0 >= json_glib_req_version dnl
                  clutter-0.6 >= clutter_req_version dnl
                  gtk+-2.0 >= gtk_req_version dnl
                  clutter-gtk-0.6 >= clutter_gtk_req_version dnl
                  clutter-cairo-0.6 >= clutter_cairo_req_version)
AC_SUBST(TWEET_CFLAGS)
AC_SUBST(TWEET_LIBS)
 
PKG_CHECK_MODULES(NMGLIB, libnm_glib,
                  [has_nm_glib=yes],
                  [han_nm_glib=no])
AC_SUBST(NMGLIB_CFLAGS)
AC_SUBST(NMGLIB_LIBS)
 
if test "x$has_nm_glib" = "xyes"; then
  AC_DEFINE([HAVE_NM_GLIB], [1], [Define to 1 if we have NM-GLib support])
fi
 
dnl = Enable debug level ===================================================
 
m4_define([debug_default],
          m4_if(m4_eval(tweet_minor_version % 2), [1], [yes], [minimum]))
 
AC_ARG_ENABLE(debug,
              AC_HELP_STRING([--enable-debug=@<:@no/minimum/yes@:>@],
                             [turn on debugging @<:@default=debug_default@:>@]),
,
              enable_debug=debug_default)
 
if test "x$enable_debug" = "xyes"; then
  test "$cflags_set" = set || CFLAGS="$CFLAGS -g"
  TWEET_DEBUG_CFLAGS="-DTWEET_ENABLE_DEBUG"
else
  if test "x$enable_debug" = "xno"; then
    TWEET_DEBUG_CFLAGS="-DG_DISABLE_ASSERT -DG_DISABLE_CHECKS -DG_DISABLE_CAST_CHECKS"
  else # minimum
    TWEET_DEBUG_CFLAGS="-DTWEET_ENABLE_DEBUG -DG_DISABLE_CAST_CHECKS"
  fi
fi
 
AC_SUBST(TWEET_DEBUG_CFLAGS)
 
dnl = Enable strict compiler flags =========================================
 
# use strict compiler flags only on development releases
#m4_define([maintainer_flags_default],
# m4_if(m4_eval(tweet_minor_version % 2), [1], [yes], [no]))
m4_define([maintainer_flags_default], [no])
AC_ARG_ENABLE([maintainer-flags],
              AC_HELP_STRING([--enable-maintainer-flags=@<:@no/yes@:>@],
                             [Use strict compiler flags @<:@default=maintainer_flags_default@:>@]),,
              enable_maintainer_flags=maintainer_flags_default)
 
if test "x$enable_maintainer_flags" = "xyes"; then
  CPPFLAGS="$CPPFLAGS -g -Wall -Wshadow -Wcast-align -Wno-uninitialized -Werror"
else
  CPPFLAGS="$CPPFLAGS -g -Wall"
fi
 
dnl Internationalization
GETTEXT_PACKAGE=tweet
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Define the gettext package to use])
AC_SUBST(GETTEXT_PACKAGE)
AM_GLIB_GNU_GETTEXT
 
dnl gnome-doc-utils stuff
GNOME_DOC_INIT
 
AC_CONFIG_FILES([
        Makefile
        twitter-glib/Makefile
        twitter-glib/twitter-version.h
        twitter-glib/twitter-glib.pc
        copy-and-paste/Makefile
        copy-and-paste/tidy/Makefile
        src/Makefile
        tests/Makefile
        po/Makefile.in
        data/Makefile
        data/icons/Makefile
        data/icons/16x16/Makefile
        data/icons/16x16/apps/Makefile
        data/icons/22x22/Makefile
        data/icons/22x22/apps/Makefile
        data/icons/22x22/status/Makefile
        data/icons/32x32/Makefile
        data/icons/32x32/actions/Makefile
        data/icons/32x32/apps/Makefile
        data/icons/32x32/status/Makefile
        data/icons/scalable/Makefile
        data/icons/scalable/actions/Makefile
        data/icons/scalable/apps/Makefile
        data/icons/scalable/status/Makefile
])
 
AC_OUTPUT
 
echo ""
echo " Tweet: $VERSION"
echo ""
echo " Prefix: ${prefix}"
echo " Debug level: ${enable_debug}"
echo " Compiler flags: ${CPPFLAGS}"
echo " NetworkManager support: $has_nm_glib"
echo ""