~ubuntu-branches/ubuntu/precise/p11-kit/precise

« back to all changes in this revision

Viewing changes to configure.ac

  • Committer: Package Import Robot
  • Author(s): Andreas Metzler
  • Date: 2011-12-23 08:40:38 UTC
  • mfrom: (1.1.5) (3.1.10 sid)
  • Revision ID: package-import@ubuntu.com-20111223084038-44d6dm73f1yiw856
Tags: 0.9-3
* Brown paper bag release.
* Revert module-path change, gnome-keyring *has* switched.
  Closes: #653033, #653034

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
AC_PREREQ(2.65)
 
1
AC_PREREQ(2.61)
2
2
 
3
3
AC_INIT([p11-kit],
4
 
        [0.8],
 
4
        [0.9],
5
5
        [https://bugs.freedesktop.org/enter_bug.cgi?product=p11-glue],
6
6
        [p11-kit],
7
7
        [http://p11-glue.freedesktop.org/p11-kit.html])
21
21
 
22
22
AC_CONFIG_HEADERS([config.h])
23
23
AC_CONFIG_MACRO_DIR([m4])
24
 
AM_INIT_AUTOMAKE([1.11])
 
24
AM_INIT_AUTOMAKE([1.10])
25
25
AM_SANITY_CHECK
26
26
AM_MAINTAINER_MODE([enable])
27
27
m4_ifdef([AM_SILENT_RULES],[AM_SILENT_RULES([yes])],)
35
35
LINGUAS=""
36
36
AM_GNU_GETTEXT([external], [need-ngettext])
37
37
 
38
 
GTK_DOC_CHECK([1.15])
 
38
if test "$enable_static" = "yes"; then
 
39
        AC_MSG_ERROR([p11-kit cannot be used as a static library])
 
40
fi
39
41
 
40
42
AC_MSG_CHECKING([for win32])
41
43
case "$host" in
96
98
AC_SUBST(p11_module_path)
97
99
 
98
100
# --------------------------------------------------------------------
 
101
# GTK Doc
 
102
 
 
103
dnl check for tools
 
104
AC_PATH_PROG([GTKDOC_CHECK],[gtkdoc-check])
 
105
AC_PATH_PROGS([GTKDOC_REBASE],[gtkdoc-rebase],[true])
 
106
AC_PATH_PROG([GTKDOC_MKPDF],[gtkdoc-mkpdf])
 
107
AC_PATH_PROG([GTKDOC_SCAN],[gtkdoc-scan])
 
108
 
 
109
dnl for overriding the documentation installation directory
 
110
AC_ARG_WITH([html-dir],
 
111
        AS_HELP_STRING([--with-html-dir=PATH], [path to installed docs]),,
 
112
                       [with_html_dir='${datadir}/gtk-doc/html'])
 
113
HTML_DIR="$with_html_dir"
 
114
AC_SUBST([HTML_DIR])
 
115
 
 
116
dnl enable/disable documentation building
 
117
AC_ARG_ENABLE([gtk-doc],
 
118
        AS_HELP_STRING([--enable-gtk-doc],
 
119
                       [use gtk-doc to build documentation [[default=no]]]),,
 
120
              [enable_gtk_doc=no])
 
121
 
 
122
if test x$enable_gtk_doc = xyes; then
 
123
        if test -z "$GTKDOC_SCAN"; then
 
124
                AC_MSG_ERROR([gtk-doc not installed and --enable-gtk-doc requested])
 
125
        fi
 
126
fi
 
127
 
 
128
AC_MSG_CHECKING([whether to build gtk-doc documentation])
 
129
AC_MSG_RESULT($enable_gtk_doc)
 
130
 
 
131
dnl enable/disable output formats
 
132
AC_ARG_ENABLE([gtk-doc-html],
 
133
        AS_HELP_STRING([--enable-gtk-doc-html],
 
134
                       [build documentation in html format [[default=yes]]]),,
 
135
                  [enable_gtk_doc_html=yes])
 
136
AC_ARG_ENABLE([gtk-doc-pdf],
 
137
        AS_HELP_STRING([--enable-gtk-doc-pdf],
 
138
                       [build documentation in pdf format [[default=no]]]),,
 
139
              [enable_gtk_doc_pdf=no])
 
140
 
 
141
if test -z "$GTKDOC_MKPDF"; then
 
142
        enable_gtk_doc_pdf=no
 
143
fi
 
144
 
 
145
AM_CONDITIONAL(ENABLE_GTK_DOC, [test x$enable_gtk_doc = xyes])
 
146
AM_CONDITIONAL(GTK_DOC_BUILD_HTML, [test x$enable_gtk_doc_html = xyes])
 
147
AM_CONDITIONAL(GTK_DOC_BUILD_PDF, [test x$enable_gtk_doc_pdf = xyes])
 
148
AM_CONDITIONAL(GTK_DOC_USE_LIBTOOL, [test -n "$LIBTOOL"])
 
149
AM_CONDITIONAL(GTK_DOC_USE_REBASE, [test -n "$GTKDOC_REBASE"])
 
150
 
 
151
# --------------------------------------------------------------------
99
152
# Compilation and linking options
100
153
 
101
154
AC_MSG_CHECKING([for debug mode])