summaryrefslogtreecommitdiff
path: root/libguile/random.c
diff options
context:
space:
mode:
authorMichael Gran <spk121@yahoo.com>2021-03-03 10:54:04 -0800
committerMichael Gran <spk121@yahoo.com>2021-03-03 14:06:29 -0800
commit6ca3ab621cd9e5054a47b5946dacd98df756a879 (patch)
tree97969af83e91252885862b0d627ad1f283042aea /libguile/random.c
parenteb5ffda6cedef823afc4a5b2fdddcee58e46df19 (diff)
downloadguile-6ca3ab621cd9e5054a47b5946dacd98df756a879.tar.gz
don't presume availability of gmp.pc
This suggests moving the conditional that determines if mini-gmp is used into scmconfig.h. * configure.ac: replace PKG_CHECK_MODULES for gmp with AC_LIB_HAVE_LINKFLAGS Remove ENABLE_MINI_GMP define. Also don't run mpz_inits test for --enable-mini-gmp. * libguile/gen-scmconfig.c (main) [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP with SCM_I_GSC_ENABLE_MINI_GMP * libguile/bytevectors.c [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP with SCM_ENABLE_MINI_GMP * libguile/init.c [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP with SCM_ENABLE_MINI_GMP * libguile/numbers.c: include scm.h [SCM_ENABLE_MINI_GMP]: provide mpz_inits and mpz_clears [ENABLE_MINI_GMP]: prefer SCM_ENABLE_MINI_GMP to ENABLE_MINI_GMP * libguile/numbers.h: include scm.h * libguile/random.c [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP with SCM_ENABLE_MINI_GMP * libguile/socket.c [ENABLE_MINI_GMP]: replace ENABLE_MINI_GMP with SCM_ENABLE_MINI_GMP
Diffstat (limited to 'libguile/random.c')
-rw-r--r--libguile/random.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/libguile/random.c b/libguile/random.c
index b955c2c45..63da7f5d6 100644
--- a/libguile/random.c
+++ b/libguile/random.c
@@ -30,17 +30,19 @@
#include <sys/types.h>
#include <unistd.h>
+#include "scm.h"
+#if SCM_ENABLE_MINI_GMP
+#include "mini-gmp.h"
+#else
+#include <gmp.h>
+#endif
+
#include "arrays.h"
#include "feature.h"
#include "generalized-arrays.h"
#include "generalized-vectors.h"
#include "gsubr.h"
#include "list.h"
-#if ENABLE_MINI_GMP
-#include "mini-gmp.h"
-#else
-#include <gmp.h>
-#endif
#include "modules.h"
#include "numbers.h"
#include "numbers.h"