1 AC_INIT(xkeyboard-config, 1.3)
2 AC_CONFIG_SRCDIR(rules/base.xml.in)
3 AM_INIT_AUTOMAKE([dist-bzip2])
8 AC_PATH_PROG([XKBCOMP], [xkbcomp], [not_found])
9 if test x$XKBCOMP = xnot_found ; then
10 AC_ERROR([xkbcomp is required to install the xkb data files])
13 AC_ARG_WITH( xkb_base,
14 [AS_HELP_STRING([--with-xkb-base=DIR],[XKB base path @<:@DATADIR/X11/xkb@:>@])],
16 xkb_base="\$(datadir)/X11/xkb" )
18 AC_ARG_WITH( xkb_rules_symlink,
19 [ --with-xkb-rules-symlink=NAME1(,NAME2)* create symlink(s) to "old style" rules files (xfree86 and/or xorg)],
20 xkb_rules_symlink="$withval" )
22 AC_ARG_ENABLE( xkbcomp_symlink,
23 [ --enable-xkbcomp-symlink create xkbcomp symlink to $(xkb_base)../../../bin/xkbcomp],
24 enable_xkbcomp_symlink="$enableval",
25 enable_xkbcomp_symlink="yes" )
27 AC_ARG_ENABLE( compat_rules,
28 [ --enable-compat-rules create compatibility rules],
29 enable_compat_rules="$enableval",
30 enable_compat_rules="yes" )
32 AM_CONDITIONAL(CREATE_RULES_SYMLINK, test "x$xkb_rules_symlink" != "x")
34 AM_CONDITIONAL(CREATE_XKBCOMP_SYMLINK, test "x$enable_xkbcomp_symlink" = "xyes")
36 AM_CONDITIONAL(USE_COMPAT_RULES, test "x$enable_compat_rules" = "xyes")
41 AC_PROG_INTLTOOL(0.30)
43 GETTEXT_PACKAGE=xkeyboard-config
44 AC_SUBST(GETTEXT_PACKAGE)
45 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
49 ALL_LINGUAS="af az bg cs da el en_GB es fi fr hu it ka ko nl ru rw sk sl sq sr sr@Latn sv tr uk vi zh_CN zh_TW"
52 AC_SUBST(xkb_rules_symlink)
54 AC_OUTPUT([ po/Makefile.in
58 geometry/digital_vndr/Makefile
59 geometry/sgi_vndr/Makefile
61 keycodes/digital_vndr/Makefile
62 keycodes/sgi_vndr/Makefile
64 keymap/digital_vndr/Makefile
65 keymap/sgi_vndr/Makefile
66 keymap/sun_vndr/Makefile
71 symbols/digital_vndr/Makefile
72 symbols/fujitsu_vndr/Makefile
73 symbols/hp_vndr/Makefile
74 symbols/macintosh_vndr/Makefile
75 symbols/nec_vndr/Makefile
76 symbols/sgi_vndr/Makefile
77 symbols/sony_vndr/Makefile
78 symbols/sun_vndr/Makefile
79 symbols/xfree68_vndr/Makefile
85 echo '***********************************************************'
86 echo " $PACKAGE_NAME is configured with the following parameters:"
87 echo " XKB base directory: $xkb_base"
88 if test -z "$xkb_rules_symlink" ; then
89 echo " Symbolic link(s) to legacy rules are not created"
91 echo " Symbolic link(s) to legacy rules: $xkb_rules_symlink"
94 if test "$enable_compat_rules" == "yes" ; then
95 echo " Compatibility rules are included"
97 echo " Compatibility rules are not included"
99 echo '***********************************************************'