diff options
author | Justus Winter <justus@gnupg.org> | 2017-06-02 17:23:03 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-06-04 19:03:25 +0200 |
commit | 74f4e5781e0f259a22b8e1e125973262600abed7 (patch) | |
tree | 5838e8459e3a4521279f643a22fb38a60887ac83 /configure.ac | |
parent | 29ff193d27436e52d8112903c882ebe52f071d88 (diff) | |
download | hurd-74f4e5781e0f259a22b8e1e125973262600abed7.tar.gz hurd-74f4e5781e0f259a22b8e1e125973262600abed7.tar.bz2 hurd-74f4e5781e0f259a22b8e1e125973262600abed7.zip |
trans: Conditionally build the random translator.
Only build the random translator if we find a suitable version of
libgcrypt. This helps to reduce the build dependencies to bootstrap
the Hurd.
* aclocal.m4: Include 'libgcrypt.m4'.
* config.make.in (HAVE_LIBGCRYPT): New variable.
* configure.ac: Check for a suitable libgcrypt.
* m4/libgcrypt.m4: New file.
* trans/Makefile: Conditionally build the random translator.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac index 30a1367a..54aa72b0 100644 --- a/configure.ac +++ b/configure.ac @@ -341,6 +341,9 @@ PKG_CHECK_MODULES([libblkid], [blkid], AC_SUBST([libblkid_LIBS]) AC_SUBST([libblkid_CFLAGS]) +AM_PATH_LIBGCRYPT("1:1.6.0",[HAVE_LIBGCRYPT=yes], [HAVE_LIBGCRYPT=no]) +AC_SUBST([HAVE_LIBGCRYPT]) + AC_CONFIG_FILES([config.make ${makefiles}]) AC_OUTPUT |