forked from openBliSSART/openBliSSART
-
Notifications
You must be signed in to change notification settings - Fork 2
/
configure.ac
123 lines (111 loc) · 3.89 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
#
# This file is part of openBliSSART.
#
# Copyright (c) 2007-2009, Alexander Lehmann <[email protected]>
# Felix Weninger <[email protected]>
# Bjoern Schuller <[email protected]>
#
# Institute for Human-Machine Communication
# Technische Universitaet Muenchen (TUM), D-80333 Munich, Germany
#
# openBliSSART is free software: you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation, either version 2 of the License, or (at your option) any later
# version.
#
# openBliSSART 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 General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# openBliSSART. If not, see <http://www.gnu.org/licenses/>.
#
AC_PREREQ(2.13)
AC_INIT([openBliSSART], [1.2], [[email protected]], [openBliSSART])
AC_CONFIG_SRCDIR([src/septool/main.cpp])
AC_CONFIG_HEADER([config.h])
AC_CONFIG_AUX_DIR([acbuild])
AC_CONFIG_MACRO_DIR([m4])
dnl AC_PRESERVE_HELP_ORDER
AM_INIT_AUTOMAKE([foreign -Wall])
# Include custom macros.
sinclude([acbuild/m4/ax_float.m4])
sinclude([acbuild/m4/ax_check_fftw3.m4])
sinclude([acbuild/m4/ax_check_poco.m4])
sinclude([acbuild/m4/ax_check_qt.m4])
sinclude([acbuild/m4/ax_check_sdl.m4])
sinclude([acbuild/m4/ax_check_sdl_sound.m4])
sinclude([acbuild/m4/ax_check_cblas.m4])
sinclude([acbuild/m4/ax_check_matlab.m4])
sinclude([acbuild/m4/ax_check_cuda.m4])
sinclude([acbuild/m4/ax_enable_debug.m4])
dnl sinclude([acbuild/m4/ax_get_os_and_machine_type.m4])
# Provide support for debugging (--enable-debug).
AX_ENABLE_DEBUG
# Checks for programs.
AC_PROG_AWK
AC_PROG_CC
AC_PROG_CPP
AC_PROG_CXX
AC_PROG_INSTALL
AC_PROG_LIBTOOL
AC_PROG_LN_S
AC_PROG_MAKE_SET
# Determines float type.
AX_DETERMINE_FLOAT_TYPE
# Checks for libraries.
AX_CHECK_FFTW3(:, AC_ERROR([Need fftw3!]))
AX_CHECK_POCO([yes], :, AC_ERROR([Need Poco Enterprise v1.3.6+!]))
# TODO: Actually, Qt is only neccessary for the building the browser application.
# This should be taken into account as someone might only want to build the
# libraries and/or command-line tools.
AX_CHECK_QT([4.4.2], :, AC_ERROR([Need Qt 4.4.2+!]))
AX_CHECK_SDL([1.2.12], :, AC_ERROR([Need SDL 1.2.12+!]))
AX_CHECK_SDL_SOUND(:, AC_ERROR([Need SDL_sound!]))
AX_CHECK_MATLAB
#echo NO_MATLAB=$NO_MATLAB
if test "$NO_MATLAB" == "yes"; then
AX_CHECK_CBLAS
fi
AX_CHECK_CUDA
#AM_CONDITIONAL([AM_HAVE_CUDA], [test -z "$NO_CUDA"])
AM_CONDITIONAL([HAVE_CUDA], [test -z "$NO_CUDA"])
# Checks for header files.
AC_CHECK_HEADERS([float.h stdlib.h string.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
AC_TYPE_UINT16_T
AC_TYPE_UINT32_T
AC_TYPE_UINT64_T
AC_TYPE_UINT8_T
# Checks for library functions.
AC_FUNC_ERROR_AT_LINE
AC_FUNC_REALLOC
AC_CHECK_FUNCS([floor sqrt strrchr atexit memset pow strchr])
# Set the standard installation prefix to /usr/local/blissart.
AC_PREFIX_DEFAULT([/usr/local/blissart])
# Generate the Makefiles.
AC_CONFIG_FILES([Makefile
doc/Makefile
src/LibAudio/Makefile
src/LibFeature/Makefile
src/LibFramework/Makefile
src/LibICA/Makefile
src/LibLinAlg/Makefile
src/LibNMF/Makefile
src/Makefile
src/Testsuite/Makefile
src/benchmark/Makefile
src/cvtool/Makefile
src/fextool/Makefile
src/icatool/Makefile
src/include/Makefile
src/septool/Makefile
src/export/Makefile
src/exportaudio/Makefile
src/cleanup/Makefile
src/browser/Makefile])
AC_OUTPUT