~gpager/gpager/main

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
AC_INIT(gpager, 0.1.0, pr@frimouvy.org)
AC_CONFIG_SRCDIR(src)
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_MACRO_DIR([m4])

AM_INIT_AUTOMAKE
GNOME_COMMON_INIT

AM_MAINTAINER_MODE
AM_DISABLE_STATIC
AM_PROG_LIBTOOL
AC_SUBST(ACLOCAL_AMFLAGS, "$ACLOCAL_FLAGS -I m4")
AC_PROG_CC

dnl ****************************************************************************
dnl * Pkg-Config
dnl ****************************************************************************
AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no)
if test "x$HAVE_PKGCONFIG" = "xno"; then
  AC_MSG_ERROR(you need to have pkgconfig installed !)
fi

dnl ****************************************************************************
dnl * Translation & i18n
dnl ****************************************************************************
ALL_LINGUAS="fr"
GETTEXT_PACKAGE="gpager"
AC_PROG_INTLTOOL([0.33])
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [The gettext package])
AM_GLIB_GNU_GETTEXT

dnl ****************************************************************************
dnl * GConf support
dnl ****************************************************************************
AC_PATH_PROG(GCONFTOOL, gconftool-2)
AM_GCONF_SOURCE_2

dnl ****************************************************************************
dnl * XXxxx
dnl ****************************************************************************
PKG_CHECK_MODULES(GPAGER,
	gtk+-2.0				>= 2.6
	gconf-2.0				>= 2.8
	libwnck-1.0				>= 2.8
)
AC_SUBST(GPAGER_CFLAGS)
AC_SUBST(GPAGER_LIBS)


dnl ****************************************************************************
dnl * Check for evolution's libebook to build the evolution handler
dnl ****************************************************************************
dnl AC_ARG_ENABLE(evolution,
dnl 	AC_HELP_STRING([--disable-evolution], [Disable evolution's libebook support (default auto)]),
dnl 	enable_libebook=$enableval,
dnl 	enable_libebook=auto)

dnl PKG_CHECK_MODULES(EVOLUTION,
dnl 	libebook-1.2
dnl 	gtk+-2.0				>= 2.6
dnl 	pygtk-2.0				>= 2.6
dnl 	pygobject-2.0			>= 2.6,
dnl 	have_libebook_dependencies=yes,
dnl 	have_libebook_dependencies=no)

dnl if test "x$have_libebook_dependencies" = "xno"; then
dnl 	dnl error out if user has explicitly requested libebook
dnl 	if test "x$enable_libebook" = "xyes"; then
dnl 		AC_MSG_ERROR([Could not find evolution's libebook])
dnl 	fi
dnl 	enable_libebook="no (missing dependencies)"
dnl else
dnl 	if test "x$enable_libebook" != "xno"; then
dnl 		enable_libebook="yes"
dnl 	else
dnl 		enable_libebook="no (disabled)"
dnl 	fi
dnl fi
dnl AM_CONDITIONAL(ENABLE_EVOLUTION, test "x$enable_libebook" = "xyes")
dnl AC_SUBST(EVOLUTION_LIBS)
dnl AC_SUBST(EVOLUTION_CFLAGS)


dnl ****************************************************************************
dnl * --------------------------------------------------------------------------
dnl ****************************************************************************
AC_OUTPUT([
Makefile
src/Makefile
data/Makefile
po/Makefile.in
])


echo
echo $PACKAGE v$VERSION
echo

echo Prefix............... : $prefix

echo
echo "Now type make to compile"
echo "Then su to root and type: make install"
echo