forked from suzhe/ibus-xkb-layouts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfigure.ac
43 lines (33 loc) · 1.06 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
AC_INIT([ibus-xkb-layouts],
[0.0.0],
[http://github.com/suzhe/ibus-xkb-layouts])
AC_PREREQ([2.50])
AC_CONFIG_SRCDIR([src/main.c])
AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.10])
AC_GNU_SOURCE
AM_DISABLE_STATIC
AC_PROG_CC
AM_PROG_CC_C_O
AC_PROG_LIBTOOL
AC_ISC_POSIX
AC_HEADER_STDC
PKG_PROG_PKG_CONFIG([0.20])
AC_ARG_WITH([xkb-rules-xml],
AC_HELP_STRING([--with-xkb-rules-xml=${datadir}/X11/xkb/rules/evdev.xml],
[Specify the XKB rules xml file to be used.]),
[XKB_RULES_XML_FILE=$withval],
[XKB_RULES_XML_FILE="/usr/share/X11/xkb/rules/evdev.xml"])
AC_CHECK_FILE([$XKB_RULES_XML_FILE],[],[AC_MSG_ERROR([$XKB_RULES_XML_FILE is not available.])])
PREDEFINED_MACROS="-DXKB_RULES_XML_FILE=\\\"$XKB_RULES_XML_FILE\\\""
AC_SUBST([PREDEFINED_MACROS])
AC_SUBST([XKB_RULES_XML_FILE])
AC_SUBST([datarootdir])
# check ibus
PKG_CHECK_MODULES(IBUS, [ibus-1.0 >= 1.3.0])
# OUTPUT files
AC_CONFIG_FILES([Makefile
src/Makefile
src/xkb-layouts.xml.in
])
AC_OUTPUT