1
dnl This file is part of the KDE libraries/packages
2
dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
4
dnl This file is free software; you can redistribute it and/or
5
dnl modify it under the terms of the GNU Library General Public
6
dnl License as published by the Free Software Foundation; either
7
dnl version 2 of the License, or (at your option) any later version.
9
dnl This library is distributed in the hope that it will be useful,
10
dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
11
dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
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., 59 Temple Place - Suite 330,
17
dnl Boston, MA 02111-1307, USA.
19
# Original Author was Kalle@kde.org
20
# I lifted it in some mater. (Stephan Kulow)
21
# I used much code from Janos Farkas
23
dnl Process this file with autoconf to produce a configure script.
25
AC_INIT(acinclude.m4) dnl a source file from your sub dir
27
dnl This is so we can use kde-common
28
AC_CONFIG_AUX_DIR(admin)
30
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
33
dnl Checking host/target/build systems, for make, install etc.
35
dnl Perform program name transformation
38
dnl Automake doc recommends to do this only here. (Janos)
39
AM_INIT_AUTOMAKE(gtkqtengine, 0.6) dnl searches for some needed programs
43
dnl generate the config header
44
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
46
dnl Checks for programs.
52
dnl for NLS support. Call them in this order!
53
dnl WITH_NLS is for the po files
60
#PKG_CHECK_MODULES(GTK1, gtk+ >= 1.2.0, use_gtk1="yes",use_gtk1="no")
61
PKG_CHECK_MODULES(GTK2, gtk+-2.0 >= 2.2.0, use_gtk2="yes",use_gtk2="no")
62
PKG_CHECK_MODULES(LIBBONOBOUI, libbonoboui-2.0 >= 2.4.0, use_libbonoboui="yes",use_libbonoboui="no")
64
GTK_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+-2.0`
65
GTK_LIBPREFIX=`$PKG_CONFIG --variable=libdir gtk+-2.0`
66
GTK_PREFIX=`$PKG_CONFIG --variable=prefix gtk+-2.0`
67
#GTK1_VERSION=`$PKG_CONFIG --variable=gtk_binary_version gtk+`
68
#GTK1_LIBPREFIX=`$PKG_CONFIG --variable=libdir gtk+`
69
#GTK1_PREFIX=`$PKG_CONFIG --variable=prefix gtk+`
70
LIBBONOBOUI_LIBPREFIX=`$PKG_CONFIG --variable=libdir libbonoboui-2.0`
71
LIBBONOBOUI_PREFIX=`$PKG_CONFIG --variable=prefix libbonoboui-2.0`
72
KDE_PREFIX=`$KDECONFIG --prefix`
73
AC_SUBST(QTENGINE_CFLAGS)
74
AC_SUBST(QTENGINE_LIBS)
76
AC_SUBST(GTK_LIBPREFIX)
78
#AC_SUBST(GTK1_VERSION)
79
#AC_SUBST(GTK1_LIBPREFIX)
80
#AC_SUBST(GTK1_PREFIX)
82
#AC_SUBST(GTK1_CFLAGS)
85
AC_SUBST(LIBBONOBOUI_CFLAGS)
86
AC_SUBST(LIBBONOBOUI_LIBS)
88
dnl PACKAGE set before
90
AC_CHECK_KDEMAXPATHLEN
92
KDE_CREATE_SUBDIRSLIST
93
AC_CONFIG_FILES([ Makefile ])
94
AC_CONFIG_FILES([ autopackage/Makefile ])
95
AC_CONFIG_FILES([ autopackage/default.apspec ])
96
#AC_CONFIG_FILES([ gtk1/Makefile ])
97
AC_CONFIG_FILES([ src/Makefile ])
98
AC_CONFIG_FILES([ kcm_gtk/Makefile ])
101
if test "x$use_libbonoboui" = "xno"; then
103
echo "********************************************************************"
104
echo " WARNING: You do not have the bonobo development packages installed"
105
echo " These are not required, but strongly recommended, as they improve"
106
echo " some aspects of the theme engine."
107
echo "********************************************************************"
110
AC_DEFINE([HAVE_BONOBO], [1], [Define to 1 to enable Bonobo code])
113
if test "$all_tests" = "bad"; then
114
if test ! "$cache_file" = "/dev/null"; then
116
echo "Please remove the file $cache_file after changing your setup"
117
echo "so that configure will find the changes next time."
122
echo "Good - your configure finished. Start make now"