~ubuntu-branches/ubuntu/trusty/bubblemon/trusty

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2005-03-10 01:12:22 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050310011222-co7htx6t24yimvki
Tags: 2.0.4-1
New upstream release. (Closes: #298798)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# -*-m4-*- Process this file with autoconf to produce a configure script.
2
2
 
3
 
AC_INIT(src/bubblemon.h)
4
 
AM_INIT_AUTOMAKE(bubblemon, 1.0.9)
 
3
 
 
4
######################################################################
 
5
#
 
6
# General system tests required for building platform independent
 
7
# stuff.
 
8
#
 
9
#
 
10
AC_INIT(bubblemon, 2.0.4)
 
11
AC_CONFIG_SRCDIR(src/bubblemon.h)
 
12
 
 
13
AM_INIT_AUTOMAKE([1.5])
 
14
AC_PREREQ(2.50)
 
15
 
5
16
AM_CONFIG_HEADER(config.h)
6
17
 
7
 
# Pick up the Gnome macros.
8
 
AM_ACLOCAL_INCLUDE(macros)
 
18
AC_PROG_INTLTOOL([0.21])
9
19
 
10
 
GNOME_INIT(applets)
11
 
AC_ISC_POSIX
12
20
AC_PROG_CC
13
21
AM_PROG_CC_STDC
 
22
AC_ISC_POSIX
14
23
AC_HEADER_STDC
15
24
 
16
 
GNOME_INIT_LIBGTOP(1.0.0, fail)
17
 
GNOME_COMPILE_WARNINGS
18
 
GNOME_X_CHECKS
19
 
 
20
 
# Find out if the GNOME panel is resizable
21
 
AC_MSG_CHECKING(whether panel resizing is supported)
22
 
AC_EGREP_HEADER(
23
 
  change_pixel_size,
24
 
  applet-widget.h,
25
 
  have_change_pixel_size=yes,
26
 
  have_change_pixel_size=no)
27
 
 
28
 
if test "x$have_change_pixel_size" = "xyes"; then
29
 
  AC_MSG_RESULT(yes)
30
 
  AC_DEFINE(HAVE_CHANGE_PIXEL_SIZE)
31
 
else
32
 
  AC_MSG_RESULT(no)
33
 
fi
34
 
 
35
 
# Check for headers
36
 
AC_CHECK_HEADERS(sys/sysinfo.h)
 
25
# Find some more or less non-standard data types
 
26
AC_CHECK_TYPE(u_int32_t, unsigned int)
 
27
AC_CHECK_TYPE(u_int16_t, unsigned short int)
 
28
AC_CHECK_TYPE(u_int8_t, unsigned char)
 
29
 
 
30
# Find out whether we are on a big-endian system
 
31
AC_C_BIGENDIAN
37
32
 
38
33
# For i18n and l10n
39
 
ALL_LINGUAS="sv fr pl de ko fi da sh pt ro es no hu it"
 
34
ALL_LINGUAS="sv fr pl de ko fi da sh pt ro es no hu it is ru ca"
40
35
 
41
36
# Check if the user wants all languages to be compiled
42
37
AC_ARG_WITH(
51
46
AC_MSG_CHECKING(what languages to include)
52
47
AC_MSG_RESULT($LINGUAS)
53
48
 
 
49
GETTEXT_PACKAGE=bubblemon
 
50
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext wants to know...])
 
51
AC_SUBST(GETTEXT_PACKAGE)
 
52
 
54
53
# For i18n and l10n (continued)
55
54
AM_GNU_GETTEXT
56
55
 
57
 
# Find some more or less non-standard data types
58
 
AC_CHECK_TYPE(u_int32_t, unsigned int)
59
 
AC_CHECK_TYPE(u_int16_t, unsigned short int)
60
 
AC_CHECK_TYPE(u_int8_t, unsigned char)
61
 
 
62
 
# Find GNOME's sysconf dir
63
 
