tde-systemsettings
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 5.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. dnl =======================================================
  2. dnl FILE: ./admin/configure.in.min
  3. dnl =======================================================
  4. dnl This file is part of the KDE libraries/packages
  5. dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
  6. dnl This file is free software; you can redistribute it and/or
  7. dnl modify it under the terms of the GNU Library General Public
  8. dnl License as published by the Free Software Foundation; either
  9. dnl version 2 of the License, or (at your option) any later version.
  10. dnl This library is distributed in the hope that it will be useful,
  11. dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. dnl Library General Public License for more details.
  14. dnl You should have received a copy of the GNU Library General Public License
  15. dnl along with this library; see the file COPYING.LIB. If not, write to
  16. dnl the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  17. dnl Boston, MA 02110-1301, USA.
  18. # Original Author was Kalle@kde.org
  19. # I lifted it in some mater. (Stephan Kulow)
  20. # I used much code from Janos Farkas
  21. dnl Process this file with autoconf to produce a configure script.
  22. AC_INIT(acinclude.m4) dnl a source file from your sub dir
  23. dnl This is so we can use kde-common
  24. AC_CONFIG_AUX_DIR(admin)
  25. dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
  26. unset CDPATH
  27. dnl Checking host/target/build systems, for make, install etc.
  28. AC_CANONICAL_SYSTEM
  29. dnl Perform program name transformation
  30. AC_ARG_PROGRAM
  31. dnl Automake doc recommends to do this only here. (Janos)
  32. AM_INIT_AUTOMAKE(tde-systemsettings-0.0svn20070312, "3.5.4") dnl searches for some needed programs
  33. KDE_SET_PREFIX
  34. dnl generate the config header
  35. AM_CONFIG_HEADER(config.h) dnl at the distribution this done
  36. dnl Checks for programs.
  37. AC_CHECK_COMPILERS
  38. AC_ENABLE_SHARED(yes)
  39. AC_ENABLE_STATIC(no)
  40. KDE_PROG_LIBTOOL
  41. dnl for NLS support. Call them in this order!
  42. dnl WITH_NLS is for the po files
  43. AM_KDE_WITH_NLS
  44. KDE_USE_TQT(3.3)
  45. AC_PATH_KDE
  46. dnl =======================================================
  47. dnl FILE: configure.in.in
  48. dnl =======================================================
  49. #MIN_CONFIG(3.3)
  50. # Define a symbol, to know that we're compiling WITH kde. (for apps that
  51. # can compile without KDE, optionally)
  52. AM_CONDITIONAL(KDE_INSTALLED, test "$have_kde" = "yes")
  53. dnl Checks for header files.
  54. AC_HEADER_DIRENT
  55. AC_HEADER_STDC
  56. AC_CHECK_HEADERS(fcntl.h sys/time.h sys/stat.h stdint.h)
  57. AC_CHECK_HEADERS(sys/cdefs.h fnmatch.h sysent.h strings.h paths.h)
  58. AC_CHECK_HEADERS(utmp.h sys/param.h linux/tcp.h sys/proc.h)
  59. dnl Checks for typedefs, structures, and compiler characteristics.
  60. AC_HEADER_TIME
  61. AC_C_LONG_DOUBLE
  62. dnl Checks for library functions.
  63. KDE_CHECK_DLOPEN
  64. AC_CHECK_FUNCS(socket fabsl strdup vsnprintf re_comp flock)
  65. AC_CHECK_SETENV
  66. AC_CHECK_UNSETENV
  67. AC_CHECK_GETDOMAINNAME
  68. AC_CHECK_GETHOSTNAME
  69. AM_PROG_LEX
  70. LFLAGS="-o${LEX_OUTPUT_ROOT}.c"
  71. AC_SUBST(LFLAGS)
  72. KDE_INIT_DOXYGEN([KDE Playground - Base], [Version $VERSION])
  73. KDE_CREATE_SUBDIRSLIST
  74. AM_CONDITIONAL(systemsettings_SUBDIR_included, test "x$systemsettings_SUBDIR_included" = xyes)
  75. AC_CONFIG_FILES([ Makefile ])
  76. AC_CONFIG_FILES([ systemsettings/Makefile ])
  77. AC_CONFIG_FILES([ systemsettings/menu/Makefile ])
  78. AC_OUTPUT
  79. # Check if KDE_SET_PREFIX was called, and --prefix was passed to configure
  80. if test -n "$kde_libs_prefix" -a -n "$given_prefix"; then
  81. # And if so, warn when they don't match
  82. if test "$kde_libs_prefix" != "$given_prefix"; then
  83. # And if kde doesn't know about the prefix yet
  84. echo ":"`tde-config --path exe`":" | grep ":$given_prefix/bin/:" 2>&1 >/dev/null
  85. if test $? -ne 0; then
  86. echo ""
  87. echo "Warning: you chose to install this package in $given_prefix,"
  88. echo "but KDE was found in $kde_libs_prefix."
  89. echo "For this to work, you will need to tell KDE about the new prefix, by ensuring"
  90. echo "that TDEDIRS contains it, e.g. export TDEDIRS=$given_prefix:$kde_libs_prefix"
  91. echo "Then restart KDE."
  92. echo ""
  93. fi
  94. fi
  95. fi
  96. if test x$GXX = "xyes" -a x$kde_have_gcc_visibility = "xyes" -a x$kde_cv_val_qt_gcc_visibility_patched = "xno"; then
  97. echo ""
  98. echo "Your GCC supports symbol visibility, but the patch for Qt supporting visibility"
  99. echo "was not included. Therefore, GCC symbol visibility support remains disabled."
  100. echo ""
  101. echo "For better performance, consider including the Qt visibility supporting patch"
  102. echo "located at:"
  103. echo ""
  104. echo "http://bugs.kde.org/show_bug.cgi?id=109386"
  105. echo ""
  106. echo "and recompile all of Qt and KDE. Note, this is entirely optional and"
  107. echo "everything will continue to work just fine without it."
  108. echo ""
  109. fi
  110. if test "$all_tests" = "bad"; then
  111. if test ! "$cache_file" = "/dev/null"; then
  112. echo ""
  113. echo "Please remove the file $cache_file after changing your setup"
  114. echo "so that configure will find the changes next time."
  115. echo ""
  116. fi
  117. else
  118. echo ""
  119. echo "Good - your configure finished. Start make now"
  120. echo ""
  121. fi