1dnl Copyright (C) 1999, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2011,
2dnl 2012, 2013 Free Software Foundation, Inc.
3dnl
4dnl This file is part of GNU libmatheval
5dnl
6dnl GNU libmatheval is free software: you can redistribute it and/or
7dnl modify it under the terms of the GNU General Public License as
8dnl published by the Free Software Foundation, either version 3 of the
9dnl License, or (at your option) any later version.
10dnl
11dnl GNU libmatheval is distributed in the hope that it will be useful,
12dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
13dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14dnl General Public License for more details.
15dnl
16dnl You should have received a copy of the GNU General Public License
17dnl along with GNU libmatheval.  If not, see
18dnl <http://www.gnu.org/licenses/>.
19
20dnl Process this file with autoconf to produce a configure script.
21AC_PREREQ(2.53)
22AC_INIT([libmatheval],[1.1.11],[asamardzic@gnu.org])
23AC_CONFIG_AUX_DIR([config])
24AC_CONFIG_MACRO_DIR([m4])
25AC_SUBST([ac_aux_dir])
26AM_INIT_AUTOMAKE([libmatheval], [1.1.11])
27AC_CONFIG_SRCDIR([configure.in])
28AM_CONFIG_HEADER([config.h])
29
30dnl Initialize the test suite.
31AC_CONFIG_TESTDIR([tests])
32AC_CONFIG_FILES([tests/matheval.sh], [chmod +x tests/matheval.sh])
33AC_CONFIG_FILES([tests/Makefile])
34
35dnl Checks for programs.
36AC_PROG_CC
37AM_PROG_CC_C_O
38AC_PROG_CC_C99
39AC_PROG_CPP
40AC_PROG_INSTALL
41AM_PROG_LEX
42AC_PROG_LN_S
43AC_PROG_LIBTOOL
44AC_PROG_MAKE_SET
45AC_PROG_YACC
46AM_MISSING_PROG([AUTOM4TE], [autom4te])
47GUILE_FLAGS
48
49dnl Checks for libraries.
50
51dnl Checks for header files.
52AC_HEADER_STDC
53AC_CHECK_HEADERS([math.h strings.h stddef.h stdint.h])
54
55dnl Checks for typedefs, structures, and compiler characteristics.
56AC_C_CONST
57AC_TYPE_SIZE_T
58
59dnl Checks for library functions.
60AC_CHECK_FUNCS([bzero memset], [break])
61
62dnl Additional Guile feature checks.
63AC_CHECK_TYPE([scm_t_bits], [AC_DEFINE([HAVE_SCM_T_BITS], [1], [Define to 1 if you have the `scm_t_bits' type.])], [], [#include <libguile.h>])
64AC_CHECK_LIB([guile], [scm_c_define_gsubr], [AC_DEFINE([HAVE_SCM_C_DEFINE_GSUBR], [1], [Define to 1 if you have the `scm_c_define_gsubr' function.])], [], [$GUILE_LDFLAGS])
65AC_CHECK_LIB([guile], [scm_make_gsubr], [AC_DEFINE([HAVE_SCM_MAKE_GSUBR], [1], [Define to 1 if you have the `scm_make_gsubr' function.])], [], [$GUILE_LDFLAGS])
66AC_CHECK_LIB([guile], [scm_num2dbl], [AC_DEFINE([HAVE_SCM_NUM2DBL], [1], [Define to 1 if you have the `scm_num2dbl' function.])], [], [$GUILE_LDFLAGS])
67
68AC_CONFIG_FILES([Makefile doc/Makefile lib/Makefile])
69AC_OUTPUT(libmatheval.pc)
70