File: configure.ac

package info (click to toggle)
timer-applet 1.3.1-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,236 kB
  • ctags: 345
  • sloc: ansic: 3,781; sh: 869; xml: 301; makefile: 143
file content (66 lines) | stat: -rw-r--r-- 1,710 bytes parent folder | download
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
# == Initialization ==
AC_INIT([Timer Applet], [1.3.1], [crispyleaves@gmail.com], [timer-applet])

AC_CONFIG_SRCDIR([src/main.c])
AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE
AM_MAINTAINER_MODE

# == Basic Compiler Settings ==
AC_PROG_CC
AC_HEADER_STDC
AC_PROG_RANLIB

# == Check for ScrollKeeper ==
AC_PATH_PROG(SCROLLKEEPER_CONFIG, scrollkeeper-config, [no])
if test x$SCROLLKEEPER_CONFIG = xno; then
	AC_MSG_ERROR([Couldn't find scrollkeeper-config in your PATH. Please install ScrollKeeper.])
fi

# == GConf ==
AC_PATH_PROG(GCONFTOOL, gconftool-2, [no])
if test x$GCONFTOOL = xno; then
  AC_MSG_ERROR([Couldn't find gconftool-2 in your PATH. Please install GConf.])
fi

AM_GCONF_SOURCE_2

# == Localization ==
GETTEXT_PACKAGE=timer-applet
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext Package])
AC_SUBST(GETTEXT_PACKAGE)
ALL_LINGUAS="de eo es eu fi fr it ko pl sv tr"
AM_GLIB_GNU_GETTEXT
AC_PROG_INTLTOOL

# == Required Modules ==
GNOME_MODULES="gtk+-2.0 >= 2.6.0 gnome-vfs-2.0 >= 2.0.0 libgnomeui-2.0 >= 2.0.0 libpanelapplet-2.0 >= 2.0.0"
PKG_CHECK_MODULES([GNOME], $GNOME_MODULES)

# == libnotify ==
PKG_CHECK_MODULES([LIBNOTIFY], [libnotify >= 0.3.0], [enable_notify=yes], [enable_notify=no])
if test "x$enable_notify" = "xyes"; then
   AC_DEFINE([HAVE_LIBNOTIFY], [1], [Enable notifications with libnotify])
else
   AC_MSG_WARN([*** libnotify was not found. Notifications disabled. ***])
fi


# == Export compiler/linker options ==
AC_SUBST(CFLAGS)
AC_SUBST(CPPFLAGS)
AC_SUBST(LDFLAGS)

# == Generate files ==
AC_CONFIG_FILES([
Makefile
help/Makefile
help/C/Makefile
help/fr/Makefile
src/Makefile
src/gloo/Makefile
src/gloo/tests/Makefile
pixmaps/Makefile
po/Makefile.in
])
AC_OUTPUT