AC_MSG_CHECKING(for GNOME's sysconf dir)
64
 
GNOME_SYSCONFDIR=`$GNOME_CONFIG --sysconfdir`
65
 
AC_SUBST(GNOME_SYSCONFDIR)
66
 
AC_MSG_RESULT($GNOME_SYSCONFDIR)
67
 
 
68
 
# Find GNOME's data dir
69
 
AC_MSG_CHECKING(for GNOME's data dir)
70
 
GNOME_DATADIR=`$GNOME_CONFIG --datadir`
71
 
AC_SUBST(GNOME_DATADIR)
72
 
AC_MSG_RESULT($GNOME_DATADIR)
73
 
 
74
 
# Subst PACKAGE_PIXMAPS_DIR.
75
 
PACKAGE_PIXMAPS_DIR="`gnome-config --datadir`/pixmaps/${PACKAGE}"
76
 
AC_SUBST(PACKAGE_PIXMAPS_DIR)
77
 
 
78
 
# Check if the user wants to enable ripples
79
 
AC_ARG_ENABLE(
80
 
  ripples,
81
 
  [  --enable-ripples[=amount]  Makes surface ripple whith bubbles.  Amount defaults to 0.2])
82
 
 
83
 
# Set rippling to 0.2 if no value is given
84
 
if test -z "$enableval"; then
85
 
  enableval="0.2"
86
 
fi
87
 
 
88
 
# Set rippling to 0.2 if no value is given
89
 
if test "$enableval" = "yes"; then
90
 
  enableval="0.2"
91
 
fi
92
 
 
93
 
AC_MSG_CHECKING(how much the bubbles should make the surface ripple)
94
 
 
95
 
AC_DEFINE_UNQUOTED(RIPPLES, $enableval, How much the bubbles make the surface ripple (0.0 - 1.0))
96
 
 
97
 
AC_MSG_RESULT($enableval)
 
56
# Where do we put locale information?
 
57
if test "x$prefix" = "xNONE"; then
 
58
  LOCALEDIR=$ac_default_prefix/share/locale
 
59
else
 
60
  LOCALEDIR=$prefix/share/locale
 
61
fi
 
62
AC_DEFINE_UNQUOTED(LOCALEDIR, "$LOCALEDIR", [Where language files get installed])
 
63
 
 
64
 
 
65
 
 
66
######################################################################
 
67
#
 
68
# Bubblemon specific tests
 
69
#
 
70
#
98
71
 
99
72
# Check if the user wants to enable profiling
100
73
AC_ARG_ENABLE(
111
84
 
112
85
  AC_MSG_RESULT($profilingFLAGS)
113
86
 
114
 
  AC_DEFINE(ENABLE_PROFILING)
 
87
  AC_DEFINE([ENABLE_PROFILING], [], [Build a bubblemon that bubbles a lot for a minute and then exits])
115
88
 
116
89
  AC_MSG_WARN()
117
90
  AC_MSG_WARN(You have enabled profiling by specifying the --enable-profiling switch.)
120
93
  AC_MSG_WARN()
121
94
fi
122
95
 
 
96
 
 
97
##############################
 
98
# GNOME 2.x specific tests
 
99
 
 
100
# Versions required
 
101
LIBPANEL_REQUIRED=2.0.0
 
102
LIBGTOP_REQUIRED=2.0.0
 
103
 
 
104
# We need the panel for the applets
 
105
build_gpanel=false;
 
106
PKG_CHECK_MODULES(GNOME_APPLETS, 
 
107
        [libpanelapplet-2.0 >= $LIBPANEL_REQUIRED],
 
108
        build_gpanel=true,
 
109
        AC_MSG_WARN([GNOME2 panel not found.]))
 
110
AC_SUBST(GNOME_APPLETS_CFLAGS)
 
111
AC_SUBST(GNOME_APPLETS_LIBS)
 
112
 
 
113
# Check for gtop2 libs
 
114
build_gtop_applets=false
 
115
PKG_CHECK_MODULES(GTOP_APPLETS,
 
116
        [libgtop-2.0 >= $LIBGTOP_REQUIRED],
 
117
        build_gtop_applets=true,
 
118
        AC_MSG_WARN([libgtop not found.]))
 
119
AC_SUBST(GTOP_APPLETS_CFLAGS)
 
120
AC_SUBST(GTOP_APPLETS_LIBS)
 
121
AM_CONDITIONAL(BUILD_GTOP_APPLETS, $build_gtop_applets)
 
122
 
 
123
# The gnome2 panel is resizable
 
124
AC_DEFINE([HAVE_CHANGE_PIXEL_SIZE], [], [Whether the GNOME Panel can change size])
 
125
 
 
126
 
 
127
######################################################################
 
128
#
 
129
# Output our test results
 
130
#
 
131
#
123
132
AC_OUTPUT([
 
133
intl/Makefile 
124
134
Makefile
125
 
macros/Makefile
 
135
m4/Makefile
 
136
po/Makefile.in
 
137
po/Makefile
126
138
src/Makefile
127
139
gnome/Makefile
128
140
pixmaps/Makefile
129
141
packaging/Makefile
130
142
packaging/bubblemon.spec
131
 
debian/Makefile
132
 
debian/VERSION
133
 
intl/Makefile
134
 
po/Makefile.in
135
 
po/Makefile
136
143
man/Makefile
137
 
man/bubblemon_applet.1
 
144
man/bubblemon-gnome2.1
138
145
man/hu/Makefile
139
 
man/hu/bubblemon_applet.1
 
146
man/hu/bubblemon-gnome2.1
140
147
man/sv/Makefile
141
 
man/sv/bubblemon_applet.1
 
148
man/sv/bubblemon-gnome2.1
142
149
])