forked from odashi/nmtkit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
56 lines (42 loc) · 1.23 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.69])
AC_INIT([nmtkit], [0.1.0], [[email protected]])
AM_INIT_AUTOMAKE()
AC_CONFIG_SRCDIR([src/bin/train.cc])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_LANG([C++])
AC_PROG_LIBTOOL
AC_PROG_CXX
AC_PROG_CC
#AX_CXX_COMPILE_STDCXX_11
#AX_CHECK_COMPILE_FLAG([-std=c++11], [CXXFLAGS="$CXXFLAGS -std=c++11"])
CXXFLAGS="$CXXFLAGS -std=c++11"
CXXFLAGS="$CXXFLAGS -Wall"
CXXFLAGS="$CXXFLAGS -Werror"
CXXFLAGS="$CXXFLAGS -O2"
#CXXFLAGS="$CXXFLAGS -pg"
# Checks for libraries.
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
# Checks for library functions.
AC_CONFIG_FILES([Makefile
src/Makefile
src/bin/Makefile
src/include/Makefile
src/lib/Makefile
src/test/Makefile
submodules/Makefile
])
AC_CONFIG_MACRO_DIR([m4])
AX_BOOST_BASE([1.50], , AC_MSG_ERROR([Boost 1.50 or later is required]))
AX_BOOST_FILESYSTEM
AX_BOOST_PROGRAM_OPTIONS
AX_BOOST_SERIALIZATION
AX_BOOST_SYSTEM
AX_CUDA
AX_EIGEN
AX_DYNET
AC_CONFIG_SUBDIRS([submodules/mteval])
AC_OUTPUT