summaryrefslogtreecommitdiff
path: root/build-aux/m4/gmp.m4
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2021-05-07 14:47:04 -0500
committerEric Blake <eblake@redhat.com>2021-05-07 14:47:04 -0500
commit0b98fb45910bba58a0a64192443b1d71fbf19ecf (patch)
tree7c751929d43352234572cfe4d770c944b7c9b2c8 /build-aux/m4/gmp.m4
parentd69fa5284851b2b7aac25ffac638b6b379994db5 (diff)
downloadm4-0b98fb45910bba58a0a64192443b1d71fbf19ecf.tar.gz
maint: Redirect developers to active branch
_This_ branch does not contain actively-developed code. More likely, you want to check out branch-1.4 (latest stable), branch-1.6 (some speedups over 1.4, but not yet released), or branch-2.0 (many more experimental changes, and even further from release). * README: Document the status of this git repository.
Diffstat (limited to 'build-aux/m4/gmp.m4')
-rw-r--r--build-aux/m4/gmp.m477
1 files changed, 0 insertions, 77 deletions
diff --git a/build-aux/m4/gmp.m4 b/build-aux/m4/gmp.m4
deleted file mode 100644
index 0e60bdcc..00000000
--- a/build-aux/m4/gmp.m4
+++ /dev/null
@@ -1,77 +0,0 @@
-## -*- Autoconf -*-
-## Copyright (C) 2000-2001, 2003, 2006-2008, 2010, 2013-2014, 2017 Free
-## Software Foundation, Inc.
-##
-## This file is part of GNU M4.
-##
-## GNU M4 is free software: you can redistribute it and/or modify
-## it under the terms of the GNU General Public License as published by
-## the Free Software Foundation, either version 3 of the License, or
-## (at your option) any later version.
-##
-## GNU M4 is distributed in the hope that it will be useful,
-## but WITHOUT ANY WARRANTY; without even the implied warranty of
-## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-## GNU General Public License for more details.
-##
-## You should have received a copy of the GNU General Public License
-## along with this program. If not, see <http://www.gnu.org/licenses/>.
-
-# serial 10
-
-m4_define([_M4_LIB_GMP],
-[AC_ARG_WITH([gmp],
- [AS_HELP_STRING([--without-gmp],
- [don't use GNU multiple precision arithmetic library])],
-[use_gmp=$withval], [use_gmp=yes])
-
-case $use_gmp:$LIBADD_GMP:$ac_cv_header_gmp_h in
- no:*)
- M4_cv_using_lib_gmp=no
- ;;
- *::yes)
- AC_MSG_WARN([gmp library not found or does not appear to work
- but `gmp.h' is present])
- M4_cv_using_lib_gmp=no
- ;;
- *:-lgmp:no)
- AC_MSG_WARN([gmp works but `gmp.h' is missing])
- M4_cv_using_lib_gmp=no
- ;;
- yes:*:yes)
- M4_cv_using_lib_gmp=yes
- ;;
- *)
- M4_cv_using_lib_gmp=no
- AC_MSG_WARN([could not detect gmp library])
- ;;
-esac
-])# _M4_LIB_GMP
-
-
-AC_DEFUN([M4_LIB_GMP],
-[AC_PREREQ([2.56])dnl We use the new compiler based header checking in 2.56
-AC_CHECK_HEADERS([gmp.h], [], [], [AC_INCLUDES_DEFAULT])
-m4_pattern_allow([^M4_gmp_save_LIBS$])
-# Some versions of gmp provide mpq_init as a macro, so we need to
-# include the header file, otherwise the detection will fail.
-M4_gmp_save_LIBS="$LIBS"
-LIBS="$LIBS -lgmp"
-AC_LINK_IFELSE([AC_LANG_PROGRAM([[#if HAVE_GMP_H
-# include <gmp.h>
-#endif]],
- [[mpq_t n; mpq_init (n);]])],
- [LIBADD_GMP=-lgmp])
-LIBS=$M4_gmp_save_LIBS
-AC_SUBST([LIBADD_GMP])
-
-_M4_LIB_GMP
-
-# Don't try to link in libgmp if we are not using it after the last call
-if test "$M4_cv_using_lib_gmp" = yes; then
- AC_DEFINE([USE_GMP], [1],
- [Define to 1 if using the GNU multiple precision library.])
-fi
-
-AC_SUBST([USE_GMP], [$M4_cv_using_lib_gmp])
-])# M4_LIB_GMP