]> git.eshelyaron.com Git - emacs.git/commit
Use Gnulib libgmp module
authorPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Jul 2020 23:35:48 +0000 (16:35 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Thu, 9 Jul 2020 23:38:45 +0000 (16:38 -0700)
commitc8b6006d82196f9063581e988ea12d6c99c95536
tree24ad95ab6523c39190b778f8e63712b6cafaa28b
parent501306557c6bb65007f384aa203999d1577d0e99
Use Gnulib libgmp module

Instead of doing GMP by hand, use the Gnulib libgmp module.
* .gitignore: Add lib/gmp.h.
* admin/merge-gnulib (GNULIB_MODULES): Add libgmp.
* configure.ac (GMP_LIB, GMP_OBJ): Remove.  Gnulib uses the name
LIB_GMP, so all uses changed.  All uses of GMP_OBJ removed.
(HAVE_GMP): Set this from Gnulib’s variables.
* lib/gnulib.mk.in, m4/gnulib-comp.m4: Regenerate.
* lib/mini-gmp-gnulib.c, lib/mini-gmp.c, lib/mini-gmp.h, m4/libgmp.m4:
New files, copied from Gnulib.
* src/bignum.h, test/data/emacs-module/mod-test.c:
Include gmp.h unconditionally.
* src/mini-gmp-emacs.c, src/mini-gmp.c, src/mini-gmp.h:
Remove.  This moves these files from src to lib, and
updates them to the current GMP version.
* test/Makefile.in (GMP_H): New macro.
($(test_module)): Use it to decide whether to compile
mini-gmp-gnulib.c too.
16 files changed:
.gitignore
admin/merge-gnulib
configure.ac
lib/gnulib.mk.in
lib/mini-gmp-gnulib.c [new file with mode: 0644]
lib/mini-gmp.c [new file with mode: 0644]
lib/mini-gmp.h [new file with mode: 0644]
m4/gnulib-comp.m4
m4/libgmp.m4 [new file with mode: 0644]
src/Makefile.in
src/bignum.h
src/mini-gmp-emacs.c [deleted file]
src/mini-gmp.c [deleted file]
src/mini-gmp.h [deleted file]
test/Makefile.in
test/data/emacs-module/mod-test.c