configure.in 2.5 KB

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