joachim99@2
|
1 dnl This file is part of the KDE libraries/packages
|
joachim99@2
|
2 dnl Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
|
joachim99@2
|
3
|
joachim99@2
|
4 dnl This file is free software; you can redistribute it and/or
|
joachim99@2
|
5 dnl modify it under the terms of the GNU Library General Public
|
joachim99@2
|
6 dnl License as published by the Free Software Foundation; either
|
joachim99@2
|
7 dnl version 2 of the License, or (at your option) any later version.
|
joachim99@2
|
8
|
joachim99@2
|
9 dnl This library is distributed in the hope that it will be useful,
|
joachim99@2
|
10 dnl but WITHOUT ANY WARRANTY; without even the implied warranty of
|
joachim99@2
|
11 dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
joachim99@2
|
12 dnl Library General Public License for more details.
|
joachim99@2
|
13
|
joachim99@2
|
14 dnl You should have received a copy of the GNU Library General Public License
|
joachim99@2
|
15 dnl along with this library; see the file COPYING.LIB. If not, write to
|
joachim99@2
|
16 dnl the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
joachim99@2
|
17 dnl Boston, MA 02111-1307, USA.
|
joachim99@2
|
18
|
joachim99@2
|
19 # Original Author was Kalle@kde.org
|
joachim99@2
|
20 # I lifted it in some mater. (Stephan Kulow)
|
joachim99@2
|
21 # I used much code from Janos Farkas
|
joachim99@2
|
22
|
joachim99@2
|
23 dnl Process this file with autoconf to produce a configure script.
|
joachim99@2
|
24
|
joachim99@2
|
25 AC_INIT(acinclude.m4) dnl a source file from your sub dir
|
joachim99@2
|
26
|
joachim99@2
|
27 dnl This is so we can use kde-common
|
joachim99@2
|
28 AC_CONFIG_AUX_DIR(admin)
|
joachim99@2
|
29
|
joachim99@2
|
30 dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
|
joachim99@2
|
31 unset CDPATH
|
joachim99@2
|
32
|
joachim99@2
|
33 dnl Checking host/target/build systems, for make, install etc.
|
joachim99@2
|
34 AC_CANONICAL_SYSTEM
|
joachim99@2
|
35 dnl Perform program name transformation
|
joachim99@2
|
36 AC_ARG_PROGRAM
|
joachim99@2
|
37
|
joachim99@2
|
38 dnl Automake doc recommends to do this only here. (Janos)
|
joachim99@2
|
39 AM_INIT_AUTOMAKE(@MODULENAME@, @VERSION@) dnl searches for some needed programs
|
joachim99@2
|
40
|
joachim99@2
|
41 KDE_SET_PREFIX
|
joachim99@2
|
42
|
joachim99@2
|
43 dnl generate the config header
|
joachim99@2
|
44 AM_CONFIG_HEADER(config.h) dnl at the distribution this done
|
joachim99@2
|
45
|
joachim99@2
|
46 dnl Checks for programs.
|
joachim99@2
|
47 AC_CHECK_COMPILERS
|
joachim99@2
|
48 AC_ENABLE_SHARED(yes)
|
joachim99@2
|
49 AC_ENABLE_STATIC(no)
|
joachim99@2
|
50 KDE_PROG_LIBTOOL
|
joachim99@2
|
51
|
joachim99@2
|
52 dnl for NLS support. Call them in this order!
|
joachim99@2
|
53 dnl WITH_NLS is for the po files
|
joachim99@2
|
54 AM_KDE_WITH_NLS
|
joachim99@2
|
55
|
joachim99@2
|
56 dnl KDE_USE_QT
|
joachim99@2
|
57 AC_PATH_KDE
|