forked from pithos/pithos
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
49 lines (40 loc) · 1.3 KB
/
configure.ac
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
AC_PREREQ(2.68)
AC_INIT([pithos], [1.2.1], [https://github.com/pithos/pithos/issues],
[pithos], [https://pithos.github.io])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([pithos/__main__.py])
AM_INIT_AUTOMAKE([1.11 dist-xz no-dist-gzip foreign subdir-objects -Wall -Wno-portability])
AM_SILENT_RULES([yes])
AM_PATH_PYTHON([3.4])
GETTEXT_PACKAGE=pithos
AC_SUBST(GETTEXT_PACKAGE)
m4_ifndef([GLIB_GSETTINGS], [AC_MSG_ERROR([gsettings.m4 not found])])
m4_ifndef([APPSTREAM_XML], [AC_MSG_ERROR([appstream-xml.m4 not found])])
IT_PROG_INTLTOOL([0.50.0])
DESKTOP_FILE
APPSTREAM_XML
GLIB_GSETTINGS
AC_PROG_SED
AC_PATH_PROG(GLIB_COMPILE_RESOURCES, glib-compile-resources)
AC_ARG_WITH(docs, AS_HELP_STRING([--with-docs], [Build documentation with Sphinx]),
[with_docs=$withval], [with_docs=no])
AS_IF([test "$with_docs" = "yes"], [
AC_PATH_PROG(SPHINX_BUILD, sphinx-build, [no])
AS_IF([test "$SPHINX_BUILD" = "no"], [
with_docs=no
])
])
AM_CONDITIONAL([WITH_DOCS], [test "$with_docs" = "yes"])
AC_PATH_PROG([HELP2MAN], [help2man], [no])
AM_CONDITIONAL([HAVE_HELP2MAN], [test "$HELP2MAN" != "no"])
AC_CONFIG_FILES([
Makefile
po/Makefile.in
])
AC_OUTPUT
echo "
$PACKAGE $VERSION
prefix: ${prefix}
documentation: ${with_docs}
"