File: configure.in

package info (click to toggle)
gnome-bluetooth 0.9.1-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,880 kB
  • ctags: 156
  • sloc: sh: 9,106; ansic: 1,868; makefile: 177
file content (119 lines) | stat: -rw-r--r-- 3,443 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)

AC_INIT(gnome-bluetooth, 0.9.1)
AC_CONFIG_SRCDIR(src/controller.gob)

# Before making a release, the GNOMEBT_LT_VERSION string should be modified.
# The string is of the form C:R:A.
# - If interfaces have been changed or added, but binary compatibility has
#   been preserved, change to C+1:0:A+1
# - If binary compatibility has been broken (eg removed or changed interfaces)
#   change to C+1:0:0
# - If the interface is the same as the previous version, change to C:R+1:A
GNOMEBT_LT_VERSION=0:2:0
AC_SUBST(GNOMEBT_LT_VERSION)

AM_MAINTAINER_MODE
AC_CONFIG_HEADERS([config.h])

AM_INIT_AUTOMAKE([1.8 dist-bzip2 no-dist-gzip check-news])

dnl Initialize libtool
AM_DISABLE_STATIC
AM_PROG_LIBTOOL

AC_ISC_POSIX
AC_PROG_CC
AM_PROG_CC_STDC
AC_HEADER_STDC

dnl Gettext stuff.
IT_PROG_INTLTOOL([0.35.0])

GETTEXT_PACKAGE=gnome-bluetooth
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"gnome-bluetooth", [Manage Bluetooth devices from the GNOME desktop.])

AM_GLIB_GNU_GETTEXT

AC_PATH_PROG(GCONFTOOL, gconftool-2, no)
AM_GCONF_SOURCE_2

GOB2_HOOK(2.0.0,[],[AC_MSG_ERROR([Cannot find GOB-2, install from http://www.5z.com/jirka/gob.html])])

BTCTL_REQUIRED=0.8.0
GCONF_REQUIRED=2.3.3

PKG_PROG_PKG_CONFIG

AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal, no)
PKG_CHECK_MODULES(GNOME_BLUETOOTH, libglade-2.0 gobject-2.0 libgnomeui-2.0 >= 1.110.0 gconf-2.0 libbtctl >= $BTCTL_REQUIRED gconf-2.0 >= $GCONF_REQUIRED gtk+-2.0 >= 2.10)
PKG_CHECK_MODULES(GNOME_BLUETOOTH_PYTHON, libglade-2.0 gobject-2.0 libgnomeui-2.0 >= 1.110.0 gconf-2.0 pygtk-2.0 libbtctl >= $BTCTL_REQUIRED)
AM_CHECK_PYTHON_HEADERS(,[AC_MSG_ERROR(could not find Python headers)])

DEFSDIR=`pkg-config --variable=defsdir pygtk-2.0`
AC_SUBST(DEFSDIR)
CODEGENDIR=`pkg-config --variable codegendir pygtk-2.0`
AC_SUBST(CODEGENDIR)

AC_SUBST(GNOME_BLUETOOTH_CFLAGS)
AC_SUBST(GNOME_BLUETOOTH_LIBS)
AC_SUBST(GLIB_GENMARSHAL)
AC_SUBST(GNOME_BLUETOOTH_PYTHON_CFLAGS)
AC_SUBST(GNOME_BLUETOOTH_PYTHON_LIBS)

dnl ==========================================================================
dnl Turn on the additional warnings last, so -Werror doesn't affect other tests.
AC_ARG_ENABLE(compile-warnings,
[  --enable-compile-warnings  Maximum compiler warnings],
set_more_warnings="$enableval",[
if test -f $srcdir/CVSVERSION; then
    is_cvs_version=true
    set_more_warnings=yes
else
    set_more_warnings=no
fi
])
AC_MSG_CHECKING(for more warnings, including -Werror)
if test "$GCC" = "yes" -a "$set_more_warnings" != "no"; then
    AC_MSG_RESULT(yes)
    CFLAGS="\
    -Wall \
    -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes \
    -Wnested-externs -Wpointer-arith \
    -Wcast-align -Wsign-compare \
    -Werror \
    $CFLAGS"

    for option in -Wsign-promo -Wno-sign-compare -Wno-strict-aliasing; do
        SAVE_CFLAGS="$CFLAGS"
        CFLAGS="$CFLAGS $option"
        AC_MSG_CHECKING([whether gcc understands $option])
        AC_TRY_COMPILE([], [],
            has_option=yes,
            has_option=no,)
        if test $has_option = no; then
            CFLAGS="$SAVE_CFLAGS"
        fi
        AC_MSG_RESULT($has_option)
        unset has_option
        unset SAVE_CFLAGS
    done
    unset option
else
    AC_MSG_RESULT(no)
fi

AC_CONFIG_FILES([
Makefile
gnome-bluetooth.pc
data/Makefile
ui/Makefile
pixmaps/Makefile
src/Makefile
po/Makefile.in
obex/Makefile
])

AC_OUTPUT