configure.ac revision 5c10afb9
1
2dnl  Copyright 2005 Red Hat, Inc.
3dnl 
4dnl  Permission to use, copy, modify, distribute, and sell this software and its
5dnl  documentation for any purpose is hereby granted without fee, provided that
6dnl  the above copyright notice appear in all copies and that both that
7dnl  copyright notice and this permission notice appear in supporting
8dnl  documentation, and that the name of Red Hat not be used in
9dnl  advertising or publicity pertaining to distribution of the software without
10dnl  specific, written prior permission.  Red Hat makes no
11dnl  representations about the suitability of this software for any purpose.  It
12dnl  is provided "as is" without express or implied warranty.
13dnl 
14dnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
15dnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
16dnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
17dnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
18dnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
19dnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
20dnl  PERFORMANCE OF THIS SOFTWARE.
21dnl
22dnl Process this file with autoconf to create configure.
23
24AC_PREREQ([2.57])
25AC_INIT(proxymngr,[1.0.1], [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg],proxymngr)
26AM_INIT_AUTOMAKE([dist-bzip2])
27AM_MAINTAINER_MODE
28
29# The program itself has a header called config.h so 
30# we have to choose a different name
31AM_CONFIG_HEADER(xconfig.h)
32
33AC_PROG_CPP
34AC_PROG_CC
35AC_PROG_INSTALL
36
37AC_PATH_PROG(LBXPROXY, lbxproxy)
38if [[ -z $LBXPROXY ]] ; then
39   AC_MSG_ERROR([lbxproxy is needed])
40fi
41
42AC_PATH_PROG(SED, sed)
43if [[ -z $SED ]] ; then
44   AC_MSG_ERROR([sed is needed])
45fi
46
47# Checks for pkg-config packages
48PKG_CHECK_MODULES(PROXYMNGR, ice xt x11 xproxymngproto)
49AC_SUBST(PROXYMNGR_CFLAGS)
50AC_SUBST(PROXYMNGR_LIBS)
51
52AC_CHECK_FUNC(strcasecmp, [], 
53	AC_DEFINE([NEED_STRCASECMP],1,
54		  [Define to 1 if you do not have the `strcasecmp' function.]))
55
56# Needed to check for IPv6 support and set flags appropriately
57XTRANS_TCP_FLAGS
58
59XORG_MANPAGE_SECTIONS
60XORG_RELEASE_VERSION
61
62AC_OUTPUT([Makefile])
63