19aa228fdSmrg 29aa228fdSmrgdnl Copyright 2005 Red Hat, Inc. 39aa228fdSmrgdnl 49aa228fdSmrgdnl Permission to use, copy, modify, distribute, and sell this software and its 59aa228fdSmrgdnl documentation for any purpose is hereby granted without fee, provided that 69aa228fdSmrgdnl the above copyright notice appear in all copies and that both that 79aa228fdSmrgdnl copyright notice and this permission notice appear in supporting 89aa228fdSmrgdnl documentation, and that the name of Red Hat not be used in 99aa228fdSmrgdnl advertising or publicity pertaining to distribution of the software without 109aa228fdSmrgdnl specific, written prior permission. Red Hat makes no 119aa228fdSmrgdnl representations about the suitability of this software for any purpose. It 129aa228fdSmrgdnl is provided "as is" without express or implied warranty. 139aa228fdSmrgdnl 149aa228fdSmrgdnl RED HAT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, 159aa228fdSmrgdnl INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO 169aa228fdSmrgdnl EVENT SHALL RED HAT BE LIABLE FOR ANY SPECIAL, INDIRECT OR 179aa228fdSmrgdnl CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, 189aa228fdSmrgdnl DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER 199aa228fdSmrgdnl TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 209aa228fdSmrgdnl PERFORMANCE OF THIS SOFTWARE. 219aa228fdSmrgdnl 229aa228fdSmrgdnl Process this file with autoconf to create configure. 239aa228fdSmrg 240c7e83b2Smrg# Initialize Autoconf 258f65982aSmrgAC_PREREQ([2.60]) 2646374b8dSmrgAC_INIT([xmag], [1.0.8], 2746374b8dSmrg [https://gitlab.freedesktop.org/xorg/app/xmag/-/issues], [xmag]) 280c7e83b2SmrgAC_CONFIG_SRCDIR([Makefile.am]) 290c7e83b2SmrgAC_CONFIG_HEADERS([config.h]) 300c7e83b2Smrg 310c7e83b2Smrg# Initialize Automake 32e39ce84cSmrgAM_INIT_AUTOMAKE([foreign dist-xz]) 339aa228fdSmrg 348f65982aSmrg# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 358f65982aSmrgm4_ifndef([XORG_MACROS_VERSION], 368f65982aSmrg [m4_fatal([must install xorg-macros 1.8 or later before running autoconf/autogen])]) 378f65982aSmrgXORG_MACROS_VERSION(1.8) 388f65982aSmrgXORG_DEFAULT_OPTIONS 3983d7c197Smrg 409aa228fdSmrgAC_CHECK_FUNCS([nanosleep poll select]) 419aa228fdSmrg 4280b026c6Smrg# Math libraries & functions 4380b026c6Smrg# - some compilers use builtin inlines for floor 4480b026c6Smrg# - lrint() is a C99 addition not found on some older systems 4580b026c6Smrg# - must do the libm check first so that the lrint check will have it in $LIBS 4680b026c6SmrgAC_SEARCH_LIBS([floor], [m]) 4780b026c6SmrgAC_SEARCH_LIBS([lrint], [m]) 4880b026c6SmrgAC_CHECK_FUNCS([lrint]) 4980b026c6Smrg 509aa228fdSmrg# Checks for pkg-config packages 5146374b8dSmrgPKG_CHECK_MODULES(XMAG, [xaw7 xmu xt x11 xproto >= 7.0.22]) 529aa228fdSmrg 538f65982aSmrgxt_appdefaultdir=`$PKG_CONFIG --variable=appdefaultdir xt` 5483d7c197SmrgAC_ARG_WITH(appdefaultdir, 5580b026c6Smrg AS_HELP_STRING([--with-appdefaultdir=<pathname>], 5683d7c197Smrg [specify directory for app-defaults files (default is autodetected)]), 5783d7c197Smrg [appdefaultdir="$withval"], [appdefaultdir="${xt_appdefaultdir}"]) 589aa228fdSmrgAC_SUBST(appdefaultdir) 599aa228fdSmrg 609aa228fdSmrg 6180b026c6SmrgAC_CONFIG_FILES([ 6280b026c6Smrg Makefile 6380b026c6Smrg man/Makefile]) 6480b026c6SmrgAC_OUTPUT 65