improving build process
[xorg/xkeyboard-config] / configure.in
1 AC_INIT(xkeyboard-config, 1.3)
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 # ****
39 # i18n
40 # ****
41 AC_PROG_INTLTOOL(0.30)
42
43 GETTEXT_PACKAGE=xkeyboard-config
44 AC_SUBST(GETTEXT_PACKAGE)
45 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
46
47 AM_GLIB_GNU_GETTEXT
48
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"
50
51 AC_SUBST(xkb_base)
52 AC_SUBST(xkb_rules_symlink)
53
54 AC_OUTPUT([ po/Makefile.in
55 Makefile
56 compat/Makefile
57 geometry/Makefile
58 geometry/digital_vndr/Makefile
59 geometry/sgi_vndr/Makefile
60 keycodes/Makefile
61 keycodes/digital_vndr/Makefile
62 keycodes/sgi_vndr/Makefile
63 keymap/Makefile
64 keymap/digital_vndr/Makefile
65 keymap/sgi_vndr/Makefile
66 keymap/sun_vndr/Makefile
67 semantics/Makefile
68 rules/Makefile
69 rules/compat/Makefile
70 symbols/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
80 types/Makefile
81 xkeyboard-config.spec
82 docs/Makefile
83 ])
84
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"
90 else
91   echo "    Symbolic link(s) to legacy rules: $xkb_rules_symlink"
92 fi
93
94 if test "$enable_compat_rules" == "yes" ; then
95   echo "    Compatibility rules are included"
96 else
97   echo "    Compatibility rules are not included"
98 fi
99 echo '***********************************************************'
100