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

Commit 8397c74

Browse files
author
Matthias Koeppe
committed
Include short package description in help string for configure --enable-SPKG, improve formatting
1 parent f89c506 commit 8397c74

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

bootstrap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ AC_SUBST(SAGE_ENABLE_$pkgname, [yes])"
9797
_*) ;;
9898
*) spkg_configures="$spkg_configures
9999
AC_SUBST(SAGE_ENABLE_$pkgname, [if_installed])
100-
SAGE_SPKG_ENABLE([$pkgname], [$pkgtype])" ;;
100+
SAGE_SPKG_ENABLE([$pkgname], [$pkgtype], [$(head -n1 build/pkgs/$pkgname/SPKG.rst 2>/dev/null || echo $pkgname)])" ;;
101101
esac
102102
fi
103103
done

m4/sage_spkg_configure.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ echo "Checking whether SageMath should install SPKG $1..." >& AS_MESSAGE_FD
6363
AS_BOX([Checking whether SageMath should install SPKG $1...]) >& AS_MESSAGE_LOG_FD
6464
6565
AC_ARG_WITH([system-]SPKG_NAME,
66-
AS_HELP_STRING(--with-system-SPKG_NAME={no|yes (default)|force (exit with an error if no usable version is found)},
66+
AS_HELP_STRING(--with-system-SPKG_NAME={no|yes⁽ᵈᵉᶠᵃᵘˡᵗ⁾|force (error if no usable version is found)},
6767
[detect and use an existing system SPKG_NAME]),
6868
[AS_VAR_SET(SPKG_USE_SYSTEM, [$withval])],
6969
[AS_VAR_SET(SPKG_USE_SYSTEM, [yes])]

m4/sage_spkg_enable.m4

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,22 @@
11
AC_DEFUN([SAGE_SPKG_ENABLE], [dnl
22
m4_pushdef([SPKG_NAME], [$1])dnl
33
m4_pushdef([SPKG_TYPE], [$2])dnl
4-
m4_if(SPKG_TYPE, [standard], [
4+
m4_if(SPKG_TYPE, [standard], [dnl
55
dnl standard packages; help message is deliberately very brief,
66
dnl as this is for advanced users only
77
AC_ARG_ENABLE(SPKG_NAME,
88
AS_HELP_STRING([--disable-]SPKG_NAME,
99
[disable $2 package ]SPKG_NAME),
1010
AS_VAR_SET([SAGE_ENABLE_]SPKG_NAME, [$enableval])
1111
)
12-
], [
12+
], [dnl
1313
dnl optional/experimental packages
1414
AC_ARG_ENABLE(SPKG_NAME,
15-
AS_HELP_STRING([--enable-]SPKG_NAME={no|if_installed|yes},
16-
[enable build and use of the $2 package ]SPKG_NAME[ (default: "if_installed")])
17-
AS_HELP_STRING([], [package information: ./sage -info ]SPKG_NAME)
15+
AS_HELP_STRING([--enable-]SPKG_NAME={no|if_installed⁽ᵈᵉᶠᵃᵘˡᵗ⁾|yes},
16+
[enable build and use of the SPKG_TYPE package $3], [26], [100])
17+
AS_HELP_STRING([], [package info: ./sage -info SPKG_NAME])
1818
AS_HELP_STRING([--disable-]SPKG_NAME,
19-
[disable build and uninstall if previously installed by Sage in PREFIX; same as --enable-]SPKG_NAME[=no]),
19+
[disable build and uninstall if previously installed by Sage in PREFIX; same as --enable-]SPKG_NAME[=no], [26], [100]),
2020
AS_VAR_SET([SAGE_ENABLE_]SPKG_NAME, [$enableval])
2121
)
2222
])dnl

0 commit comments

Comments
 (0)