configure.ac revision b3078add
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 24b3078addSmrgAC_PREREQ([2.60]) 25b3078addSmrgAC_INIT([proxymngr], [1.0.2], 26b3078addSmrg [https://bugs.freedesktop.org/enter_bug.cgi?product=xorg], [proxymngr]) 275c10afb9SmrgAM_INIT_AUTOMAKE([dist-bzip2]) 285c10afb9SmrgAM_MAINTAINER_MODE 295c10afb9Smrg 30b3078addSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 31b3078addSmrgm4_ifndef([XORG_MACROS_VERSION], 32b3078addSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 33b3078addSmrgXORG_MACROS_VERSION(1.8) 34b3078addSmrgXORG_DEFAULT_OPTIONS 35b3078addSmrg 365c10afb9Smrg# The program itself has a header called config.h so 375c10afb9Smrg# we have to choose a different name 385c10afb9SmrgAM_CONFIG_HEADER(xconfig.h) 395c10afb9Smrg 405c10afb9SmrgAC_PROG_CPP 415c10afb9Smrg 425c10afb9SmrgAC_PATH_PROG(LBXPROXY, lbxproxy) 435c10afb9Smrgif [[ -z $LBXPROXY ]] ; then 445c10afb9Smrg AC_MSG_ERROR([lbxproxy is needed]) 455c10afb9Smrgfi 465c10afb9Smrg 475c10afb9Smrg# Checks for pkg-config packages 485c10afb9SmrgPKG_CHECK_MODULES(PROXYMNGR, ice xt x11 xproxymngproto) 495c10afb9Smrg 505c10afb9SmrgAC_CHECK_FUNC(strcasecmp, [], 515c10afb9Smrg AC_DEFINE([NEED_STRCASECMP],1, 52b3078addSmrg [Define to 1 if you do not have the "strcasecmp" function.])) 535c10afb9Smrg 545c10afb9Smrg# Needed to check for IPv6 support and set flags appropriately 555c10afb9SmrgXTRANS_TCP_FLAGS 565c10afb9Smrg 575c10afb9SmrgAC_OUTPUT([Makefile]) 58