mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-20 11:40:18 +02:00
* configure.in: add GMP test (require GMP).
This commit is contained in:
parent
45a1c3e89f
commit
a6be66ed1e
1 changed files with 32 additions and 27 deletions
59
configure.in
59
configure.in
|
@ -37,9 +37,34 @@ AM_CONFIG_HEADER([config.h])
|
|||
|
||||
AC_CONFIG_SUBDIRS(guile-readline)
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
dnl Some more checks for Win32
|
||||
AC_CYGWIN
|
||||
AC_MINGW32
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_AWK
|
||||
|
||||
AC_AIX
|
||||
AC_ISC_POSIX
|
||||
AC_MINIX
|
||||
|
||||
AM_PROG_CC_STDC
|
||||
|
||||
AC_LIBTOOL_DLOPEN
|
||||
AM_PROG_LIBTOOL
|
||||
AC_LIB_LTDL
|
||||
|
||||
AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no)
|
||||
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
#
|
||||
# User options
|
||||
# User options (after above tests that may set default CFLAGS etc.)
|
||||
#
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
|
@ -139,29 +164,6 @@ AC_ARG_ENABLE(elisp,
|
|||
|
||||
#--------------------------------------------------------------------
|
||||
|
||||
dnl Some more checks for Win32
|
||||
AC_CYGWIN
|
||||
AC_MINGW32
|
||||
AC_LIBTOOL_WIN32_DLL
|
||||
|
||||
AC_PROG_INSTALL
|
||||
AC_PROG_CC
|
||||
AC_PROG_CPP
|
||||
AC_PROG_AWK
|
||||
|
||||
AC_AIX
|
||||
AC_ISC_POSIX
|
||||
AC_MINIX
|
||||
|
||||
AM_PROG_CC_STDC
|
||||
|
||||
AC_LIBTOOL_DLOPEN
|
||||
AM_PROG_LIBTOOL
|
||||
AC_LIB_LTDL
|
||||
|
||||
AC_CHECK_PROG(have_makeinfo, makeinfo, yes, no)
|
||||
AM_CONDITIONAL(HAVE_MAKEINFO, test "$have_makeinfo" = yes)
|
||||
|
||||
dnl Check for dynamic linking
|
||||
|
||||
use_modules=yes
|
||||
|
@ -416,8 +418,7 @@ else
|
|||
fi
|
||||
AC_SUBST([SCM_I_GSC_T_UINT32])
|
||||
|
||||
|
||||
### Required type scm_t_int64 (ANSI C says int, short, or long might work)
|
||||
### Optional type scm_t_int64 (ANSI C says int, short, or long might work)
|
||||
### Also try long long if we have it.
|
||||
SCM_I_GSC_T_INT64=0
|
||||
if test "$ac_cv_sizeof_int" -eq 8; then
|
||||
|
@ -439,7 +440,7 @@ else
|
|||
fi
|
||||
AC_SUBST([SCM_I_GSC_T_INT64])
|
||||
|
||||
### Required type scm_t_uint64 (ANSI C says int, short, or long might work)
|
||||
### Optional type scm_t_uint64 (ANSI C says int, short, or long might work)
|
||||
### Also try long long if we have it.
|
||||
SCM_I_GSC_T_UINT64=0
|
||||
if test "$ac_cv_sizeof_unsigned_int" -eq 8; then
|
||||
|
@ -531,6 +532,10 @@ AC_CHECK_HEADERS(crypt.h sys/resource.h sys/file.h)
|
|||
AC_CHECK_FUNCS(chroot flock getlogin cuserid getpriority setpriority getpass sethostname gethostname)
|
||||
AC_CHECK_LIB(crypt, crypt)
|
||||
|
||||
dnl GMP tests
|
||||
AC_CHECK_LIB([gmp], [__gmpz_init], ,
|
||||
[AC_MSG_ERROR([GNU MP not found, see http://swox.com/gmp])])
|
||||
|
||||
### Some systems don't declare some functions. On such systems, we
|
||||
### need to at least provide our own K&R-style declarations.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue