-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathconfigure.ac
64 lines (55 loc) · 2.02 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
AC_INIT(djehuty, 25.2-dev)
AM_INIT_AUTOMAKE([foreign tar-ustar])
AM_PATH_PYTHON([3.9])
AC_CONFIG_FILES([
guix.scm
Makefile
src/Makefile
pyproject.toml
rpmbuild/SPECS/djehuty.spec
])
dnl Check for presence of 'pdflatex', 'bibtex', and 'htlatex'.
dnl ---------------------------------------------------------------------------
AC_CHECK_PROG(PDFLATEX, pdflatex, pdflatex)
AC_CHECK_PROG(BIBTEX, bibtex, bibtex)
AC_CHECK_PROG(HTLATEX, htlatex, htlatex)
if test "x$BIBTEX" = "x"; then
AC_MSG_WARN([Unable to create the user manual.])
else
if test "x$PDFLATEX" = "x"; then
AC_MSG_WARN([Unable to create PDF version of the user manual.])
fi
if test "x$HTLATEX" = "x"; then
dnl Do a single-shot guess to find htlatex on a mingw64/msys2 install.
AC_CHECK_FILE("/mingw64/bin/htlatex.bat", [AC_SUBST(HTLATEX, htlatex.bat)])
if test "x$HTLATEX" = "x"; then
AC_MSG_WARN([Unable to create HTML version of the user manual.])
fi
fi
fi
AM_CONDITIONAL([HAVE_PDFLATEX], [test -n "$PDFLATEX"])
AM_CONDITIONAL([HAVE_HTLATEX], [test -n "$HTLATEX"])
AM_CONDITIONAL([HAVE_BIBTEX], [test -n "$BIBTEX"])
AM_COND_IF([HAVE_PDFLATEX],
[AC_CONFIG_FILES([
doc/Makefile
doc/djehuty.sty])])
dnl Check for the Python 'build' module.
dnl ---------------------------------------------------------------------------
if test "x$PYTHON" != "x"; then
$PYTHON -m build --version > /dev/null 2> /dev/null
if test $? -ne 0; then
AC_MSG_WARN([Unable to build tarballs due to missing Python 'build' module.])
fi
fi
dnl Package-specific configurable options
dnl ---------------------------------------------------------------------------
AC_ARG_VAR(BASE_URL, [The URL on which the instance will run. This is only
used to align the documentation.])
dnl Default value for BASE_URL
: "${BASE_URL=https://data.4tu.nl}"
dnl Check for presence of 'git'.
dnl ---------------------------------------------------------------------------
AC_CHECK_PROG(GIT, git, git)
AC_PROG_SED
AC_OUTPUT