bug#52436: [patch] autoconf: Check for gperf if running from git

"Dr. Arne Babenhauserheide" <[email protected]>
Newsgroups gmane.lisp.guile.bugs
Message-ID <[email protected]>
Hi,

the attached patch adds a check for gperf.


Best wishes,
Arne
-- 
Unpolitisch sein
heißt politisch sein,
ohne es zu merken.
draketo.de
0001-autoconf-Check-for-gperf-if-running-from-git.patch (text/x-patch, 851 B)
From 478eb18a38eb8d15cc96fde148842cf0329bfba5 Mon Sep 17 00:00:00 2001
From: Arne Babenhauserheide <[email protected]>
Date: Mon, 11 Oct 2021 07:33:23 +0200
Subject: [PATCH] autoconf: Check for gperf if running from git

this avoids breaking at runtime.
---
 configure.ac | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/configure.ac b/configure.ac
index bd49bf162..bd4e9fd2f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -80,6 +80,15 @@ else
   fi
 fi
 
+# Check for gperf if running from git
+AC_MSG_CHECKING([Checking for gperf if built from git])
+if ! test -f ".tarball-version" && false; then
+  AC_CHECK_TOOL([GPERF], [gperf], [no])
+  if test x"$GPERF" = x"no"; then
+    AC_MSG_ERROR([Building from git requires gperf, but it could not be found. Please install gperf.])
+  fi
+fi
+
 gl_EARLY
 AC_PROG_CPP
 AC_PROG_SED
-- 
2.34.0
signature.asc (application/pgp-signature, 1.1 KB)
-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE801qEjXQSQPNItXAE++NRSQDw+sFAmG0vKgQHGFybmVfYmFi
QHdlYi5kZQAKCRAT741FJAPD62wjD/9X6TbfrAF9ZuXiJWJI+QK3ws4hgWrtHTYo
uPDnBCMtBdhKLcNdH58Vn6fp1LfrBRuREwZFBTN02ojiwpCMe9jC342eFIW3yN12
sYjU5ASThxuw6wdtZxZ2WgeFAOO38Er7Uf5zNVMzcR76KV9pVmjlWQemmP5IaUEb
F2NDEMKp3YmDcm7mu/RGlf91uiClbveOPNnAe0I+pf+gjjvSb3V7xKT37IeWv95f
b39vBRtDegwD2/r3ZiW7Xrnu/QT5fEo+nWi0RXmJ/deYO2XN4TlVuDRAO3s+lbqF
47uion0LpCY6+CGidThanrukhUU4oXhnFb2KQe8Wq74+lZhhK33Gsd7an6+zhX2P
trA3r7fQKFOIgTvGvWUrhd8d6vD3d2ViGaKlm4SzNqQOdD8hJlRSgXiFE9EpPlux
BFbGj33B+f/85Ck0lZvjbNlfon20bxUZ9DWYVVinHO7pH+9Cpd5PjKO/UeKiHhmw
/HWuYLaLjGoKmVn+m2qJLlDj3NJHqFqhov82GIg+3G6NbIk4rd++brjrJVY681+t
YTJr3/un0PQbQRlHDktXCf4m4fgGEYoWBsddrFE5RwRGBOKyXRZqc4bpd07pMwo+
jd/VC59exQXTqIbQlUMdESOAky1VKvBmfVnTTxaiWcaTGEG1sEKSWKtKFmprk3u8
Mt09id3z5IjEBAEBCAAuFiEE3Si95tmHXKvOSosd3M8NswvBBUgFAmG0vKkQHGFy
bmVfYmFiQHdlYi5kZQAKCRDczw2zC8EFSInoA/916boHVpwtEsbJb5osUWPoUITo
cZkSDlqkGDvvivTdOUMknNOETJJX9OgXPGQBwwZ0XpWHcoAEytAt+SIZnXK4AIQn
cgT/rOf/CjutdVDQ88tVk++cV+dtc//p+SvHkl/RDGHQ+QdPe8NKSZdbH/Lv1lcQ
Kido15arRSNmV0qUbw==
=E2+y
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.