knowit
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 2.5KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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., 51 Franklin Street, Fifth Floor,
  14. dnl Boston, MA 02110-1301, 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(knowit, 0.10) 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_TQT(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. KDE_CREATE_SUBDIRSLIST
  48. AC_CONFIG_FILES([ Makefile ])
  49. AC_CONFIG_FILES([ doc/Makefile ])
  50. AC_CONFIG_FILES([ doc/en/Makefile ])
  51. AC_CONFIG_FILES([ po/Makefile ])
  52. AC_CONFIG_FILES([ src/Makefile ])
  53. AC_OUTPUT
  54. if test "$all_tests" = "bad"; then
  55. if test ! "$cache_file" = "/dev/null"; then
  56. echo ""
  57. echo "Please remove the file $cache_file after changing your setup"
  58. echo "so that configure will find the changes next time."
  59. echo ""
  60. fi
  61. else
  62. echo ""
  63. echo "Good - your configure finished. Start make now"
  64. echo ""
  65. fi