-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
52 lines (40 loc) · 1.33 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
# Initializations
AC_INIT([mcsim], [5.6.6], [bug-mcsim@gnu.org])
AC_PREREQ(2.68) # requires at least autoconf v...
AC_CONFIG_SRCDIR([mod/mod.c]) # safety check for configure run */
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall -Werror])
AM_PROG_AR
LT_INIT # init libtool
# Checks for general programs.
AC_PROG_CC
# Checks for programs needed by xmcsim
AC_CHECK_PROG(WISH_FOUND,wish,yes)
AC_CHECK_PROG(PLOT_FOUND,gnuplot,yes)
# Checks for libraries; watch the order between cblas and gsl
AC_CHECK_LIB([gslcblas], [main])
AC_CHECK_LIB([gsl], [gsl_cdf_gamma_P])
AC_CHECK_LIB([m], [main])
AC_CHECK_LIB([sbml], [main])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([float.h limits.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_STRUCT_TM
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([floor modf pow sqrt strchr erfc])
# Output files
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile
mod/Makefile
sim/Makefile
sim/makemcsim
sim/makemcsimd
sim/makemcsims])
AC_CONFIG_FILES([examples/perc/Makefile], [chmod +x examples/perc/Makefile])
AC_OUTPUT