diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-03-18 10:07:09 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-03-18 10:07:09 +0100 |
commit | f0c4dd30e7f51cd09299a130cf68ad79c58cb270 (patch) | |
tree | 7c7246798cc7d864773ec5b46dc9f20bacedca9f /m4 | |
parent | 056448a6080a16a5889e7cf391582840d060a32f (diff) | |
download | gnutls-f0c4dd30e7f51cd09299a130cf68ad79c58cb270.tar.gz |
configure: fail compilation if the minimum required libtasn1 is not present
Diffstat (limited to 'm4')
-rw-r--r-- | m4/hooks.m4 | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/m4/hooks.m4 b/m4/hooks.m4 index a5c215606c..07552da7ef 100644 --- a/m4/hooks.m4 +++ b/m4/hooks.m4 @@ -103,16 +103,17 @@ AC_MSG_ERROR([[ AC_SUBST(GMP_CFLAGS) AC_SUBST(GMP_LIBS) +LIBTASN1_MINIMUM=4.3 AC_ARG_WITH(included-libtasn1, AS_HELP_STRING([--with-included-libtasn1], [use the included libtasn1]), included_libtasn1=$withval, included_libtasn1=no) if test "$included_libtasn1" = "no"; then - PKG_CHECK_MODULES(LIBTASN1, [libtasn1 >= 4.3], [], [included_libtasn1=yes]) + PKG_CHECK_MODULES(LIBTASN1, [libtasn1 >= $LIBTASN1_MINIMUM], [], [included_libtasn1=yes]) if test "$included_libtasn1" = yes; then - AC_MSG_WARN([[ + AC_MSG_ERROR([[ *** - *** Libtasn1 was not found. Will use the included one. + *** Libtasn1 $LIBTASN1_MINIMUM was not found. To use the included on use --with-included-libtasn1 ]]) fi fi |