-
Notifications
You must be signed in to change notification settings - Fork 1
/
configure.ac
63 lines (52 loc) · 1.92 KB
/
configure.ac
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Copyright 2016-2020 James Paul Turner.
#
# This file is part of the Arpra library.
# Process this file with autoconf to produce a configure script.
#
# The Arpra library is free software: you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# The Arpra library 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 Lesser General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with the Arpra library. If not, see <http://www.gnu.org/licenses/>.
AC_PREREQ([2.65])
AC_INIT([Arpra], [0.2.0], [https://github.com/arpra-project/arpra/issues])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([include/arpra.h])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.13 -Wall -Werror subdir-objects dist-zip dist-xz])
# Programs
AC_PROG_CC
AC_PROG_CPP
AM_PROG_AR
LT_PREREQ([2.2])
LT_INIT([])
# Math lib
AC_SEARCH_LIBS([sqrt], [m])
# GNU GMP
AC_CHECK_HEADER([gmp.h], [],
[AC_MSG_ERROR([GMP header is missing or unusable - see README])])
AC_CHECK_LIB([gmp], [__gmpz_init], [],
[AC_MSG_ERROR([GMP library is missing or unusable - see README])])
# GNU MPFR
AC_CHECK_HEADER([mpfr.h], [],
[AC_MSG_ERROR([MPFR header is missing or unusable - see README])])
AC_CHECK_LIB([mpfr], [mpfr_init], [],
[AC_MSG_ERROR([MPFR library is missing or unusable - see README])])
# MPFI
AC_CHECK_HEADER([mpfi.h], [],
[AC_MSG_ERROR([MPFI header is missing or unusable - see README])])
AC_CHECK_LIB([mpfi], [mpfi_init], [],
[AC_MSG_ERROR([MPFI library is missing or unusable - see README])])
# Header files
AC_CHECK_HEADERS([stdlib.h])
# Output
AC_CONFIG_FILES([Makefile])
AC_OUTPUT