-
Notifications
You must be signed in to change notification settings - Fork 54
/
configure.ac
71 lines (59 loc) · 1.99 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
AC_INIT([jhbuild],
[3.38.1],
[https://gitlab.gnome.org/GNOME/jhbuild/-/issues/],
[jhbuild])
AC_CONFIG_SRCDIR(jhbuild/main.py)
AC_PREFIX_DEFAULT([~/.local/])
AC_CONFIG_MACRO_DIR([m4])
AC_CONFIG_AUX_DIR([build-aux])
AM_INIT_AUTOMAKE([1.11 -Wno-portability foreign no-define tar-ustar no-dist-gzip dist-xz])
AM_MAINTAINER_MODE([enable])
# Check for programs
AC_PROG_CC
# Option to specify python interpreter to use; this just sets $PYTHON, so that
# we will fall back to reading $PYTHON if --with-python is not given
AC_ARG_WITH(python,
AS_HELP_STRING([--with-python=PATH],[Path to Python interpreter; searches $PATH if only a program name is given; if not given, searches for a few standard names such as "python3"]),
[PYTHON="$withval"], [])
if test x"$PYTHON" = xyes; then
AC_MSG_ERROR([--with-python option requires a path or program argument])
fi
if test -n "$PYTHON" && ! command -v "$PYTHON" > /dev/null; then
AC_MSG_ERROR([Python interpreter $PYTHON does not exist])
fi
m4_define(python3_min_ver, 3.7)
AM_PATH_PYTHON([python3_min_ver])
AC_SUBST([PYTHON_BASENAME], [$(basename "$PYTHON")])
PKG_PROG_PKG_CONFIG
# i18n
AM_GNU_GETTEXT([external])
# FIXME: Remove AM_GNU_GETTEXT_VERSION once autoreconf supports REQUIRE_VERSION
AM_GNU_GETTEXT_VERSION([0.19.6])
AM_GNU_GETTEXT_REQUIRE_VERSION([0.19.6])
GETTEXT_PACKAGE=AC_PACKAGE_TARNAME
AC_SUBST([GETTEXT_PACKAGE])
AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], "$GETTEXT_PACKAGE", [Gettext package])
# GUI
AC_ARG_ENABLE(
gui,
AS_HELP_STRING([--enable-gui=@<:@no/yes@:>@], [install the graphical user interface (default: no)]),
[enable_gui=$enableval],
[enable_gui=no])
AM_CONDITIONAL([GUI_ENABLED],[test "x$enable_gui" == "xyes"])
YELP_HELP_INIT
AC_CONFIG_FILES([
Makefile
doc/Makefile
po/Makefile.in
examples/Makefile
scripts/Makefile
triggers/Makefile
jhbuild.desktop.in
jhbuild/Makefile
jhbuild/commands/Makefile
jhbuild/frontends/Makefile
jhbuild/modtypes/Makefile
jhbuild/utils/Makefile
jhbuild/versioncontrol/Makefile
])
AC_OUTPUT