Explorar o código

Warn (or error with explicit --with-libgmp) if gmp is not actually found

Nils Maier %!s(int64=11) %!d(string=hai) anos
pai
achega
ead6685b18
Modificáronse 1 ficheiros con 5 adicións e 0 borrados
  1. 5 0
      configure.ac

+ 5 - 0
configure.ac

@@ -427,6 +427,11 @@ if test "x$have_openssl" != "xyes"; then
     AC_SEARCH_LIBS([__gmpz_init], [gmp], [have_libgmp=yes], [have_libgmp=no])
     if test "x$have_libgmp" = "xyes"; then
       AC_DEFINE([HAVE_LIBGMP], [1], [Define to 1 if you have libgmp.])
+    else
+      AC_MSG_WARN([libgmp not found])
+      if test "x$with_libgmp_requested" = "xyes"; then
+        ARIA2_DEP_NOT_MET([libgmp])
+      fi
     fi
   fi
   if test "x$with_libgcrypt" = "xyes" &&