[gnutls-devel] GnuTLS | Configure does not chek if gperf is installed (#582)

Development of GNU's TLS library gnutls-devel at lists.gnutls.org
Thu Oct 4 08:41:08 CEST 2018


On a release build that shouldn't be a problem as the `supported_exts.h` file should be present. However that affects building from git. Maybe instead of enforcing that in configure.ac which will affect released builds we can require mandatory/recommended software for building from git at bootstrap time as:
```
diff --git a/bootstrap.conf b/bootstrap.conf
index 3c9618b21..a382391dd 100644
--- a/bootstrap.conf
+++ b/bootstrap.conf
@@ -82,3 +82,25 @@ bootstrap_post_import_hook ()
   # Automake requires that ChangeLog exist.
   touch ChangeLog || return 1
 }
+
+bootstrap_epilogue ()
+{
+       GPERF=$(which gperf)
+       AUTOGEN=$(which autogen)
+       SOFTHSM2=$(which softhsm2-util)
+
+       if test -z "${GPERF}";then
+               echo "error: 'gperf' is not installed; see README.md for required software"
+               return 1
+       fi
+
+       if test -z "${AUTOGEN}";then
+               echo "error: 'autogen' is not installed; see README.md for required software"
+               return 1
+       fi
+
+       if test -z "${SOFTHSM2}";then
+               echo "error: 'softhsm' (2.0.0 or later) is not installed; see README.md for required software"
+               return 1
+       fi
+}
```
@rockdaboot what do you think? Is that the "right way" to use bootstrap?

-- 
Reply to this email directly or view it on GitLab: https://gitlab.com/gnutls/gnutls/issues/582#note_106298246
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.gnupg.org/pipermail/gnutls-devel/attachments/20181004/845ac499/attachment.html>


More information about the Gnutls-devel mailing list