configure.ac revision 8d1e6323
18108eb18Smrg 28108eb18Smrgdnl Copyright 2005 Red Hat, Inc. 38108eb18Smrgdnl 48108eb18Smrgdnl Permission to use, copy, modify, distribute, and sell this software and its 58108eb18Smrgdnl documentation for any purpose is hereby granted without fee, provided that 68108eb18Smrgdnl the above copyright notice appear in all copies and that both that 78108eb18Smrgdnl copyright notice and this permission notice appear in supporting 88108eb18Smrgdnl documentation, and that the name of Red Hat not be used in 98108eb18Smrgdnl advertising or publicity pertaining to distribution of the software without 108108eb18Smrgdnl specific, written prior permission. Red Hat makes no 118108eb18Smrgdnl representations about the suitability of this software for any purpose. It 128108eb18Smrgdnl is provided "as is" without express or implied warranty. 138108eb18Smrgdnl 148108eb18Smrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 158108eb18Smrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 168108eb18Smrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 178108eb18Smrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 188108eb18Smrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 198108eb18Smrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 208108eb18Smrgdnl PERFORMANCE OF THIS SOFTWARE. 218108eb18Smrgdnl 228108eb18Smrgdnl Process this file with autoconf to create configure. 238108eb18Smrg 245977a007Smrg# Initialize Autoconf 251a650d1eSmrgAC_PREREQ([2.60]) 268d1e6323SmrgAC_INIT([xsm], [1.0.6], 278d1e6323Smrg [https://gitlab.freedesktop.org/xorg/app/xsm/-/issues], [xsm]) 285977a007SmrgAC_CONFIG_SRCDIR([Makefile.am]) 295977a007SmrgAC_CONFIG_HEADERS([config.h]) 305977a007Smrg 315977a007Smrg# Initialize Automake 3299c4c48aSmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 338108eb18Smrg 341a650d1eSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 351a650d1eSmrgm4_ifndef([XORG_MACROS_VERSION], 361a650d1eSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 371a650d1eSmrgXORG_MACROS_VERSION(1.8) 381a650d1eSmrgXORG_DEFAULT_OPTIONS 398108eb18Smrg 401a650d1eSmrgAC_ARG_WITH(rsh, AS_HELP_STRING([--with-rsh=PATH], 411a650d1eSmrg [Rsh command to use (default: $bindir/ssh)]), 421a650d1eSmrg [ rsh="$withval"], 431a650d1eSmrg [ rsh=${bindir}/ssh ]) 441a650d1eSmrgRSH=$rsh 451a650d1eSmrgAC_SUBST(RSH) 468108eb18Smrg 475977a007SmrgAC_CHECK_FUNCS([mkstemp putenv]) 488108eb18Smrg 498108eb18Smrg# Checks for pkg-config packages 5099c4c48aSmrgPKG_CHECK_MODULES(XSM, [x11 xt > 1.0.99 ice sm xaw7 xproto >= 7.0.17]) 518108eb18Smrg 521a650d1eSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 531a650d1eSmrgAC_ARG_WITH(appdefaultdir, 545977a007Smrg AS_HELP_STRING([--with-appdefaultdir=<pathname>], 551a650d1eSmrg [specify directory for app-defaults files (default is autodetected)]), 561a650d1eSmrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 578108eb18SmrgAC_SUBST(appdefaultdir) 588108eb18Smrg 598108eb18Smrg 605977a007SmrgAC_CONFIG_FILES([ 615977a007Smrg Makefile 625977a007Smrg man/Makefile]) 635977a007SmrgAC_OUTPUT 64