Skip to content
This repository was archived by the owner on Feb 1, 2023. It is now read-only.

Commit 59ec460

Browse files
author
Matthias Koeppe
committed
./configure --enable-experimental-packages --enable-download-from-upstream-url
1 parent 10ed24e commit 59ec460

File tree

3 files changed

+23
-4
lines changed

3 files changed

+23
-4
lines changed

build/make/Makefile.in

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,12 @@ PCFILES = @SAGE_SYSTEM_FACADE_PC_FILES@
4141
LN = ln
4242
SED = sed
4343

44+
# We need to be able to override this to support ./sage -i -c PKG
45+
SAGE_SPKG = sage-spkg
46+
47+
# These are added to SAGE_SPKG in the call
48+
SAGE_SPKG_OPTIONS = @SAGE_SPKG_OPTIONS@
49+
4450
# Generate/install sage-specific .pc files.
4551
# see build/pkgs/gsl/spkg-configure.m4
4652
$(SAGE_PKGCONFIG)/gsl.pc:
@@ -203,7 +209,7 @@ pkg_deps = \
203209
# $(3): package dependencies
204210
define NORMAL_PACKAGE_templ
205211
$$(INST)/$(1)-$(2): $(3)
206-
+$(AM_V_at)sage-logger -p '$$(SAGE_SPKG) \
212+
+$(AM_V_at)sage-logger -p '$$(SAGE_SPKG) $$(SAGE_SPKG_OPTIONS) \
207213
$(if $(filter $(1),$(TOOLCHAIN_DEPS)),--keep-existing) \
208214
$(1)-$(2)' '$$(SAGE_LOGS)/$(1)-$(2).log'
209215

build/make/deps

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ else
1212
AM_V_at =
1313
endif
1414

15-
# We need to be able to override this to support ./sage -i -c PKG
16-
SAGE_SPKG = sage-spkg
17-
1815
# List of targets that can be run using `sage -i` or `sage -f`
1916
# These should generally have an associated -clean target for `sage -f` to
2017
# work correctly

configure.ac

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,22 @@ if test "$SAGE_INSTALL_CCACHE" = yes ; then
423423
fi
424424
AC_SUBST([SAGE_TOOLCHAIN])
425425

426+
AC_ARG_ENABLE([experimental-packages],
427+
[AS_HELP_STRING([--enable-experimental-packages],
428+
[allow installing experimental packages (default: no = ask for user confirmation for each package)])])
429+
AC_ARG_ENABLE([download-from-upstream-url],
430+
[AS_HELP_STRING([--enable-download-from-upstream-url],
431+
[allow downloading packages from their upstream URL if they cannot be found on the Sage mirrors])])
432+
433+
SAGE_SPKG_OPTIONS=""
434+
AS_IF([test "x$enable_experimental_packages" = "xyes"], [
435+
AS_VAR_APPEND([SAGE_SPKG_OPTIONS], [" -y"])
436+
])
437+
AS_IF([test "x$enable_download_from_upstream_url" = "xyes"], [
438+
AS_VAR_APPEND([SAGE_SPKG_OPTIONS], [" -o"])
439+
])
440+
AC_SUBST([SAGE_SPKG_OPTIONS])
441+
426442
SAGE_SPKG_COLLECT()
427443

428444
# We need sage-env-config to exist before running this.

0 commit comments

Comments
 (0)