-
Notifications
You must be signed in to change notification settings - Fork 4
/
configure.in
150 lines (141 loc) · 5.76 KB
/
configure.in
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
AC_INIT([LIA_RAL], [2.0], [dev-alize@listes.univ-avignon.fr])
AM_INIT_AUTOMAKE(LIA_RAL,2.0)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_RANLIB
AC_SUBST(OS,`uname -s`)
AC_SUBST(ARCH,`uname -m`)
AC_SUBST(ALIZE_PATH)
# enable debug compilation
AC_ARG_ENABLE(debug,
[ --enable-debug compile LIA_RAL with debug information [[default=no]] ],
enable_optimize=$enableval, enable_optimize=no)
if test "$enable_optimize" = "yes"; then
CXXFLAGS="-g -Wall"
AC_SUBST(DEBUG,"_debug")
else
CXXFLAGS="-O3 -ffast-math"
AC_SUBST(DEBUG,"")
fi
# enable multi-threading
AC_ARG_ENABLE(MT,
[ --enable-MT compile LIA_RAL for multi-threading for X CPUs [[default=no]] ],
nbT=$enableval, nbT=no)
if test "$nbT" = "yes"; then
CXXFLAGS="$CXXFLAGS -DTHREAD"
AC_SUBST(LIBTHREAD,"-lpthread")
else
AC_SUBST(LIBTHREAD,"")
fi
# Checks for alize libraries.
AC_ARG_WITH([alize],
[AS_HELP_STRING([--with-alize],
[location of the Alize library; defaults to ../ALIZE/])],
[ALIZE_PATH="$withval"],
[ALIZE_PATH="`pwd`/../ALIZE/"])
AC_SUBST(ALIZE_PATH)
lib_alize=0
AC_CHECK_FILE([${ALIZE_PATH}/lib/libalize_${OS}_${ARCH}${DEBUG}.a],lib_alize=-lalize_${OS}_${ARCH}${DEBUG},)
AC_CHECK_FILE([${ALIZE_PATH}/lib/libalize.a],lib_alize=-lalize,)
if [[ ${lib_alize} = 0 ]] ; then
AC_MSG_ERROR(alize library (libalize.a or libalize_${OS}_${ARCH}${DEBUG}) not found - searched in "${ALIZE_PATH}/lib")
fi
AC_SUBST(lib_alize)
# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([fcntl.h float.h netinet/in.h stdlib.h string.h strings.h sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_CONST
AC_C_INLINE
AC_C_VOLATILE
# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_FUNC_STAT
AC_FUNC_VPRINTF
AC_CHECK_FUNCS([floor memmove memset pow sqrt strcasecmp strdup])
AC_OUTPUT([LIA_SpkTools/Makefile
LIA_SpkTools/src/Makefile
LIA_SpkDet/Makefile
LIA_SpkDet/TrainWorld/Makefile
LIA_SpkDet/TrainWorld/src/Makefile
LIA_SpkDet/ComputeJFAStats/Makefile
LIA_SpkDet/ComputeJFAStats/src/Makefile
LIA_SpkDet/ComputeNorm/Makefile
LIA_SpkDet/ComputeNorm/src/Makefile
LIA_SpkDet/ComputeTest/Makefile
LIA_SpkDet/ComputeTest/src/Makefile
LIA_SpkDet/CovIntra/Makefile
LIA_SpkDet/CovIntra/src/Makefile
LIA_SpkDet/CovIntra/src/SVDLIBC/Makefile
LIA_SpkDet/EigenChannel/Makefile
LIA_SpkDet/EigenChannel/src/Makefile
LIA_SpkDet/EigenVoice/Makefile
LIA_SpkDet/EigenVoice/src/Makefile
LIA_SpkDet/EstimateDMatrix/Makefile
LIA_SpkDet/EstimateDMatrix/src/Makefile
LIA_SpkDet/EnergyDetector/Makefile
LIA_SpkDet/EnergyDetector/src/Makefile
LIA_SpkDet/NormFeat/Makefile
LIA_SpkDet/NormFeat/src/Makefile
LIA_SpkDet/NormFeatWindowMode/Makefile
LIA_SpkDet/NormFeatWindowMode/src/Makefile
LIA_SpkDet/ShiftedDeltaFeat/Makefile
LIA_SpkDet/ShiftedDeltaFeat/src/Makefile
LIA_SpkDet/SpkAdapt/Makefile
LIA_SpkDet/SpkAdapt/src/Makefile
LIA_SpkDet/TotalVariability/Makefile
LIA_SpkDet/TotalVariability/src/Makefile
LIA_SpkDet/TrainTarget/Makefile
LIA_SpkDet/TrainTarget/src/Makefile
LIA_Utils/Makefile
LIA_Utils/BNGram/Makefile
LIA_Utils/BNGram/src/Makefile
LIA_Utils/ExtractParams/Makefile
LIA_Utils/ExtractParams/src/Makefile
LIA_Utils/FusionScore/Makefile
LIA_Utils/FusionScore/src/Makefile
LIA_Utils/GmmTokenizer/Makefile
LIA_Utils/GmmTokenizer/src/Makefile
LIA_Utils/Hist/Makefile
LIA_Utils/Hist/src/Makefile
LIA_Utils/LabelFusion/Makefile
LIA_Utils/LabelFusion/src/Makefile
LIA_Utils/LabelNGram/Makefile
LIA_Utils/LabelNGram/src/Makefile
LIA_Utils/NAPSV/Makefile
LIA_Utils/NAPSV/src/Makefile
LIA_Utils/PolyExp/Makefile
LIA_Utils/PolyExp/src/Makefile
LIA_Utils/ReadFeatFile/Makefile
LIA_Utils/ReadFeatFile/src/Makefile
LIA_Utils/ReadModel/Makefile
LIA_Utils/ReadModel/src/Makefile
LIA_Utils/ScoreWarp/Makefile
LIA_Utils/ScoreWarp/src/Makefile
LIA_Utils/Scoring/Makefile
LIA_Utils/Scoring/src/Makefile
LIA_Utils/SequenceDecoder/Makefile
LIA_Utils/SequenceDecoder/src/Makefile
LIA_Utils/SequenceExtractor/Makefile
LIA_Utils/SequenceExtractor/src/Makefile
LIA_Utils/Svm/Makefile
LIA_Utils/Svm/src/Makefile
LIA_Utils/TimeCluster/Makefile
LIA_Utils/TimeCluster/src/Makefile
LIA_Utils/modelToSv/Makefile
LIA_Utils/modelToSv/src/Makefile
LIA_SpkSeg/Makefile
LIA_SpkSeg/AcousticSegmentation/Makefile
LIA_SpkSeg/AcousticSegmentation/src/Makefile
LIA_SpkSeg/ReSegmentation/Makefile
LIA_SpkSeg/ReSegmentation/src/Makefile
LIA_SpkSeg/Segmentation/Makefile
LIA_SpkSeg/Segmentation/src/Makefile
LIA_SpkSeg/TurnDetection/Makefile
LIA_SpkSeg/TurnDetection/src/Makefile
Makefile])