-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.ac
59 lines (49 loc) · 1.56 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT(netabc, 0.1, [email protected])
AC_CONFIG_AUX_DIR([build-aux])
AC_CONFIG_SRCDIR([src/netabc.c])
AC_CONFIG_SUBDIRS([igraph])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([-Wall subdir-objects foreign 1.9.6])
# Checks for programs.
AC_PROG_CC
AC_PROG_CXX
AC_PROG_INSTALL
AM_PROG_AR
AC_PROG_YACC
AC_PROG_LEX
# Doxygen.
DX_HTML_FEATURE(ON)
DX_CHM_FEATURE(OFF)
DX_CHI_FEATURE(OFF)
DX_MAN_FEATURE(OFF)
DX_RTF_FEATURE(OFF)
DX_XML_FEATURE(OFF)
DX_PDF_FEATURE(ON)
DX_PS_FEATURE(OFF)
DX_INIT_DOXYGEN(netabc, Doxyfile, doc)
# Compiler and linker stuff
LT_INIT
AX_COMPILER_FLAGS()
AX_GCC_FUNC_ATTRIBUTE([noreturn])
# Checks for libraries.
AX_PTHREAD([], [AC_MSG_ERROR([pthtreads is required])])
AC_CHECK_LIB([m], [cos], [], [AC_MSG_ERROR([math.h is required])])
AC_CHECK_LIB([gslcblas], [cblas_dgemm], [], [AC_MSG_ERROR([GSL CBLAS is required])])
AC_CHECK_LIB([Judy], [JudyLIns], [], [AC_MSG_ERROR([Judy is required])])
AC_CHECK_LIB([yaml], [yaml_parser_initialize], [], [AC_MSG_ERROR([libyaml is required])])
PKG_CHECK_MODULES([GSL], [gsl >= 1.15])
PKG_CHECK_MODULES([CHECK], [check >= 0.9.4])
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h stddef.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_TYPE_SIZE_T
# Checks for library functions.
AC_FUNC_MALLOC
# Output files
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_FILES([Makefile src/Makefile tests/Makefile c-cmaes/Makefile])
AC_OUTPUT