forked from andre-martins/TurboParser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
configure.ac
70 lines (55 loc) · 2.08 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([TurboParser], [2.3.0], [[email protected]], [TurboParser],
[http://www.ark.cs.cmu.edu/TurboParser/])
AM_INIT_AUTOMAKE([1.10 -Wall no-define])
AC_CONFIG_HEADERS([config.h])
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
AUX_LIBS=../../deps/local/lib
AUX_INCLUDES=../../deps/local/include
LFLAGS="-L${AUX_LIBS} -lad3 -lgflags -lglog"
CPPFLAGS="-I${AUX_INCLUDES} -I${INCLUDES}/ad3"
AC_SUBST(LFLAGS)
AC_SUBST(CPPFLAGS)
# Check for c++0x compile flag.
#AX_CHECK_COMPILE_FLAG([-std=c++0x], [CXXFLAGS="$CXXFLAGS -std=c++0x"])
AX_CXX_COMPILE_STDCXX_11
CXXFLAGS="$CXXFLAGS -std=c++11"
# Macros
# This will make ILOG use STL libs
#AC_DEFINE([IL_STD], [], [This is necessary to make ILOG use STL libs])
############################################
# Temporary solution to enable debug builds.
# See: http://stackoverflow.com/questions/4553735/gnu-autotools-debug-release-targets
############################################
AC_ARG_ENABLE(debug,
AS_HELP_STRING([--enable-debug],
[enable debugging, default: no]),
[case "${enableval}" in
yes) debug=true ;;
no) debug=false ;;
*) AC_MSG_ERROR([bad value ${enableval} for --enable-debug]) ;;
esac],
[debug=false])
AM_CONDITIONAL(DEBUG, test x"$debug" = x"true")
############################################
# Checks for header files.
AC_CHECK_HEADERS([stddef.h string.h sys/time.h])
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
AC_C_INLINE
# Checks for library functions.
AC_CHECK_FUNCS([gettimeofday])
AC_CONFIG_FILES([Makefile
src/tagger/Makefile
src/parser/Makefile
src/semantic_parser/Makefile
src/entity_recognizer/Makefile
src/coreference_resolver/Makefile
src/dependency_labeler/Makefile
src/constituency_labeler/Makefile
src/morphological_tagger/Makefile])
AC_OUTPUT