mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 00:49:00 +08:00
783e2d8e99
Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
21 lines
622 B
Diff
21 lines
622 B
Diff
diff --git a/m4/hooks.m4 b/m4/hooks.m4
|
|
index e1248c7..4656c3a 100644
|
|
--- a/m4/hooks.m4
|
|
+++ b/m4/hooks.m4
|
|
@@ -91,13 +91,14 @@ AC_MSG_ERROR([[
|
|
mini_nettle=$withval,
|
|
mini_nettle=no)
|
|
|
|
+ PKG_CHECK_MODULES(GMP, [gmp], [], [AC_MSG_ERROR([[gmp is required]])])
|
|
AC_ARG_VAR(GMP_CFLAGS, [C compiler flags for gmp])
|
|
AC_ARG_VAR(GMP_LIBS, [linker flags for gmp])
|
|
if test "$mini_nettle" != no;then
|
|
GMP_CFLAGS=""
|
|
GMP_LIBS=""
|
|
else
|
|
- if test x$GMP_LIBS = x; then
|
|
+ if test "x$GMP_LIBS" = "x"; then
|
|
AC_CHECK_LIB(gmp, __gmpz_cmp, [GMP_LIBS="-lgmp"], [AC_MSG_ERROR([[
|
|
***
|
|
*** gmp was not found.
|