1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
|
dnl AUTOCONF configuration for PARI
dnl Copyright (C) 2004-2008 Sam Steingold <sds@gnu.org>
dnl GNU GPL2
AC_PREREQ(2.57)
AC_INIT(pari, 1.0, clisp-list)
AC_CONFIG_SRCDIR(pari.lisp)
AC_CONFIG_HEADERS(config.h)
RSE_BOLD
BOLD_MSG([PARI (Common)])
if test $cl_cv_have_ffcall = no; then
AC_MSG_ERROR([module PARI requires FFI])
fi
CL_MODULE_COMMON_CHECKS
dnl Search for libpari and define LIBPARI, LTLIBPARI and INCPARI.
AC_CONFIG_AUX_DIR(../../src/build-aux)
AC_LIB_LINKFLAGS([pari])
BOLD_MSG([PARI (Headers)])
AC_CHECK_HEADERS(pari/pari.h, break)
if test "$ac_cv_header_pari_pari_h" = "no";
then AC_MSG_ERROR([cannot find PARI headers])
fi
BOLD_MSG([PARI (Functions)])
AC_LIB_APPENDTOVAR([LIBS], [$LIBPARI])
AC_SEARCH_LIBS(pari_kernel_init)
if test "$ac_cv_search_pari_kernel_init" = "no";
then AC_MSG_ERROR([cannot find PARI library])
fi
dnl init_opts is not a function, but it is not declared anywhere...
AC_CHECK_FUNCS(freeall pari_init killallfiles pari_init_opts init_opts)
BOLD_MSG([PARI (Output)])
AC_CONFIG_FILES(Makefile link.sh)
AC_OUTPUT
BOLD_MSG([PARI (Done)])
|