~ubuntu-branches/ubuntu/saucy/blam/saucy

1 by Johan Svedberg
Import upstream version 1.4.1
1
AC_INIT(README)
2
AC_CANONICAL_SYSTEM
1.2.6 by Carlos Martín Nieto
Import upstream version 1.8.9
3
AM_INIT_AUTOMAKE(blam, 1.8.9)
1 by Johan Svedberg
Import upstream version 1.4.1
4
5
AM_MAINTAINER_MODE
6
7
AC_PROG_INTLTOOL([0.25])
8
9
dnl Locate required programs
10
AC_PATH_PROG(GCONFTOOL, gconftool-2)
11
AM_GCONF_SOURCE_2
12
13
AC_PATH_PROG(MONO, mono)
14
if test "x$MONO" = "x" ; then
1.1.1 by Barry deFreese
Import upstream version 1.8.2
15
  AC_MSG_ERROR([Can't find "mono" in your PATH])
1 by Johan Svedberg
Import upstream version 1.4.1
16
fi
1.1.1 by Barry deFreese
Import upstream version 1.8.2
17
1 by Johan Svedberg
Import upstream version 1.4.1
18
AC_PATH_PROG(MCS, mcs)
1.2.1 by Carlos Martín Nieto
Import upstream version 1.8.3
19
AC_PATH_PROG(GMCS, gmcs)
20
if test "x$GMCS" != "x" ; then
21
   MCS=$GMCS
22
fi
23
1 by Johan Svedberg
Import upstream version 1.4.1
24
if test "x$MCS" = "x" ; then
1.2.1 by Carlos Martín Nieto
Import upstream version 1.8.3
25
  AC_MSG_ERROR([Can't find "mcs" or "gmcs" in your PATH])
26
fi
1.1.1 by Barry deFreese
Import upstream version 1.8.2
27
1 by Johan Svedberg
Import upstream version 1.4.1
28
AC_SUBST(PATH)
29
AC_SUBST(LD_LIBRARY_PATH)
30
31
AM_GCONF_SOURCE_2
32
33
dnl Find pkg-config
34
AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
35
if test "x$PKG_CONFIG" = "xno"; then
36
        AC_MSG_ERROR([You need to install pkg-config])
37
fi
38
39
dnl Find mono
1.2.1 by Carlos Martín Nieto
Import upstream version 1.8.3
40
MONO_REQUIRED_VERSION=1.1.17
1.1.3 by Sebastian Dröge
Import upstream version 1.8.2+cvs20060709
41
GTKSHARP_REQUIRED_VERSION=2.8.2
1.2.2 by Carlos Martín Nieto
Import upstream version 1.8.5
42
GNOMESHARP_REQUIRED_VERSION=2.16.1
1 by Johan Svedberg
Import upstream version 1.4.1
43
GCONF_REQUIRED_VERSION=2.4
1.2.3 by Carlos Martín Nieto
Import upstream version 1.8.6
44
WEBKITSHARP_REQUIRED_VERSION=0.2
1 by Johan Svedberg
Import upstream version 1.4.1
45
46
PKG_CHECK_MODULES(BLAM,
1.1.3 by Sebastian Dröge
Import upstream version 1.8.2+cvs20060709
47
		  gtk-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION
1.2.3 by Carlos Martín Nieto
Import upstream version 1.8.6
48
			webkit-sharp-1.0 >= $WEBKITSHARP_REQUIRED_VERSION
1.1.3 by Sebastian Dröge
Import upstream version 1.8.2+cvs20060709
49
		  gconf-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION
1.2.2 by Carlos Martín Nieto
Import upstream version 1.8.5
50
		  glade-sharp-2.0 >= $GTKSHARP_REQUIRED_VERSION
51
		  gnome-sharp-2.0 >= $GNOMESHARP_REQUIRED_VERSION)
1 by Johan Svedberg
Import upstream version 1.4.1
52
53
AC_SUBST(BLAM_LIBS)
54
1.1.2 by Sebastian Dröge
Import upstream version 1.8.2+cvs20060124
55
#
1.2.6 by Carlos Martín Nieto
Import upstream version 1.8.9
56
# Use DBus# to export our remote control if available and the user wants it
1.1.2 by Sebastian Dröge
Import upstream version 1.8.2+cvs20060124
57
#
1.2.6 by Carlos Martín Nieto
Import upstream version 1.8.9
58
AC_ARG_WITH([dbus],
59
	AC_HELP_STRING([--with-dbus], [Support D-Bus @<:@default=auto:>@]),
60
	[],
61
	with_dbus=auto
62
)
63
# In auto mode, prefer dbus-sharp
64
PKG_CHECK_EXISTS([dbus-sharp-1.0], DBUS_SHARP_SUPPORT=yes, DBUS_SHARP_SUPPORT=no)
65
PKG_CHECK_EXISTS([ndesk-dbus-1.0], NDESK_DBUS_SUPPORT=yes, NDESK_DBUS_SUPPORT=no)
66
if test "x$with_dbus" = "xauto"; then
67
   if test "$DBUS_SHARP_SUPPORT" = "xyes"; then
68
      ENABLE_DBUS=$DBUS_SHARP_SUPPORT
69
   else
70
      ENABLE_DBUS=$NDESK_DBUS_SUPPORT
71
   fi
72
fi
73
# If we found a package or the user told us
74
if test "x$with_dbus" = "xyes"; then
75
   if test "x$DBUS_SHARP_SUPPORT" = "xyes"; then
76
      PKG_CHECK_MODULES(DBUS_SHARP, dbus-sharp-glib-1.0, ENABLE_NDESK_DBUS="yes", ENABLE_NDESK_DBUS="no")
77
      AC_SUBST(DBUS_LIBS, "$DBUS_SHARP_LIBS")
78
   else
79
      PKG_CHECK_MODULES(DBUS_NDESK, ndesk-dbus-glib-1.0, ENABLE_DBUS_SHARP="yes", ENABLE_DBUS_SHARP="no")
80
      AC_SUBST(DBUS_LIBS, "$DBUS_NDESK_LIBS")
81
   fi
82
fi
83
# Tell the code what we're using
84
AM_CONDITIONAL(NDESK_DBUS, test "x$ENABLE_NDESK_DBUS" = "xyes")
85
AM_CONDITIONAL(DBUS_SHARP, test "x$ENABLE_DBUS_SHARP" = "xyes")
1.1.2 by Sebastian Dröge
Import upstream version 1.8.2+cvs20060124
86
1.2.5 by Carlos Martín Nieto
Import upstream version 1.8.8
87
#
88
# Use libnotify is available
89
#
90
PKG_CHECK_MODULES(NOTIFY, notify-sharp, ENABLE_NOTIFY="yes", ENABLE_NOTIFY="no")
91
AM_CONDITIONAL(ENABLE_NOTIFY, test "$ENABLE_NOTIFY" = "yes")
92
AC_SUBST(NOTIFY_LIBS)
93
1.1.2 by Sebastian Dröge
Import upstream version 1.8.2+cvs20060124
94
1 by Johan Svedberg
Import upstream version 1.4.1
95
dnl Intl
1.2.5 by Carlos Martín Nieto
Import upstream version 1.8.8
96
ALL_LINGUAS="ar bg bs ca cs da de dz el en_CA en_GB es et eu fi fr ga gl gu he hr hu it lt lv ja nb ne nl oc pa pl pt_BR pt ru rw sk sl sq sr@Latn sr sv tr uk vi zh_CN zh_HK zh_TW"
1 by Johan Svedberg
Import upstream version 1.4.1
97
GETTEXT_PACKAGE=blam
98
AC_SUBST(GETTEXT_PACKAGE)
99
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package])
100
AM_GLIB_GNU_GETTEXT
101
1.1.1 by Barry deFreese
Import upstream version 1.8.2
102
CPPFLAGS=${_cppflags}
103
LDFLAGS=${_ldflags}
1 by Johan Svedberg
Import upstream version 1.4.1
104
105
AC_OUTPUT([
106
Makefile
107
icons/Makefile
1.2.2 by Carlos Martín Nieto
Import upstream version 1.8.5
108
icons/16x16/Makefile
109
icons/22x22/Makefile
110
icons/24x24/Makefile
111
icons/32x32/Makefile
112
icons/48x48/Makefile
113
icons/scalable/Makefile
1.1.1 by Barry deFreese
Import upstream version 1.8.2
114
lib/Makefile
1 by Johan Svedberg
Import upstream version 1.4.1
115
src/Makefile
116
po/Makefile.in
1.1.1 by Barry deFreese
Import upstream version 1.8.2
117
blam.desktop.in
1.1.2 by Sebastian Dröge
Import upstream version 1.8.2+cvs20060124
118
themes/Makefile
119
themes/akregator/Makefile
120
themes/blam/Makefile
121
themes/pimped/Makefile
122
themes/planet/Makefile
1 by Johan Svedberg
Import upstream version 1.4.1
123
])
124
125
echo
1.1.1 by Barry deFreese
Import upstream version 1.8.2
126
echo "Installing in prefix: $prefix"
127
echo 
1.2.2 by Carlos Martín Nieto
Import upstream version 1.8.5
128
echo "Enable D-Bus: $ENABLE_DBUS"
1.2.5 by Carlos Martín Nieto
Import upstream version 1.8.8
129
echo "Enable notifications: $ENABLE_NOTIFY"
1 by Johan Svedberg
Import upstream version 1.4.1
130
echo