-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathconfigure.ac
45 lines (34 loc) · 1.11 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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.68])
AC_INIT(ibus-canna, 0.0.1, http://github.com/ftake/ibus-canna)
AM_INIT_AUTOMAKE
#AM_CPPFLAGS=
AC_CONFIG_SRCDIR([src/engine.h])
AC_CONFIG_HEADERS([config.h])
# Path difinition
IBUS_COMPONENT_DIR=[${datadir}/ibus/component]
AC_SUBST(IBUS_COMPONENT_DIR)
AC_ARG_WITH([testlocal], [testlocal], [COMPONENT_XML="canna.xml"], [COMPONENT_XML=$IBUS_COMPONENT_DIR"/canna.xml"])
AC_SUBST(COMPONENT_XML)
IBUS_ENGINE_DIR=[${libexecdir}/ibus-canna]
AC_SUBST(IBUS_ENGINE_DIR)
# Checks for programs.
AC_PROG_CXX
AC_PROG_CC
CXXFLAGS+=" -Wall"
# Checks for modules
PKG_CHECK_MODULES(IBUS, ibus-1.0)
# Checks for libraries.
AC_CHECK_LIB([canna], [jrKanjiControl], [CANNA_LIBS="-lcanna"])
ICU_LIBS=`icu-config --ldflags-libsonly`
AC_SUBST(CANNA_LIBS)
AC_SUBST(ICU_LIBS)
# Checks for header files.
# Checks for typedefs, structures, and compiler characteristics.
AC_HEADER_STDBOOL
# Checks for library functions.
AC_CONFIG_FILES([Makefile
src/Makefile
canna.xml.in])
AC_OUTPUT