forked from neubig/travatar
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
68 lines (55 loc) · 1.45 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([travatar], [0.1.0], [[email protected]])
AC_CONFIG_SRCDIR(src/lib/travatar.cc)
AC_CONFIG_HEADERS([src/include/travatar/config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/liblbfgs/Makefile
src/marisa/Makefile
src/tercpp/Makefile
src/kenlm/Makefile
src/kenlm/lm/Makefile
src/kenlm/util/Makefile
src/kenlm/search/Makefile
src/include/Makefile
src/lib/Makefile
src/bin/Makefile
src/test/Makefile
])
AM_INIT_AUTOMAKE([-Wall subdir-objects])
AM_PROG_AR()
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CXX
AC_PROG_CC
AC_LANG_CPLUSPLUS
# LDFLAGS="$LDFLAGS -lpthread"
# CPPFLAGS="$CPPFLAGS -DKENLM_MAX_ORDER=6"
# Checks for libraries.
AC_SYS_LARGEFILE
# Checks for header files.
AC_CHECK_HEADERS([sys/time.h unistd.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
AC_TYPE_SIZE_T
# Check to make sure that we have unordered_map
AC_LANG([C++])
AC_CHECK_HEADERS([tr1/unordered_map])
AC_CHECK_HEADERS([ext/hash_map])
# Check if we have rt/boost
AC_CHECK_LIB([rt], [timer_create], [AC_SUBST(LIBRT, "-lrt")], [])
BOOST_REQUIRE()
BOOST_THREADS
BOOST_REGEX
BOOST_IOSTREAMS
BOOST_PROGRAM_OPTIONS
BOOST_LOCALE
BOOST_TEST
# Checks for library functions.
AC_CHECK_FUNCS([gettimeofday pow sqrt])
AC_OUTPUT