forked from neubig/lader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
67 lines (55 loc) · 1.44 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT([lader], [0.1.4], [[email protected]])
AC_CONFIG_SRCDIR(src/lib/lader.cc)
AC_CONFIG_HEADERS([src/include/lader/config.h])
AC_CONFIG_FILES([
Makefile
src/Makefile
src/include/Makefile
src/lib/Makefile
src/bin/Makefile
src/test/Makefile
])
AM_INIT_AUTOMAKE([-Wall])
AC_CONFIG_MACRO_DIR([m4])
# Checks for programs.
AC_PROG_LIBTOOL
AC_PROG_CXX
AC_PROG_CC
AC_LANG_CPLUSPLUS
LDFLAGS="$LDFLAGS -lpthread"
# Checks for libraries.
AC_SYS_LARGEFILE
# # Boost libraries...
# orig_CPPFLAGS="$CPPFLAGS"
# orig_LDFLAGS="$LDFLAGS"
# CPPFLAGS="$orig_CPPFLAGS $ICU_CPPFLAGS"
# LDFLAGS="$orig_LDFLAGS $ICU_LDFLAGS"
#
# BOOST_REQUIRE([1.38])
# BOOST_PROGRAM_OPTIONS
# BOOST_FILESYSTEM
# BOOST_IOSTREAMS
# BOOST_SYSTEM
#
# CPPFLAGS="$orig_CPPFLAGS"
# LDFLAGS="$orig_LDFLAGS"
#
# ## save pthred-flag, computed by-product of boost-threads
# PTHREAD_FLAGS=$boost_cv_pthread_flag
# AC_SUBST(PTHREAD_FLAGS)
# 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])
# Checks for library functions.
AC_CHECK_FUNCS([gettimeofday pow sqrt])
AC_OUTPUT