~ubuntu-branches/debian/sid/apt-dater/sid

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2015-01-19 19:14:15 UTC
  • mfrom: (1.2.4)
  • Revision ID: package-import@ubuntu.com-20150119191415-o5emoeio9lknv8h8
Tags: 1.0.1+git20150119-1
* New upstream git snapshot.
  - Fixes FTBFS with ld -b.
    Closes: #767594

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
PACKAGE=apt-dater
5
5
 
6
6
AC_PREREQ(2.61)
7
 
AC_INIT(apt-dater, 1.0.1, apt-dater@ibh.de)
 
7
AC_INIT(apt-dater, 1.0.2, apt-dater@ibh.de)
8
8
 
9
9
# Environment
10
10
AC_CANONICAL_HOST
12
12
 
13
13
AM_INIT_AUTOMAKE
14
14
 
15
 
AM_GNU_GETTEXT_VERSION(0.17)
 
15
AM_GNU_GETTEXT_VERSION([0.19.3])
16
16
 
17
17
case "${target_os}" in
18
18
darwin*)
51
51
        [  --enable-xmlreport      Include XML reports.], [enable_xmlreport="yes"],
52
52
        [enable_xmlreport="no"])
53
53
AC_MSG_RESULT($enable_xmlreport)
 
54
PKG_CHECK_MODULES(LIBXML2, "libxml-2.0", skip_xmlreport=no, skip_xmlreport=yes)
54
55
if test "$enable_xmlreport" = "yes"; then
55
 
    PKG_CHECK_MODULES(LIBXML2, "libxml-2.0", skip_xmlreport=no, skip_xmlreport=yes)
56
 
 
57
56
    if test "$skip_xmlreport" = "no"; then
58
57
        AC_DEFINE(FEAT_XMLREPORT, 1, [ Define if you want XML report support included. ])
59
58
    fi
86
85
    AC_DEFINE(FEAT_CLUSTERS, 1, [ Define if you want 'clusters' support included. ])
87
86
fi
88
87
 
89
 
PKG_CHECK_MODULES(LIBCONFIG, "libconfig")
90
 
AC_MSG_CHECKING(libconfig-dev provides config_error_*() macros)
91
 
AC_TRY_LINK([
92
 
        #include <libconfig.h>
93
 
],
94
 
[
95
 
        config_t c;
96
 
        config_error_file(&c);
97
 
        config_error_line(&c);
98
 
],
99
 
[
100
 
        AC_DEFINE(HAVE_LIBCONFIG_ERROR_MACROS, 1, [ Define if your LIBCONFIG provides the config_error_*() macros. ])
101
 
        AC_MSG_RESULT([yes])
102
 
],
103
 
[
104
 
        AC_MSG_RESULT([no])
105
 
])
106
88
AC_SUBST(VERSION)
107
89
AC_SUBST(PACKAGE)
108
90
AC_SUBST(GLIB_CFLAGS)
109
91
AC_SUBST(GLIB_LIBS)
110
92
AC_SUBST(LIBXML2_CFLAGS)
111
93
AC_SUBST(LIBXML2_LIBS)
112
 
AC_SUBST(LIBCONFIG_CFLAGS)
113
 
AC_SUBST(LIBCONFIG_LIBS)
114
94
AC_PROG_INSTALL
115
95
 
116
96
# Some additional definitions