-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfigure.ac
37 lines (25 loc) · 872 Bytes
/
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
AC_PREREQ(2.52)
AC_INIT([], [0.1.0], [[email protected]])
PACKAGE=apertium-ambiguous
VERSION=0.1.0
AM_INIT_AUTOMAKE($PACKAGE, $VERSION, no-define)
AC_CONFIG_MACRO_DIR([m4])
AC_CANONICAL_HOST
AC_PROG_CXX
AM_PROG_LIBTOOL
AM_SANITY_CHECK
AC_LANG_CPLUSPLUS
CFLAGS="-Wall -Wextra $CFLAGS"
CXXFLAGS="-Wall -Wextra $CXXFLAGS"
### check for icu
PKG_CHECK_MODULES(ICU, [icu],[],[
AX_CHECK_ICU([4.4.2],[], [echo "libicu package required but not found"; exit 1])
])
AC_SUBST(ICU_CFLAGS)
AC_SUBST(ICU_LIBS)
AC_CHECK_HEADER(pugixml.hpp,[],[
AC_MSG_ERROR([*** unable to locate pugixml.hpp include file, try apt-get install libpugixml-dev ***])])
AC_ARG_ENABLE(debug,
[ --enable-debug Enable "-g -ggdb -Wall" compiler options],
[CXXFLAGS="-g -ggdb -Wall";CFLAGS="-g -ggdb -Wall"])
AC_OUTPUT([Makefile src/Makefile])