Unneeded Crimean Tatar variants removed from Romanian file
[xorg/xkeyboard-config] / configure.in
1 AC_INIT(xkeyboard-config, 2.2)
2 AC_CONFIG_SRCDIR(rules/base.xml.in)
3 AM_INIT_AUTOMAKE([foreign 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( compat_rules,
23                [  --enable-compat-rules      create compatibility rules],
24                enable_compat_rules="$enableval",
25                enable_compat_rules="yes" )
26
27 # xkeyboard-config does not have build-time dependencies. However, it does
28 # have run-time dependencies and keyboard layouts may not work without the
29 # right libX11 or xproto installed.
30 # By default, we enable these run-time dependencies as build-time
31 # dependencies so that those building on their local machines are warned
32 # that the resulting build may not work.
33 AC_ARG_ENABLE( runtime-deps,
34                [ --enable-runtime-deps    use run-time dependencies as build-time dependencies],
35                enable_runtime_deps="$enableval",
36                enable_runtime_deps="yes")
37
38 if test "x$enable_runtime_deps" = "xyes"; then
39     PKG_CHECK_MODULES(DEPS, [xproto >= 7.0.20] [x11 >= 1.4.3], [have_deps=yes], [have_deps=no])
40     AC_MSG_WARN([
41                  Required dependencies not found. These dependencies are
42                  run-time dependencies only and not required for building.
43                  Skip this check with --disable-runtime-deps.
44
45                  Installing this version of xkeyboard-config on a host
46                  without the required dependencies may result in unusable
47                  keyboard layouts.
48                  ])
49
50     AC_MSG_ERROR([$DEPS_PKG_ERRORS])
51 fi
52
53 AM_CONDITIONAL(CREATE_RULES_SYMLINK, test "x$xkb_rules_symlink" != "x")
54
55 AM_CONDITIONAL(USE_COMPAT_RULES, test "x$enable_compat_rules" = "xyes")
56
57 # ****
58 # i18n
59 # ****
60 AC_PROG_INTLTOOL(0.30)
61
62 GETTEXT_PACKAGE=xkeyboard-config
63 AC_SUBST(GETTEXT_PACKAGE)
64 AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Gettext package])
65
66 AM_GLIB_GNU_GETTEXT
67
68 ALL_LINGUAS="af az bg ca crh cs da de el en_GB eo es fi fr gl hu id it ka ko ky lt nb nl pl ro ru rw sk sl sq sr sv tr uk vi zh_CN zh_TW"
69
70 AC_SUBST(xkb_base)
71 AC_SUBST(xkb_rules_symlink)
72
73 AC_OUTPUT([ po/Makefile.in
74 Makefile
75 compat/Makefile
76 geometry/Makefile
77 geometry/digital_vndr/Makefile
78 geometry/sgi_vndr/Makefile
79 keycodes/Makefile
80 keycodes/digital_vndr/Makefile
81 keycodes/sgi_vndr/Makefile
82 keymap/Makefile
83 keymap/digital_vndr/Makefile
84 keymap/sgi_vndr/Makefile
85 keymap/sun_vndr/Makefile
86 semantics/Makefile
87 rules/Makefile
88 rules/bin/Makefile
89 rules/compat/Makefile
90 symbols/Makefile
91 symbols/digital_vndr/Makefile
92 symbols/fujitsu_vndr/Makefile
93 symbols/hp_vndr/Makefile
94 symbols/macintosh_vndr/Makefile
95 symbols/nec_vndr/Makefile
96 symbols/nokia_vndr/Makefile
97 symbols/sgi_vndr/Makefile
98 symbols/sony_vndr/Makefile
99 symbols/sun_vndr/Makefile
100 symbols/xfree68_vndr/Makefile
101 types/Makefile
102 xkeyboard-config.pc
103 xkeyboard-config.spec
104 docs/Makefile
105 ])
106
107 echo '***********************************************************'
108 echo "  $PACKAGE_NAME is configured with the following parameters:"
109 echo "    XKB base directory: $xkb_base"
110 if test -z "$xkb_rules_symlink" ; then
111   echo "    Symbolic link(s) to legacy rules are not created"
112 else
113   echo "    Symbolic link(s) to legacy rules: $xkb_rules_symlink"
114 fi
115
116 if test "$enable_compat_rules" = "yes" ; then
117   echo "    Compatibility rules are included"
118 else
119   echo "    Compatibility rules are not included"
120 fi
121 echo '***********************************************************'
122