bumping the version to 1.0
[xorg/xkeyboard-config] / configure.in
1 AC_INIT(xkeyboard-config, 1.0)
2 AC_CONFIG_SRCDIR(rules/base.xml.in)
3 AM_INIT_AUTOMAKE([dist-bzip2])
4 AM_MAINTAINER_MODE
5
6 AC_SUBST(VERSION)
7
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])
11 fi
12
13 AC_ARG_WITH( xkb_base,
14              [AS_HELP_STRING([--with-xkb-base=DIR],[XKB base path @<:@DATADIR/X11/xkb@:>@])],
15              xkb_base="$withval", 
16              xkb_base="\$(datadir)/X11/xkb" )
17
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" )
21
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" )
26
27 AC_ARG_ENABLE( compat_rules,
28                [  --enable-compat-rules      create compatibility rules],
29                enable_compat_rules="$enableval",
30                enable_compat_rules="yes" )
31
32 AM_CONDITIONAL(CREATE_RULES_SYMLINK, test "x$xkb_rules_symlink" != "x")
33
34 AM_CONDITIONAL(CREATE_XKBCOMP_SYMLINK, test "x$enable_xkbcomp_symlink" = "xyes")
35
36 AM_CONDITIONAL(USE_COMPAT_RULES, test "x$enable_compat_rules" = "xyes")
37
38 AC_PROG_INTLTOOL(0.30)
39
40 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"
41
42 AC_SUBST(xkb_base)
43 AC_SUBST(xkb_rules_symlink)
44
45 AC_OUTPUT([ po/Makefile
46 Makefile
47 compat/Makefile
48 geometry/Makefile
49 geometry/digital_vndr/Makefile
50 geometry/sgi_vndr/Makefile
51 keycodes/Makefile
52 keycodes/digital_vndr/Makefile
53 keycodes/sgi_vndr/Makefile
54 keymap/Makefile
55 keymap/digital_vndr/Makefile
56 keymap/sgi_vndr/Makefile
57 keymap/sun_vndr/Makefile
58 semantics/Makefile
59 rules/Makefile
60 rules/compat/Makefile
61 symbols/Makefile
62 symbols/digital_vndr/Makefile
63 symbols/fujitsu_vndr/Makefile
64 symbols/hp_vndr/Makefile
65 symbols/macintosh_vndr/Makefile
66 symbols/nec_vndr/Makefile
67 symbols/sgi_vndr/Makefile
68 symbols/sony_vndr/Makefile
69 symbols/sun_vndr/Makefile
70 symbols/xfree68_vndr/Makefile
71 types/Makefile
72 xkeyboard-config.spec
73 docs/Makefile
74 ])
75
76 echo '***********************************************************'
77 echo "  $PACKAGE_NAME is configured with the following parameters:"
78 echo "    XKB base directory: $xkb_base"
79 if test -z "$xkb_rules_symlink" ; then
80   echo "    Symbolic link(s) to legacy rules are not created"
81 else
82   echo "    Symbolic link(s) to legacy rules: $xkb_rules_symlink"
83 fi
84
85 if test "$enable_compat_rules" == "yes" ; then
86   echo "    Compatibility rules are included"
87 else
88   echo "    Compatibility rules are not included"
89 fi
90 echo '***********************************************************'
91