114c0a534Smrgdnl Copyright 2005 Red Hat, Inc. 214c0a534Smrgdnl 314c0a534Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 414c0a534Smrgdnl documentation for any purpose is hereby granted without fee, provided that 514c0a534Smrgdnl the above copyright notice appear in all copies and that both that 614c0a534Smrgdnl copyright notice and this permission notice appear in supporting 714c0a534Smrgdnl documentation, and that the name of Red Hat not be used in 814c0a534Smrgdnl advertising or publicity pertaining to distribution of the software without 914c0a534Smrgdnl specific, written prior permission. Red Hat makes no 1014c0a534Smrgdnl representations about the suitability of this software for any purpose. It 1114c0a534Smrgdnl is provided "as is" without express or implied warranty. 1214c0a534Smrgdnl 1314c0a534Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 1414c0a534Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 1514c0a534Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 1614c0a534Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 1714c0a534Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 1814c0a534Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 1914c0a534Smrgdnl PERFORMANCE OF THIS SOFTWARE. 2014c0a534Smrgdnl 2114c0a534Smrgdnl Process this file with autoconf to create configure. 2214c0a534Smrg 2324047306Smrg# Initialize Autoconf 24576bae58SmrgAC_PREREQ([2.60]) 257015785aSmrgAC_INIT([smproxy], [1.0.8], 267015785aSmrg [https://gitlab.freedesktop.org/xorg/app/smproxy/-/issues], [smproxy]) 2724047306SmrgAC_CONFIG_SRCDIR([Makefile.am]) 2824047306SmrgAC_CONFIG_HEADERS([config.h]) 2924047306Smrg 3024047306Smrg# Initialize Automake 31bdc460c5SmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 3224047306Smrg 3324047306Smrg# Set common system defines for POSIX extensions, such as _GNU_SOURCE 3424047306Smrg# Must be called before any macros that run the compiler (like 3524047306Smrg# AC_PROG_LIBTOOL or XORG_DEFAULT_OPTIONS) to avoid autoconf errors. 3624047306SmrgAC_USE_SYSTEM_EXTENSIONS 3714c0a534Smrg 38576bae58Smrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 39bf2eeab3Smrgm4_ifndef([XORG_MACROS_VERSION], 40576bae58Smrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 41576bae58SmrgXORG_MACROS_VERSION(1.8) 42bf2eeab3SmrgXORG_DEFAULT_OPTIONS 43bf2eeab3Smrg 4424047306SmrgAC_CHECK_FUNCS([asprintf mkstemp mktemp]) 4514c0a534Smrg 4614c0a534Smrg# Checks for pkg-config packages 471a054510SmrgPKG_CHECK_MODULES(SMPROXY, [sm ice xt xmuu]) 4814c0a534Smrg 491a054510SmrgAC_CONFIG_FILES([ 501a054510Smrg Makefile 511a054510Smrg man/Makefile]) 521a054510SmrgAC_OUTPUT 53