~rmcbride/ubuntu/lucid/ubuntuone-client/fixucg

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
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.53)

AC_INIT([ubuntuone-client], [0.93.0])
AC_CONFIG_SRCDIR([config.h.in])

AM_INIT_AUTOMAKE([1.10 foreign])
AM_CONFIG_HEADER([config.h])

AC_ISC_POSIX
AC_PROG_CC
AC_PROG_LIBTOOL
PKG_PROG_PKG_CONFIG([0.19])
IT_PROG_INTLTOOL([0.40.0])

GETTEXT_PACKAGE="${PACKAGE}"
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE",
	[translation domain of this package])
AC_SUBST(GETTEXT_PACKAGE)
localedir='$(prefix)/$(DATADIRNAME)/locale'
AC_SUBST(localedir)

# Workaround to make aclocal get the right flags
AC_CONFIG_MACRO_DIR([m4])
AC_SUBST(ACLOCAL_AMFLAGS, "\${ACLOCAL_FLAGS} -I m4")

# Need lndir for builddir != srcdir builds, because Python is not sane
AC_PATH_PROG([LNDIR], [lndir], [false])

# Icon sizes we want to install
AC_SUBST([render_sizes], ["16x16 24x24 32x32 48x48"])

# Do we want to enable rendering?
AC_ARG_ENABLE([rendering],
	AC_HELP_STRING([--enable-rendering],
			[Enable icon rendering [default=auto]]),
	[enable_rendering=$enableval],
	[enable_rendering=yes])

if test "x$enable_rendering" = "xyes"; then
   AC_PATH_PROG([ICONTOOL_RENDER], [icontool-render], [false])
   if test "x$ICONTOOL_RENDER" = "xfalse"; then
      AC_MSG_WARN([icontool is required to generate icons])
      enable_rendering=no
   fi
fi
AM_CONDITIONAL(ENABLE_RENDERING, test "x$enable_rendering" = "xyes")

# Check for python 2.5
AM_PATH_PYTHON([2.5])

# We need to do some magic for the Python path handling
AC_MSG_CHECKING([for pycentral])
AC_ARG_ENABLE([pycentral],
	AC_HELP_STRING([--enable-pycentral],
			[Enable usage of pycentral [default=disabled]]),
	[enable_pycentral=$enableval],
	[enable_pycentral=no])
if test "x$enable_pycentral" = "xyes"; then
   pythondir="\${datadir}/pyshared"
   AC_SUBST(pythondir)
   AC_MSG_RESULT([yes])
else
   AC_MSG_RESULT([no])
fi

# Specify the path for ubuntuone-storage-protocol source
AC_MSG_CHECKING([for ubuntuone-storage-protocol])
AC_ARG_WITH([protocol],
	AC_HELP_STRING([--with-protocol],
			[Specify path to storage protocol [default=auto]]),
	[with_protocol=$withval],
	[with_protocol=auto])
USP_PATH=""
if test "x$with_protocol" = "xauto"; then
   USP_PATH="${pythondir}"
else
   USP_PATH="$with_protocol"
fi
if test -z "$USP_PATH"; then
   AC_MSG_RESULT([none])
   AC_MSG_ERROR([ubuntuone-storage-protocol is required by ubuntuone-client])
else
   ending=`basename $USP_PATH`
   if test "x$ending" != "xstorageprotocol"; then
      USP_PATH="$USP_PATH/ubuntuone/storageprotocol"
   fi
   AC_MSG_RESULT([$USP_PATH])
fi
AC_SUBST(USP_PATH)

# Stuff we need to build the extension shlib
PKG_CHECK_MODULES(NAUTILUS, [libnautilus-extension >= 2.6.0])
AC_SUBST(NAUTILUS_CFLAGS)
AC_SUBST(NAUTILUS_LIBS)

PKG_CHECK_MODULES(DBUS, [dbus-glib-1 >= 0.70])
AC_SUBST(DBUS_CFLAGS)
AC_SUBST(DBUS_LIBS)

dnl ---------------------------------------------------------------------------
dnl - Are we specifying a different dbus root ?
dnl ---------------------------------------------------------------------------
AC_ARG_WITH(dbus-services,
              [AC_HELP_STRING([--with-dbus-services=<dir>],
              [where D-BUS services directory is])])
if ! test -z "$with_dbus_services" ; then
	DBUS_SERVICES_DIR="$with_dbus_services"
else
	# D-BUS 0.23 and higher use $prefix/share/dbus-1/services
	DBUS_SERVICES_DIR="\${datadir}/dbus-1/services"
fi
AC_SUBST(DBUS_SERVICES_DIR)

AC_CONFIG_FILES([
Makefile
data/Makefile
nautilus/Makefile
po/Makefile.in
])

AC_OUTPUT