File: configure.ac

package info (click to toggle)
avahi-sharp 0.6.19-2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 1,964 kB
  • ctags: 610
  • sloc: sh: 9,192; xml: 3,989; cs: 2,183; makefile: 124
file content (107 lines) | stat: -rw-r--r-- 3,120 bytes parent folder | download | duplicates (4)
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
# -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

# $Id: configure.ac 1474 2007-05-09 14:39:14Z lennart $

# This file is part of avahi.
#
# avahi is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2 of the
# License, or (at your option) any later version.
#
# avahi is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
# or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
# License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with avahi; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
# USA.

AC_PREREQ(2.57)
AC_INIT([avahi],[0.6.19],[avahi (at) lists (dot) freedesktop (dot) org])
AM_INIT_AUTOMAKE([foreign 1.9 -Wall])

AC_SUBST(PACKAGE_URL, [http://avahi.org/])

if type -p stow > /dev/null && test -d /usr/local/stow ; then
    AC_MSG_NOTICE([*** Found /usr/local/stow: default install prefix set to /usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION} ***])
    ac_default_prefix="/usr/local/stow/${PACKAGE_NAME}-${PACKAGE_VERSION}"
fi

# Checks for programs.
AC_GNU_SOURCE
AC_PROG_INSTALL
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_GCC_TRADITIONAL

# libtool stuff
AC_PROG_LIBTOOL

# Check for pkg-config manually first, as if its not installed the
# PKG_PROG_PKG_CONFIG macro won't be defined.
AC_CHECK_PROG(have_pkg_config, pkg-config, yes, no)

if test x"$have_pkg_config" = "xno"; then
    AC_MSG_ERROR(pkg-config is required to install this program)
fi

PKG_PROG_PKG_CONFIG

PKG_CHECK_MODULES(AVAHI, [ avahi-client >= 0.6.19 avahi-glib >= 0.6.19 avahi-ui >= 0.6.19 ])

#
# Check for mono stuff
#
AC_PATH_PROG(MCS, mcs)
if test "x$MCS" = "x" ; then
    AC_MSG_ERROR([Can not find "mcs" - The Mono C-Sharp Compiler) in your PATH])
fi

AC_PATH_PROG(GACUTIL, gacutil)
if test "x$GACUTIL" = "x" ; then
    AC_MSG_ERROR([Can not find "gacutil" in your PATH])
fi

AC_SUBST(MCS)
AC_SUBST(GACUTIL)

#
# Check for monodoc stuff
#
PKG_CHECK_MODULES(MONODOC, [monodoc >= 1.1.8])
MONODOC_DIR=`$PKG_CONFIG --variable=sourcesdir monodoc`        

AC_PATH_PROG(MONODOCER, monodocer)
AC_PATH_PROG(MDASSEMBLER, mdassembler)

AC_SUBST(MONODOC_DIR)
AC_SUBST(MONODOCER)
AC_SUBST(MDASSEMBLER)

# ==========================================================================
AC_CONFIG_FILES([
Makefile 
common/Makefile
avahi-sharp/Makefile
avahi-ui-sharp/Makefile
])
AC_OUTPUT

# ==========================================================================
echo "
 ---{ $PACKAGE_NAME $VERSION }---

    prefix:                                    ${prefix}
    sysconfdir:                                ${sysconfdir}
    localstatedir:                             ${localstatedir}
    Enable Mono:                               ${HAVE_MONO}
    Enable Monodoc:                            ${HAVE_MONODOC}
"

echo "\
    Building avahi-sharp:               ${HAVE_MONO}
"