Trisurf Monte Carlo simulator
Samo Penic
2016-05-31 5c3143e7b7d0979d6eed07b6dfbe9f214159bdbb
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
#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
 
AC_PREREQ([2.67])
AC_INIT([FULL-PACKAGE-NAME], [VERSION], [BUG-REPORT-ADDRESS])
AC_CONFIG_SRCDIR([config.h.in])
AC_CONFIG_HEADERS([config.h])
AM_INIT_AUTOMAKE
# Checks for programs.
AC_PROG_CC
 
# Checks for libraries.
# FIXME: Replace `main' with a function in `-lconfuse':
AC_CHECK_LIB([confuse], [cfg_parse])
# FIXME: Replace `main' with a function in `-lm':
AC_CHECK_LIB([m], [pow])
 
AC_CHECK_LIB([gslcblas],[cblas_dgemm])
AC_CHECK_LIB([gsl],[gsl_blas_dgemm])
#AC_CHECK_LIB([xml2],[xmlNodeListGetString])
PKG_CHECK_MODULES([libxml2], [libxml-2.0])
AC_CHECK_LIB([z],[deflate])
 
# Checks for header files.
AC_CHECK_HEADERS([stdlib.h string.h])
 
# Checks for typedefs, structures, and compiler characteristics.
AC_C_INLINE
 
dnl Check if we have enable debug support.
AC_MSG_CHECKING(whether to enable debugging)
debug_default="yes"
AC_ARG_ENABLE(debug, [ --enable-debug=[no/yes] turn on debugging
[default=$debug_default]],, enable_debug=$debug_default)
dnl Yes, shell scripts can be used
if test "x$enable_debug" = "xyes"; then
CFLAGS="-g -O2 -DDEBUG"
AC_MSG_RESULT(yes)
else
CFLAGS="-O3 -ffast-math"
AC_MSG_RESULT(no)
fi
 
#AC_DEFINE_UNQUOTED(TS_VERSION,
#                    ["Trisurf (commit `git describe  --abbrev=6 --dirty --always --tags`) build on `date` @`hostname`."],
#                    [A string containing the version number])
 
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([pow sqrt strndup])
 
AC_CONFIG_FILES([Makefile
                 src/Makefile])
AC_OUTPUT