]> git.ipfire.org Git - people/ms/bricklayer.git/blame - configure.ac
Add debug shell
[people/ms/bricklayer.git] / configure.ac
CommitLineData
e384f5e9
MT
1AC_PREREQ(2.60)
2AC_INIT([bricklayer],
3 [0.0.1],
4 [development@lists.ipfire.org],
5 [bricklayer],
6 [https://www.ipfire.org/])
7
8AC_CONFIG_AUX_DIR([build-aux])
9AM_INIT_AUTOMAKE([
10 foreign
11 1.11
12 -Wall
13 -Wno-portability
14 silent-rules
15 tar-pax
16 no-dist-gzip
17 dist-xz
18 subdir-objects
19])
20
21AC_CONFIG_MACRO_DIR([m4])
22AM_SILENT_RULES([yes])
23AC_PREFIX_DEFAULT([/usr])
24
25IT_PROG_INTLTOOL([0.40.0])
26
27# Interpret embedded Python in HTML files
28XGETTEXT="${XGETTEXT} -L Python --keyword=_:1,2 --keyword=N_:1,2 --no-location"
29
30GETTEXT_PACKAGE=${PACKAGE_TARNAME}
31AC_SUBST(GETTEXT_PACKAGE)
32
2e64de73
MT
33# pkg-config
34PKG_PROG_PKG_CONFIG
35# This makes sure pkg.m4 is available.
36m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-config])
37
e384f5e9
MT
38AC_PROG_SED
39AC_PROG_MKDIR_P
40
2e64de73
MT
41# - systemd --------------------------------------------------------------------
42
43AC_ARG_WITH([systemdsystemunitdir], AS_HELP_STRING([--with-systemdsystemunitdir=DIR],
44 [Directory for systemd service files]), [],
45 [with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)])
46AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
47AM_CONDITIONAL(HAVE_SYSTEMD, [test -n "$with_systemdsystemunitdir"])
48
e384f5e9
MT
49# - man ------------------------------------------------------------------------
50
51have_man_pages=no
52AC_ARG_ENABLE(man_pages, AS_HELP_STRING([--disable-man-pages],
53 [do not install man pages]))
54AS_IF([test "x$enable_man_pages" != xno], [have_man_pages=yes])
55AM_CONDITIONAL(ENABLE_MAN_PAGES, [test "x$have_man_pages" = "xyes"])
56
57AC_PATH_PROG([XSLTPROC], [xsltproc])
58
59AC_CHECK_PROGS(ASCIIDOC, [asciidoc])
60if test "${have_man_pages}" = "yes" && test -z "${ASCIIDOC}"; then
61 AC_MSG_ERROR([Required program 'asciidoc' not found])
62fi
63
64# - debug ----------------------------------------------------------------------
65
66AC_ARG_ENABLE([debug],
67 AS_HELP_STRING([--enable-debug], [enable debug messages @<:@default=disabled@:>@]),
68 [], [enable_debug=no])
69AS_IF([test "x$enable_debug" = "xyes"], [
70 AC_DEFINE(ENABLE_DEBUG, [1], [Debug messages.])
71])
72
73# ------------------------------------------------------------------------------
74
75# Python
76AM_PATH_PYTHON([3.7])
77PKG_CHECK_MODULES([PYTHON], [python-${PYTHON_VERSION}])
78
79AC_CONFIG_HEADERS(config.h)
80AC_CONFIG_FILES([
81 Makefile
82 po/Makefile.in
83])
84
85AC_OUTPUT
86AC_MSG_RESULT([
87 $PACKAGE $VERSION
88 =====
89
90 prefix: ${prefix}
91 sysconfdir: ${sysconfdir}
92 libdir: ${libdir}
93 includedir: ${includedir}
2e64de73 94 systemdsystemunitdir: ${systemdsystemunitdir}
e384f5e9
MT
95
96 debug: ${enable_debug}
97])