]> git.ipfire.org Git - pbs.git/blobdiff - configure.ac
uploads: Rewrite the whole thing
[pbs.git] / configure.ac
index 5ec894f12557feaa9d5c7182c6236f2fb15f371a..edeb78282f09055f91fe695e0ba448c98ca2563c 100644 (file)
@@ -44,6 +44,8 @@ AM_SILENT_RULES([yes])
 
 IT_PROG_INTLTOOL([0.40.0])
 
+XGETTEXT="${XGETTEXT} --keyword=_:1,2 --keyword=N_:1,2 --no-location"
+
 GETTEXT_PACKAGE=pakfire-build-service
 AC_SUBST(GETTEXT_PACKAGE)
 
@@ -54,6 +56,24 @@ AC_PROG_SED
 # Python
 AM_PATH_PYTHON([3.9])
 
+# pygmentize (from pygments)
+AC_CHECK_PROG(PYGMENTIZE, [pygmentize], [pygmentize])
+if test -z "${PYGMENTIZE}"; then
+       AC_MSG_ERROR([pygmentize is required])
+fi
+
+# SASSC
+AC_CHECK_PROG(SASSC, [sassc], [sassc])
+if test -z "${SASSC}"; then
+       AC_MSG_ERROR([sassc is required])
+fi
+
+# uglifyjs
+AC_CHECK_PROG(UGLIFYJS, [uglifyjs], [uglifyjs])
+if test -z "${UGLIFYJS}"; then
+       AC_MSG_ERROR([uglifyjs is required])
+fi
+
 save_LIBS="$LIBS"
 
 # pkg-config
@@ -63,6 +83,17 @@ m4_pattern_forbid([^_?PKG_[A-Z_]+$],[*** pkg.m4 missing, please install pkg-conf
 
 # ------------------------------------------------------------------------------
 
+AX_PYTHON_MODULE([boto3], [fatal])
+AX_PYTHON_MODULE([kerberos], [fatal])
+AX_PYTHON_MODULE([location], [fatal])
+AX_PYTHON_MODULE([markdown], [fatal])
+AX_PYTHON_MODULE([psycopg], [fatal])
+AX_PYTHON_MODULE([psycopg_pool], [fatal])
+AX_PYTHON_MODULE([pygments], [fatal])
+AX_PYTHON_MODULE([systemd.journal], [fatal])
+
+# ------------------------------------------------------------------------------
+
 AC_ARG_WITH([systemd],
        AS_HELP_STRING([--with-systemd], [Enable systemd support.])
 )