Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/ci-linux-incremental.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ on:
paths:
- '.github/workflows/ci-linux-incremental.yml'
- 'build/pkgs/**'
- 'configure.ac'
- '!build/pkgs/sage_conf/**'
- '!build/pkgs/sage_docbuild/**'
- '!build/pkgs/sage_setup/**'
Expand Down
17 changes: 17 additions & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,23 @@ AC_SUBST([SAGE_DOCS], ['${SAGE_LOCAL}'])dnl Quoted so that it is resolved at bui

#---------------------------------------------------------

# Check for systems where Meson build is recommended
AC_ARG_ENABLE([meson-check],
[AS_HELP_STRING([--disable-meson-check],
[do not fail the build if running on systems where Meson is preferred])],
[enable_meson_check=$enableval],
[enable_meson_check=yes])

if test "$enable_meson_check" != no; then
AC_MSG_CHECKING([for Arch Linux])
if grep -qi 'arch' /etc/os-release 2>/dev/null || test -f /etc/arch-release; then
AC_MSG_RESULT([yes])
AC_MSG_ERROR([Building on Arch Linux using make is not recommended. Please use Meson as described at https://doc.sagemath.org/html/en/installation/meson.html. Use --disable-meson-check to override.])
else
AC_MSG_RESULT([no])
fi
fi

AC_ARG_ENABLE([build-as-root],
[AS_HELP_STRING([--enable-build-as-root],
[allow building Sage as root (for use in containers)])],
Expand Down
Loading