summaryrefslogtreecommitdiff
path: root/configure.in
blob: 7217d4730cbe4d2d0ee9da41b811612c4dfa76a2 (plain)
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
71
72
73
74
75
76
AC_INIT(rules/base.xml.in)

PACKAGE=xkeyboard-config
GETTEXT_PACKAGE=$PACKAGE
MAJOR_VERSION=0
MINOR_VERSION=2
VERSION=$MAJOR_VERSION.$MINOR_VERSION

AC_SUBST(MAJOR_VERSION)
AC_SUBST(MINOR_VERSION)
AC_SUBST(PACKAGE)
AC_SUBST(VERSION)
AC_SUBST(GETTEXT_PACKAGE)

AM_CONFIG_HEADER(config.h)
AM_INIT_AUTOMAKE($PACKAGE, $VERSION)

prefix=/usr

AC_ARG_WITH( xkb_base,
             [  --with-xkb-base=DIR        XKB base path (by default it is /usr/X11R6/lib/X11/xkb)],
             xkb_base="$withval", 
             xkb_base="\$(prefix)/X11R6/lib/X11/xkb" )

AC_ARG_WITH( xkb_rules_symlink,
             [  --with-xkb-rules-symlink=NAME        create symlink to "old style" rules files (xfree86 or xorg)],
             xkb_rules_symlink="$withval" )

AC_ARG_ENABLE( xkbcomp_symlink,
               [  --enable-xkbcomp-symlink      create xkbcomp symlink to $(xkb_base)../../../bin/xkbcomp],
               enable_xkbcomp_symlink="$enableval",
               enable_xkbcomp_symlink="yes" )

AM_CONDITIONAL(CREATE_RULES_SYMLINK, test "x$xkb_rules_symlink" != "x")

AM_CONDITIONAL(CREATE_XKBCOMP_SYMLINK, test "x$enable_xkbcomp_symlink" == "xyes")

AC_PROG_INTLTOOL(0.30)
AM_GNU_GETTEXT([external])
ALL_LINGUAS="af az bg cs da fr hu nl ru sk sq sr sv tr uk zh_CN"

AC_SUBST(xkb_base)
AC_SUBST(xkb_rules_symlink)

AC_OUTPUT([ po/Makefile
Makefile
compat/Makefile
compiled/Makefile
geometry/Makefile
geometry/digital_vndr/Makefile
geometry/ibm_vndr/Makefile
geometry/sgi_vndr/Makefile
keycodes/Makefile
keycodes/digital_vndr/Makefile
keycodes/sgi_vndr/Makefile
keymap/Makefile
keymap/digital_vndr/Makefile
keymap/sgi_vndr/Makefile
keymap/sun_vndr/Makefile
semantics/Makefile
rules/Makefile
symbols/Makefile
symbols/digital_vndr/Makefile
symbols/fujitsu_vndr/Makefile
symbols/hp_vndr/Makefile
symbols/macintosh_vndr/Makefile
symbols/nec_vndr/Makefile
symbols/sgi_vndr/Makefile
symbols/sony_vndr/Makefile
symbols/sun_vndr/Makefile
symbols/xfree68_vndr/Makefile
types/Makefile
xkeyboard-config.spec
docs/Makefile
])