15c10afb9Smrg
25c10afb9Smrgdnl  Copyright 2005 Red Hat, Inc.
35c10afb9Smrgdnl 
45c10afb9Smrgdnl  Permission to use, copy, modify, distribute, and sell this software and its
55c10afb9Smrgdnl  documentation for any purpose is hereby granted without fee, provided that
65c10afb9Smrgdnl  the above copyright notice appear in all copies and that both that
75c10afb9Smrgdnl  copyright notice and this permission notice appear in supporting
85c10afb9Smrgdnl  documentation, and that the name of Red Hat not be used in
95c10afb9Smrgdnl  advertising or publicity pertaining to distribution of the software without
105c10afb9Smrgdnl  specific, written prior permission.  Red Hat makes no
115c10afb9Smrgdnl  representations about the suitability of this software for any purpose.  It
125c10afb9Smrgdnl  is provided "as is" without express or implied warranty.
135c10afb9Smrgdnl 
145c10afb9Smrgdnl  RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
155c10afb9Smrgdnl  INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
165c10afb9Smrgdnl  EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
175c10afb9Smrgdnl  CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
185c10afb9Smrgdnl  DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
195c10afb9Smrgdnl  TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
205c10afb9Smrgdnl  PERFORMANCE OF THIS SOFTWARE.
215c10afb9Smrgdnl
225c10afb9Smrgdnl Process this file with autoconf to create configure.
235c10afb9Smrg
24cf2f63c2Smrg# Initialize Autoconf
25b3078addSmrgAC_PREREQ([2.60])
26cf2f63c2SmrgAC_INIT([proxymngr], [1.0.4],
27b3078addSmrg        [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [proxymngr])
28cf2f63c2SmrgAC_CONFIG_SRCDIR([Makefile.am])
29cf2f63c2Smrg# The program itself has a header called config.h so
30cf2f63c2Smrg# we have to choose a different name
31cf2f63c2SmrgAC_CONFIG_HEADERS([xconfig.h])
32cf2f63c2Smrg
33cf2f63c2Smrg# Initialize Automake
34cf2f63c2SmrgAM_INIT_AUTOMAKE([foreign dist-bzip2])
355c10afb9Smrg
36b3078addSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS
37b3078addSmrgm4_ifndef([XORG_MACROS_VERSION],
38b3078addSmrg          [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])])
39b3078addSmrgXORG_MACROS_VERSION(1.8)
40b3078addSmrgXORG_DEFAULT_OPTIONS
41b3078addSmrg
42cf2f63c2Smrg# Checks for programs
435c10afb9SmrgAC_PROG_CPP
445c10afb9Smrg
455c10afb9SmrgAC_PATH_PROG(LBXPROXY, lbxproxy)
465c10afb9Smrgif [[ -z $LBXPROXY ]] ; then
475c10afb9Smrg   AC_MSG_ERROR([lbxproxy is needed])
485c10afb9Smrgfi
495c10afb9Smrg
505c10afb9Smrg# Checks for pkg-config packages
51cf2f63c2SmrgPKG_CHECK_MODULES(PROXYMNGR, [ice xt xproto >= 7.0.17 xproxymngproto])
525c10afb9Smrg
535c10afb9SmrgAC_CHECK_FUNC(strcasecmp, [], 
545c10afb9Smrg	AC_DEFINE([NEED_STRCASECMP],1,
55b3078addSmrg		  [Define to 1 if you do not have the "strcasecmp" function.]))
565c10afb9Smrg
575c10afb9Smrg# Needed to check for IPv6 support and set flags appropriately
585c10afb9SmrgXTRANS_TCP_FLAGS
595c10afb9Smrg
605c10afb9SmrgAC_OUTPUT([Makefile])
61