KKBSwitch – keyboard layout indicator
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

configure.in 3.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. dnl This file is part of the KDE libraries/packages
  2. dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
  3. dnl This file is free software; you can redistribute it and/or
  4. dnl modify it under the terms of the GNU Library General Public
  5. dnl License as published by the Free Software Foundation; either
  6. dnl version 2 of the License, or (at your option) any later version.
  7. dnl This library is distributed in the hope that it will be useful,
  8. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  9. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  10. dnl Library General Public License for more details.
  11. dnl You should have received a copy of the GNU Library General Public License
  12. dnl along with this library; see the file COPYING.LIB. If not, write to
  13. dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  14. dnl Boston, MA 02111-1307, USA.
  15. # Original Author was Kalle@kde.org
  16. # I lifted it in some mater. (Stephan Kulow)
  17. # I used much code from Janos Farkas
  18. dnl Process this file with autoconf to produce a configure script.
  19. AC_INIT(acinclude.m4) dnl a source file from your sub dir
  20. dnl This is so we can use kde-common
  21. AC_CONFIG_AUX_DIR(admin)
  22. dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
  23. unset CDPATH
  24. dnl Checking host/target/build systems, for make, install etc.
  25. AC_CANONICAL_SYSTEM
  26. dnl Perform program name transformation
  27. AC_ARG_PROGRAM
  28. dnl Automake doc recommends to do this only here. (Janos)
  29. AM_INIT_AUTOMAKE(kkbswitch, 1.4.3) dnl searches for some needed programs
  30. KDE_SET_PREFIX
  31. dnl generate the config header
  32. AM_CONFIG_HEADER(config.h) dnl at the distribution this done
  33. dnl Checks for programs.
  34. AC_CHECK_COMPILERS
  35. AC_ENABLE_SHARED(yes)
  36. AC_ENABLE_STATIC(no)
  37. KDE_PROG_LIBTOOL
  38. dnl for NLS support. Call them in this order!
  39. dnl WITH_NLS is for the po files
  40. AM_KDE_WITH_NLS
  41. KDE_USE_QT(3.0.0)
  42. AC_PATH_KDE
  43. #MIN_CONFIG(3.0.0)
  44. dnl PACKAGE set before
  45. AC_C_BIGENDIAN
  46. AC_CHECK_KDEMAXPATHLEN
  47. AC_CHECK_HEADERS([X11/extensions/XKBrules.h], [], [], [
  48. #include <stdio.h>
  49. #include <X11/XKBlib.h>])
  50. save_LDFLAGS="$LDFLAGS"
  51. LDFLAGS="$LDFLAGS $all_libraries"
  52. AC_CHECK_LIB(xkbfile, XkbRF_GetNamesProp)
  53. LDFLAGS="$save_LDFLAGS"
  54. AC_ARG_ENABLE(ru-ua-layout,
  55. [ --enable-ru-ua-layout Install Russian/Ukrainian layout file
  56. (default: don't install)],
  57. enable_ru_ua_layout="$enableval",
  58. enable_ru_ua_layout="no")
  59. AM_CONDITIONAL(ENABLE_RU_UA_LAYOUT, test "x$enable_ru_ua_layout" = "xyes")
  60. dnl set prefix according to installed KDE. Strange that KDE build scripts
  61. dnl don't do it by default
  62. AC_PREFIX_DEFAULT(`kde-config --prefix`)
  63. KDE_CREATE_SUBDIRSLIST
  64. AC_CONFIG_FILES([ Makefile ])
  65. AC_CONFIG_FILES([ doc/Makefile ])
  66. AC_CONFIG_FILES([ doc/en/Makefile ])
  67. AC_CONFIG_FILES([ kkbswitch/Makefile ])
  68. AC_CONFIG_FILES([ kkbswitch.upd/Makefile ])
  69. AC_CONFIG_FILES([ po/Makefile ])
  70. AC_OUTPUT
  71. if test "$all_tests" = "bad"; then
  72. if test ! "$cache_file" = "/dev/null"; then
  73. echo ""
  74. echo "Please remove the file $cache_file after changing your setup"
  75. echo "so that configure will find the changes next time."
  76. echo ""
  77. fi
  78. else
  79. echo ""
  80. echo "Good - your configure finished. Start make now"
  81. echo ""
  82. fi