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