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
|
#AC_PREREQ([2.65])
AC_INIT(transmission-remote-gtk, 0.1.1, alan@eth0.org.uk)
AM_INIT_AUTOMAKE(transmission-remote-gtk, 0.1.1)
AC_OUTPUT(Makefile src/Makefile)
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_HEADERS([config.h])
AC_PROG_CC
AC_CHECK_HEADERS([stdlib.h string.h])
AC_TYPE_SIZE_T
AM_GCONF_SOURCE_2
PKG_CHECK_MODULES([jsonglib], [json-glib-1.0])
PKG_CHECK_MODULES([gthread], [gthread-2.0])
PKG_CHECK_MODULES([gconf], [gconf-2.0])
PKG_CHECK_MODULES([gtk], [gtk+-2.0])
PKG_CHECK_MODULES([gio], [gio-2.0])
PKG_CHECK_MODULES([unique], [unique-1.0])
PKG_CHECK_MODULES([notify], [libnotify])
LIBCURL_CHECK_CONFIG([yes], [7.0], [], [AC_MSG_ERROR(["libcurl not found"])])
AC_ARG_WITH([libgeoip], AC_HELP_STRING([--without-libgeoip], [disable GeoIP support]))
have_libgeoip=no
if test x$with_libgeoip != xno; then
AC_CHECK_HEADER([GeoIP.h],[have_geoip=yes],[have_geoip=no])
fi
if test "x$have_geoip" = "xyes"; then
AC_DEFINE(HAVE_GEOIP, 1, [GeoIP Support.])
GEOIP_LIBS="-lGeoIP"
AC_SUBST([GEOIP_LIBS])
fi
AM_CONDITIONAL([HAVE_GEOIP], [test "x$have_geoip" = "xyes"])
AC_ARG_ENABLE(debug, [AS_HELP_STRING(--enable-debug,
[enable debugging])])
if test x$enable_debug = xyes; then
AC_DEFINE([DEBUG], [], [enable debugging])
fi
AC_OUTPUT
|