~ubuntu-branches/ubuntu/lucid/kkbswitch/lucid

« back to all changes in this revision

Viewing changes to configure.in

  • Committer: Bazaar Package Importer
  • Author(s): Lior Kaplan
  • Date: 2005-09-07 02:01:14 UTC
  • Revision ID: james.westby@ubuntu.com-20050907020114-2wyo9eu21uihq86n
Tags: upstream-1.4.3
ImportĀ upstreamĀ versionĀ 1.4.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
dnl    This file is part of the KDE libraries/packages
 
2
dnl    Copyright (C) 2001 Stephan Kulow (coolo@kde.org)
 
3
 
 
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.
 
8
 
 
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.
 
13
 
 
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.
 
18
 
 
19
# Original Author was Kalle@kde.org
 
20
# I lifted it in some mater. (Stephan Kulow)
 
21
# I used much code from Janos Farkas
 
22
 
 
23
dnl Process this file with autoconf to produce a configure script.
 
24
 
 
25
AC_INIT(acinclude.m4) dnl a source file from your sub dir
 
26
 
 
27
dnl This is so we can use kde-common
 
28
AC_CONFIG_AUX_DIR(admin)
 
29
 
 
30
dnl This ksh/zsh feature conflicts with `cd blah ; pwd`
 
31
unset CDPATH
 
32
 
 
33
dnl Checking host/target/build systems, for make, install etc.
 
34
AC_CANONICAL_SYSTEM 
 
35
dnl Perform program name transformation
 
36
AC_ARG_PROGRAM
 
37
 
 
38
dnl Automake doc recommends to do this only here. (Janos)
 
39
AM_INIT_AUTOMAKE(kkbswitch, 1.4.3) dnl searches for some needed programs
 
40
 
 
41
KDE_SET_PREFIX
 
42
 
 
43
dnl generate the config header
 
44
AM_CONFIG_HEADER(config.h) dnl at the distribution this done
 
45
 
 
46
dnl Checks for programs.
 
47
AC_CHECK_COMPILERS
 
48
AC_ENABLE_SHARED(yes)
 
49
AC_ENABLE_STATIC(no)
 
50
KDE_PROG_LIBTOOL
 
51
 
 
52
dnl for NLS support. Call them in this order!
 
53
dnl WITH_NLS is for the po files
 
54
AM_KDE_WITH_NLS
 
55
 
 
56
KDE_USE_QT(3.0.0)
 
57
AC_PATH_KDE
 
58
#MIN_CONFIG(3.0.0)
 
59
 
 
60
dnl PACKAGE set before
 
61
AC_C_BIGENDIAN
 
62
AC_CHECK_KDEMAXPATHLEN
 
63
 
 
64
AC_CHECK_HEADERS([X11/extensions/XKBrules.h], [], [], [
 
65
  #include <stdio.h> 
 
66
  #include <X11/XKBlib.h>])
 
67
 
 
68
save_LDFLAGS="$LDFLAGS"
 
69
LDFLAGS="$LDFLAGS $all_libraries"
 
70
AC_CHECK_LIB(xkbfile, XkbRF_GetNamesProp)
 
71
LDFLAGS="$save_LDFLAGS"
 
72
  
 
73
AC_ARG_ENABLE(ru-ua-layout,
 
74
  [  --enable-ru-ua-layout  Install Russian/Ukrainian layout file
 
75
                          (default: don't install)],
 
76
  enable_ru_ua_layout="$enableval",
 
77
  enable_ru_ua_layout="no")
 
78
 
 
79
AM_CONDITIONAL(ENABLE_RU_UA_LAYOUT, test "x$enable_ru_ua_layout" = "xyes")
 
80
 
 
81
dnl set prefix according to installed KDE. Strange that KDE build scripts
 
82
dnl don't do it by default
 
83
AC_PREFIX_DEFAULT(`kde-config --prefix`)
 
84
 
 
85
KDE_CREATE_SUBDIRSLIST
 
86
AC_CONFIG_FILES([ Makefile ])
 
87
AC_CONFIG_FILES([ doc/Makefile ])
 
88
AC_CONFIG_FILES([ doc/en/Makefile ])
 
89
AC_CONFIG_FILES([ kkbswitch/Makefile ])
 
90
AC_CONFIG_FILES([ kkbswitch.upd/Makefile ])
 
91
AC_CONFIG_FILES([ po/Makefile ])
 
92
AC_OUTPUT
 
93
if test "$all_tests" = "bad"; then
 
94
  if test ! "$cache_file" = "/dev/null"; then
 
95
    echo ""    
 
96
    echo "Please remove the file $cache_file after changing your setup"
 
97
    echo "so that configure will find the changes next time."
 
98
    echo ""
 
99
  fi
 
100
else
 
101
  echo ""
 
102
  echo "Good - your configure finished. Start make now"
 
103
  echo ""
 
104
fi