summaryrefslogtreecommitdiffstats
path: root/configure.in.in
blob: d2b544b843acc97c41d1d90de1c0d07fd3afaefc (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
#MIN_CONFIG(3.0.0)

AM_INIT_AUTOMAKE(kkbswitch, 1.4.3)
AC_C_BIGENDIAN
AC_CHECK_KDEMAXPATHLEN

AC_CHECK_HEADERS([X11/extensions/XKBrules.h], [], [], [
  #include <stdio.h> 
  #include <X11/XKBlib.h>])

save_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS $all_libraries"
AC_CHECK_LIB(xkbfile, XkbRF_GetNamesProp)
LDFLAGS="$save_LDFLAGS"
  
AC_ARG_ENABLE(ru-ua-layout,
  [  --enable-ru-ua-layout  Install Russian/Ukrainian layout file
                          (default: don't install)],
  enable_ru_ua_layout="$enableval",
  enable_ru_ua_layout="no")

AM_CONDITIONAL(ENABLE_RU_UA_LAYOUT, test "x$enable_ru_ua_layout" = "xyes")

dnl set prefix according to installed KDE. Strange that KDE build scripts
dnl don't do it by default
AC_PREFIX_DEFAULT(`tde-config --prefix`)