~ubuntu-core-dev/update-notifier/ubuntu

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Balint Reczey
  • Date: 2020-06-11 18:46:02 UTC
  • Revision ID: balint.reczey@canonical.com-20200611184602-2rv1zan3xu723x2u
Moved to git at https://git.launchpad.net/update-notifier

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
dnl Process this file with autoconf to produce a configure script.
2
 
 
3
 
AC_INIT(src/update-notifier.c)
4
 
AM_INIT_AUTOMAKE(update-notifier, 0.41.5)
5
 
AM_CONFIG_HEADER(config.h)
6
 
AM_MAINTAINER_MODE
7
 
 
8
 
AC_ISC_POSIX
9
 
AC_PROG_CC
10
 
AM_PROG_CC_STDC
11
 
AC_HEADER_STDC
12
 
 
13
 
GNOME_COMMON_INIT
14
 
GLIB_GSETTINGS
15
 
 
16
 
pkg_modules="glib-2.0 >= 2.34 gtk+-3.0 libnotify gio-2.0 >= 2.26 x11 json-glib-1.0"
17
 
 
18
 
PKG_CHECK_EXISTS(gudev-1.0, [ HAVE_GUDEV=1 ])
19
 
if test "x$HAVE_GUDEV" != "x"; then
20
 
    pkg_modules="$pkg_modules gudev-1.0"
21
 
    AC_DEFINE(HAVE_GUDEV, 1, [Use gudev-1.0])
22
 
else
23
 
    AC_WARN(No gudev-1.0, disable uevent handling)
24
 
fi
25
 
 
26
 
 
27
 
PKG_CHECK_MODULES(PACKAGE, [$pkg_modules])
28
 
 
29
 
GETTEXT_PACKAGE=update-notifier
30
 
AC_SUBST(GETTEXT_PACKAGE)
31
 
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package.])
32
 
AC_PROG_INTLTOOL([0.23])
33
 
 
34
 
dnl Add the languages which your application supports here.
35
 
ALL_LINGUAS=`(cd "$srcdir/po" && ls *.po) | sed 's/\.po$//' | tr '\n' ' '`
36
 
 
37
 
AM_GLIB_GNU_GETTEXT
38
 
 
39
 
dnl AC_ARG_WITH(pkg-manager, [ --with-pkg-manager=PATH Package manager to use.])
40
 
dnl if test "x$with_pkg_manager" != "x"; then
41
 
dnl  AC_DEFINE_UNQUOTED(PKG_MANAGER, "$with_pkg_manager", [Package manager to use.])
42
 
dnl fi
43
 
 
44
 
dnl The following piece will be enabled when we release update-manager
45
 
dnl --------------
46
 
dnl AC_PATH_PROG(UPDATE_MANAGER, update-manager, no)
47
 
dnl if test "x$UPDATE_MANAGER" = "xno"; then
48
 
dnl   AC_MSG_ERROR(Couldn't find update-manager. Please install the update-manager package.)
49
 
dnl fi
50
 
dnl --------------
51
 
 
52
 
AC_ARG_ENABLE([system-config-printer],
53
 
        AS_HELP_STRING([--enable-system-config-printer], [enable on-demand launching of system-config-printer]),
54
 
        [], [enable_debug=no])
55
 
if test "x$enable_system_config_printer" = "xyes"; then
56
 
        AC_DEFINE(ENABLE_SCP, [1], [On-demand launching of system-config-printer.])
57
 
fi
58
 
 
59
 
AC_ARG_ENABLE([deprecations],
60
 
  [AS_HELP_STRING([--enable-deprecations],
61
 
    [allow deprecated API usage @<:@default=yes@:>@])],
62
 
  [],
63
 
  [enable_deprecations=yes])
64
 
AS_IF([test "x$enable_deprecations" = xno],
65
 
  [CFLAGS="-DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED -DGSEAL_ENABLE"]
66
 
)
67
 
 
68
 
APPINDICATOR_REQUIRED=0.0.7
69
 
AC_ARG_ENABLE(appindicator,
70
 
                        AS_HELP_STRING([--enable-appindicator[=@<:@no/auto/yes@:>@]],[Build support for application indicators ]),
71
 
                        [enable_appindicator=$enableval],
72
 
                        [enable_appindicator="auto"])
73
 
 
74
 
if test x$enable_appindicator = xauto ; then
75
 
        PKG_CHECK_EXISTS([appindicator3-0.1 >= $APPINDICATOR_REQUIRED],
76
 
                         enable_appindicator="yes",
77
 
                         enable_appindicator="no")
78
 
fi
79
 
 
80
 
if test x$enable_appindicator = xyes ; then
81
 
        PKG_CHECK_EXISTS([appindicator3-0.1 >= $APPINDICATOR_REQUIRED],,
82
 
                         AC_MSG_ERROR([appindicator3-0.1 is not installed]))
83
 
        PKG_CHECK_MODULES(APP_INDICATOR,
84
 
                        appindicator3-0.1 >= $APPINDICATOR_REQUIRED)
85
 
        AC_SUBST(APP_INDICATOR_CFLAGS)
86
 
        AC_SUBST(APP_INDICATOR_LIBS)
87
 
        AC_DEFINE(HAVE_APP_INDICATOR, 1, [Have AppIndicator])
88
 
fi
89
 
AM_CONDITIONAL(HAVE_APP_INDICATOR, test x"$enable_appindicator" = xyes)
90
 
 
91
 
 
92
 
 
93
 
AC_OUTPUT([
94
 
Makefile
95
 
src/Makefile
96
 
data/Makefile
97
 
ui/Makefile
98
 
pixmaps/Makefile
99
 
pixmaps/16x16/Makefile
100
 
pixmaps/22x22/Makefile
101
 
pixmaps/24x24/Makefile
102
 
pixmaps/48x48/Makefile
103
 
pixmaps/scalable/Makefile
104
 
po/Makefile.in
105
 
])
106
 
 
107