* comparing version strings in configure/make
[not found] ` <20210411184854.3C9A320AE6@vcs0.savannah.gnu.org>
@ 2021-04-12 15:27 ` Glenn Morris
0 siblings, 0 replies; only message in thread
From: Glenn Morris @ 2021-04-12 15:27 UTC (permalink / raw)
To: emacs-devel; +Cc: Philipp Stephani
I saw 9a57897e and wondered if there was a standard way to compare versions
in make/configure. Apparently there is
https://www.gnu.org/software/autoconf-archive/ax_compare_version.html
I don't know if it is worth adding that to Emacs's m4/ directory?
Although if doing this kind of thing in autoconf, using a case
statement, as done in Emacs's configure.ac for eg GNU make and makeinfo,
usually works fine.
> branch: master
> commit 9a57897ea1a125782ff332814d3f978c38162cf8
> Don't attempt to generate Seccomp filter file in Linux < 4.14.
> --- a/lib-src/Makefile.in
> +++ b/lib-src/Makefile.in
> @@ -196,9 +196,15 @@ LIBSECCOMP_CFLAGS=@LIBSECCOMP_CFLAGS@
> # Currently, we can only generate seccomp filter files for x86-64.
> ifeq ($(HAVE_LIBSECCOMP),yes)
> ifeq ($(shell uname -m),x86_64)
> +# We require SECCOMP_RET_KILL_PROCESS, which is only available in
> +# Linux 4.14 and later.
> +ifeq ($(shell { echo 4.14; uname -r | cut -d . -f 1-2; } | \
> + sort -C -t . -n -k 1,1 -k 2,2 && \
> + echo 1),1)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-12 15:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20210411184852.32489.64394@vcs0.savannah.gnu.org>
[not found] ` <20210411184854.3C9A320AE6@vcs0.savannah.gnu.org>
2021-04-12 15:27 ` comparing version strings in configure/make Glenn Morris
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.